Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#482346: zsh doesn't always wait for its children (-> zombie)



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] <defunct>
> 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 <defunct>
> 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 ()



Messages sorted by: Reverse Date, Date, Thread, Author