From owner-freebsd-current@FreeBSD.ORG Mon May 12 22:14:45 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED16037B401; Mon, 12 May 2003 22:14:44 -0700 (PDT) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2611843F75; Mon, 12 May 2003 22:14:44 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0694.cvx21-bradley.dialup.earthlink.net ([209.179.194.184] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19FS7c-00031p-00; Mon, 12 May 2003 22:14:41 -0700 Message-ID: <3EC07EF9.9D8CA96C@mindspring.com> Date: Mon, 12 May 2003 22:13:29 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Don Lewis References: <200305121726.h4CHQOM7048113@gw.catspoiler.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a456418e59dd1ebfc2682e4b910bbdce43a8438e0f32a48e08350badd9bab72f9c350badd9bab72f9c cc: freebsd-current@FreeBSD.org cc: DougB@FreeBSD.org Subject: Re: mtv leaves a zombie after exit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 May 2003 05:14:45 -0000 Don Lewis wrote: > On 12 May, Terry Lambert wrote: > > Doug Barton wrote: > >> For some time now on -current whenever I run mtv, it leaves a zombie after > >> it exits: > >> > >> USER PID PPID %CPU %MEM VSZ RSS STAT STARTED TIME COMMAND > >> doug 0 1 0.0 0.0 0 0 ZW - 0:00.00 (mtvp) > >> > >> It runs fine, displays the video fine, but it always leaves a zombie. > > > > Zombies exist when the parent process fails to reap child > > exit status. This may be a bug in your shell. If it's not > > a bug in your shell, then it's a bug in kernel (probably in > > fork_exit). > > In this case PPID == 1, so even if the parent process failed to reap the > child, init should have reaped the mtvp process when the parent process > exited. The "ZW" state looks suspicious. I'd expect to see just "Z". > Maybe that's why the process isn't getting reaped. A "ps -gaxl" will print the wait channel, which may be more informative. -- Terry