[PATCH][RFA] Reap children on stack trace generation.

David Daney ddaney@avtrex.com
Tue Jul 6 07:27:00 GMT 2004


There are two related problems I am having with stack trace generation.
 Each invocation of Throwable.printStackTrace() leaves at least one
zombie process.  This was verified on both mipsel-linux and
i686-pc-linux-gnu.

The first problem is that NameFinder.close() destroys() the child
process, but never does waitFor() to reap the child.  There are several
other places where the same thing would happen on errors in the child.

natPosixProcess.cc has a related problem.  First it forks, but if the
exec fails, the child is not reaped.

I don't think it is possible to write a dejagnu testcase to detect the
zombies.

make check in libjava only on i686-pc-linux-gnu gives no new failures.

O.K. to install on mainline?

David Daney
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nf.d
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040706/0e51b97b/attachment.ksh>


More information about the Java-patches mailing list