JDK-8209741 : com/sun/jdi/ArrayLengthDumpTest.java fails with ArrayIndexOutOfBoundsException when running in CDS mode
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 12
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2018-08-20
  • Updated: 2024-11-05
  • Resolved: 2018-08-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 12
12Resolved
Related Reports
Duplicate :  
Relates :  
Description
The com/sun/jdi/ArrayLengthDumpTest.java test fails with ArrayIndexOutOfBoundsException when running on a JDK binary with existing CDS archive:

java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
	at lib.jdb.Jdb$OutputHandler.get(Jdb.java:363)
	at lib.jdb.Jdb.waitForPrompt(Jdb.java:247)
	at lib.jdb.Jdb.command(Jdb.java:288)
	at ArrayLengthDumpTest.runCases(ArrayLengthDumpTest.java:96)
	at lib.jdb.JdbTest.run(JdbTest.java:50)
	at ArrayLengthDumpTest.main(ArrayLengthDumpTest.java:82)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:834)
Comments
Closed as a duplicate of JDK-8209605.
29-08-2018

Thanks, Mikael. Verified with tier5 test for default CDS archive. The failure is gone with the fix for JDK-8209605 included.
29-08-2018

I think this is the same issue that is (also) being covered in JDK-8209605.
21-08-2018