JDK-6666947 : Getting core dump when calling System.exit() method
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2008-02-23
  • Updated: 2011-02-16
  • Resolved: 2008-04-18
Related Reports
Relates :  
Description
I have 2 classes. The purpose of my first class(TestCaseDriver.java) is to simply launch the second class(MenuRenderTest1.java). A user would then determine if MenuRenderTest1 is a pass or fail. The user would then click on a PASS or FAIL button in the TestCaseDriver, which will call System.exit(0). Thats basically it. The catch is, the MenuRenderTest1 has AWT components and TestCaseDriver has swing components. Other than that, there really is not much interaction between the two.

The problem is, if you click on the "ADD Menu Bar" button in MenuRenderTest1 and then click on the "PASS" button in TestCaseDriver a core dump occurs. This happens on 1.6.0-b99 and 6u10-b12, but it does not happen on the latest 1.7.0. Plus, this happens only on Vista and not RedHat or Solaris. In order to prevent the core dump from occuring in Vista only, in the TestCaseDriver I have to get a handle to the frame that is in MenuRenderTest1 and then specifcally call the dispose method.  However, shouldn't the System.exit() or some other method in the VM take care of this and do any other cleaning up if needed? If not, it still seems like we shouldn't be getting a core dump and maybe a exception instead.


Please see the files attached.

Comments
EVALUATION The crash happens only with JDK6 updates, both on WinXP and Vista, while running with JDK7 (b02 or later) produces no problem. The crash occurs in at least two different places in the native code, so I guess this is what 6480378 and all the related bugs are about. Many fixes in this area was integrated into 7.0-b02 and later builds, and I doubt they will be backported to 6u? updates...
18-04-2008

EVALUATION I'm closing this CR as not reproducible (in 7.0), and it can be reopened against 6u? update release with a proper escalation.
18-04-2008

EVALUATION As for this particular crash, it happens in awt.dll and should be handled by AWT team.
18-04-2008

EVALUATION Handling core dumps is described in Java Troubleshooting Guide: http://java.sun.com/j2se/1.5/pdf/jdk50_ts_guide.pdf
18-04-2008

EVALUATION Core dump: Reassigned to AWT team
10-04-2008