United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4898868 JVM crash in awt!NewHandler::handler
JDK-4898868 : JVM crash in awt!NewHandler::handler

Details
Type:
Bug
Submit Date:
2003-07-30
Status:
Resolved
Updated Date:
2003-11-11
Project Name:
JDK
Resolved Date:
2003-10-15
Component:
client-libs
OS:
windows_2000
Sub-Component:
java.awt
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
1.3.1_08
Fixed Versions:
1.3.1_10 (10)

Related Reports
Backport:
Backport:
Backport:

Sub Tasks

Description
The following crash occurs in a production environment with the 1.3.1_08 Client JVM on Windows 2000.   The application uses RMI and runs within JBoss.  When the app server starts up, the object is instantiated and bound to the JNDI tree.  Other applications look up this RMI server to invoke its remote methods.  The crash only affects the JVM which is running the RMI server.  The crash occurred almost every day at one particular customer site.  

The crash dump and WinDbg output (with awt.pdb in the symbol file path) is available at /net/dtstest04.east/space/kim/822843/sakonnet_dump.dmp and windbg.txt.  With -XX:+ShowMessageBoxOnError, no dialog box appears (the debugger is lauched right away) so no Java thread dump is possible.  There is also no Hotspot error log generated.

The application had a small GUI, which has been removed, and the crash does not seem to happen as often.  Also, the crash does not occur when the RMI application is standalone, not running within JBoss.

Because the problem cannot be reproduced in a development environment, troubleshooting is limited.  For instance, -server and -Xint cannot be tested.  There is no native code in the application.  Upgrade to 1.4.x is impossible because of JBoss complications.

A quick analysis of the crash dump from CTE showed that the problem may be due to a null JNIEnv in line 77 of awt_new.cpp.

                                    

Comments
EVALUATION

I've used windbg to inspect the following crash dump:
/net/dtstest04.east/space/kim/822843/sakonnet_dump.dmp
Call stack shows:
awt!NewHandler::init+0x95 [../../../src/win32/native/sun/windows/awt_new.cpp @ 66]
WARNING: Stack unwind information not available. Following frames may be wrong.
msvcrt!callnewh+0xf
jvm!JVM_FindSignal+0xf108
-----------
Based on the source code in the workspace, awt_new.cpp line 66 is the following line in NewHandler::init()
_set_new_handler((_PNH)NewHandler::handler);
So it likely crashed inside NewHandler::handler().
###@###.### 2003-08-01
                                     
2003-08-01
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
1.3.1_10
1.4.1_07
1.4.2_04
generic
tiger
tiger-beta

FIXED IN:
1.3.1_10
1.4.1_07
1.4.2_04
tiger
tiger-beta

INTEGRATED IN:
1.3.1_10
1.4.1_07
1.4.2_04
tiger-b26
tiger-beta


                                     
2004-06-14



Hardware and Software, Engineered to Work Together