[Bug 2492] New: Incomplete output of child process

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Sun Nov 8 02:39:32 AEDT 2015


https://bugzilla.mindrot.org/show_bug.cgi?id=2492

            Bug ID: 2492
           Summary: Incomplete output of child process
           Product: Portable OpenSSH
           Version: 7.1p1
          Hardware: amd64
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: sshd
          Assignee: unassigned-bugs at mindrot.org
          Reporter: openssh at volth.com

Created attachment 2747
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2747&action=edit
using openssh-client

I noticed that on Ubuntu-15.10 read() inside channel_handle_rfd() may
return EAGAIN after the child process is exited.
OpenSSH server considers this as an error and breaks the connection
without reading the whole output.
It looks like:
http://i.imgur.com/mLMk66c.png <-- using openssh-client
http://i.imgur.com/LNdNSRq.png <-- using Apache Mina ssh client
It happens only if pty is allocated.
I managed to fix the problem with the following patch: volth at 4d284a3
Would be nice to see this bug fixed one way or another as it is a very
annoing bug, it breaks the workflow of automated deployment tools.

PS. If you need a playground to reproduce the bug, you may try
Ubuntu-15.10 instances on Google Cloud or DigitalOcean. The bug happens
more often on the cloud machines. It happens on dedicated hardware as
well but not so often.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list