United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6447373 Make hs_err_pid*file say CRASHED IN NATIVE CODE OUTSIDE THE JDK if crash outside VM.
6447373 : Make hs_err_pid*file say CRASHED IN NATIVE CODE OUTSIDE THE JDK if crash outside VM.

Details
Type:
Enhancement
Submit Date:
2006-07-10
Status:
Closed
Updated Date:
2012-10-13
Project Name:
JDK
Resolved Date:
2007-04-24
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:
hs10

Related Reports
Backport:
Backport:

Sub Tasks

Description
When native code crashes in third party libraries, give a big message that the crash isn't in the hotspot VM/JDK in the hs_err_pid*.log file.  Eg, from bug 6444811 which is a libGL bug:


# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xe79f5ea8, pid=4393, tid=3
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-rc-b87 mixed mode)
# Problematic frame:
# C  [libGL.so.1+0x2bea8]
#
# THE ERROR IS CAUSED BY NATIVE CODE OUTSIDE THE JAVA RUNTIME ENVIRONMENT.
#

Except when the library is libc.so because that could be caused by the VM.  Not sure if there are other libraries to exclude for this message.

                                    

Comments
EVALUATION

Fixed 6447373: Make hs_err_pid*file say CRASHED IN NATIVE CODE OUTSIDE THE JDK if crash outside VM.

If the thread state is in native, the error is from a native library and
not our code.  An additional message is printed with the bug submit message
that says it's not our bug.  See vmError.cpp and see if you think this message
is strongly worded enough.

Webrev (containing this and related fixes):
http://jruntime.east/~coleenp/webrev/6447373
                                     
2007-03-23
EVALUATION

How about this message?

# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
#
                                     
2007-01-31



Hardware and Software, Engineered to Work Together