JDK-4820377 : TEST_BUG: Regtest-test vm/misc/ReflectStackOverflow.java fails
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 1.4.2,5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2003-02-19
  • Updated: 2012-10-01
  • Resolved: 2005-10-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6Resolved
Related Reports
Duplicate :  
Relates :  
Description
Name: iaR10016			Date: 02/19/2003


Filed By       : J2SE-SQA [###@###.###
JDK            : JDK1.4.2-b16
Testbase       : RegTest-test
Falling tests  : vm/misc/ReflectStackOverflow.java

Regtest-test test vm/misc/ReflectStackOverflow.java fails with java.lang.OutOfMemoryError
with JDK1.4.2-b16, b14, b13, etc. on Suse Linux 7.1.

Please, see bug 4678676 for more details.

The bug is not reproducible if I run it manually with "-Xss512k" switch.

It seems that the problem is that the tested JDK (with -Xss512k switch) is not invoked
directly with a ReflectStackOverflow when running using javatest/jtreg.
Instead Jtreg starts it's own wrapper class (com.sun.javatest.regtest.MainWrapper)
which creates new Thread and ThreadGroup for ReflectStackOverflow class. I suppose
that the test fails due to this reason.

The test passes on my Suse 7.1 machine if I use the following script to start it
from Javatest (I also removed @run tag from ReflectStackOverflow.java):

--------- ReflectStackOverflow.sh ---------
#!/bin/ksh
# @test @(#)ReflectStackOverflow.sh 1.1
# @bug 4785411
# @summary Testing...
#  Verify directory context variables are set
# @run shell ReflectStackOverflow.sh

cp ${TESTSRC}/ReflectStackOverflow.java .

${TESTJAVA}/bin/javac -d . ReflectStackOverflow.java
${TESTJAVA}/bin/java -classpath . -Xss512k ReflectStackOverflow

if [ $? = 0 ]
then
   exit 0;
else
   echo "The test fails!"
   exit 1
fi
---------------------------------------------

======================================================================

Comments
EVALUATION Discussed this Hui, and he feels strongly this issue will be taken care of the primordial thread issue, fixed by 6316197, closing it as a duplicate.
06-10-2005

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: dragon
08-07-2004

EVALUATION Name: iaR10016 Date: 02/20/2003 This bug was filed because of Hui Huang's request in the bug 4678676: ... I think it would make more sense to open a new (test) bug, as real changes have been made to fix the VM problem. Before the VM changes, the test won't pass even if you specify "-Xss512k". The bug should remain "integrated" to reflect this change, IMHO. The remaining problem is that test script doesn't use the -Xss flag from @run to launch test. It's a separate issue and should be tracked by a different bug ID. ###@###.### 2003-02-18 ... I do not know exact reason of the failure. Please, close this bug and return #4678676 to the "Evaluated" state if you thing this is not a jtreg problem. To reproduce the failure just start javatest, select ReflectStackOverflow.java test and run it. Please, see bug 4678676 for more details. ====================================================================== Does this still occur with latest JDK 1.4.2-beta? If so, please provide a test script to reproduce this issue. ###@###.### 2003-04-23
23-04-2003