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

Thread crashes when System.exit(0) is called in Headless Mode - Win32 Only

    Details

    • Subcomponent:
    • Resolved In Build:
      beta2
    • CPU:
      x86
    • OS:
      windows_nt
    • Verification:
      Verified

      Description

      Headless Testcases crashes after completion of the Testing in Win32

      This Testcase use two threads. In one thread, Tests are executed. The other Thread monitors the first thread. The second thread waits till the testing thread to die, using join().

      Once the Testing thread is completed (testing is over), the second thread calls System.exit(0) to stop the testing.

      When System.exit(0) is called the Testcase crashes giving "EXCEPTION_ACCESS_VIOLATION"

      Attached here with is the log files, report, sample code (testcase for one scenario)

      The complete Testsuite can be got from
      /net/sqesvr/export/awt/awt_ws/Headless/BAT

      Headless Testcases crashes for the following scenarios

      01) javax.swing.JButton
      02) javax.swing.JCheckBox
      03) javax.swing.JDesktopPane
      04) javax.swing.JFileChooser
      05) javax.swing.JMenuItem
      06) javax.swing.JPanel
      07) javax.swing.JRadioButton
      08) javax.swing.JScrollBar
      09) javax.swing.JSlider
      10) javax.swing.JSpinner
      11) javax.swing.JSplitPane
      12) javax.swing.JTabbedPane
      13) javax.swing.JTextArea
      14) javax.swing.JTextField
      15) javax.swing.JToggleButton
      16) javax.swing.JToolBar$Separator

      The Sample code is for scenario -> javax.swing.JButton

      Crash Log
      =========

      An unexpected exception has been detected in native code outside the VM.
      Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D08D980
      Function=AWTIsHeadless+0xB14
      Library=J:\jdk1.4\win\jre\bin\awt.dll

      Current Java thread:
      at sun.awt.windows.WToolkit.eventLoop(Native Method)
      at sun.awt.windows.WToolkit.run(WToolkit.java:215)
      at java.lang.Thread.run(Thread.java:579)

      Dynamic libraries:
      0x00400000 - 0x00405000 j:\jdk1.4\win\bin\java.exe
      0x77F60000 - 0x77FBE000 C:\WINNT\System32\ntdll.dll
      0x77DC0000 - 0x77DFF000 C:\WINNT\system32\ADVAPI32.dll
      0x77F00000 - 0x77F5E000 C:\WINNT\system32\KERNEL32.dll
      0x77E70000 - 0x77EC5000 C:\WINNT\system32\USER32.dll
      0x77ED0000 - 0x77EFC000 C:\WINNT\system32\GDI32.dll
      0x77E10000 - 0x77E67000 C:\WINNT\system32\RPCRT4.dll
      0x78000000 - 0x78044000 C:\WINNT\system32\MSVCRT.dll
      0x6D400000 - 0x6D503000 j:\jdk1.4\win\jre\bin\hotspot\jvm.dll
      0x77FD0000 - 0x77FFA000 C:\WINNT\System32\WINMM.dll
      0x6BD00000 - 0x6BD0D000 C:\WINNT\System32\es1371.dll
      0x77A90000 - 0x77A9B000 C:\WINNT\system32\VERSION.dll
      0x77C40000 - 0x77D7C000 C:\WINNT\system32\SHELL32.dll
      0x71700000 - 0x7178A000 C:\WINNT\system32\COMCTL32.dll
      0x779C0000 - 0x779C8000 C:\WINNT\system32\LZ32.dll
      0x10000000 - 0x10005000 C:\WINNT\System32\enres32.dll
      0x6D200000 - 0x6D207000 j:\jdk1.4\win\jre\bin\hpi.dll
      0x6D3D0000 - 0x6D3DD000 j:\jdk1.4\win\jre\bin\verify.dll
      0x6D240000 - 0x6D255000 j:\jdk1.4\win\jre\bin\java.dll
      0x6D3F0000 - 0x6D3FD000 j:\jdk1.4\win\jre\bin\zip.dll
      0x6D010000 - 0x6D0FB000 J:\jdk1.4\win\jre\bin\awt.dll
      0x77C00000 - 0x77C18000 C:\WINNT\System32\WINSPOOL.DRV
      0x76AB0000 - 0x76AB5000 C:\WINNT\System32\IMM32.dll
      0x77B20000 - 0x77BD7000 C:\WINNT\system32\ole32.dll
      0x6D1B0000 - 0x6D1FF000 J:\jdk1.4\win\jre\bin\fontmanager.dll
      0x76AC0000 - 0x76ADD000 C:\WINNT\System32\imagehlp.dll
      0x731B0000 - 0x731BA000 C:\WINNT\System32\PSAPI.DLL

      Local Time = Wed May 02 13:56:01 2001
      Elapsed Time = 36
      #
      # The exception above was detected in native code outside the VM
      #
      # Java VM: Java HotSpot(TM) Client VM (1.4.0-beta-b63 mixed mode)
      #

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mmartaksunw Michael Martak (Inactive)
                Reporter:
                rpullanisunw Rakesh Pullanikkad (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: