-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
1.2.0
-
sparc
-
solaris_2.5.1
Name: ngC57085 Date: 06/26/98
VM crashes with Segmentation Fault when run JavaTest executed JCK-12beta2 test
lang/clss212/clss21201/clss21201 under sameJVM.
> java -version
java version "1.2beta4"
Classic VM (build JDK-1.2beta4-J, green threads, sunwjit)
> java javasoft.sqe.javatest.tool.Main t20.jck12beta4.jtp &
[1] 11001
[1] Segmentation Fault java
JDK-1.2beta4-G shows the same result.
----------------------------------------------------
======================================================================
Name: laC46010 Date: 10/05/98
The bug is still reproduced with JIT switched off under jdk1.2beta4K, jdk12fcsK, jdk12fcsL.
To reproduce run the test using the following driver program that simulate
JavaTest harness slave:
-----------------------trun.java---------------------------
import java.io.PrintStream;
import javasoft.sqe.tests.lang.clss212.clss21201.clss21201;
public class trun implements Runnable {
public static void main(String argv[]) {
trun x = new trun();
Thread child = new Thread(x);
child.start();
try {
child.join();
}catch (Throwable e){};
}
public void run()
{
System.out.println("START");
clss21201 rec=new clss21201();
rec.run(null, System.out);
System.out.println("END");
}
}
-----------------------------------------------------------
> setenv CLASSPATH /export/ld13/java/sqe/JCK-12beta4/classes:.
> /export/ld14/java/dest/jdk1.2fcsK/solaris/bin/java -verify -verbose -Djava.compiler=none trun
> /export/ld14/java/dest/jdk1.2fcsL/solaris/bin/java -verify -Djava.compiler=none trun
Warning: JIT compiler "none" not found. Will use interpreter.
START
Segmentation Fault (core dumped)
Other bug revealed with the test is that VM loads javasoft.sqe.tests.lang.clss212.clss21201.clss21201
successfully from the main thread but throws StackOverflowError when the class is loaded from
a secondary thread (as in trun.java). See also Bug Id 4139375 (Synopsis: main and child threads
have different stack sizes on VM with JIT.)
======================================================================