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: 4898868
Votes 0
Synopsis JVM crash in awt!NewHandler::handler
Category java:classes_awt
Reported Against 1.3.1_08
Release Fixed 1.3.1_10
State 10-Fix Delivered, bug
Priority: 2-High
Related Bugs
Submit Date 30-JUL-2003
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.
Work Around
N/A
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().
 xxxxx@xxxxx  2003-08-01
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang