[Pkg-utopia-maintainers] Bug#639647: dbus-x11: dbus-launch causes ssh -Y user at host to hang after logout
Russell Stuart
russell-debian at stuart.id.au
Mon Aug 29 00:12:54 UTC 2011
Package: dbus-x11
Version: 1.2.24-4+squeeze1
Severity: normal
After ssh'ing to another Debian box running squeeze with X11 connections
forwarded, running an X11 program (gvim in my case), then exiting from
the remote session, the ssh session hands until ^C is hit. It you don't
start an X11 program the sessin ends normally. Thus the sequence is:
local$ ssh -Y user at machine
remote$ gvim
remote$ # exit out of gvim immediately, so it isn't running
remote$ exit
(ssh hangs as this point, rather then exiting and returning you to the
local$ prompt)
^C
local$
Such ssh hangs are not unusual. They are caused by a program running
the background on the remote system holding a forwarded file descriptor
forwarded socket open. However, In the above case there should be no
background process running.
To track down what process is holding the session open you log into the
remote system and do a few ps's:
x at spare:~$ ps -ef | grep ssh
root 3317 1 0 Aug01 ? 00:00:02 /usr/sbin/sshd
root 6149 3317 0 09:49 ? 00:00:00 sshd: x [priv]
x 6158 6149 0 09:49 ? 00:00:00 sshd: x at pts/0
root 6249 3317 0 09:51 ? 00:00:00 sshd: x [priv]
x 6257 6249 0 09:51 ? 00:00:00 sshd: x at notty
x 6392 6159 0 09:59 pts/0 00:00:00 grep ssh
x at spare:~$ ssu lsof -p 6257
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
<snip>
sshd 6257 x 3u IPv4 5569095 0t0 TCP spare.brisbane.lube:ssh->russell-laptop.local:46950 (ESTABLISHED)
sshd 6257 x 11u unix 0xffff8801240d9e00 0t0 5569245 /tmp/ssh-iLDNYq6257/agent.6257
sshd 6257 x 16u IPv4 5569302 0t0 TCP localhost:6011->localhost:33811 (ESTABLISHED)
sshd 6257 x 17u IPv4 5569318 0t0 TCP localhost:6011->localhost:33812 (ESTABLISHED)
x at spare:~$ ssu netstat -anp | grep -w 33811
tcp 0 0 127.0.0.1:6011 127.0.0.1:33811 ESTABLISHED 6257/sshd: x at notty
tcp 0 0 127.0.0.1:33811 127.0.0.1:6011 ESTABLISHED 6293/dbus-launch
x at spare:~$ ssu ps -wwwwwwwlfp 6293
F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD
1 S x 6293 1 0 80 0 - 6559 - 09:51 ? 00:00:00 dbus-launch --autolaunch 69ddc558bb4fc5ec8641f0ce000001af --binary-syntax --close-stderr
x at spare:~$
So, it would appear that gvim ran dbus-launch, but it didn't exit when
gvim did and is now holding the ssh connection open. "kill 6293" did
cause the hung ssh to exit, which confirms this.
This is a duplicate of #623570. But that is reported against openssh,
and I doubt it is an openssh problem.
-- System Information:
Debian Release: 6.0.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages dbus-x11 depends on:
ii dbus 1.2.24-4+squeeze1 simple interprocess messaging syst
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libx11-6 2:1.3.3-4 X11 client-side library
dbus-x11 recommends no packages.
dbus-x11 suggests no packages.
-- no debconf information
More information about the Pkg-utopia-maintainers
mailing list