Friday, December 26, 2008

Bug in Solaris JVM, forkAndExec


We've discovered a bug in the Solaris JVM that we're using (1.5.0_08-b03). What happens is that we have a long running JVM that once a minute forks an executable viajava.lang.Runtime.exec and reads its stdout. After a long time, one of the forks doesn't actually make it to the exec, and the thread that asked for the exec doesn't continue. That's why I think it's a JVM bug: the exec call is made and only completes half of its job.
I describe the problem on a Sun forum here.
I definitely have to upgrade the JVM to see if that helps...