Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Apr 2002 18:17:10 +0400
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        current@freebsfd.org, green@freebsd.org
Subject:   Re: SSH: zombie appearse probably related to PAM
Message-ID:  <20020421141709.GA16522@nagual.pp.ru>
In-Reply-To: <20020420160753.GB6816@nagual.pp.ru>
References:  <20020420101720.GA3526@nagual.pp.ru> <xzpd6wuqrwk.fsf@flood.ping.uio.no> <20020420160753.GB6816@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Apr 20, 2002 at 20:07:53 +0400, Andrey A. Chernov wrote:
> On Sat, Apr 20, 2002 at 18:03:07 +0200, Dag-Erling Smorgrav wrote:
> > "Andrey A. Chernov" <ache@nagual.pp.ru> writes:
> > > It happens only with 'localhost' and not in remote case. To
> > > reproduce it, call:
> > > 	ssh localhost
> > > login normally and then exit. At exit you'll see following message on 
> > > console (or /var/log/messages):
> > > 
> > > sshd[<its_pid>]: error: session_by_pid: unknown pid <some_pid>
> > 
> > I can't reproduce this.
> 
> Well, I'll try to dig out more details after some sleep...

Finally I found who is responsoble for zombie. Yes it is PAM as I think
initially. This process started in the pam_init_ctx() function in the
auth2-pam.c, then dies to zombie.  I found it simply printing pid after
each fork and looking into 'ps' and error diagnostic above. It means PAM
forget to wait for its own child. Please fix.

-- 
Andrey A. Chernov
http://ache.pp.ru/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020421141709.GA16522>