Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4820377

TEST_BUG: Regtest-test vm/misc/ReflectStackOverflow.java fails

XMLWordPrintable

    • x86
    • linux

      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
      ---------------------------------------------

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

            ksrini Kumar Srinivasan
            irasunw Ira Ira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: