JDK-8134030 : test/serviceability/dcmd/gc/HeapDumpTest fails to verify the dump
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc
  • Affected Version: 8,9
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-08-20
  • Updated: 2020-01-15
  • Resolved: 2015-11-05
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 8 JDK 9 Other
8u221Fixed 9 b94Fixed openjdk8u222Fixed
Related Reports
Relates :  
Description
There is a method called verifyHeapDump(), but it is never called.

Adding a call to it gives lots of warnings:

hprof> WARNING:  Failed to resolve object id 0x6c003d348 for field type (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001f270 for field value (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001ff08 for field key (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001f410 for field value (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001ffd8 for field key (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001f9c0 for field value (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001fa28 for field key (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001f0d0 for field value (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c0022218 for field value (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c0020110 for field key (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001f1a0 for field value (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001fd68 for field key (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001f4e0 for field value (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c00200a8 for field key (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001f8f0 for field value (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001f958 for field key (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001f3a8 for field value (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001fea0 for field key (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001f2d8 for field value (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001ff70 for field key (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001f208 for field value (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001f6e8 for field value (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001f750 for field key (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001f618 for field value (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001f680 for field key (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001f7b8 for field value (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001f820 for field key (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001f340 for field value (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001fe38 for field key (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001f478 for field value (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c0020040 for field key (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c001fa90 for field value (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c00201e0 for field key (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c0112980 for field type (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c00175d0 for field m_matchingInterface (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c0103c10 for field type (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c003c268 for field rtype (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c002b018 for field type (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c010e4d0 for field type (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c003c268 for field returnType (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c0035bb8 for field type (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c0035b50 for field type (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c003bd00 for field returnType (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c00533f8 for field type (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c0053318 for field type (signature L)
hprof> WARNING:  Failed to resolve object id 0x6c0053680 for field type (signature L)

A first investigation shows that the fields have references to Class objects.

Running the test with a 8u60 shows no warnings.
Comments
Fix Request Backporting this patch makes heap dumping more reliable. The fix does not apply to 8u cleanly. Patched 8u passes hotspot tests. 8u RFR: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2019-May/009276.html
06-05-2019

ILW = M (severely reduced reliability of heap dump generation) H (always) H (no workaround) = P2
25-08-2015

This was discovered when looking at JDK-8133317
20-08-2015