Bugreport: Lines swallowed in std_out redirection

Stefan Heinrichs stheinri at hamilton.physik.uni-konstanz.de
Fri Dec 8 02:54:44 EST 2000


Hi,

we are using OpenSSH_2.3.0p1. When using non-interactive mode,
sometimes lines are swallowed from standard output:

root at hydra:~ # ssh anderson "ls -l /usr/sbin/sshd"
-rwxr-xr-x   1 root     root       612344 Nov 25 20:26 /usr/sbin/sshd
root at hydra:~ # ssh anderson "ls -l /usr/sbin/sshd"
root at hydra:~ # ssh anderson "ls -l /usr/sbin/sshd"
-rwxr-xr-x   1 root     root       612344 Nov 25 20:26 /usr/sbin/sshd   

At the same time the following appears in /var/log/messages:

sshd[6741]: error: channel 0: internal error: we do not read, but
chan_read_failed for istate 8

We tested several kernel versions: 
2.2.16, 2.2.17, 2.2.17-SMP with some local patches, 
and 2.2.17, 2.2.18pre24, 2.2.18pre24-SMP unpatched.
Compilers used to generate the kernels were: 
gcc-2.7.2.3, egcs-1.1.2 and gcc-2.95.2.

The problem could not be reproduced on SMP machines and only occurs in
non-interactive mode.

The problem did not occur with OpenSSH-2.1.1p4 

The problem also disappears if ';true' is appended to the command line
executed remotely.

Best regards,

Stefan






More information about the openssh-unix-dev mailing list