Re: Problem with exiting threads under NPTL

Martin Schlemmer
2003-12-14T15:00:16Z

[-- Attachment #1: Type: text/plain, Size: 693 bytes --]

On Sun, 2003-12-14 at 07:25, Petr Vandrovec wrote:
> Hi,
> several times one of our threads ended up as ZOMBIE and
> nobody wants to pick him up - even init ignores it. Inspection
> of kernel structures revealed that task's exit code is 0,
> exit_signal is -1, ptrace is 0 and state is 8 (ZOMBIE).
>

> So if some process ignores SIGCHLD, and spawns child process
> which creates additional thread, and main thread in child exits
> before child it created, you'll end up with immortal zombie.
>

I can confirm this behavior here, although I must admit I do not
know if the sample code is legal. Latest glibc from cvs + bk kernel.

Cheers,

--
Martin Schlemmer

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]