[Bug 1010] SSH sometimes hangs on exit when multiple forwarded X11 clients are closed

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Apr 6 06:38:48 EST 2005


http://bugzilla.mindrot.org/show_bug.cgi?id=1010

           Summary: SSH sometimes hangs on exit when multiple forwarded X11
                    clients are closed
           Product: Portable OpenSSH
           Version: 4.0p1
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sshd
        AssignedTo: openssh-bugs at mindrot.org
        ReportedBy: t8m at centrum.cz


SSH sometimes hangs on exit when multiple forwarded X11 clients are closed.

This is not easy to reproduce however here are the steps which make it to
reproduce almost 100% for me:

1. ssh -Y host
2. xsm ; exit    in the ssh session
3. for i in `seq 1 50` ; do (nice -20 xterm &) ; done     in the xterm which was
started from xsm
4. after all the xterms are up and running shutdown immediately the xsm

Expected result:
ssh session ended normally

What really happens:
ssh session hangs

After looking at the debug log from the sshd it seems that some of the X11
channels are stuck waiting for output drain however it won't happen as the other
end - the xterm - already exited.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list