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

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

XMLWordPrintable

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

      The following test failed in the JDK22 CI:

      serviceability/sa/ClhsdbWhere.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(6/237)----------
      command: main ClhsdbWhere
      reason: User specified action: run main/othervm ClhsdbWhere
      started: Sat Jun 24 16:02:16 UTC 2023
      Mode: othervm [/othervm specified]
      finished: Sat Jun 24 16:04:43 UTC 2023
      elapsed time (seconds): 147.396
      ----------configuration:(0/0)----------
      ----------System.out:(139/7784)*----------
      Starting ClhsdbWhere test
      Command line: ['c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-22+4-193\\windows-x64-debug.jdk\\jdk-22\\fastdebug\\bin\\java.exe' '-XX:MaxRAMPercentage=4.16667' '-Dtest.boot.jdk=c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk\\20\\36\\bundles\\windows-x64\\jdk-20_windows-x64_bin.zip\\jdk-20' '-Djava.io.tmpdir=c:\\sb\\prod\\1687618523\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_serviceability\\tmp' '-Xcomp' '-XX:+CreateCoredumpOnCrash' '-ea' '-esa' '-XX:CompileThreshold=100' '-XX:+UnlockExperimentalVMOptions' '-server' '-XX:+TieredCompilation' '-cp' 'C:\\sb\\prod\\1687618523\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_serviceability\\classes\\4\\serviceability\\sa\\ClhsdbWhere.d;C:\\sb\\prod\\1687618523\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_serviceability\\classes\\4\\test\\lib' 'jdk.test.lib.apps.LingeredApp' '9ef7dac7-58d0-4a47-a7b8-85858ba8be0e.lck']
      LingeredApp startup took 20338ms
      Check for hs_err_pid/core/mdmp files:
      None.
      Started LingeredApp with pid 48012
      Starting clhsdb against 48012
      [2023-06-24T16:03:20.577934700Z] Gathering output for process 3752
      [2023-06-24T16:04:35.899283Z] Waiting for completion for process 3752
      [2023-06-24T16:04:35.993035700Z] Waiting for completion finished for process 3752
      Output:
      Attaching to process 48012, please wait...
      hsdb> hsdb> + verbose true
      hsdb> + where -a
      Thread 4 Address: 0x00000207f050dc30
      Thread 11 Address: 0x00000207fe798920

      <snip>

      Thread 22 Address: 0x0000020793cef400

      Java Stack Trace for SteadyStateThread
      Thread state = BLOCKED
       - private static void steadyState(java.lang.Object) @0x000002078f404f18 @bci = 7, line = 566, pc = 0x00000207806ad6e5 (Compiled)
      - waiting to lock <0x00000000d7d3dbb8> (a java.lang.Object)
       - public void run() @0x000002078f405690 @bci = 4, line = 573, pc = 0x00000207806ad1f4 (Compiled)


      hsdb> + quit
      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:1936)
      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)

      [2023-06-24T16:04:36.244763200Z] Waiting for completion for process 3752
      [2023-06-24T16:04:36.244763200Z] Waiting for completion finished for process 3752
       LingeredApp stdout: [];
       LingeredApp stderr: []
       LingeredApp exitValue = 0
      ----------System.err:(143/7644)----------

      <snip>

      Thread 22 Address: 0x0000020793cef400

      Java Stack Trace for SteadyStateThread
      Thread state = BLOCKED
       - private static void steadyState(java.lang.Object) @0x000002078f404f18 @bci = 7, line = 566, pc = 0x00000207806ad6e5 (Compiled)
      - waiting to lock <0x00000000d7d3dbb8> (a java.lang.Object)
       - public void run() @0x000002078f405690 @bci = 4, line = 573, pc = 0x00000207806ad1f4 (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:1936)
      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 ClhsdbWhere.main(ClhsdbWhere.java:68)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1570)
      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 ClhsdbWhere.main(ClhsdbWhere.java:64)
      ... 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:(47/6409)*----------

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

              Created:
              Updated: