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

ClassPathTests.java fails due to "Unable to map MiscData shared space at required address."

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b14
    • CPU:
      x86_64
    • OS:
      windows

      Description

      The following test failed in the JDK12 CI:

      runtime/appcds/jigsaw/classpathtests/ClassPathTests.java

      Here's a snippet of the log file:

      About to run test method: testAppClassWithoutAppCDS
      Command line: [C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk12-jdk.533\\windows-x64-debug.jdk\\jdk-12\\fastdebug\\bin\\java.exe -cp T:\\testoutput\\jtreg\\JTwork\\classes\\1\\runtime\\appcds\\jigsaw\\classpathtests\\ClassPathTests.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk12-jdk.533\\src.full\\open\\test\\hotspot\\jtreg\\runtime\\appcds\\jigsaw\\classpathtests;T:\\testoutput\\jtreg\\JTwork\\classes\\1\\test\\lib;T:\\testoutput\\jtreg\\JTwork\\classes\\1\\runtime\\appcds;C:\\ade\\mesos\\work_dir\\jib-master\\install\\java\\re\\jtreg\\4.2\\promoted\\all\\b13\\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\\b13\\bundles\\jtreg_bin-4.2.zip\\jtreg\\lib\\jtreg.jar -XX:MaxRAMPercentage=6 -cp T:\\testoutput\\jtreg\\JTwork\\classes\\1\\runtime\\appcds\\jigsaw\\classpathtests\\ClassPathTests.d\\classpathtests.jar -Xshare:on -Dtest.timeout.factor=10.0 -XX:SharedArchiveFile=T:\\testoutput\\jtreg\\JTwork\\scratch\\0\\appcds-11h03m58s508.jsa -version jdk.test.Main Test #2 com/sun/tools/javac/MyMain false ]
      [ELAPSED: 118 ms]
      [logging stdout to ClassPathTests-0010-exec.stdout]
      [logging stderr to ClassPathTests-0010-exec.stderr]
      [STDERR]
      An error has occurred while processing the shared archive file.
      Unable to map MiscData shared space at required address.

      ----------System.err:(31/1804)----------
       stdout: [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 MiscData shared space at required address.
      ]
       exitValue = 1

      java.lang.reflect.InvocationTargetException
      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:566)
      at ClassPathTests.main(ClassPathTests.java:95)
      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:566)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:246)
      at java.base/java.lang.Thread.run(Thread.java:835)
      Caused by: jtreg.SkippedException: Unable to map shared archive: test did not complete
      at jdk.test.lib.cds.CDSTestUtils.checkCommonExecExceptions(CDSTestUtils.java:311)
      at jdk.test.lib.cds.CDSTestUtils.checkExec(CDSTestUtils.java:434)
      at jdk.test.lib.cds.CDSTestUtils.checkExec(CDSTestUtils.java:421)
      at jdk.test.lib.cds.CDSTestUtils.runWithArchiveAndCheck(CDSTestUtils.java:409)
      at ClassPathTests.testAppClassWithoutAppCDS(ClassPathTests.java:149)
      ... 11 more

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

      result: Failed. Execution failed: `main' threw exception: java.lang.reflect.InvocationTargetException


      test result: Failed. Execution failed: `main' threw exception: java.lang.reflect.InvocationTargetException

        Attachments

          Activity

            People

            Assignee:
            ccheung Calvin Cheung
            Reporter:
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: