Today I ran synaptic to remove a package, and dpkg went defunct :( I'm
using the latest apt as of right now (0.7.6ubuntu14), and strace reveals
that dpkg dies trying to read /dev/ptmx . some relevant info:
output from synaptic:
Removing kcontrol ...
Processing triggers for libc6 ...
ldconfig
Sorry, I managed to reproduce it by installing and then removing
kcontrol again. and attach some useful info this time (hopefully!)
Also, devpts is mounted.
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
Notable lines in the strace file:
3180ish to the end = Input/Output errors just before
*** This bug is a duplicate of bug 134858 ***
https://bugs.launchpad.net/bugs/134858
@Troy C: thanks for this information, that looks very good. What did you
do to reproduce the problem? I'm not able to reproduce it here
currently.
** This bug has been marked a duplicate of bug 134858
*** This bug is a duplicate of bug 134858 ***
https://bugs.launchpad.net/bugs/134858
Simply doing `apt-get install kcontrol` and then `apt-get remove
kcontrol` will cause the problem, anywhere between 10%-40% of the time.
for i in `seq 1 50` ; do apt-get -y -qq install kcontrol ; echo
Nice work! The one time I ran it today after the new apt package, it
didn't lock up - but it wasn't something that happened every time, so
let's leave it a day or two before saying it's fixed for sure.
--
apt-get blocks on /dev/ptmx a lot
https://bugs.launchpad.net/bugs/148806
You received this
Thanks for this additional information.
The man open /devptmx are a resource leak in the process that drives
dpkg. I uploaded a fix for this today.
** Changed in: apt (Ubuntu)
Status: Incomplete = Fix Committed
--
apt-get blocks on /dev/ptmx a lot
https://bugs.launchpad.net/bugs/148806
apt (0.7.6ubuntu14) gutsy; urgency=low
* apt-pkg/deb/dpkgpm.cc:
- fix resource leak (LP: #148806)
-- Michael Vogt [EMAIL PROTECTED] Mon, 15 Oct 2007 20:57:44
+0200
** Changed in: apt (Ubuntu)
Status: Fix Committed = Fix Released
--
apt-get blocks on /dev/ptmx a lot
backtrace:
#0 0xe410 in __kernel_vsyscall ()
#1 0xb7c9acb3 in read () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7ede9d7 in pkgDPkgPM::DoTerminalPty ()
from /usr/lib/libapt-pkg-libc6.6-6.so.4.5
#3 0xb7ee45ce in pkgDPkgPM::Go () from /usr/lib/libapt-pkg-libc6.6-6.so.4.5
#4 0xb7e90558 in
Thanks for your bugreport.
Do you have /dev/pts mounted when this happens? Could you please try to
attach a gdb to apt-get and see if you get a useful backtrace where it
sepends its time?
Thanks,
Michael
** Changed in: apt (Ubuntu)
Status: New = Incomplete
--
apt-get blocks on