[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#442189: (infinite(?) loop during update, possible race condition)



(For the bug report - I sent this to Eugene on 23rd December)

Hi Eugene, thanks for your interest.

> can you also show strace output of
> gpgv and gzip processes when apt goes to infinite loop?

they both seem to be stuck doing nothing...

# ps -fade|grep gpgv
root     18384 18380  0 Nov14 ?        00:00:00 /usr/lib/apt/methods/gpgv
# strace -f -s2048 -o /tmp/gpgv.strace -p 18384
Process 18384 attached - interrupt to quit
Process 18384 detached
# more /tmp/gpgv.strace
18384 select(1, [0], NULL, NULL, NULL <unfinished ...>

# ps -fade|grep gzip
root     18409 18380  0 Nov14 ?        00:00:00 /usr/lib/apt/methods/gzip
# strace -f -s2048 -o /tmp/gzip.strace -p 18409
Process 18409 attached - interrupt to quit
Process 18409 detached
sachin:/u/mci156# cat /tmp/gzip.strace
18409 select(1, [0], NULL, NULL, NULL <unfinished ...>

note the date of the process...

# stat /var/lib/apt/lists/lock
   File: `/var/lib/apt/lists/lock'
   Size: 0               Blocks: 0          IO Block: 4096   regular empty 
file
Device: fe02h/65026d    Inode: 215126      Links: 1
Access: (0640/-rw-r-----)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2007-10-22 08:26:27.000000000 +1000
Modify: 2008-12-23 10:36:26.000000000 +1100
Change: 2008-12-23 10:36:26.000000000 +1100

The modify time is recent because I noticed the machine was stuck
when I tried to do an update -
  # aptitude update
  E: Could not get lock /var/lib/apt/lists/lock - open (11 Resource
     temporarily unavailable)
  E: Couldn't lock list directory..are you root?
  # id -u
  0

Regarding JoeyK's comments -
I am using apt-proxy sources exclusively in /etc/apt/sources.list.

One of these sources I am proxying is a local package repo, which is 
managed with reprepro.

> I also would be glad if you can check latest apt (0.7.18) whether it has 
> this bug or not.

I'll try to look at this in the coming weeks.
Do you mean me to try a backport of this version or just try on a
system running lenny?




Reply to: