[Bug 1306] Spurious : "chan_read_failed for istate 3" errors from sshd

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Tue May 22 03:55:24 EST 2007


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





--- Comment #8 from Jochen Kirn <jochen.kirn at gmail.com>  2007-05-22 03:55:20 ---
(In reply to comment #7)
> Created an attachment (id=1281)
 --> (http://bugzilla.mindrot.org/attachment.cgi?id=1281) [details]
> Revised diff 
> 
> This diff does not force a read when the channel is in istate
> CHAN_INPUT_CLOSED and so should silence these messages.
> 
> I'd appreciate test reports, as well as confirmation that it doesn't
> break the hang-on-exit fix :)
> 


i've applied the patch #1281 on OpenSSH 4.6p1 
and succesfully build (using OpenSSL 0.98d) on following platforms

Solaris 8 / sparc
Solaris 9 / sparc
Solaris 10 / sparc
HP-UX 11.00 / parisc
HP-UX 11.23 / Itanium
AIX 5.2 / powerpc
AIX 5.3 / powerpc
SLES 9 / x86
SLES 9 / x86_64
SLES 10 / x86_84



result:
the spurious message " error: channel 0: chan_read_failed for istate 3"
is now gone :-)
previously I've encountered this message especially for scp copy
transactions in log

Scenario:
adminhost -> (via ssh) -> hostA 
On hostA I ran following command to verify on all platforms mentioned
above
$ ssh -f <hostB> "sleep 120" ; exit

where hostA is AIX, HP-UX, Solaris and Linux running the OpenSSH 4.6p1
build with patch #1281 for bug #1306

The test succeeds on AIX,Solaris and Linux, ie. the ssh connection to
hostB forks into background
and I am able to disconnect from hostA properly while the ssh session
between hostA and hostB still
lives on as expected (until sleep cmd finishes after 120 sec).

I consider this bug as fixed while #52 on HP-UX is not finally resolved
as it seems.

On both HP-UX machines the ssh session to hostA hangs until the sleep
command finished (120 sec).
Only 'ssh -f <hostB> "sleep 120" </dev/null >/dev/null 2>&1' has helped
to disconnect
properly from hostA (running HP-UX).
The login shell on HP-UX is ksh, please let me know if you need
additional information.

thx
Jochen


-- 
Configure bugmail: http://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list