threads/78660: Java hangs unkillably in STOP state after fork()
thomas.lange at techunity.de
Thu Mar 10 06:30:04 GMT 2005
>Synopsis: Java hangs unkillably in STOP state after fork()
>Arrival-Date: Thu Mar 10 06:30:03 GMT 2005
>Originator: Thomas Lange
>Release: 5.3 Release
FreeBSD hellraiser.smega.com 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #2: Fri Feb 18 17:19:29 CET 2005 root at hellraiser.smega.com:/usr/obj/usr/src/sys/HELLRAISER-05-02-02 i386
After many calls of Runtime.getRuntime().exec(), which starts an external process, Java hangs reproducably in a STOP state and cannot be killed. (Not even with kill -9)
Run any Java application, which makes extensive use of Runtime.getRuntime().exec().
With my application, I can reproduce the problem within an hour or so - on two different machines.
Apply David Xu's patch to kern_thread.c as described in
That change is also commited to 5.3-stable.
However, maybe someone with a thorough understanding of the internal kernel structure should have a look at it.
More information about the freebsd-threads