Bug#502444: sshd fails at boot-time following reload by /etc/network/if-up.d/openssh-server presumably due to race condition

2009-01-14 Thread Kevin Price
Thanks Colin, that was really 'sharpish' ! Version 5.1p1-5 works fine, as expected. After compiling it for amd64 and purging/reinstalling, I rebooted several times just to make sure. Let's hope this change will make it into lenny. I wouldn't be too concerned about any performance loss caused by

Bug#502444: sshd fails at boot-time following reload by /etc/network/if-up.d/openssh-server presumably due to race condition

2009-01-13 Thread Colin Watson
On Tue, Jan 13, 2009 at 08:17:26PM +0100, Kevin Price wrote: I ran into this bug on a HP ProLiant DL360 G5, after upgrading the entire userspace from etch to lenny. s/reload/restart/g does the trick for me too. It makes the openssh-server package useless and it happens reliably, which

Bug#502444: sshd fails at boot-time following reload by /etc/network/if-up.d/openssh-server presumably due to race condition

2009-01-13 Thread Kevin Price
Thanks for the patch. It doesn't solve the problem. I reverted my changes back to the original state, and then rebooted to make sure the problem occurs. Then I applied your patch and rebooted, but the error occurred again, but only sometimes. Before your patch, when it failed, it logged this:

Bug#502444: sshd fails at boot-time following reload by /etc/network/if-up.d/openssh-server presumably due to race condition

2009-01-13 Thread Kevin Price
I caught it dying under new circumstances this time: /etc/modules is in its original state (no bnx2) /etc/network/if-up.d/openssh-server contains only your patch LogLevel is DEBUG1 Oh and by the way, the ipv6 kernel module is disabled, FWIW. This is where it first starts in the boot process:

Bug#502444: sshd fails at boot-time following reload by /etc/network/if-up.d/openssh-server presumably due to race condition

2009-01-13 Thread Kevin Price
Sorry even debug level 3 does not seem to help us any further: Jan 13 22:52:30 leeloo3 sshd[2057]: debug2: fd 3 setting O_NONBLOCK Jan 13 22:52:30 leeloo3 sshd[2057]: debug1: Bind to port 22 on 0.0.0.0. Jan 13 22:52:30 leeloo3 sshd[2057]: Server listening on 0.0.0.0 port 22. Jan 13 22:52:30

Bug#502444: sshd fails at boot-time following reload by /etc/network/if-up.d/openssh-server presumably due to race condition

2009-01-13 Thread Colin Watson
On Tue, Jan 13, 2009 at 11:00:52PM +0100, Kevin Price wrote: Sorry even debug level 3 does not seem to help us any further: Jan 13 22:52:30 leeloo3 sshd[2057]: debug2: fd 3 setting O_NONBLOCK Jan 13 22:52:30 leeloo3 sshd[2057]: debug1: Bind to port 22 on 0.0.0.0. Jan 13 22:52:30 leeloo3