3 Bugs to Report: OpenSSH V1.2pre13

Robert Hardy rhardy at webcon.net
Tue Nov 23 02:58:19 EST 1999

On Mon, 22 Nov 1999, Damien Miller wrote:
> On Sun, 21 Nov 1999, Robert Hardy wrote:
> > 1. sshd dies periodically. The crash occurred just after a connect
> Can you try the following patch and tell me if it makes a difference?
> Index: helper.c
> ===================================================================
> RCS file: /var/cvs/openssh/helper.c,v
> retrieving revision 1.6
> diff -u -r1.6 helper.c
> --- helper.c	1999/11/22 02:55:36	1.6
> +++ helper.c	1999/11/22 03:59:24
> @@ -130,9 +129,12 @@
> [snip]

I have installed pre14 which contains the patch. I will let you know if it
dies again. The problem was only occurring every few days, so it may take
some time before we know if the patch solved the problem...

> > 2. sshd will sometimes hang when disconnecting from a server. 
> >    -ssh host
> >    -we do some work
> >    -we hit CTRL-D to disconnect
> >    -we logout on remote system
> >    -ssh does not disconnect from remote system and will stay hung indefinitely
> >     (an ps -axuww shows an sshd process still running on the pty.)
> Any ideas on how to trigger the hang?

Unfortunately no. I haven't seen any pattern to the hangs nor any causal factors...
I realize that makes debugging difficult....

> > I am willing to test various things to try and help isolate the problem(s). 
> > I'm open to suggestions...
> If you can be bothered, a gdb trace of problem #2 from the client and
> server would be a godsend.

Ouch... That would mean running gdb on every connection pretty well 24/7
for a week... Well OK if you tell me how to do it...

I've used strace some but my familiarity with gdb is very limited. (I'm a
sysadmin/perl hacker...)

I don't think I could catch this with strace on the server as the problem is
after a fork (I think so anyways)...

So how do I use gdb to debug the forked server process?


----------------"Linux the choice of a GNU Generation!"-----------------
Robert Hardy                                          C.E.O. Webcon Inc.
rhardy at webcon.net      PGP Key available by finger        (613) 276-6206

More information about the openssh-unix-dev mailing list