The following program crashes during VM shutdown in about 5/1000 runs
with current main/baseline (03/21/02) on Linux:
-------------------------------------------------------
import java.io.*;
public class ShutdownTest extends Thread {
public void run() {
while (true) {
ShutdownTest st = new ShutdownTest();
if (st == null) {
System.out.println("st == null");
}
}
}
public static void main(String args[]) {
System.out.println("- ShutdownTest -");
for(int i = 0; i < 4; i++) {
ShutdownTest st = new ShutdownTest();
st.setDaemon(true);
st.start();
}
}
}
------------------------------------------------------
Error message:
Unexpected Signal : 11 occurred at PC=0x402A945D during VM shutdown
Function=type__C4Item+0x9
Library=/home/huanghui/jdk1.4.1/jre/lib/i386/client/libjvm.so