From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19093 invoked from network); 22 May 2008 23:33:48 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 22 May 2008 23:33:48 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 99084 invoked from network); 22 May 2008 23:33:39 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 May 2008 23:33:39 -0000 Received: (qmail 29706 invoked by alias); 22 May 2008 23:33:34 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25081 Received: (qmail 29691 invoked from network); 22 May 2008 23:33:34 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 22 May 2008 23:33:34 -0000 Received: from cork.scru.org (cork.scru.org [209.20.67.2]) by bifrost.dotsrc.org (Postfix) with ESMTP id ACE1080589A4 for ; Fri, 23 May 2008 01:33:30 +0200 (CEST) Received: by cork.scru.org (Postfix, from userid 1000) id D81F21040D7; Thu, 22 May 2008 23:33:27 +0000 (UTC) Date: Thu, 22 May 2008 23:33:27 +0000 From: Clint Adams To: zsh-workers@sunsite.dk Cc: Vincent Lefevre , 482346@bugs.debian.org Subject: Re: Bug#482346: zsh doesn't always wait for its children (-> zombie) Message-ID: <20080522233327.GA24953@scru.org> Mail-Followup-To: zsh-workers@sunsite.dk, Vincent Lefevre , 482346@bugs.debian.org References: <20080521235008.GA5600@ay.vinc17.org> <20080521235930.GW7056@prunille.vinc17.org> <20080521235008.GA5600@ay.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080521235930.GW7056@prunille.vinc17.org> <20080521235008.GA5600@ay.vinc17.org> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Virus-Scanned: ClamAV 0.91.2/7218/Thu May 22 21:58:59 2008 on bifrost X-Virus-Status: Clean Any ideas what might be going on? Race condition? On Thu, May 22, 2008 at 01:50:08AM +0200, Vincent Lefevre wrote: > I started vlc from the zsh command line. Some time later, I decided > to kill vlc with Ctrl-C. As I didn't get the prompt, I tried Ctrl-C > a few more times, with no change. I can see that vlc is now a zombie: > > ay:~> ps -ft pts/5 > UID PID PPID C STIME TTY TIME CMD > lefevre 4277 20147 1 01:16 pts/5 00:00:26 [vlc] > lefevre 20147 20126 0 May06 pts/5 00:00:00 zsh On Thu, May 22, 2008 at 01:59:30AM +0200, Vincent Lefevre wrote: > Additional information that may be useful: > > ay:~> ps -lt pts/5 > F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD > 0 Z 1000 4277 20147 1 80 0 - 0 exit pts/5 00:00:26 vlc > 0 S 1000 20147 20126 0 80 0 - 2269 rt_sig pts/5 00:00:00 zsh > > I also ran gdb on the zsh running process and got: > > 0x0fd312d4 in sigsuspend () from /lib/libc.so.6 > (gdb) bt > #0 0x0fd312d4 in sigsuspend () from /lib/libc.so.6 > #1 0x10071ae4 in signal_suspend () > #2 0x10042268 in ?? () > #3 0x100423d4 in waitjobs () > #4 0x100274e0 in ?? () > #5 0x10027d20 in execlist () > #6 0x100283fc in execode () > #7 0x1003bcec in loop () > #8 0x1003cc30 in zsh_main () > #9 0x1000dc70 in main ()