<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2619.0">
<TITLE>RE: Bugreport: Lines swallowed in std_out redirection</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>I have the same problem with openssh-2.3.0p1 on sun solaris 2.6 sparc.</FONT>
</P>
<P><FONT SIZE=2>ssh -l root gaia echo \$PATH</FONT>
</P>
<P><FONT SIZE=2>would sometime produce nothing to the standard output.</FONT>
</P>
<P><FONT SIZE=2>Emmanuel</FONT>
</P>
<P><FONT SIZE=2>> -----Message d'origine-----</FONT>
<BR><FONT SIZE=2>> De : Stefan Heinrichs </FONT>
<BR><FONT SIZE=2>> [<A HREF="mailto:stheinri@hamilton.physik.uni-konstanz.de">mailto:stheinri@hamilton.physik.uni-konstanz.de</A>]</FONT>
<BR><FONT SIZE=2>> Envoyé : jeudi 7 décembre 2000 16:55</FONT>
<BR><FONT SIZE=2>> À : openssh-unix-dev@mindrot.org</FONT>
<BR><FONT SIZE=2>> Objet : Bugreport: Lines swallowed in std_out redirection</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Hi,</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> we are using OpenSSH_2.3.0p1. When using non-interactive mode,</FONT>
<BR><FONT SIZE=2>> sometimes lines are swallowed from standard output:</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> root@hydra:~ # ssh anderson "ls -l /usr/sbin/sshd"</FONT>
<BR><FONT SIZE=2>> -rwxr-xr-x 1 root root 612344 Nov 25 20:26 /usr/sbin/sshd</FONT>
<BR><FONT SIZE=2>> root@hydra:~ # ssh anderson "ls -l /usr/sbin/sshd"</FONT>
<BR><FONT SIZE=2>> root@hydra:~ # ssh anderson "ls -l /usr/sbin/sshd"</FONT>
<BR><FONT SIZE=2>> -rwxr-xr-x 1 root root 612344 Nov 25 20:26 </FONT>
<BR><FONT SIZE=2>> /usr/sbin/sshd </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> At the same time the following appears in /var/log/messages:</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> sshd[6741]: error: channel 0: internal error: we do not read, but</FONT>
<BR><FONT SIZE=2>> chan_read_failed for istate 8</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> We tested several kernel versions: </FONT>
<BR><FONT SIZE=2>> 2.2.16, 2.2.17, 2.2.17-SMP with some local patches, </FONT>
<BR><FONT SIZE=2>> and 2.2.17, 2.2.18pre24, 2.2.18pre24-SMP unpatched.</FONT>
<BR><FONT SIZE=2>> Compilers used to generate the kernels were: </FONT>
<BR><FONT SIZE=2>> gcc-2.7.2.3, egcs-1.1.2 and gcc-2.95.2.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> The problem could not be reproduced on SMP machines and only occurs in</FONT>
<BR><FONT SIZE=2>> non-interactive mode.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> The problem did not occur with OpenSSH-2.1.1p4 </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> The problem also disappears if ';true' is appended to the command line</FONT>
<BR><FONT SIZE=2>> executed remotely.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Best regards,</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Stefan</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
</P>
</BODY>
</HTML>