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

AppCDS FreeUnusedMetadata.java test failed due to "Unable to map MiscData shared space at required address."

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 14
    • Fix Version/s: None
    • Component/s: hotspot
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows

      Description

      The following test failed in the JDK14 CI:

      runtime/cds/appcds/FreeUnusedMetadata.java

      Here's a snippet from the log file:

      ----------System.out:(13/2268)*----------
      patchJarForDynamicDump: classpath = T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_appcds_dynamic\\classes\\3\\runtime\\cds\\appcds\\FreeUnusedMetadata.d\\FreeUnusedMetadata.jar
      firstJar = T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_appcds_dynamic\\classes\\3\\runtime\\cds\\appcds\\FreeUnusedMetadata.d\\FreeUnusedMetadata.jar Modified
      Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-14+16-625\\windows-x64-debug.jdk\\jdk-14\\fastdebug\\bin\\java.exe -cp T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_appcds_dynamic\\classes\\3\\runtime\\cds\\appcds\\FreeUnusedMetadata.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-14+16-625\\src.full\\open\\test\\hotspot\\jtreg\\runtime\\cds\\appcds;T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_appcds_dynamic\\classes\\3\\test\\lib;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=6 -Dtest.dynamic.cds.archive=true -cp T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_appcds_dynamic\\classes\\3\\runtime\\cds\\appcds\\FreeUnusedMetadata.d\\FreeUnusedMetadata.jar -Xshare:on -XX:ArchiveClassesAtExit=T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_appcds_dynamic\\scratch\\3\\appcds-20h34m09s748.jsa -Xlog:cds -Xlog:cds+dynamic cdsutils.DynamicDumpHelper T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_appcds_dynamic\\classes\\3\\runtime\\cds\\appcds\\FreeUnusedMetadata.d\\FreeUnusedMetadata-test.classlist ]
      [2019-09-19T20:34:09.857800900Z] Gathering output for process 2612
      [ELAPSED: 248 ms]
      [logging stdout to FreeUnusedMetadata-0000-dump.stdout]
      [logging stderr to FreeUnusedMetadata-0000-dump.stderr]
      [STDERR]
      An error has occurred while processing the shared archive file.
      Unable to map MiscData shared space at required address.

      [2019-09-19T20:34:10.043892800Z] Waiting for completion for process 2612
      [2019-09-19T20:34:10.059518300Z] Waiting for completion finished for process 2612
      ----------System.err:(23/1159)----------
       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.RuntimeException: 'Buffer-space to target-space delta' missing from stdout/stderr

      at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:187)
      at jdk.test.lib.cds.CDSTestUtils.checkDump(CDSTestUtils.java:276)
      at FreeUnusedMetadata.main(FreeUnusedMetadata.java:87)
      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:830)

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

      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'Buffer-space to target-space delta' missing from stdout/stderr


      test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'Buffer-space to target-space delta' missing from stdout/stderr

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: