[Bug 953] openssh session hanging - prngd[671]: write() in socket_write() failed: Broken pipe

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu Nov 18 01:23:31 EST 2004


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





------- Additional Comments From stanislaw.walczak at sympatico.ca  2004-11-18 01:23 -------
The following freezes on ashipt after running for a random period of time. It 
usually happens within 15 minutes. I tracked it down to an error with the read
() from the remote server. 
#!/bin/ksh 
while (( 1 ))
do
ssh -vvv -l ipts ash mv /tmp/ssh_test /tmp/ssh_test.tmp
ssh -vvv -l ipts ashipts0 chmod 600 /tmp/ssh_test.tmp
ssh -vvv -l ipts ashipts0 mv /tmp/ssh_test.tmp /tmp/ssh_test
sleep 2
done



debug2: callback start
debug2: ssh_session2_setup: id 0
debug1: Sending command: mv /tmp/ssh_test /tmp/ssh_test.tmp
debug2: channel 0: request exec
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 16384
debug2: channel 0: rcvd adjust 32768
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
<freezes here, the remote command never executes either, although the debug 
statements say it did.  at this point the ssh connection hangs.  the ssh 
program is stuck on the local machine and connected sshd process is hung on the 
remote machine.  netstat shows that the connection is ESTABLISHED>




------- 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