Bug 121 - ssh hangs on exit (not damon, nor background)
Summary: ssh hangs on exit (not damon, nor background)
Status: CLOSED DUPLICATE of bug 79
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: -current
Hardware: SPARC Solaris
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-20 08:24 AEDT by Joshua Mehlman
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Mehlman 2002-02-20 08:24:42 AEDT
ssh running on Solaris 2.8 ocasionaly hangs on exit. I run the command
ssh -v server hostname 
we have also seen this with different commands and even just getting a shell.
(note I have tryed with -t, -n and of course without the -v and a -v -v -v give
no more info)
and about 1 time out of 1000 it hangs.
The verbose output is as follows:
debug1: Sending command: hostname
debug1: channel 0: open confirm rwindow 0 rmax 16384
debug1: channel 0: rcvd eof
debug1: channel 0: output open -> drain
server
debug1: channel 0: obuf empty
debug1: channel 0: output drain -> closed
debug1: channel 0: close_write


Then comes the hang. Note that this is differnt than the bg file wait issue.

an netstat on the client:
client# netstat -a | grep server
client.34819        server.ssh         17520      0 33580      0 ESTABLISHED
client.34820        server.ssh         17520      0 33580      0 TIME_WAIT


and one on the server:
server# netstat -a | grep client
server.full.domain.name.com.ssh client.34819        33580      0 17520      0
ESTABLISHED

and some ps :
client# ps -ef | grep hostname
    root 19944  2917  0 12:32:19 ?        0:01 /usr/local/bin/ssh -n -v server
hostname

server# ps -ef | grep ssh
    root  3439 10524  0 12:32:21 ?        0:01 /services/ssh/sbin/sshd
Comment 1 Joshua Mehlman 2002-02-21 08:05:33 AEDT

*** This bug has been marked as a duplicate of 79 ***
Comment 2 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED