[PATCH]: Patch to fix hang on exit bug under Linux and add optional exit delay

Nicolas Williams Nicolas.Williams at ubsw.com
Fri Nov 16 06:01:40 EST 2001


On Thu, Nov 15, 2001 at 07:46:18PM +0100, Markus Friedl wrote:
> On Thu, Nov 15, 2001 at 10:44:51AM -0500, Ed Phillips wrote:
> > I have more of a problem with the case where "I have no processes running
> > in the background and no other child processes of sshd running at all and
> > sshd/ssh fail to exit".  
> 
> On Thu, Nov 15, 2001 at 05:36:29PM +0100, Gert Doering wrote:
> > Which is exactly what I'm talking about.
> 
> On Thu, Nov 15, 2001 at 11:58:26AM -0500, Nicolas Williams wrote:
> > This is some other bug. I've seen it too. It only happens when you used
> > the forwarded agent, forwarded X or, I suspect, any other forwarded port.
> > It happens even if the forwarded ports/agent are not in use.
> 
> no debug output, no test script, seems nobody cares.

I'll get debug output. Possibly tomorrow. I know the drill, ssh -v -v -v
and sshd -d -d -d.

As for testing, it's easy:

hostA: ssh -A hostB
hostB: exit
hostA: <ssh exits>

hostA: ssh -A hostB
hostB: ssh hostC
hostC: exit
hostB: <ssh exits>
hostB: exit
hostA: <ssh hangs>

This with OpenSSH 2.9p2, but one of my colleagues reports that this still
happens with 3.0...

Try the same sort of thing with X11 instead of agent forwarding.

I always get that behaviour, except with X11 forwarding, where the
problem seems to be intermittent.

BTW, this post seems to have been an attempt to patch that particular problem:

http://marc.theaimsgroup.com/?l=openssh-unix-dev&m=99622973723549&w=2

that patch never applied cleanly to OpenSSH 2.9p2.

> -m


Cheers,

Nico
--
-DISCLAIMER: an automatically appended disclaimer may follow. By posting-
-to a public e-mail mailing list I hereby grant permission to distribute-
-and copy this message.-

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.




More information about the openssh-unix-dev mailing list