2003-08-19 06:28:32

by r6144

[permalink] [raw]
Subject: [2.6.0-test3] Sun JDK 1.4.2 doesn't exit properly using NPTL

Sun JDK works fine with stock RH9 kernel with or without NPTL, and
under 2.6.0-test3 without NPTL.

When running it under 2.6.0-test3 with NPTL, the parent process (for
example bash) locks up after the java process exits. Strace shows
that the parent had been waiting in wait4(), but isn't woken up when
the children (the java process) exits via exit_group(). Sending the
parent a SIGINT makes wait4() return -ECHILD and the parent continues
as normal. The java process runs perfectly normally during its own
lifetime.


2003-08-19 15:06:22

by Christophe Saout

[permalink] [raw]
Subject: Re: [2.6.0-test3] Sun JDK 1.4.2 doesn't exit properly using NPTL

Am Di, 2003-08-19 um 08.28 schrieb r6144:

> When running it under 2.6.0-test3 with NPTL, the parent process (for
> example bash) locks up after the java process exits. Strace shows
> that the parent had been waiting in wait4(), but isn't woken up when
> the children (the java process) exits via exit_group(). Sending the
> parent a SIGINT makes wait4() return -ECHILD and the parent continues
> as normal. The java process runs perfectly normally during its own
> lifetime.

For now you can use the patch at
ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.0-test3/2.6.0-test3-mm1/broken-out/zap_other_threads-fix.patch

--
Christophe Saout <[email protected]>
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html