sshd gets stuck: select() in packet_read_seqnr waits indefinitely

Matt Day opensshbugs at
Mon Sep 17 07:56:53 EST 2007


The fix for this bug which I reported and helped fix back in March:
wash't included in the OpenSSH 4.7 release.

Was there a problem with the fix? It has been running on my system
for months, and has successfully avoided the problem 15 times.

I can't seem to find the OpenSSH bug database. Is this bug being tracked?
As far as I can tell I followed the bug reporting procedure properly.

Matt Day <opensshbugs at>

On Thu, Mar 15, 2007 at 02:40:12AM -0600, Matt Day wrote:
> Awesome, thanks!
> I applied the patch and ran into one problem during testing: outbound
> ssh connections immediately received the new "timed out" error.
> The problem was in packet_set_timeout: packet_wait_tvp was only
> getting set to NULL when *both* timeout and count were 0. The default
> is interval=0 count=3, so it used the timeval with tv_sec = 0.
> I fixed that (use || instead of && in packet_set_timeout) and also
> made the two new "timed out" error messages unique. That might be
> handy someday if one is wondering if it timed out waiting to read
> or to write (which I found myself wondering while debugging this).
> I have installed these changes on my server and will let you know
> when I get confirmation in my logfile that the fix is working.
> Thank you very much!
> Matt
> ===================================================================
> diff -u -p packet.c.orig packet.c
> [..]

More information about the openssh-unix-dev mailing list