JDK-7110428 : Crash during HeapDump operation
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: hs21
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2011-11-10
  • Updated: 2015-03-12
  • Resolved: 2011-11-18
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 6 JDK 7 JDK 8 Other
6u85Fixed 7u2Fixed 8Fixed hs22Fixed
Description
Heap Dumping crashes with Parallel GC with the following stack trace:

0x00002ab8f4682ab0 in JVM_handle_linux_signal ()
 <signal handler called>
 0x00002ab8f4439d76 in DumperSupport::dump_field_value(DumpWriter*, char,unsigned char*) ()  
 0x00002ab8f443a07d in DumperSupport::dump_instance_fields(DumpWriter*,oopDesc*) ()  
 0x00002ab8f443d9db in DumperSupport::dump_instance(DumpWriter*, oopDesc*) ()
 0x00002ab8f443dbd4 in HeapObjectDumper::do_object(oopDesc*) ()
 0x00002ab8f4646e24 in MutableSpace::object_iterate(ObjectClosure*) ()
 0x00002ab8f46e00a0 in PSYoungGen::object_iterate(ObjectClosure*) ()  
 0x00002ab8f4697fa8 in ParallelScavengeHeap::object_iterate(ObjectClosure*)()
 0x00002ab8f443e768 in VM_HeapDumper::doit() ()
 0x00002ab8f47da85c in VM_Operation::evaluate() ()  
 0x00002ab8f47d9340 in VMThread::evaluate_operation(VM_Operation*) ()  
 0x00002ab8f47d9881 in VMThread::loop() ()  
 0x00002ab8f47d9f00 in VMThread::run() ()  
 0x00002ab8f46804b0 in java_start(Thread*) ()  
 0x0000003c070064a7 in start_thread ()
 0x0000003c064d3c2d in clone ()

Comments
EVALUATION http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/2ceafe3ceb65
22-03-2012

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-emb/hotspot/rev/2ceafe3ceb65
29-11-2011

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-gc/hotspot/rev/2ceafe3ceb65
17-11-2011

EVALUATION In VM_HeapDumper::doit(), ensure_parsability() should always be called whether or not a GC is requested before heap dumping.
11-11-2011