[Bug 3071] New: unhandled EINTR while connecting causes ssh to exit prematurely

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Tue Sep 17 03:40:41 AEST 2019


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

            Bug ID: 3071
           Summary: unhandled EINTR while connecting causes ssh to exit
                    prematurely
           Product: Portable OpenSSH
           Version: 8.0p1
          Hardware: amd64
                OS: Linux
            Status: NEW
          Severity: trivial
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: mavery at akamai.com

Created attachment 3329
  --> https://bugzilla.mindrot.org/attachment.cgi?id=3329&action=edit
misc.c path

We've observed some machines always returning one EINTR during a
connection where a ConectTimeout is specified on the command line. ssh
exits prematurely as the errno == EINTR is processed as hard error
instead of being filtered out and retried in the select loop.

It looks to be correlated to migrating to Ubuntu 18.04.4 but the change
is trivial enough I didn't dig much further into why it's happening.

patch (attached) is trivial.

web diff of the patch:

https://github.com/matthewaveryusa/openssh-portable/commit/127093f0a177bc4f5316453f777582f113fe18d9#diff-d93946eccdb07e73380c55caff5625f9

-Matt

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


More information about the openssh-bugs mailing list