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

runtime/cds/appcds/TestZGCWithCDS.java fails after 8244385

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b22

      Description

      ----------System.out:(62/9432)*----------
      0. Dump with ZGC
      Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-15+22-1023\\windows-x64-debug.jdk\\jdk-15\\fastdebug\\bin\\java.exe -cp T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\classes\\0\\runtime\\cds\\appcds\\TestZGCWithCDS.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-15+22-1023\\src.full\\open\\test\\hotspot\\jtreg\\runtime\\cds\\appcds;T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\classes\\0\\test\\lib;T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\classes\\0\\test\\hotspot\\jtreg\\runtime\\cds\\appcds;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\5.0\\b01\\bundles\\jtreg_bin-5.0.zip\\jtreg\\lib\\javatest.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\5.0\\b01\\bundles\\jtreg_bin-5.0.zip\\jtreg\\lib\\jtreg.jar -XX:MaxRAMPercentage=6 -XX:+CreateCoredumpOnCrash -XX:+UseZGC -cp T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\classes\\0\\runtime\\cds\\appcds\\TestZGCWithCDS.d\\hello.jar -Xshare:dump -Xlog:cds -XX:SharedArchiveFile=T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\scratch\\3\\appcds-19h48m40s551.jsa -XX:ExtraSharedClassListFile=T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\classes\\0\\runtime\\cds\\appcds\\TestZGCWithCDS.d\\TestZGCWithCDS-test.classlist -XX:+UseZGC -Xlog:cds ]
      [2020-05-05T19:48:40.614213Z] Gathering output for process 59628
      [ELAPSED: 2828 ms]
      [logging stdout to TestZGCWithCDS-0000-dump.stdout]
      [logging stderr to TestZGCWithCDS-0000-dump.stderr]
      [STDERR]

      [2020-05-05T19:48:43.427144300Z] Waiting for completion for process 59628
      [2020-05-05T19:48:43.454126600Z] Waiting for completion finished for process 59628
      1. Run with same args of dump
      Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-15+22-1023\\windows-x64-debug.jdk\\jdk-15\\fastdebug\\bin\\java.exe -cp T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\classes\\0\\runtime\\cds\\appcds\\TestZGCWithCDS.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-15+22-1023\\src.full\\open\\test\\hotspot\\jtreg\\runtime\\cds\\appcds;T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\classes\\0\\test\\lib;T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\classes\\0\\test\\hotspot\\jtreg\\runtime\\cds\\appcds;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\5.0\\b01\\bundles\\jtreg_bin-5.0.zip\\jtreg\\lib\\javatest.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\5.0\\b01\\bundles\\jtreg_bin-5.0.zip\\jtreg\\lib\\jtreg.jar -XX:MaxRAMPercentage=6 -XX:+CreateCoredumpOnCrash -XX:+UseZGC -Xshare:on -showversion -XX:SharedArchiveFile=T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\scratch\\3\\appcds-19h48m40s551.jsa -Dtest.timeout.factor=4.0 -cp T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\classes\\0\\runtime\\cds\\appcds\\TestZGCWithCDS.d\\hello.jar -XX:+UseZGC -Xlog:cds Hello ]
      [2020-05-05T19:48:43.454126600Z] Gathering output for process 74656
      [ELAPSED: 418 ms]
      [logging stdout to TestZGCWithCDS-0001-exec.stdout]
      [logging stderr to TestZGCWithCDS-0001-exec.stderr]
      [STDERR]
      java version "15-ea" 2020-09-15
      Java(TM) SE Runtime Environment (fastdebug build 15-ea+22-1023)
      Java HotSpot(TM) 64-Bit Server VM (fastdebug build 15-ea+22-1023, mixed mode, sharing)

      [2020-05-05T19:48:43.872126400Z] Waiting for completion for process 74656
      [2020-05-05T19:48:43.887827600Z] Waiting for completion finished for process 74656
      2. Run with ZGC turned off
      Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-15+22-1023\\windows-x64-debug.jdk\\jdk-15\\fastdebug\\bin\\java.exe -cp T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\classes\\0\\runtime\\cds\\appcds\\TestZGCWithCDS.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-15+22-1023\\src.full\\open\\test\\hotspot\\jtreg\\runtime\\cds\\appcds;T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\classes\\0\\test\\lib;T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\classes\\0\\test\\hotspot\\jtreg\\runtime\\cds\\appcds;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\5.0\\b01\\bundles\\jtreg_bin-5.0.zip\\jtreg\\lib\\javatest.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\5.0\\b01\\bundles\\jtreg_bin-5.0.zip\\jtreg\\lib\\jtreg.jar -XX:MaxRAMPercentage=6 -XX:+CreateCoredumpOnCrash -XX:+UseZGC -Xshare:on -showversion -XX:SharedArchiveFile=T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\scratch\\3\\appcds-19h48m40s551.jsa -Dtest.timeout.factor=4.0 -cp T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\classes\\0\\runtime\\cds\\appcds\\TestZGCWithCDS.d\\hello.jar -XX:-UseZGC -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -Xlog:cds Hello ]
      [2020-05-05T19:48:43.903426200Z] Gathering output for process 33816
      [ELAPSED: 106 ms]
      [logging stdout to TestZGCWithCDS-0002-exec.stdout]
      [logging stderr to TestZGCWithCDS-0002-exec.stderr]
      [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.

      [2020-05-05T19:48:43.993200900Z] Waiting for completion for process 33816
      [2020-05-05T19:48:44.024441100Z] Waiting for completion finished for process 33816
      3. Run with -UseCompressedOops -UseCompressedClassPointers
      Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-15+22-1023\\windows-x64-debug.jdk\\jdk-15\\fastdebug\\bin\\java.exe -cp T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\classes\\0\\runtime\\cds\\appcds\\TestZGCWithCDS.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-15+22-1023\\src.full\\open\\test\\hotspot\\jtreg\\runtime\\cds\\appcds;T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\classes\\0\\test\\lib;T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\classes\\0\\test\\hotspot\\jtreg\\runtime\\cds\\appcds;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\5.0\\b01\\bundles\\jtreg_bin-5.0.zip\\jtreg\\lib\\javatest.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\5.0\\b01\\bundles\\jtreg_bin-5.0.zip\\jtreg\\lib\\jtreg.jar -XX:MaxRAMPercentage=6 -XX:+CreateCoredumpOnCrash -XX:+UseZGC -Xshare:on -showversion -XX:SharedArchiveFile=T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\scratch\\3\\appcds-19h48m40s551.jsa -Dtest.timeout.factor=4.0 -cp T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\classes\\0\\runtime\\cds\\appcds\\TestZGCWithCDS.d\\hello.jar -XX:-UseCompressedOops -XX:-UseCompressedClassPointers -Xlog:cds Hello ]
      [2020-05-05T19:48:44.024441100Z] Gathering output for process 60356
      [ELAPSED: 391 ms]
      [logging stdout to TestZGCWithCDS-0003-exec.stdout]
      [logging stderr to TestZGCWithCDS-0003-exec.stderr]
      [STDERR]
      java version "15-ea" 2020-09-15
      Java(TM) SE Runtime Environment (fastdebug build 15-ea+22-1023)
      Java HotSpot(TM) 64-Bit Server VM (fastdebug build 15-ea+22-1023, mixed mode, sharing)

      [2020-05-05T19:48:44.415055200Z] Waiting for completion for process 60356
      [2020-05-05T19:48:44.446327100Z] Waiting for completion finished for process 60356
      4. Run with +UseCompressedOops -UseCompressedClassPointers
      Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-15+22-1023\\windows-x64-debug.jdk\\jdk-15\\fastdebug\\bin\\java.exe -cp T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\classes\\0\\runtime\\cds\\appcds\\TestZGCWithCDS.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-15+22-1023\\src.full\\open\\test\\hotspot\\jtreg\\runtime\\cds\\appcds;T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\classes\\0\\test\\lib;T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\classes\\0\\test\\hotspot\\jtreg\\runtime\\cds\\appcds;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\5.0\\b01\\bundles\\jtreg_bin-5.0.zip\\jtreg\\lib\\javatest.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\5.0\\b01\\bundles\\jtreg_bin-5.0.zip\\jtreg\\lib\\jtreg.jar -XX:MaxRAMPercentage=6 -XX:+CreateCoredumpOnCrash -XX:+UseZGC -Xshare:on -showversion -XX:SharedArchiveFile=T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\scratch\\3\\appcds-19h48m40s551.jsa -Dtest.timeout.factor=4.0 -cp T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_runtime\\classes\\0\\runtime\\cds\\appcds\\TestZGCWithCDS.d\\hello.jar -XX:+UseCompressedOops -XX:-UseCompressedClassPointers -Xlog:cds Hello ]
      [2020-05-05T19:48:44.446327100Z] Gathering output for process 4152
      [ELAPSED: 381 ms]
      [logging stdout to TestZGCWithCDS-0004-exec.stdout]
      [logging stderr to TestZGCWithCDS-0004-exec.stderr]
      [STDERR]
      java version "15-ea" 2020-09-15
      Java(TM) SE Runtime Environment (fastdebug build 15-ea+22-1023)
      Java HotSpot(TM) 64-Bit Server VM (fastdebug build 15-ea+22-1023, mixed mode, sharing)

      [2020-05-05T19:48:44.827292200Z] Waiting for completion for process 4152
      [2020-05-05T19:48:44.842904100Z] Waiting for completion finished for process 4152
      ----------System.err:(26/1501)----------
       stdout: [[0.102s][info][cds] Archive was created with UseCompressedOops = 0, UseCompressedClassPointers = 0
      [0.103s][info][cds] Mapped static region #0 at base 0x0000000800000000 top 0x0000000800010000 (MiscCode)
      [0.103s][info][cds] Mapped static region #1 at base 0x0000000800010000 top 0x0000000800440000 (ReadWrite)
      [0.103s][info][cds] Mapped static region #2 at base 0x0000000800440000 top 0x0000000800b80000 (ReadOnly)
      Hello World
      ];
       stderr: [java version "15-ea" 2020-09-15
      Java(TM) SE Runtime Environment (fastdebug build 15-ea+22-1023)
      Java HotSpot(TM) 64-Bit Server VM (fastdebug build 15-ea+22-1023, mixed mode, sharing)
      ]
       exitValue = 0

      java.lang.RuntimeException: 'Unable to use shared archive.' missing from stdout/stderr

      at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:187)
      at TestZGCWithCDS.main(TestZGCWithCDS.java:97)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.base/java.lang.Thread.run(Thread.java:832)

      JavaTest Message: Test threw exception: java.lang.RuntimeException
      JavaTest Message: shutting down test

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              iignatyev Igor Ignatyev (Inactive)
              Reporter:
              iignatyev Igor Ignatyev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: