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

appcds/jigsaw/modulepath/AddReads.java failed due to RuntimeException: '[class,load] com.norequires.Main source: shared objects file' missing from stdout/stderr

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 14
    • hotspot
    • x86_64
    • windows

      The following test failed in the JDK14 CI:

      runtime/cds/appcds/jigsaw/modulepath/AddReads.java

      Here's a snippet from the log file:

      [2019-11-20T16:13:26.971910700Z] Waiting for completion for process 82444
      [2019-11-20T16:13:27.018747800Z] Waiting for completion finished for process 82444
      Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-14+24-1102\\windows-x64-debug.jdk\\jdk-14\\fastdebug\\bin\\java.exe -cp T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_cds_relocation\\classes\\7\\runtime\\cds\\appcds\\jigsaw\\modulepath\\AddReads.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-14+24-1102\\src.full\\open\\test\\hotspot\\jtreg\\runtime\\cds\\appcds\\jigsaw\\modulepath;T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_cds_relocation\\classes\\7\\test\\lib;T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_cds_relocation\\classes\\7\\test\\hotspot\\jtreg\\runtime\\cds\\appcds;C:\\ade\\mesos\\work_dir\\jib-master\\install\\java\\re\\jtreg\\4.2\\promoted\\all\\b14\\bundles\\jtreg_bin-4.2.zip\\jtreg\\lib\\javatest.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\java\\re\\jtreg\\4.2\\promoted\\all\\b14\\bundles\\jtreg_bin-4.2.zip\\jtreg\\lib\\jtreg.jar -XX:MaxRAMPercentage=3 -XX:ArchiveRelocationMode=1 -Djava.class.path= -Xlog:class+load=trace --add-modules org.astro --add-reads com.norequires=org.astro -Xshare:on -showversion -XX:SharedArchiveFile=T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_cds_relocation\\scratch\\2\\appcds-16h13m23s417.jsa -Dtest.timeout.factor=4.0 -p T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_cds_relocation\\scratch\\2\\mlib11020062998948893182 -m com.norequires ]
      [2019-11-20T16:13:27.018747800Z] Gathering output for process 19788
      [ELAPSED: 203 ms]
      [logging stdout to AddReads-0001-exec.stdout]
      [logging stderr to AddReads-0001-exec.stderr]
      [STDERR]
      An error has occurred while processing the shared archive file.
      Unable to map shared spaces

      [2019-11-20T16:13:27.237489900Z] Waiting for completion for process 19788
      [2019-11-20T16:13:27.237489900Z] Waiting for completion finished for process 19788
      [2019-11-20T16:13:27.237489900Z] Waiting for completion for process 19788
      [2019-11-20T16:13:27.237489900Z] Waiting for completion finished for process 19788
      [2019-11-20T16:13:27.253125600Z] Waiting for completion for process 19788
      [2019-11-20T16:13:27.253125600Z] Waiting for completion finished for process 19788
      ----------System.err:(25/1351)*----------
       stdout: [[0.009s][info][class,load] opened: c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-14+24-1102\\windows-x64-debug.jdk\\jdk-14\\fastdebug\\lib\\modules
      Error occurred during initialization of VM
      Unable to use shared archive.
      ];
       stderr: [An error has occurred while processing the shared archive file.
      Unable to map shared spaces
      ]
       exitValue = 1

      java.lang.RuntimeException: '[class,load] com.norequires.Main source: shared objects file' missing from stdout/stderr

      at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:187)
      at AddReads.lambda$main$0(AddReads.java:111)
      at jdk.test.lib.cds.CDSTestUtils$Result.assertNormalExit(CDSTestUtils.java:147)
      at AddReads.main(AddReads.java:110)
      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:564)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.base/java.lang.Thread.run(Thread.java:833)

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

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

              Created:
              Updated:
              Resolved: