Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6227246
Votes 0
Synopsis Improve Windows unhandled structured exception reporting
Category hotspot:runtime_system
Reported Against
Release Fixed hs10(b12), 6u4(b03) (Bug ID:2171781) , 7(b12) (Bug ID:2176881)
State 10-Fix Delivered, request for enhancement
Priority: 4-Low
Related Bugs 6394477 , 6794885
Submit Date 09-FEB-2005
Description
Hotspot registers structured exception handlers than handle both expected internally-used exceptions and unexpected exceptions.  One flavor of unexpected exception are those thrown by external libraries called via Java code such as customer native libraries or Windows system libraries.

In a non-Java application, when such an unexpected event occurs and the exception is not handled by the application, Windows displays the "Application Error" message box with a detailed decription of the exception.

In Hotspot, when an unhandled exception is encountered, we do not unwind to the Windows handler, but instead issue our own error report and terminate the process.  In some cases we may not provide as much error information as the Windows handler would have.  It should be investigated whether this situation can be improved.



  xxxxx@xxxxx   2005-2-09 15:19:43 GMT
Work Around
N/A
Evaluation
Iimplemented Windows-only flag -XX+UseOSErrorReporting which allows 
us instead of running of our crash handler and dying, forward exception handling 
to the OS in case of actual crash.
Posted Date : 2005-11-25 10:29:45.0

Some of the changes to this fix weren't integrated or were merged out by mistake.
Posted Date : 2006-08-07 20:49:00.0

Fixed 6227246: Improve Windows unhandled structured exception reporting

This was fixed by adding a flag -XX:+UseOSErrorReporting which defaults to
false for the 6.0 release.  The fix in one of the files os_win32.cpp was
somehow not included the sources so the WER was never enabled.

The original change is modified to print the error reporting dialog for
guarantees and assertions as well and also prints out the hs_err file and
information to the screen before the WER dialog window is shown.

In the long term we want to get rid of UseOSErrorReporting and use WER
all the time.  Improvements are planned for this in dolphin under
bug number 6394477.  In this putback, I added an API for finding the
hs_err_pid file for use with WER.

Fix verified (y/n): y
Verified by: sent (1) error report to Microsoft using WER (more with later WER
work)
Also added bogus asserts/crashes in different places to verify the message box
(bogus crashes/asserts subsequently removed).

Webrev (includes this and other related fixes):
http://jruntime.east/~coleenp/webrev/6227246
Posted Date : 2007-03-23 19:36:58.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang