JDK-8220682 : Heap dumping and inspection fails with JDK-8214712
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 11,13
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-03-14
  • Updated: 2019-10-15
  • Resolved: 2019-03-26
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 11 JDK 13
11.0.5Fixed 13 b14Fixed
Related Reports
Blocks :  
Relates :  
Description
JDK-8214712 seeks to enable archiving of objects that might not be loaded by every applications. Some issues has been resolved, but a new one cropped up:

 java.io.IOException: Class Record for 0x0 not found
 	at jdk.test.lib.hprof.parser.HprofReader.readInstance(HprofReader.java:765)
 	at jdk.test.lib.hprof.parser.HprofReader.readHeapDump(HprofReader.java:512)
 	at jdk.test.lib.hprof.parser.HprofReader.read(HprofReader.java:280)
 	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 TestHeapDumpOnOutOfMemoryError.test(TestHeapDumpOnOutOfMemoryError.java:79)
 	at TestHeapDumpOnOutOfMemoryError.main(TestHeapDumpOnOutOfMemoryError.java:63)
 	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:298)
 	at java.base/java.lang.Thread.run(Thread.java:835)
Comments
Fix Request (11u) Resolves the corner case that corrupts heap dumps, and provides the clean base for JDK-8224531 backport. Patch applies cleanly to 11u, passes tier1. Risk is low: skips objects with not-yet-loaded-classes (seen with archived classes).
24-07-2019