Name: egR10015 Date: 04/20/2000
Linux Classic VM crashes during execution the following test. VM catches a signal
SIGSEGV segmentation violation.
------------------------test.java-------------------------------------
class hr extends Thread {
public void run() {
try {
sleep(20);
} catch (InterruptedException e) {}
}
}
class tt extends Thread {
private boolean doit() {
new hr().start();
return true;
}
public void run() {
while (doit()) {}
}
}
class test {
public static void main(String args[]) {
for(int i=0; i<5; i++) {
new tt().start();
}
}
}
------------------------ output --------------------------------------
eug@linux-6N5 java -version
java version "1.3.0beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0beta-b01)
Classic VM (build 1.3.0beta-b01, green threads, nojit)
eug@linux-6N6 java test
SIGSEGV 11* segmentation violation
======================================================================
======================================================================