JDK-8277079 : serviceability/sa/ClhsdbFindPC.java fails with ArrayIndexOutOfBoundsException
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 18
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows
  • CPU: x86_64
  • Submitted: 2021-11-12
  • Updated: 2023-07-28
  • Resolved: 2021-11-13
Related Reports
Duplicate :  
Description
The following test failed in the JDK18 CI:

serviceability/sa/ClhsdbFindPC.java#no-xcomp-process

Here's a snippet from the log file:

----------System.err:(15/1032)----------
java.lang.RuntimeException: Test ERROR java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
	at ClhsdbFindPC.testFindPC(ClhsdbFindPC.java:284)
	at ClhsdbFindPC.main(ClhsdbFindPC.java:306)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:577)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
	at ClhsdbFindPC.testFindPC(ClhsdbFindPC.java:140)
	... 5 more

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test ERROR java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test ERROR java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
----------rerun:(37/5615)*----------
Comments
Dup of JDK-8269881. SteadStateThread is missing its stacktrace: "SteadyStateThread" #10 prio=5 tid=0x000001ebffa99030 nid=8416 waiting for monitor entry [0x000000a1832ff000] java.lang.Thread.State: BLOCKED (on object monitor) JavaThread state: _thread_blocked Locked ownable synchronizers: - None
13-11-2021