JDK-6315773 : Generate consumer friendly jvm hotspot crash log file (hs_err_pid*)
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 5.0u14
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-08-25
  • Updated: 2012-10-13
  • Resolved: 2005-10-27
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 Availabitlity Release.

To download the current JDK release, click here.
JDK 6
6 b58Fixed
Description
FULL PRODUCT VERSION :
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE REQUEST :
When consumers run an applet within a browser and a JVM crash occurs, a text file appears on the desktop. The text file is named hs_err_pidxxxx.txt (example: hs_err_pid976.txt). The content of this text file is too technical for consumers to understand. Even worse, the log does not include any instruction as to the reason of the crash and where to submit the crash log.

Consumers are submitting these log files via java.com. They are pasting the content of the log file into the incident. They have no idea as to what to do next. 

JUSTIFICATION : 
As of 2005-08-22, there are 274 incidents related to this RFE. Total: 274.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
A message is displayed at the command prompt when an application crashes. The message informs users that a crash had occurred and asks users to go to webbug's website to submit the crash log. This message should also be included in the log file when an applet crashes.

The following should be implemented:
1) When the JVM crashes during the execution of an applet, the first line in the log file should contain a consumer friendly message:
"Java Runtime Environment crashed because of an error"
2) Include a link to "HotSpot Virtual Machine Error Reporting Page". This will submit an incident to Incident Manager.
http://bugs.sun.com/services/bugreport/crash.jsp

Sample log file sent by consumer:
------------------------------------------------------------------
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d0e7949, pid=3216, tid=4076
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_02-b09 mixed mode, sharing)
# Problematic frame:
# C  [awt.dll+0xe7949]
#

---------------  T H R E A D  ---------------

Current thread (0x02de2468):  JavaThread "AWT-EventQueue-4" [_thread_in_native, id=4076]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000004

Registers:
EAX=0x00000000, EBX=0x0593ef38, ECX=0x02de2524, EDX=0x06a4f9a4
ESP=0x06a4f9ac, EBP=0x06a4fa10, ESI=0x02de2524, EDI=0x00000000
EIP=0x6d0e7949, EFLAGS=0x00010246

  Top of Stack: (sp=0x06a4f9ac)
0x06a4f9ac:   0593ef38 02de2524 00000000 6d0c7cad
0x06a4f9bc:   20bc3d98 20bc3d98 02de2468 0593ef38
0x06a4f9cc:   00000200 00000000 000d0025 002cfb80
0x06a4f9dc:   00000025 0000000d 211e5818 00000000
0x06a4f9ec:   00000003 00000000 0311bd2f 21d44078
0x06a4f9fc:   06a4fa20 06a4f9bc 06a4fce4 6d0f3228
0x06a4fa0c:   00000000 06a4fa28 03215312 000001f7
0x06a4fa1c:   06a4fa34 06a4fa30 211e9978 06a4fa50

Instructions: (pc=0x6d0e7949)
0x6d0e7939:   56 8b 0e ff 51 68 85 c0 7d 06 5f 33 c0 5e 59 c3
0x6d0e7949:   8b 47 04 85 c0 74 15 8b 0d 58 fa 12 6d 8b 16 51


Stack: [0x06950000,0x06a50000),  sp=0x06a4f9ac,  free space=1022k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [awt.dll+0xe7949]
J  sun.awt.windows.WComponentPeer.nativeHandleEvent(Ljava/awt/AWTEvent;)V
J  sun.awt.windows.WComponentPeer.handleEvent(Ljava/awt/AWTEvent;)V
J  java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V
J  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V
J  java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z
J  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V
v  ~RuntimeStub::alignment_frame_return Runtime1 stub
j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j  java.awt.EventDispatchThread.run()V+9
v  ~StubRoutines::call_stub
V  [jvm.dll+0x818e8]
V  [jvm.dll+0xd4989]
V  [jvm.dll+0x817b9]
V  [jvm.dll+0x81516]
V  [jvm.dll+0x9c1d6]
V  [jvm.dll+0xfeeab]
V  [jvm.dll+0xfee79]
C  [msvcrt.dll+0x27fb8]
C  [kernel32.dll+0x1d28e]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J  sun.awt.windows.WComponentPeer.nativeHandleEvent(Ljava/awt/AWTEvent;)V
J  sun.awt.windows.WComponentPeer.handleEvent(Ljava/awt/AWTEvent;)V
J  java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V
J  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V
J  java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z
J  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V
v  ~RuntimeStub::alignment_frame_return Runtime1 stub
j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j  java.awt.EventDispatchThread.run()V+9
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x05988c88 JavaThread "Thread-298" [_thread_in_native, id=1208]
  0x05993e50 JavaThread "Thread-296" [_thread_blocked, id=3088]
  0x05976298 JavaThread "Direct Clip" daemon [_thread_blocked, id=356]
