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

dynamicArchive/SharedArchiveFileOption.java failed: '-XX:+RecordDynamicDumpInfo is unsupported when a dynamic CDS archive is specified in -XX:SharedArchiveFile:' missing

XMLWordPrintable

    • b25
    • generic
    • generic
    • Verified

      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)*----------

            iklam Ioi Lam
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: