From owner-freebsd-current Sun Apr 21 7:20: 9 2002 Delivered-To: freebsd-current@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 24FAB37B417 for ; Sun, 21 Apr 2002 07:20:05 -0700 (PDT) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.2/8.12.2) with ESMTP id g3LEK2iJ016638 for ; Sun, 21 Apr 2002 18:20:03 +0400 (MSD) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.3/8.12.2/Submit) id g3LEK19m016637 for current@freebsd.org; Sun, 21 Apr 2002 18:20:01 +0400 (MSD) Date: Sun, 21 Apr 2002 18:17:10 +0400 From: "Andrey A. Chernov" To: Dag-Erling Smorgrav Cc: current@freebsfd.org, green@freebsd.org Subject: Re: SSH: zombie appearse probably related to PAM Message-ID: <20020421141709.GA16522@nagual.pp.ru> References: <20020420101720.GA3526@nagual.pp.ru> <20020420160753.GB6816@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020420160753.GB6816@nagual.pp.ru> User-Agent: Mutt/1.3.28i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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" 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[]: error: session_by_pid: unknown 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