JDK-8277343 : dynamicArchive/SharedArchiveFileOption.java failed: '-XX:+RecordDynamicDumpInfo is unsupported when a dynamic CDS archive is specified in -XX:SharedArchiveFile:' missing
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 18
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2021-11-17
  • Updated: 2024-10-04
  • Resolved: 2021-11-18
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 18
18 b25Fixed
Related Reports
Relates :  
Description
The following test failed in the JDK18 CI:

runtime/cds/appcds/dynamicArchive/SharedArchiveFileOption.java

Here's a snippet from the log file:

----------System.err:(28/1780)----------
java version "18-ea" 2022-03-15
Java(TM) SE Runtime Environment (fastdebug build 18-ea+24-1599)
Java HotSpot(TM) 64-Bit Server VM (fastdebug build 18-ea+24-1599, mixed mode)
 stdout: [Error occurred during initialization of VM
Cannot have more than 1 archive file specified in -XX:SharedArchiveFile during CDS dumping
];
 stderr: []
 exitValue = 1

java.lang.RuntimeException: '-XX:+RecordDynamicDumpInfo is unsupported when a dynamic CDS archive is specified in -XX:SharedArchiveFile:' missing from stdout/stderr 

	at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:221)
	at jdk.test.lib.cds.CDSTestUtils.checkMatches(CDSTestUtils.java:491)
	at jdk.test.lib.cds.CDSTestUtils$Result.assertAbnormalExit(CDSTestUtils.java:200)
	at SharedArchiveFileOption.doTest(SharedArchiveFileOption.java:186)
	at SharedArchiveFileOption.testCustomBase(SharedArchiveFileOption.java:55)
	at DynamicArchiveTestBase.runTest(DynamicArchiveTestBase.java:74)
	at SharedArchiveFileOption.main(SharedArchiveFileOption.java:45)
	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)

JavaTest Message: Test threw exception: java.lang.RuntimeException: '-XX:+RecordDynamicDumpInfo is unsupported when a dynamic CDS archive is specified in -XX:SharedArchiveFile:' missing from stdout/stderr 

JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: '-XX:+RecordDynamicDumpInfo is unsupported when a dynamic CDS archive is specified in -XX:SharedArchiveFile:' missing from stdout/stderr
----------rerun:(37/9630)*----------
Comments
The fix for this bug is in jdk-18+25-1621 which has just reached Tier4.
18-11-2021

Changeset: db55f927 Author: Ioi Lam <iklam@openjdk.org> Date: 2021-11-18 08:49:07 +0000 URL: https://git.openjdk.java.net/jdk/commit/db55f9272c0889f4ea4dee0f4aa3d9613fadb2f8
18-11-2021

I will prepare a fix.
17-11-2021

[~iklam] - This new test failure might be related to: JDK-8276787 Improve warning messages for -XX:+RecordDynamicDumpInfo The failures started in jdk-18+24-1599-tier5 which includes the fix for JDK-8276787.
17-11-2021