Hi Thomas,
Thomas Liske wrote:
> could you please provide your needrestart config (if changed from
> defaults)?
"debsums -ce needrestart" says no, so no file shipped by the package
is modifed.
I also checked /etc/needrestart/*.d for additional files, but except
backup files, there seems nothing changed:
This is from one of my previous bug reports and I'm now using the
packaged file again:
-rwxr-xr-x 1 root root 1359 May 17 18:56 600-mail*
-rwxr-xr-x 1 root root 1361 May 13 15:12 600-mail.dpkg-old*
-rwxr-xr-x 1 root root 1363 Mar 10 19:40 600-mail~*
> Is the problem reproducable?
Haven't tried until the end of this mail. See below. (Spoiler: No,
it's not.)
> Could you attach strace to needrestart while it hangs?
Impossible: The process more or less no more exists:
# strace -p 24169
strace: attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted
#
And actually needrestart did all its output:
Scanning processes...
Scanning candidates...
Scanning linux images...
Running kernel seems to be up-to-date.
Restarting services...
Package configuration
┌────┤ Daemons using outdated libraries ├─────┐
│ │
│ │
│ Which services should be restarted? │
│ │
│ [*] acpid │
│ [*] atd │
│ [*] cgmanager │
│ [*] cgproxy │
│ [*] clamav-freshclam │
│ [*] cronie │
│ [ ] dbus │
│ [*] dnssec-triggerd │
│ [*] fail2ban │
│ [*] gpm │
│ [*] kerneloops │
│ [*] lvm2-lvmetad │
│ [*] lvm2-lvmpolld │
│ [*] lxcfs │
│ [*] mdadm │
│ [*] mdadm-waitidle │
│ [*] mpd │
│ [*] ntp │
│ [*] openbsd-inetd │
│ [*] postfix │
│ [*] quasselcore │
│ [*] robustirc-bridge │
│ [*] rollerd │
│ [*] rsyslog │
│ [*] spacenavd │
│ [*] ssh │
│ [*] tor │
│ [*] unbound │
│ [*] uptimed │
│ [ ] wdm │
│ │
│ │
│ <Ok> <Cancel> │
│ │
└─────────────────────────────────────────────┘
service acpid restart
service atd restart
service cgmanager restart
service cgproxy restart
service clamav-freshclam restart
service cronie restart
service dnssec-triggerd restart
service fail2ban restart
service gpm restart
service kerneloops restart
service lvm2-lvmetad restart
service lvm2-lvmpolld restart
service lxcfs restart
service mdadm restart
service mdadm-waitidle restart
service mpd restart
service ntp restart
service openbsd-inetd restart
service postfix restart
service quasselcore restart
service robustirc-bridge restart
start-stop-daemon: unable to stat //robustirc-bridge (No such file or directory)
service rollerd restart
service rsyslog restart
service spacenavd restart
service ssh restart
service tor restart
service unbound restart
service uptimed restart
Services being skipped:
service dbus restart
service wdm restart
No containers need to be restarted.
User sessions running outdated binaries:
abe @ /dev/pts/0: emacs[19225], iceweasel[5134], liferea[5241], zsh[4193]
abe @ /dev/pts/1: zsh[3134]
abe @ /dev/pts/10: zsh[17212]
abe @ /dev/pts/11: zsh[9274]
abe @ /dev/pts/12: zsh[15317]
abe @ /dev/pts/13: autossh[5455], ssh[5466], zsh[20256]
abe @ /dev/pts/14: zsh[23167]
abe @ /dev/pts/15: i3lock[6471,6472], zsh[30281]
abe @ /dev/pts/17: zsh[9316]
abe @ /dev/pts/19: less[925,6359,28543,29138], mupdf-x11[30942,31981], zsh[936]
abe @ /dev/pts/2: zsh[4359]
abe @ /dev/pts/20: zsh[15549]
abe @ /dev/pts/21: zsh[13705]
abe @ /dev/pts/22: zsh[10010]
abe @ /dev/pts/24: zsh[29046]
abe @ /dev/pts/25: zsh[12477]
abe @ /dev/pts/27: zsh[8130]
abe @ /dev/pts/3: ccze[6818], tail[6817], zsh[5301]
abe @ /dev/pts/30: zsh[5510]
abe @ /dev/pts/31: zsh[14587]
abe @ /dev/pts/34: zsh[19960]
abe @ /dev/pts/35: zsh[30555]
abe @ /dev/pts/36: zsh[21324]
abe @ /dev/pts/37: mupdf-x11[2413], zsh[1782]
abe @ /dev/pts/4: autossh[7277], ccze[7278], somethings.sh[7270], ssh[13024], zsh[5327]
abe @ /dev/pts/5: zsh[5391]
abe @ /dev/pts/8: zsh[7305]
abe @ /dev/pts/9: zsh[7331]
Debian-console-log @ /dev/pts/28: less[12665]
Debian-console-log @ /dev/pts/29: less[12682]
Debian-console-log @ /dev/tty8: daemon[12677]
Debian-console-log @ /dev/tty9: daemon[12662]
root @ /dev/pts/23: bash[6327]
root @ /dev/pts/26: bash[8398]
root @ /dev/pts/33: screen[12118]
root @ /dev/pts/5: bash[5785]
root @ /dev/pts/6: aptitude[12196,24022], bash[5804]
Message from abe@c6 on (none) at 21:50 ...
Your session is running obsolete binaries or libraries as listed below.
Please consider a relogin or restart of the affected processes!
1 aptitude[12196,24022], bash[5804]
EOF
root @ /dev/pts/7: bash[6304]
root @ /dev/tty1: getty[3793]
root @ /dev/tty2: getty[3794]
root @ /dev/tty3: getty[3795]
root @ /dev/tty4: getty[3796]
root @ /dev/tty5: getty[3797]
root @ /dev/tty6: getty[3798]
root @ /dev/tty7: Xorg[2825]
[This is where things started hanging]
So this actually might be a debconf issue, since zombies are usually
not an issue of the program which became a zombie, but of the parent
process:
> > 24160 root 20 0 4308 800 716 S 0.0 0.0 0:00.00 | | `- sh -c test -x /usr/lib/needrestart/apt-pinvoke && /usr/lib/needrestart/apt-pinvoke || true
> > 24161 root 20 0 60748 17904 4172 S 0.0 0.0 0:00.14 | | `- /usr/bin/perl -w /usr/share/debconf/frontend /usr/sbin/needrestart
> > 24169 root 20 0 0 0 0 Z 0.0 0.0 0:00.32 | | `- needrestart
stracing the debconf/frontend process yields that it's waiting for
input:
# strace -p 24161
strace: Process 24161 attached
read(9,
But pressing Enter in the hanging shell doesn't change anything and
the strace doesn't make any output either while pressing Enter.
I also checked the currently open bug reports against debconf. Quite a
few mention hanging, but none mentions zombies.
Then again, debconf hasn't seen an upload for weeks. which-pkg-broke
doesn't show many potential culprits either, given that it worked fine
on 31st of May:
dpkg Mon May 9 13:14:33 2016
tar Wed May 18 16:31:56 2016
libselinux1:amd64 Wed May 18 16:32:20 2016
needrestart Wed May 18 16:33:04 2016
gcc-6-base:amd64 Fri May 20 13:14:03 2016
libgcc1:amd64 Fri May 20 13:14:04 2016
install-info Tue May 24 12:46:02 2016
libc6:amd64 Wed Jun 1 19:47:59 2016
multiarch-support Wed Jun 1 19:48:59 2016
But the changelog.Debian.gz of libc6 doesn't seem to contain much
which could cause such an issue...
Which brings us back to this question:
> Is the problem reproducable?
Nope. Neither with calling needrestart from the commandline nor when
being called at the end of an aptitude session. :-(
Feel free to downgrade the severity. Unless someone else can confirm
this issue, I can probably consider it bad luck.
Regards, Axel
--
,''`. | Axel Beckert <
a...@debian.org>,
http://people.debian.org/~abe/
: :' : | Debian Developer,
ftp.ch.debian.org Admin
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
`- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE