United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-7033100 : CreateMinidumpOnCrash does not work for failed asserts

Details
Type:
Bug
Submit Date:
2011-04-01
Status:
Closed
Updated Date:
2011-07-29
Project Name:
JDK
Resolved Date:
2011-05-10
Component:
hotspot
OS:
windows
Sub-Component:
runtime
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
hs20
Fixed Versions:
hs21 (b10)

Related Reports
Backport:

Sub Tasks

Description
Starting with -XX:+CreateMinidumpOnCrash and running into an assert will cause a zero-length .mdmp file to be created and no error message to be reported.

The problem is that when we call MiniDumpWriteDump we expect there to be siginfo and context information available (there is for "real" crashes). Whwn the information is not avilable we call MiniDumpWriteDump with an incorrect MINIDUMP_EXCEPTION_INFORMATION which causes it to crash and we get a recursive crash in the crash handling code.

The fix is to call MiniDumpWriteDump with a NULL MINIDUMP_EXCEPTION_INFORMATION when context is not available.

                                    

Comments
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/5504afd15955
                                     
2011-04-15
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/5504afd15955
                                     
2011-04-16
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot/hotspot/rev/5504afd15955
                                     
2011-04-20



Hardware and Software, Engineered to Work Together