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
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