=>0x02de2468 JavaThread "AWT-EventQueue-4" [_thread_in_native, id=4076]
  0x0641a890 JavaThread "thread applet-Slot515.class" [_thread_blocked, id=2844]
  0x0641ab50 JavaThread "Java Sound Event Dispatcher" daemon [_thread_blocked, id=2996]
  0x058d0ff8 JavaThread "TimerQueue" daemon [_thread_blocked, id=3752]
  0x058c4720 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=3780]
  0x058b6458 JavaThread "traceMsgQueueThread" daemon [_thread_blocked, id=3756]
  0x058b2670 JavaThread "AWT-Windows" daemon [_thread_in_native, id=1704]
  0x058b2240 JavaThread "AWT-Shutdown" [_thread_blocked, id=3720]
  0x058b11b8 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3740]
  0x02e8b208 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3728]
  0x02e89e30 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3712]
  0x02e89120 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3708]
  0x02e864e0 JavaThread "Finalizer" daemon [_thread_blocked, id=3700]
  0x02e85000 JavaThread "Reference Handler" daemon [_thread_blocked, id=3692]
  0x02de0e48 JavaThread "main" [_thread_in_native, id=3220]

Other Threads:
  0x02e82760 VMThread [id=3684]
  0x02e8c418 WatcherThread [id=3472]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 3072K, used 1539K [0x20a60000, 0x20db0000, 0x211c0000)
  eden space 2752K,  55% used [0x20a60000, 0x20be0c40, 0x20d10000)
  from space 320K,   0% used [0x20d60000, 0x20d60000, 0x20db0000)
  to   space 320K,   0% used [0x20d10000, 0x20d10000, 0x20d60000)
 tenured generation   total 39796K, used 23572K [0x211c0000, 0x2389d000, 0x26a60000)
   the space 39796K,  59% used [0x211c0000, 0x228c5198, 0x228c5200, 0x2389d000)
 compacting perm gen  total 8192K, used 1734K [0x26a60000, 0x27260000, 0x2aa60000)
   the space 8192K,  21% used [0x26a60000, 0x26c11a90, 0x26c11c00, 0x27260000)
    ro space 8192K,  62% used [0x2aa60000, 0x2af68018, 0x2af68200, 0x2b260000)
    rw space 12288K,  46% used [0x2b260000, 0x2b7ec620, 0x2b7ec800, 0x2be60000)

Dynamic libraries:
0x00400000 - 0x00419000 	C:\Program Files\Internet Explorer\iexplore.exe
0x77f50000 - 0x77ff7000 	C:\WINDOWS\System32\ntdll.dll
0x77e60000 - 0x77f46000 	C:\WINDOWS\system32\kernel32.dll
0x77c10000 - 0x77c63000 	C:\WINDOWS\system32\msvcrt.dll
0x77d40000 - 0x77dcd000 	C:\WINDOWS\system32\USER32.dll
0x7f000000 - 0x7f041000 	C:\WINDOWS\system32\GDI32.dll
0x77dd0000 - 0x77e5d000 	C:\WINDOWS\system32\ADVAPI32.dll
0x78000000 - 0x78087000 	C:\WINDOWS\system32\RPCRT4.dll
0x70a70000 - 0x70ad6000 	C:\WINDOWS\system32\SHLWAPI.dll
0x71700000 - 0x71849000 	C:\WINDOWS\System32\SHDOCVW.dll
0x71950000 - 0x71a35000 	C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.1643_x-ww_7c3a9bc6\comctl32.dll
0x7cd00000 - 0x7d4fa000 	C:\WINDOWS\system32\SHELL32.dll
0x77340000 - 0x773cb000 	C:\WINDOWS\system32\comctl32.dll
0x4fec0000 - 0x4fff6000 	C:\WINDOWS\system32\ole32.dll
0x5ad70000 - 0x5ada4000 	C:\WINDOWS\System32\uxtheme.dll
0x10000000 - 0x10006000 	C:\DOCUME~1\Owner\LOCALS~1\Temp\IadHide3.dll
0x74720000 - 0x74764000 	C:\WINDOWS\System32\MSCTF.dll
0x71500000 - 0x715fc000 	C:\WINDOWS\System32\BROWSEUI.dll
0x72430000 - 0x72442000 	C:\WINDOWS\System32\browselc.dll
0x75f40000 - 0x75f5f000 	C:\WINDOWS\system32\appHelp.dll
0x7c890000 - 0x7c911000 	C:\WINDOWS\System32\CLBCATQ.DLL
0x77120000 - 0x771ab000 	C:\WINDOWS\system32\OLEAUT32.dll
0x77050000 - 0x77115000 	C:\WINDOWS\System32\COMRes.dll
0x77c00000 - 0x77c07000 	C:\WINDOWS\system32\VERSION.dll
0x63000000 - 0x63096000 	C:\WINDOWS\system32\WININET.dll
0x762c0000 - 0x76348000 	C:\WINDOWS\system32\CRYPT32.dll
0x762a0000 - 0x762b0000 	C:\WINDOWS\system32\MSASN1.dll
0x76f90000 - 0x76fa0000 	C:\WINDOWS\System32\Secur32.dll
0x76620000 - 0x7666e000 	C:\WINDOWS\System32\cscui.dll
0x76600000 - 0x7661c000 	C:\WINDOWS\System32\CSCDLL.dll
0x76670000 - 0x76757000 	C:\WINDOWS\System32\SETUPAPI.dll
0x00c40000 - 0x00c48000 	C:\Program Files\Adobe\Acrobat 5.0\Reader\ActiveX\AcroIEHelper.ocx
0x75e90000 - 0x75f3d000 	C:\WINDOWS\System32\SXS.DLL
0x00ef0000 - 0x00fab000 	C:\Program Files\Spybot - Search & Destroy\SDHelper.dll
0x5edd0000 - 0x5edea000 	C:\WINDOWS\System32\olepro32.dll
0x010c0000 - 0x010d8000 	C:\Program Files\Norton AntiVirus\NavShExt.dll
0x76b20000 - 0x76b35000 	C:\WINDOWS\System32\ATL.DLL
0x7c080000 - 0x7c0f7000 	C:\WINDOWS\System32\MSVCP70.dll
0x7c000000 - 0x7c054000 	C:\WINDOWS\System32\MSVCR70.dll
0x1a400000 - 0x1a47d000 	C:\WINDOWS\system32\urlmon.dll
0x76170000 - 0x761f8000 	C:\WINDOWS\System32\shdoclc.dll
0x74770000 - 0x747ff000 	C:\WINDOWS\System32\mlang.dll
0x71ad0000 - 0x71ad8000 	C:\WINDOWS\System32\wsock32.dll
0x71ab0000 - 0x71ac5000 	C:\WINDOWS\System32\WS2_32.dll
0x71aa0000 - 0x71aa8000 	C:\WINDOWS\System32\WS2HELP.dll
0x71a50000 - 0x71a8b000 	C:\WINDOWS\system32\mswsock.dll
0x71a90000 - 0x71a98000 	C:\WINDOWS\System32\wshtcpip.dll
0x76ee0000 - 0x76f17000 	C:\WINDOWS\System32\RASAPI32.DLL
0x76e90000 - 0x76ea1000 	C:\WINDOWS\System32\rasman.dll
0x71c20000 - 0x71c6e000 	C:\WINDOWS\System32\NETAPI32.dll
0x76eb0000 - 0x76edb000 	C:\WINDOWS\System32\TAPI32.dll
0x76e80000 - 0x76e8d000 	C:\WINDOWS\System32\rtutils.dll
0x76b40000 - 0x76b6c000 	C:\WINDOWS\System32\WINMM.dll
0x75a70000 - 0x75b15000 	C:\WINDOWS\system32\USERENV.dll
0x015d0000 - 0x017d1000 	C:\WINDOWS\System32\msi.dll
0x605d0000 - 0x605d8000 	C:\WINDOWS\System32\mslbui.dll
0x0ffd0000 - 0x0fff3000 	C:\WINDOWS\System32\rsaenh.dll
0x76fc0000 - 0x76fc5000 	C:\WINDOWS\System32\rasadhlp.dll
0x76f20000 - 0x76f45000 	C:\WINDOWS\System32\DNSAPI.dll
0x76fb0000 - 0x76fb7000 	C:\WINDOWS\System32\winrnr.dll
0x76f60000 - 0x76f8c000 	C:\WINDOWS\system32\WLDAP32.dll
0x722b0000 - 0x722b5000 	C:\WINDOWS\System32\sensapi.dll
0x63580000 - 0x63834000 	C:\WINDOWS\System32\mshtml.dll
0x746f0000 - 0x74716000 	C:\WINDOWS\System32\msimtf.dll
0x5c2c0000 - 0x5c2fc000 	C:\WINDOWS\ime\sptip.dll
0x74c80000 - 0x74cac000 	C:\WINDOWS\System32\OLEACC.dll
0x55900000 - 0x55961000 	C:\WINDOWS\System32\MSVCP60.dll
0x022c0000 - 0x022d1000 	C:\WINDOWS\IME\SPGRMR.DLL
0x746c0000 - 0x746e7000 	C:\WINDOWS\System32\MSLS31.DLL
0x72d20000 - 0x72d29000 	C:\WINDOWS\System32\wdmaud.drv
0x72d10000 - 0x72d18000 	C:\WINDOWS\System32\msacm32.drv
0x77be0000 - 0x77bf4000 	C:\WINDOWS\System32\MSACM32.dll
0x77bd0000 - 0x77bd7000 	C:\WINDOWS\System32\midimap.dll
0x02390000 - 0x023ae000 	C:\Program Files\Common Files\Symantec Shared\Script Blocking\scrauth.dll
0x023c0000 - 0x023e0000 	C:\Program Files\Common Files\Symantec Shared\Script Blocking\ScrBlock.dll
0x76c30000 - 0x76c5b000 	C:\WINDOWS\System32\wintrust.dll
0x76c90000 - 0x76cb2000 	C:\WINDOWS\system32\IMAGEHLP.dll
0x6b700000 - 0x6b790000 	c:\windows\system32\jscript.dll
0x6d590000 - 0x6d5a1000 	C:\Program Files\Java\jre1.5.0_02\bin\npjpi150_02.dll
0x6d400000 - 0x6d417000 	C:\Program Files\Java\jre1.5.0_02\bin\jpiexp32.dll
0x6d450000 - 0x6d468000 	C:\Program Files\Java\jre1.5.0_02\bin\jpishare.dll
0x6d640000 - 0x6d7c5000 	C:\PROGRA~1\Java\JRE15~1.0_0\bin\client\jvm.dll
0x6d280000 - 0x6d288000 	C:\PROGRA~1\Java\JRE15~1.0_0\bin\hpi.dll
0x76bf0000 - 0x76bfb000 	C:\WINDOWS\System32\PSAPI.DLL
0x6d610000 - 0x6d61c000 	C:\PROGRA~1\Java\JRE15~1.0_0\bin\verify.dll
0x6d300000 - 0x6d31d000 	C:\PROGRA~1\Java\JRE15~1.0_0\bin\java.dll
0x6d630000 - 0x6d63f000 	C:\PROGRA~1\Java\JRE15~1.0_0\bin\zip.dll
0x6d000000 - 0x6d166000 	C:\Program Files\Java\jre1.5.0_02\bin\awt.dll
0x73000000 - 0x73023000 	C:\WINDOWS\System32\WINSPOOL.DRV
0x76390000 - 0x763ac000 	C:\WINDOWS\System32\IMM32.dll
0x51000000 - 0x51049000 	C:\WINDOWS\System32\ddraw.dll
0x73bc0000 - 0x73bc6000 	C:\WINDOWS\System32\DCIMAN32.dll
0x5c000000 - 0x5c0c8000 	C:\WINDOWS\System32\D3DIM700.DLL
0x6d240000 - 0x6d27d000 	C:\Program Files\Java\jre1.5.0_02\bin\fontmanager.dll
0x6d1f0000 - 0x6d203000 	C:\Program Files\Java\jre1.5.0_02\bin\deploy.dll
0x6d5d0000 - 0x6d5ed000 	C:\Program Files\Java\jre1.5.0_02\bin\RegUtils.dll
0x6d3e0000 - 0x6d3f4000 	C:\Program Files\Java\jre1.5.0_02\bin\jpicom32.dll
0x6d4c0000 - 0x6d4d3000 	C:\Program Files\Java\jre1.5.0_02\bin\net.dll
0x6d1c0000 - 0x6d1e3000 	C:\Program Files\Java\jre1.5.0_02\bin\dcpr.dll
0x6d470000 - 0x6d495000 	C:\Program Files\Java\jre1.5.0_02\bin\jsound.dll
0x6d4a0000 - 0x6d4a7000 	C:\Program Files\Java\jre1.5.0_02\bin\jsoundds.dll
0x51080000 - 0x510dd000 	C:\WINDOWS\System32\DSOUND.dll
0x6d4e0000 - 0x6d4e9000 	C:\Program Files\Java\jre1.5.0_02\bin\nio.dll
0x6d3c0000 - 0x6d3df000 	C:\Program Files\Java\jre1.5.0_02\bin\jpeg.dll
0x5ef80000 - 0x5ef84000 	C:\WINDOWS\System32\KsUser.dll

VM Arguments:
jvm_args: -Xbootclasspath/a:C:\PROGRA~1\Java\JRE15~1.0_0\lib\deploy.jar;C:\PROGRA~1\Java\JRE15~1.0_0\lib\plugin.jar -Xmx96m -Djavaplugin.maxHeapSize=96m -Xverify:remote -Djavaplugin.version=1.5.0_02 -Djavaplugin.nodotversion=150_02 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~1\Java\JRE15~1.0_0 -Djava.protocol.handler.pkgs=sun.plugin.net.protocol -Djavaplugin.vm.options=-Djava.class.path=C:\PROGRA~1\Java\JRE15~1.0_0\classes -Xbootclasspath/a:C:\PROGRA~1\Java\JRE15~1.0_0\lib\deploy.jar;C:\PROGRA~1\Java\JRE15~1.0_0\lib\plugin.jar -Xmx96m -Djavaplugin.maxHeapSize=96m -Xverify:remote -Djavaplugin.version=1.5.0_02 -Djavaplugin.nodotversion=150_02 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~1\Java\JRE15~1.0_0 -Djava.protocol.handler.pkgs=sun.plugin.net.protocol  vfprintf
java_command: <unknown>

Environment Variables:
CLASSPATH=C:\Program Files\PhotoDeluxe 2.0\AdobeConnectables
PATH=C:\PROGRA~1\Java\JRE15~1.0_0\bin;C:\Program Files\Internet Explorer;;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Python22;C:\Program Files\PC-Doctor\services;C:\Program Files\Sonic\MyDVD;;.
USERNAME=Owner
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7, GenuineIntel


---------------  S Y S T E M  ---------------

OS: Windows XP Build 2600 Service Pack 1

CPU:total 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht

Memory: 4k page, physical 252904k(15968k free), swap 619368k(219240k free)

vm_info: Java HotSpot(TM) Client VM (1.5.0_02-b09) for windows-x86, built on Mar  4 2005 01:53:53 by "java_re" with MS VC++ 6.0

Comments
EVALUATION We should be able to do this for Mustang.
2005-10-03