Bug#442189: (infinite(?) loop during update, possible race condition)
I forgot to list the other stuck processes:
# ps -fade|grep apt
root 18380 18327 0 Nov14 ? 00:00:00 /usr/bin/apt-get update
root 18382 18380 0 Nov14 ? 00:00:00 /usr/lib/apt/methods/http
root 18384 18380 0 Nov14 ? 00:00:00 /usr/lib/apt/methods/gpgv
root 18389 18380 0 Nov14 ? 00:00:00 /usr/lib/apt/methods/bzip2
root 18409 18380 0 Nov14 ? 00:00:00 /usr/lib/apt/methods/gzip
and then I thought let's just check....
# strace -s 2048 -f -p 18380
Process 18380 attached - interrupt to quit
select(10, [5 6 7 9], [], NULL, {0, 468000}) = 0 (Timeout)
stat64("/var/lib/apt/lists/partial/debian-archive:9999_atnf_dists_etch_main_binary-i386_Packages.decomp",
{st_mode=S_IFREG|0644, st_size=0, ...}) = 0
select(10, [5 6 7 9], [], NULL, {0, 500000}) = 0 (Timeout)
stat64("/var/lib/apt/lists/partial/debian-archive:9999_atnf_dists_etch_main_binary-i386_Packages.decomp",
{st_mode=S_IFREG|0644, st_size=0, ...}) = 0
select(10, [5 6 7 9], [], NULL, {0, 500000}) = 0 (Timeout)
stat64("/var/lib/apt/lists/partial/debian-archive:9999_atnf_dists_etch_main_binary-i386_Packages.decomp",
{st_mode=S_IFREG|0644, st_size=0, ...}) = 0
select(10, [5 6 7 9], [], NULL, {0, 500000} <unfinished ...>
Process 18380 detached
aha. It's stuck trying to get the proxied versions of our local repo's
Packages file. Maybe Joey's on to something.
the other child processes are stuck too.
# strace -s 2048 -f -p 18382
Process 18382 attached - interrupt to quit
select(1, [0], NULL, NULL, NULL <unfinished ...>
Process 18382 detached
# strace -s 2048 -f -p 18389
Process 18389 attached - interrupt to quit
select(1, [0], NULL, NULL, NULL <unfinished ...>
Process 18389 detached
I have in fact having some problems with apt-proxy noticing that the
local package repo has new packages. I end up having to go and delete
the relevant Packages.gz in the apt-proxy cache directories.
Possibly the problem is that we aren't using pdiffs in our repo?
On the test machine /etc/apt/apt.conf has them turned off -
Acquire {
Pdiffs "false";
};
so I'm at a bit of a loss why apt would even ask for a Packages.decomp.
Or maybe I'm just misunderstanding this.
Reply to: