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

Test FinalizerTest.java intermittent fails Debuggee heap OOM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 21, 23, 24
    • core-svc
    • generic
    • generic

      Test com/sun/jdi/FinalizerTest.java intermittent fails, the test log snippet:
      Allocated 10000000
      Allocated 10000000
      Allocated 10000000
      Allocated 10000000
      Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
      at java.base/java.lang.ref.Finalizer.runFinalization(Finalizer.java:145)
      at java.base/java.lang.ref.Reference$1.runFinalization(Reference.java:331)
      at java.base/java.lang.Runtime.runFinalization(Runtime.java:789)
      at java.base/java.lang.System.runFinalization(System.java:1984)
      at FinalizerTarg.waitForAFinalizer(FinalizerTest.java:100)
      at FinalizerTarg.main(FinalizerTest.java:111)
      STDERR:
      [0ms] run args: [FinalizerTarg]
      [368ms] Breakpoint at finalize:68 (0)
      [382ms] Try a stepOverLine()...
      [392ms] Step Complete at finalize:70 (4)
      [16717ms] Note: Unexpected Debuggee Exception: java.lang.OutOfMemoryError at line 145
      [16720ms] detailMessage = "Java heap space"
      java.lang.RuntimeException: Invalid debuggee exitValue: 1
      at TestScaffold.waitForVMDisconnect(TestScaffold.java:787)
      at TestScaffold.resumeToVMDisconnect(TestScaffold.java:1015)
      at TestScaffold.listenUntilVMDisconnect(TestScaffold.java:743)
      at FinalizerTest.runTests(FinalizerTest.java:186)
      at TestScaffold.startTests(TestScaffold.java:468)
      at FinalizerTest.main(FinalizerTest.java:121)

      Failure probability: 30/100

      Reproduce test command:
      export test=test/jdk/com/sun/jdi/FinalizerTest.java
      function runJtreg() { jtreg -jdk:build/linux-x86_64-server-release/images/jdk -ea -esa -timeoutFactor:4 -v:fail,error,time,nopass -nr -w $dir/index-$1 $test &> $dir/$1.log ; if [[ 0 -ne $? ]] ; then echo -n "$1 " ; else rm -rf $dir/index-$1 $dir/$1.log ; fi ; } ; export -f runJtreg ; export dir="tmp-jtreg-"`basename ${test##* } .java | sed "s|#|_|"` ; rm -rf $dir ; mkdir -p $dir ; time seq 100 | xargs -i -n 1 -P `nproc` bash -c "runJtreg {}" ; echo total fail number: `ls $dir/*.log 2> /dev/null | wc | awk '{print $1}'`

        1. 7.log
          46 kB
        2. jt-work.tar.xz
          21.65 MB
        3. tmp-jtreg-FinalizerTest.tar.bz2
          684 kB

            syan Sendao Yan
            syan Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: