JDK-8223885 : hs_err and replay file may contain garbage when overwriting existing file
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 13
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-05-14
  • Updated: 2019-08-15
  • Resolved: 2019-05-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 13
13 b21Fixed
Related Reports
Relates :  
Relates :  
Sub Tasks
JDK-8223917 :  
Description
Test: compiler/ciReplay/TestServerVM.java

(test code:)
    public void positiveTest(String... additionalVmOpts) {
        Asserts.assertEQ(startTest(additionalVmOpts), 0, "Unexpected exit code for positive case: "
                + Arrays.toString(additionalVmOpts));
    }


java.lang.RuntimeException: Unexpected exit code for positive case: [-XX:TieredStopAtLevel=3]: expected 1 to equal 0
	at jdk.test.lib.Asserts.fail(Asserts.java:594)
	at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)
	at jdk.test.lib.Asserts.assertEQ(Asserts.java:178)
	at compiler.ciReplay.CiReplayBase.positiveTest(CiReplayBase.java:233)
	at compiler.ciReplay.VMBase.testAction(VMBase.java:52)
	at compiler.ciReplay.CiReplayBase.runTest(CiReplayBase.java:104)
	at compiler.ciReplay.VMBase.main(VMBase.java:33)
	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:567)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:830)

Comments
http://cr.openjdk.java.net/~thartmann/8223885/webrev.00/
15-05-2019

The problem is garbage at the end of the generated replay compilation file: [...] compile java/lang/invoke/MethodHandle <clinit> ()V -1 3 ethodHandle <clinit> ()V -1 3 The garbage comes from a file generated by an earlier run that was not yet deleted by the operating system (although deletion was requested by the test framework) and since the fix for JDK-8221738 we overwrite existing hs_err and replay files. We should truncate the file before overwriting. ILW = hs_err and replay files may contain garbage when overwriting existing file (regression), reproducible with replay compilation test, no workaround (but delete existing files) = MMM = P3
15-05-2019

First failed with jdk-13-1028. Only on linux.
14-05-2019