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

serviceability/sa/ClhsdbCDSJstackPrintAll.java fails with "Error: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 20
    • hotspot
    • x86_64
    • windows

      The following test failed in the JDK20 CI:

      serviceability/sa/ClhsdbCDSJstackPrintAll.java

      Here's a snippet from the log file:

      Thread 22 Address: 0x000001b03e65d470

      Java Stack Trace for SteadyStateThread
      Thread state = BLOCKED
       - private static void steadyState(java.lang.Object) @0x000001b037c04ce8 @bci = 7, line = 535, pc = 0x000001b0237ff265 (Compiled)
      - waiting to lock <0x00000000d7d3d578> (a java.lang.Object)
       - public void run() @0x000001b037c052e0 @bci = 4, line = 542, pc = 0x000001b0237feddc, oop = 0x00000000d7d3d588 (Compiled)


      hsdb> + quit
      ];
       stderr: [Error: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
      java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
      at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100)
      at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)
      at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)
      at java.base/java.util.Objects.checkIndex(Objects.java:385)
      at java.base/java.util.ArrayList.get(ArrayList.java:427)
      at jdk.hotspot.agent/sun.jvm.hotspot.runtime.StackValueCollection.get(StackValueCollection.java:41)
      at jdk.hotspot.agent/sun.jvm.hotspot.runtime.StackValueCollection.oopHandleAt(StackValueCollection.java:54)
      at jdk.hotspot.agent/sun.jvm.hotspot.ui.classbrowser.HTMLGenerator.genHTMLForJavaStackTrace(HTMLGenerator.java:1940)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor$45.doit(CommandProcessor.java:1660)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:2212)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:2182)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.run(CommandProcessor.java:2053)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.run(CLHSDB.java:112)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.main(CLHSDB.java:44)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runCLHSDB(SALauncher.java:281)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:500)
      ]
       exitValue = 0

      java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: '^Error: .*$' found in stderr: 'Error: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0'
      at ClhsdbCDSJstackPrintAll.main(ClhsdbCDSJstackPrintAll.java:117)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
      at java.base/java.lang.Thread.run(Thread.java:1591)
      Caused by: java.lang.RuntimeException: '^Error: .*$' found in stderr: 'Error: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0'
      at jdk.test.lib.process.OutputAnalyzer.shouldNotMatch(OutputAnalyzer.java:404)
      at ClhsdbLauncher.runCmd(ClhsdbLauncher.java:154)
      at ClhsdbLauncher.run(ClhsdbLauncher.java:203)
      at ClhsdbCDSJstackPrintAll.main(ClhsdbCDSJstackPrintAll.java:113)
      ... 4 more

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: '^Error: .*$' found in stderr: 'Error: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0'
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: '^Error: .*$' found in stderr: 'Error: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0'
      ----------rerun:(48/6000)*----------

            Unassigned Unassigned
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: