Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6666947

Getting core dump when calling System.exit() method

XMLWordPrintable

    • x86
    • windows_vista

      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.

            art Artem Ananiev (Inactive)
            sjchan Steven Chan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: