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

two AppCDS tests fail after JDK-8261455

XMLWordPrintable

    • b07
    • generic
    • generic
    • Verified

      The following two tests failed in the JDK19 CI:

      runtime/cds/appcds/dynamicArchive/TestAutoCreateSharedArchive.java
      runtime/cds/appcds/loaderConstraints/DynamicLoaderConstraintsTest.java#custom-cl-zgc

      Here's a snippet from the linux-x64 TestAutoCreateSharedArchive.java
      log file:

      java.lang.RuntimeException: 'AutoCreateSharedArchive is ignored because runtime.cds.appcds.dynamicArchive.TestAutoCreateSharedArchive.java-base.jsa is a static archive' missing from stdout/stderr

      at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:221)
      at TestAutoCreateSharedArchive.lambda$testAutoCreateSharedArchive$4(TestAutoCreateSharedArchive.java:247)
      at jdk.test.lib.cds.CDSTestUtils$Result.assertNormalExit(CDSTestUtils.java:149)
      at TestAutoCreateSharedArchive.testAutoCreateSharedArchive(TestAutoCreateSharedArchive.java:244)
      at DynamicArchiveTestBase.runTest(DynamicArchiveTestBase.java:75)
      at TestAutoCreateSharedArchive.main(TestAutoCreateSharedArchive.java:130)
      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: 'AutoCreateSharedArchive is ignored because runtime.cds.appcds.dynamicArchive.TestAutoCreateSharedArchive.java-base.jsa is a static archive' missing from stdout/stderr


      Here's a snippet from the linux-x64
      DynamicLoaderConstraintsTest.java#custom-cl-zgc log file:

      ----------System.err:(33/2406)----------
      java version "19-ea" 2022-09-20
      Java(TM) SE Runtime Environment (fastdebug build 19-ea+6-214)
      Java HotSpot(TM) 64-Bit Server VM (fastdebug build 19-ea+6-214, mixed mode)
       stdout: [[0.123s][info][cds] trying to map /opt/mach5/mesos/work_dir/slaves/ff806ead-2cac-495d-9cbc-62116f99bf14-S13752/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/766f2d41-6c57-458f-83a4-a0fcbe3df250/runs/1b117e24-74fa-419d-a973-f824b3a332ab/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/2/tempBaseArchive-11h06m15s512.jsa
      [0.123s][info][cds] Opened archive /opt/mach5/mesos/work_dir/slaves/ff806ead-2cac-495d-9cbc-62116f99bf14-S13752/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/766f2d41-6c57-458f-83a4-a0fcbe3df250/runs/1b117e24-74fa-419d-a973-f824b3a332ab/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/2/tempBaseArchive-11h06m15s512.jsa.
      [0.123s][info][cds] Archive was created with UseCompressedOops = 1, UseCompressedClassPointers = 1
      Error occurred during initialization of VM
      Unable to use shared archive.
      ];
       stderr: [An error has occurred while processing the shared archive file.
      Unable to use shared archive.
      The saved state of UseCompressedOops and UseCompressedClassPointers is different from runtime, CDS will be disabled.
      ]
       exitValue = 1

      java.lang.RuntimeException: Expected to get exit value of [0]

      at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:489)
      at jdk.test.lib.cds.CDSTestUtils$Result.assertNormalExit(CDSTestUtils.java:198)
      at DynamicLoaderConstraintsTest.doTest(DynamicLoaderConstraintsTest.java:167)
      at DynamicLoaderConstraintsTest.doTest(DynamicLoaderConstraintsTest.java:116)
      at DynamicArchiveTestBase.runTest(DynamicArchiveTestBase.java:75)
      at DynamicLoaderConstraintsTest.main(DynamicLoaderConstraintsTest.java:108)
      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: Expected to get exit value of [0]

      Since this looks like a regression introduced by:

      JDK-8261455 Automatically generate the CDS archive if necessary

      I'm starting this bug at P2.

            minqi Yumin Qi
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: