JDK-8219405 : serviceability/sa/TestJmapCore.java failed with java.io.EOFException
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 13,14
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2019-02-20
  • Updated: 2020-11-04
  • Resolved: 2020-11-04
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.
Other
tbdResolved
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
----------System.err:(20/1070)----------
null

java.io.EOFException
	at java.base/java.io.DataInputStream.readInt(DataInputStream.java:397)
	at jdk.test.lib.hprof.parser.HprofReader.read(HprofReader.java:206)
	at jdk.test.lib.hprof.parser.Reader.readFile(Reader.java:91)
	at jdk.test.lib.hprof.HprofParser.parse(HprofParser.java:85)
	at jdk.test.lib.hprof.HprofParser.parse(HprofParser.java:54)
	at TestJmapCore.test(TestJmapCore.java:139)
	at TestJmapCore.main(TestJmapCore.java:73)
	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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:246)
	at java.base/java.lang.Thread.run(Thread.java:835)

JavaTest Message: Test threw exception: java.io.EOFException
JavaTest Message: shutting down test
Comments
Only bugs associated with changesets should be closed as fixed. You should re-close this bug as a duplicate of another bug if you are sure that the other bug fixed this issue. If you cannot find an appropriate duplicate, then you should close this bug as "Cannot Reproduce".
04-11-2020

The hprof dump failed as indicated by the "null" and "illegal bci" messages, but the test didn't catch that, and then later failed to read in the incomplete hprof file. The issue of the test not seeing the "null" or "illegal bci" failure should have been resolved by JDK-8231287, which would have made this failure end up being , for example, "AssertionFailure: illegal bci". There have been a number of fixes to address "null" and "illegal bci" failures, including JDK-8231634 and JDK-8244383. Since we haven't seen this failure in a while, I'm assuming it is now fixed and will close.
03-11-2020

Here's a snippet from the log file for the JDK14 sighting that I just added: ----------System.err:(20/1057)---------- illegal bci java.io.EOFException at java.base/java.io.DataInputStream.readInt(DataInputStream.java:397) at jdk.test.lib.hprof.parser.HprofReader.read(HprofReader.java:206) at jdk.test.lib.hprof.parser.Reader.readFile(Reader.java:91) at jdk.test.lib.hprof.HprofParser.parse(HprofParser.java:85) at jdk.test.lib.hprof.HprofParser.parse(HprofParser.java:54) at TestJmapCore.test(TestJmapCore.java:139) at TestJmapCore.main(TestJmapCore.java:73) 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.io.EOFException JavaTest Message: shutting down test result: Failed. Execution failed: `main' threw exception: java.io.EOFException test result: Failed. Execution failed: `main' threw exception: java.io.EOFException
26-09-2019