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

[TESTBUG] CDSTestUtils.isUnableToMap() should check OptionalData region mapping failure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b36

      Description

      I've been seeing some intermittent test failures where the
      failure message is:

      Exception: java.lang.RuntimeException: 'sharing' missing from stdout/stderr

      This particular failure happened with this test:

      runtime/AppCDS/RewriteBytecodesTest.java

      Here is a more detailed snippet from the .jtr file:

      ----------System.err:(24/1207)----------
       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 OptionalData shared space at required address.
      ]
       exitValue = 1

      java.lang.RuntimeException: 'sharing' missing from stdout/stderr

      at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:135)
      at jdk.test.lib.cds.CDSTestUtils.checkExec(CDSTestUtils.java:241)
      at jdk.test.lib.cds.CDSTestUtils.checkExec(CDSTestUtils.java:232)
      at RewriteBytecodesTest.main(RewriteBytecodesTest.java:44)
      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$SameVMRunnable.run(MainActionHelper.java:230)
      at java.base/java.lang.Thread.run(Thread.java:844)

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

      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'sharing' missing from stdout/stderr


      test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'sharing' missing from stdout/stderr

        Attachments

          Activity

            People

            Assignee:
            jiangli Jiangli Zhou
            Reporter:
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: