United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6387273 JDialog makes browsers crash in mustang b59
JDK-6387273 : JDialog makes browsers crash in mustang b59

Details
Type:
Bug
Submit Date:
2006-02-17
Status:
Closed
Updated Date:
2011-05-18
Project Name:
JDK
Resolved Date:
2011-05-18
Component:
client-libs
OS:
windows_xp
Sub-Component:
java.awt
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Relates:
Relates:
Relates:
Relates:
Relates:
Relates:

Sub Tasks

Description
compile and run attached LeakApplet.java in firefox or IE, mustang b59 or b59g (beta), click start button, a dialog is opened and closed repeatedly, sometimes browser crashes immediately, sometimes it need you interact with browser such as move the browser window around, resize it , click menu, etc before it crashes.  firefox need less time to crash than IE. When browsers crash, a hs_err_pid*.log is created, see below ( created for Firefox, it's similar to IE)

#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d907536, pid=420, tid=1552
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-ea-b58 mixed mode)
# Problematic frame:
# V  [jvm.dll+0xc7536]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

---------------  T H R E A D  ---------------

Current thread (0x0e9d0c00):  JavaThread "AWT-Windows" daemon [_thread_in_vm, id=1552]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000000

Registers:
EAX=0x00000000, EBX=0x6d14d0a8, ECX=0x0e9d0c00, EDX=0x6da12cc0
ESP=0x0f26f6ac, EBP=0x6d14d094, ESI=0x0e9d0ce4, EDI=0x0e9d0c00
EIP=0x6d907536, EFLAGS=0x00010246

Top of Stack: (sp=0x0f26f6ac)
0x0f26f6ac:   00000000 0e9d0ce4 6d14d094 6d14d0a8
0x0f26f6bc:   0e9d0c00 0e9d12c4 0000012a 6da12cc0
0x0f26f6cc:   6d3863f7 0e9d0ce4 00000000 0fd0cb10
0x0f26f6dc:   0e9d0ce4 000000cf 00000000 00000000
0x0f26f6ec:   044a73f8 6d3877f3 0e9d0ce4 00000000
0x0f26f6fc:   00000000 6d15041c 6d14d094 0f26f724
0x0f26f70c:   6d1168d1 0e9d0ce4 00000000 00000000
0x0f26f71c:   6d15041c 6d14d094 00000000 00000000 

Instructions: (pc=0x6d907536)
0x6d907526:   c4 08 57 8d 4c 24 14 e8 be f2 ff ff 8b 44 24 28
0x6d907536:   8b 08 8b 51 04 8b 42 3c 50 56 e8 5b 24 02 00 8b 


Stack: [0x0f170000,0x0f270000),  sp=0x0f26f6ac,  free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0xc7536]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  sun.awt.windows.WToolkit.eventLoop()V+0
j  sun.awt.windows.WToolkit.run()V+69
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x0fbbdc00 JavaThread "AWT-EventQueue-2" [_thread_blocked, id=3668]
  0x0ea2bb00 JavaThread "TimerQueue" daemon [_thread_blocked, id=2084]
  0x0fbfdd00 JavaThread "thread applet-LeakApplet.class" [_thread_blocked, id=3620]
  0x0ea2b500 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=1100]
  0x0e9f7000 JavaThread "CacheCleanUpThread" daemon [_thread_blocked, id=2320]
  0x0e9df600 JavaThread "traceMsgQueueThread" daemon [_thread_blocked, id=3732]
=>0x0e9d0c00 JavaThread "AWT-Windows" daemon [_thread_in_vm, id=1552]
  0x0e9d0800 JavaThread "AWT-Shutdown" [_thread_blocked, id=3032]
  0x0e876e00 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=848]
  0x0e52f800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=1836]
  0x0e52a900 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2388]
  0x0e830700 JavaThread "Attach Listener" daemon [_thread_blocked, id=1684]
  0x0e52d800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1696]
  0x0e519a00 JavaThread "Finalizer" daemon [_thread_blocked, id=2860]
  0x0e515800 JavaThread "Reference Handler" daemon [_thread_blocked, id=604]
  0x02229800 JavaThread "main" [_thread_in_native, id=2852]

Other Threads:
  0x0e511200 VMThread [id=2820]
  0x0e831b00 WatcherThread [id=2612]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 576K, used 556K [0x04430000, 0x044d0000, 0x04b90000)
  eden space 512K,  96% used [0x04430000, 0x044ab330, 0x044b0000)
  from space 64K, 100% used [0x044b0000, 0x044c0000, 0x044c0000)
  to   space 64K,   0% used [0x044c0000, 0x044c0000, 0x044d0000)
 tenured generation   total 1408K, used 908K [0x04b90000, 0x04cf0000, 0x0a430000)
   the space 1408K,  64% used [0x04b90000, 0x04c73300, 0x04c73400, 0x04cf0000)
 compacting perm gen  total 12288K, used 9086K [0x0a430000, 0x0b030000, 0x0e430000)
   the space 12288K,  73% used [0x0a430000, 0x0ad0fae0, 0x0ad0fc00, 0x0b030000)
No shared spaces configured.

Dynamic libraries:
0x00400000 - 0x00aec000 	C:\PROGRA~1\MOZILL~1\FIREFOX.EXE
0x7c920000 - 0x7c9b4000 	C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c91c000 	C:\WINDOWS\system32\kernel32.dll
0x60080000 - 0x600e9000 	C:\PROGRA~1\MOZILL~1\js3250.dll
0x60140000 - 0x60167000 	C:\PROGRA~1\MOZILL~1\nspr4.dll
0x77da0000 - 0x77e49000 	C:\WINDOWS\system32\ADVAPI32.dll
0x77e50000 - 0x77ee1000 	C:\WINDOWS\system32\RPCRT4.dll
0x71a40000 - 0x71a4b000 	C:\WINDOWS\system32\WSOCK32.dll
0x71a20000 - 0x71a37000 	C:\WINDOWS\system32\WS2_32.dll
0x77be0000 - 0x77c38000 	C:\WINDOWS\system32\msvcrt.dll
0x71a10000 - 0x71a18000 	C:\WINDOWS\system32\WS2HELP.dll
0x60310000 - 0x60375000 	C:\PROGRA~1\MOZILL~1\xpcom_core.dll
0x60210000 - 0x60217000 	C:\PROGRA~1\MOZILL~1\plc4.dll
0x60220000 - 0x60226000 	C:\PROGRA~1\MOZILL~1\plds4.dll
0x773a0000 - 0x77b91000 	C:\WINDOWS\system32\SHELL32.dll
0x77ef0000 - 0x77f36000 	C:\WINDOWS\system32\GDI32.dll
0x77d10000 - 0x77d9f000 	C:\WINDOWS\system32\USER32.dll
0x77f40000 - 0x77fb6000 	C:\WINDOWS\system32\SHLWAPI.dll
0x76990000 - 0x76acc000 	C:\WINDOWS\system32\ole32.dll
0x77bd0000 - 0x77bd8000 	C:\WINDOWS\system32\VERSION.dll
0x60240000 - 0x6025a000 	C:\PROGRA~1\MOZILL~1\smime3.dll
0x60170000 - 0x601c9000 	C:\PROGRA~1\MOZILL~1\nss3.dll
0x60260000 - 0x602ba000 	C:\PROGRA~1\MOZILL~1\softokn3.dll
0x602c0000 - 0x602db000 	C:\PROGRA~1\MOZILL~1\ssl3.dll
0x602f0000 - 0x60304000 	C:\PROGRA~1\MOZILL~1\xpcom_compat.dll
0x76320000 - 0x76367000 	C:\WINDOWS\system32\comdlg32.dll
0x77180000 - 0x77282000 	C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\COMCTL32.dll
0x770f0000 - 0x7717c000 	C:\WINDOWS\system32\OLEAUT32.dll
0x72f70000 - 0x72f96000 	C:\WINDOWS\system32\WINSPOOL.DRV
0x76300000 - 0x7631d000 	C:\WINDOWS\system32\IMM32.DLL
0x62c20000 - 0x62c29000 	C:\WINDOWS\system32\LPK.DLL
0x73fa0000 - 0x7400b000 	C:\WINDOWS\system32\USP10.dll
0x5adc0000 - 0x5adf7000 	C:\WINDOWS\system32\uxtheme.dll
0x74680000 - 0x746cb000 	C:\WINDOWS\system32\MSCTF.dll
0x73640000 - 0x7366e000 	C:\WINDOWS\system32\msctfime.ime
0x76060000 - 0x761b6000 	C:\WINDOWS\system32\SETUPAPI.dll
0x76fa0000 - 0x7701f000 	C:\WINDOWS\system32\CLBCATQ.DLL
0x77020000 - 0x770ba000 	C:\WINDOWS\system32\COMRes.dll
0x719c0000 - 0x719fe000 	C:\WINDOWS\system32\mswsock.dll
0x60fd0000 - 0x61025000 	C:\WINDOWS\system32\hnetcfg.dll
0x71a00000 - 0x71a08000 	C:\WINDOWS\System32\wshtcpip.dll
0x60010000 - 0x60022000 	C:\PROGRA~1\MOZILL~1\components\jar50.dll
0x10000000 - 0x10006000 	C:\PROGRA~1\MOZILL~1\extensions\###@###.###\components\qfaservices.dll
0x01620000 - 0x01645000 	C:\PROGRA~1\MOZILL~1\extensions\###@###.###\components\FULLSOFT.DLL
0x74650000 - 0x7467a000 	C:\WINDOWS\System32\Msimtf.dll
0x20000000 - 0x20549000 	C:\WINDOWS\system32\xpsp2res.dll
0x762f0000 - 0x762f5000 	C:\WINDOWS\system32\msimg32.dll
0x6d6e0000 - 0x6d6f6000 	C:\Program Files\Java\jre1.6.0\bin\npoji610.dll
0x7c340000 - 0x7c396000 	C:\WINDOWS\system32\MSVCR71.dll
0x6d490000 - 0x6d4a0000 	C:\Program Files\Java\jre1.6.0\bin\jpioji.dll
0x6d470000 - 0x6d488000 	C:\Program Files\Java\jre1.6.0\bin\jpinscp.dll
0x6d4a0000 - 0x6d4c0000 	C:\Program Files\Java\jre1.6.0\bin\jpishare.dll
0x6d840000 - 0x6da69000 	C:\PROGRA~1\Java\JRE16~1.0\bin\client\jvm.dll
0x76b10000 - 0x76b3a000 	C:\WINDOWS\system32\WINMM.dll
0x7c3a0000 - 0x7c41b000 	C:\WINDOWS\system32\MSVCP71.dll
0x6d2f0000 - 0x6d2f8000 	C:\PROGRA~1\Java\JRE16~1.0\bin\hpi.dll
0x76bc0000 - 0x76bcb000 	C:\WINDOWS\system32\PSAPI.DLL
0x6d7f0000 - 0x6d7fc000 	C:\PROGRA~1\Java\JRE16~1.0\bin\verify.dll
0x6d380000 - 0x6d3a1000 	C:\PROGRA~1\Java\JRE16~1.0\bin\java.dll
0x6d830000 - 0x6d83f000 	C:\PROGRA~1\Java\JRE16~1.0\bin\zip.dll
0x6d000000 - 0x6d1ba000 	C:\Program Files\Java\jre1.6.0\bin\awt.dll
0x736d0000 - 0x73719000 	C:\WINDOWS\system32\ddraw.dll
0x73b30000 - 0x73b36000 	C:\WINDOWS\system32\DCIMAN32.dll
0x738b0000 - 0x73980000 	C:\WINDOWS\system32\D3DIM700.DLL
0x6d290000 - 0x6d2e2000 	C:\Program Files\Java\jre1.6.0\bin\fontmanager.dll
0x6d240000 - 0x6d24f000 	C:\Program Files\Java\jre1.6.0\bin\deploy.dll
0x76680000 - 0x76722000 	C:\WINDOWS\system32\WININET.dll
0x765e0000 - 0x76672000 	C:\WINDOWS\system32\CRYPT32.dll
0x76db0000 - 0x76dc2000 	C:\WINDOWS\system32\MSASN1.dll
0x75c60000 - 0x75cfc000 	C:\WINDOWS\system32\urlmon.dll
0x6d710000 - 0x6d743000 	C:\Program Files\Java\jre1.6.0\bin\regutils.dll
0x7c9c0000 - 0x7cc72000 	C:\WINDOWS\system32\msi.dll
0x759d0000 - 0x75a7e000 	C:\WINDOWS\system32\USERENV.dll
0x77fc0000 - 0x77fd1000 	C:\WINDOWS\system32\Secur32.dll
0x76ef0000 - 0x76f17000 	C:\WINDOWS\system32\DNSAPI.dll
0x76d30000 - 0x76d48000 	C:\WINDOWS\system32\iphlpapi.dll
0x76f80000 - 0x76f88000 	C:\WINDOWS\System32\winrnr.dll
0x76f30000 - 0x76f5c000 	C:\WINDOWS\system32\WLDAP32.dll
0x76f90000 - 0x76f96000 	C:\WINDOWS\system32\rasadhlp.dll
0x6d5f0000 - 0x6d603000 	C:\Program Files\Java\jre1.6.0\bin\net.dll
0x6d610000 - 0x6d619000 	C:\Program Files\Java\jre1.6.0\bin\nio.dll
0x76d70000 - 0x76d92000 	C:\WINDOWS\system32\appHelp.dll
0x76590000 - 0x765de000 	C:\WINDOWS\System32\cscui.dll
0x76570000 - 0x7658c000 	C:\WINDOWS\System32\CSCDLL.dll
0x18cf0000 - 0x18e02000 	C:\Program Files\Apoint\Apoint.DLL
0x0f6f0000 - 0x0f6ff000 	C:\WINDOWS\system32\Vxdif.dll

VM Arguments:
jvm_args: -Xbootclasspath/a:C:\PROGRA~1\Java\JRE16~1.0\lib\deploy.jar;C:\PROGRA~1\Java\JRE16~1.0\lib\plugin.jar -Xmx96m -Djavaplugin.maxHeapSize=96m -Xverify:remote -Djavaplugin.version=1.6.0 -Djavaplugin.nodotversion=160 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~1\Java\JRE16~1.0 -Djavaplugin.vm.options=-Djava.class.path=C:\PROGRA~1\Java\JRE16~1.0\classes -Xbootclasspath/a:C:\PROGRA~1\Java\JRE16~1.0\lib\deploy.jar;C:\PROGRA~1\Java\JRE16~1.0\lib\plugin.jar -Xmx96m -Djavaplugin.maxHeapSize=96m -Xverify:remote -Djavaplugin.version=1.6.0 -Djavaplugin.nodotversion=160 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~1\Java\JRE16~1.0 
java_command: <unknown>
Launcher Type: generic

Environment Variables:
CLASSPATH=d:\mustang\output\lib\ext\QTJava.zip
PATH=C:\PROGRA~1\Java\JRE16~1.0\bin;C:\Program Files\Mozilla Firefox\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;;.
USERNAME=moz
DISPLAY=:0.0
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 9 Stepping 5, GenuineIntel



---------------  S Y S T E M  ---------------

OS: Windows XP Build 2600 Service Pack 2

CPU:total 1 family 6, cmov, cx8, fxsr, mmx

Memory: 4k page, physical 260312k(74364k free), swap 1032384k(737084k free)

vm_info: Java HotSpot(TM) Client VM (1.6.0-ea-b58) for windows-x86, built on Oct 27 2005 00:30:57 by "java_re" with unknown MS VC++:1310



If I replace JDialog with JFrame in Leak.java,  it doesn't crash.  Or if replace rt.jar of b59 with b58,  browser also doesn't crash.
sorry, the above log file is a little misleading.  it's created in a modified b58 when I copied rt.jar from b59 to b58.  the log file  created exactly by b59 is below:
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d8fc276, pid=1824, tid=2484
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-beta-b59 mixed mode, sharing)
# Problematic frame:
# V  [jvm.dll+0xbc276]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

---------------  T H R E A D  ---------------

Current thread (0x04c98900):  JavaThread "AWT-Windows" daemon [_thread_in_vm, id=2484]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000000

Registers:
EAX=0x00000000, EBX=0x6d14d0a8, ECX=0x04c98900, EDX=0x6da121d0
ESP=0x0d56f8ac, EBP=0x6d14d094, ESI=0x04c989e4, EDI=0x04c98900
EIP=0x6d8fc276, EFLAGS=0x00010246

Top of Stack: (sp=0x0d56f8ac)
0x0d56f8ac:   00000000 04c989e4 6d14d094 6d14d0a8
0x0d56f8bc:   04c98900 04c98eec 0000012a 6da121d0
0x0d56f8cc:   6d3863d7 04c989e4 00000000 0ddb8450
0x0d56f8dc:   04c989e4 000000cf 00000000 00000000
0x0d56f8ec:   209cef38 6d3877d3 04c989e4 00000000
0x0d56f8fc:   00000000 6d15041c 6d14d094 0d56f924
0x0d56f90c:   6d1168d1 04c989e4 00000000 00000000
0x0d56f91c:   6d15041c 6d14d094 00000000 00000000 

Instructions: (pc=0x6d8fc276)
0x6d8fc266:   c4 08 57 8d 4c 24 14 e8 be f2 ff ff 8b 44 24 28
0x6d8fc276:   8b 08 8b 51 04 8b 42 3c 50 56 e8 8b 24 02 00 8b 


Stack: [0x0d470000,0x0d570000),  sp=0x0d56f8ac,  free space=1022k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0xbc276]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  sun.awt.windows.WToolkit.eventLoop()V+0
j  sun.awt.windows.WToolkit.run()V+69
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x04b5d400 JavaThread "AWT-EventQueue-2" [_thread_blocked, id=1760]
  0x0dd3e400 JavaThread "TimerQueue" daemon [_thread_blocked, id=1768]
  0x0dd22100 JavaThread "thread applet-LeakApplet.class" [_thread_blocked, id=1788]
  0x04b5cb00 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=2468]
  0x04cc1500 JavaThread "AWT-Shutdown" [_thread_blocked, id=2520]
  0x04c98300 JavaThread "CacheCleanUpThread" daemon [_thread_blocked, id=2492]
  0x04ca5c00 JavaThread "traceMsgQueueThread" daemon [_thread_blocked, id=2488]
=>0x04c98900 JavaThread "AWT-Windows" daemon [_thread_in_vm, id=2484]
  0x04c86900 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2472]
  0x02799200 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2460]
  0x02796c00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2388]
  0x02795c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=2400]
  0x04b40d00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2368]
  0x02751300 JavaThread "Finalizer" daemon [_thread_blocked, id=2208]
  0x02750700 JavaThread "Reference Handler" daemon [_thread_blocked, id=2236]
  0x02529800 JavaThread "main" [_thread_in_native, id=2172]

Other Threads:
  0x0274f700 VMThread [id=2128]
  0x0279a500 WatcherThread [id=996]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 576K, used 235K [0x209b0000, 0x20a50000, 0x21110000)
  eden space 512K,  33% used [0x209b0000, 0x209dada0, 0x20a30000)
  from space 64K, 100% used [0x20a40000, 0x20a50000, 0x20a50000)
  to   space 64K,   0% used [0x20a30000, 0x20a30000, 0x20a40000)
 tenured generation   total 2992K, used 2407K [0x21110000, 0x213fc000, 0x269b0000)
   the space 2992K,  80% used [0x21110000, 0x21369dd8, 0x21369e00, 0x213fc000)
 compacting perm gen  total 12288K, used 2120K [0x269b0000, 0x275b0000, 0x2a9b0000)
   the space 12288K,  17% used [0x269b0000, 0x26bc20f8, 0x26bc2200, 0x275b0000)
    ro space 8192K,  62% used [0x2a9b0000, 0x2aeb7b90, 0x2aeb7c00, 0x2b1b0000)
    rw space 12288K,  55% used [0x2b1b0000, 0x2b864140, 0x2b864200, 0x2bdb0000)

Dynamic libraries:
0x00400000 - 0x00aec000 	C:\PROGRA~1\MOZILL~1\FIREFOX.EXE
0x7c920000 - 0x7c9b4000 	C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c91c000 	C:\WINDOWS\system32\kernel32.dll
0x60080000 - 0x600e9000 	C:\PROGRA~1\MOZILL~1\js3250.dll
0x60140000 - 0x60167000 	C:\PROGRA~1\MOZILL~1\nspr4.dll
0x77da0000 - 0x77e49000 	C:\WINDOWS\system32\ADVAPI32.dll
0x77e50000 - 0x77ee1000 	C:\WINDOWS\system32\RPCRT4.dll
0x71a40000 - 0x71a4b000 	C:\WINDOWS\system32\WSOCK32.dll
0x71a20000 - 0x71a37000 	C:\WINDOWS\system32\WS2_32.dll
0x77be0000 - 0x77c38000 	C:\WINDOWS\system32\msvcrt.dll
0x71a10000 - 0x71a18000 	C:\WINDOWS\system32\WS2HELP.dll
0x60310000 - 0x60375000 	C:\PROGRA~1\MOZILL~1\xpcom_core.dll
0x60210000 - 0x60217000 	C:\PROGRA~1\MOZILL~1\plc4.dll
0x60220000 - 0x60226000 	C:\PROGRA~1\MOZILL~1\plds4.dll
0x773a0000 - 0x77b91000 	C:\WINDOWS\system32\SHELL32.dll
0x77ef0000 - 0x77f36000 	C:\WINDOWS\system32\GDI32.dll
0x77d10000 - 0x77d9f000 	C:\WINDOWS\system32\USER32.dll
0x77f40000 - 0x77fb6000 	C:\WINDOWS\system32\SHLWAPI.dll
0x76990000 - 0x76acc000 	C:\WINDOWS\system32\ole32.dll
0x77bd0000 - 0x77bd8000 	C:\WINDOWS\system32\VERSION.dll
0x60240000 - 0x6025a000 	C:\PROGRA~1\MOZILL~1\smime3.dll
0x60170000 - 0x601c9000 	C:\PROGRA~1\MOZILL~1\nss3.dll
0x60260000 - 0x602ba000 	C:\PROGRA~1\MOZILL~1\softokn3.dll
0x602c0000 - 0x602db000 	C:\PROGRA~1\MOZILL~1\ssl3.dll
0x602f0000 - 0x60304000 	C:\PROGRA~1\MOZILL~1\xpcom_compat.dll
0x76320000 - 0x76367000 	C:\WINDOWS\system32\comdlg32.dll
0x77180000 - 0x77282000 	C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\COMCTL32.dll
0x770f0000 - 0x7717c000 	C:\WINDOWS\system32\OLEAUT32.dll
0x72f70000 - 0x72f96000 	C:\WINDOWS\system32\WINSPOOL.DRV
0x76300000 - 0x7631d000 	C:\WINDOWS\system32\IMM32.DLL
0x62c20000 - 0x62c29000 	C:\WINDOWS\system32\LPK.DLL
0x73fa0000 - 0x7400b000 	C:\WINDOWS\system32\USP10.dll
0x5adc0000 - 0x5adf7000 	C:\WINDOWS\system32\uxtheme.dll
0x74680000 - 0x746cb000 	C:\WINDOWS\system32\MSCTF.dll
0x73640000 - 0x7366e000 	C:\WINDOWS\system32\msctfime.ime
0x76060000 - 0x761b6000 	C:\WINDOWS\system32\SETUPAPI.dll
0x76fa0000 - 0x7701f000 	C:\WINDOWS\system32\CLBCATQ.DLL
0x77020000 - 0x770ba000 	C:\WINDOWS\system32\COMRes.dll
0x719c0000 - 0x719fe000 	C:\WINDOWS\system32\mswsock.dll
0x60fd0000 - 0x61025000 	C:\WINDOWS\system32\hnetcfg.dll
0x71a00000 - 0x71a08000 	C:\WINDOWS\System32\wshtcpip.dll
0x60010000 - 0x60022000 	C:\PROGRA~1\MOZILL~1\components\jar50.dll
0x10000000 - 0x10006000 	C:\PROGRA~1\MOZILL~1\extensions\###@###.###\components\qfaservices.dll
0x01620000 - 0x01645000 	C:\PROGRA~1\MOZILL~1\extensions\###@###.###\components\FULLSOFT.DLL
0x74650000 - 0x7467a000 	C:\WINDOWS\System32\Msimtf.dll
0x20000000 - 0x20549000 	C:\WINDOWS\system32\xpsp2res.dll
0x60230000 - 0x60238000 	C:\PROGRA~1\MOZILL~1\plugins\npnul32.dll
0x762f0000 - 0x762f5000 	C:\WINDOWS\system32\msimg32.dll
0x6d6e0000 - 0x6d6f6000 	C:\Program Files\Java\jre1.6.0\bin\npoji610.dll
0x7c340000 - 0x7c396000 	C:\WINDOWS\system32\MSVCR71.dll
0x6d490000 - 0x6d4a0000 	C:\Program Files\Java\jre1.6.0\bin\jpioji.dll
0x6d470000 - 0x6d488000 	C:\Program Files\Java\jre1.6.0\bin\jpinscp.dll
0x6d4a0000 - 0x6d4c0000 	C:\Program Files\Java\jre1.6.0\bin\jpishare.dll
0x6d840000 - 0x6da69000 	C:\PROGRA~1\Java\JRE16~1.0\bin\client\jvm.dll
0x76b10000 - 0x76b3a000 	C:\WINDOWS\system32\WINMM.dll
0x7c3a0000 - 0x7c41b000 	C:\WINDOWS\system32\MSVCP71.dll
0x6d2f0000 - 0x6d2f8000 	C:\PROGRA~1\Java\JRE16~1.0\bin\hpi.dll
0x76bc0000 - 0x76bcb000 	C:\WINDOWS\system32\PSAPI.DLL
0x6d7f0000 - 0x6d7fc000 	C:\PROGRA~1\Java\JRE16~1.0\bin\verify.dll
0x6d380000 - 0x6d3a1000 	C:\PROGRA~1\Java\JRE16~1.0\bin\java.dll
0x6d830000 - 0x6d83f000 	C:\PROGRA~1\Java\JRE16~1.0\bin\zip.dll
0x6d000000 - 0x6d1ba000 	C:\Program Files\Java\jre1.6.0\bin\awt.dll
0x736d0000 - 0x73719000 	C:\WINDOWS\system32\ddraw.dll
0x73b30000 - 0x73b36000 	C:\WINDOWS\system32\DCIMAN32.dll
0x738b0000 - 0x73980000 	C:\WINDOWS\system32\D3DIM700.DLL
0x6d290000 - 0x6d2e2000 	C:\Program Files\Java\jre1.6.0\bin\fontmanager.dll
0x6d240000 - 0x6d24f000 	C:\Program Files\Java\jre1.6.0\bin\deploy.dll
0x76680000 - 0x76722000 	C:\WINDOWS\system32\WININET.dll
0x765e0000 - 0x76672000 	C:\WINDOWS\system32\CRYPT32.dll
0x76db0000 - 0x76dc2000 	C:\WINDOWS\system32\MSASN1.dll
0x75c60000 - 0x75cfc000 	C:\WINDOWS\system32\urlmon.dll
0x6d710000 - 0x6d743000 	C:\Program Files\Java\jre1.6.0\bin\regutils.dll
0x7c9c0000 - 0x7cc72000 	C:\WINDOWS\system32\msi.dll
0x759d0000 - 0x75a7e000 	C:\WINDOWS\system32\USERENV.dll
0x77fc0000 - 0x77fd1000 	C:\WINDOWS\system32\Secur32.dll
0x6d5f0000 - 0x6d603000 	C:\Program Files\Java\jre1.6.0\bin\net.dll
0x76ef0000 - 0x76f17000 	C:\WINDOWS\system32\DNSAPI.dll
0x76f80000 - 0x76f88000 	C:\WINDOWS\System32\winrnr.dll
0x76f30000 - 0x76f5c000 	C:\WINDOWS\system32\WLDAP32.dll
0x76f90000 - 0x76f96000 	C:\WINDOWS\system32\rasadhlp.dll
0x6d210000 - 0x6d233000 	C:\Program Files\Java\jre1.6.0\bin\dcpr.dll
0x6d610000 - 0x6d619000 	C:\Program Files\Java\jre1.6.0\bin\nio.dll
0x76d70000 - 0x76d92000 	C:\WINDOWS\system32\appHelp.dll
0x76590000 - 0x765de000 	C:\WINDOWS\System32\cscui.dll
0x76570000 - 0x7658c000 	C:\WINDOWS\System32\CSCDLL.dll
0x0eec0000 - 0x0efd2000 	C:\Program Files\Apoint\Apoint.DLL
0x0d910000 - 0x0d91f000 	C:\WINDOWS\system32\Vxdif.dll

VM Arguments:
jvm_args: -Xbootclasspath/a:C:\PROGRA~1\Java\JRE16~1.0\lib\deploy.jar;C:\PROGRA~1\Java\JRE16~1.0\lib\plugin.jar -Xmx96m -Djavaplugin.maxHeapSize=96m -Xverify:remote -Djavaplugin.version=1.6.0 -Djavaplugin.nodotversion=160 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~1\Java\JRE16~1.0 -Djavaplugin.vm.options=-Djava.class.path=C:\PROGRA~1\Java\JRE16~1.0\classes -Xbootclasspath/a:C:\PROGRA~1\Java\JRE16~1.0\lib\deploy.jar;C:\PROGRA~1\Java\JRE16~1.0\lib\plugin.jar -Xmx96m -Djavaplugin.maxHeapSize=96m -Xverify:remote -Djavaplugin.version=1.6.0 -Djavaplugin.nodotversion=160 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~1\Java\JRE16~1.0 
java_command: <unknown>
Launcher Type: generic

Environment Variables:
CLASSPATH=d:\mustang\output\lib\ext\QTJava.zip
PATH=C:\PROGRA~1\Java\JRE16~1.0\bin;C:\Program Files\Mozilla Firefox\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;;.
USERNAME=moz
DISPLAY=:0.0
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 9 Stepping 5, GenuineIntel



---------------  S Y S T E M  ---------------

OS: Windows XP Build 2600 Service Pack 2

CPU:total 1 family 6, cmov, cx8, fxsr, mmx, sse, sse2

Memory: 4k page, physical 260312k(69796k free), swap 1032384k(721788k free)

vm_info: Java HotSpot(TM) Client VM (1.6.0-beta-b59) for windows-x86, built on Nov  3 2005 00:30:33 by "java_re" with unknown MS VC++:1310

                                    

Comments
SUGGESTED FIX

Currently all AWT native objects on Windows platform are deleted the following way: SyncCall critical section is entered, message is sent to Toolkit thread, object is deleted from that thread. From the object's destructor many virtual and non-virtual methods are called, moreover disposal message can be processed while another message is being handled and that leads to the crash.

I suggest to fix the problem by dividing disposal into two parts. First, we unsubclass the component to make sure no messages are received for it. Then wait for all the messages to be processed and only then destroy HWND and delete the object. Also, most of the methods can and should be called before object's destructor.

The webrev for the fix can be found at http://sa.sfbay.sun.com/projects/awt_data/dolphin/6387273
                                     
2006-07-28
SUGGESTED FIX

As the fix above changes much in AWT disposal code, it may affect AWT performance somehow. I have run Alacrity Refworkload 'swingmark' test, results are:

Without the fix:

is_workload=0
is_higher_better=1
score=729.88237
mean=729.882374
stdev=3.312023
var=10.969499
scores=735.06093775355264098118 732.36083986484413626747 726.72000327887434163805 729.09780563671122843236 732.07615556743089420677 726.93043694079017822318 
attempts=6
successes=6
failures=0
subresults_higher=Sub-Menus TextArea Sliders Lists Table Tree
subresults_lower=

With the fix:

is_workload=0
is_higher_better=1
score=734.90918
mean=734.909178
stdev=3.417530
var=11.679513
scores=735.73214654926264280631 731.74377529614770800975 729.85313977010176848698 738.58522127314420998331 736.22683302650424118351 741.23266473878333014723 732.94029759564233463503 738.42058181169956305285 736.67117000343717460701 735.66467158336382247014 734.49397003001935292469 731.12742166867613866750 
attempts=12
successes=12
failures=0
subresults_higher=Sub-Menus TextArea Sliders Lists Table Tree
subresults_lower=
                                     
2006-07-28
SUGGESTED FIX

I have also created the test of my own which shows some top-level Dialogs with many heavyweight panels and labels within and then disposes all of them. Results are close to those demonstrated with Refworkload: performance with the fix differs from 1% lower to 1% higher than without the fix.
                                     
2006-07-28
EVALUATION

I got it crashed only two times on different PCs. One with Windows2000 (with JDK6.0b61 on) it and WinXP (with JDK6.0b71) is on the other. I was unsucceded to obtain native crash log within these attempts but noticed a thing : if I press restart on browser and there is a Dialog on the screen, then this dialog become some kind of zombi - it stays on screen until browser is finished. Should further investigation here.
I also tried it with JDK1.4 and JDK5.0b60 and it worked well there.
                                     
2006-02-20
EVALUATION

The crash happens in the AwtFrame::WmActivate() method, but I suspect it may occur in many other places. When the frame/dialog receives a message, AwtComponent::WndProc is called on the Toolkit thread. For a given HWND the proper AwtComponent is found and its WindowProc is called to dispatch the message. For WM_ACTIVATE the method AwtFrame::WmActivate is used. While it is in process, the component is disposed from another thread. All the components are destroyed on the Toolkit thread by sending a special message WM_AWT_DISPOSE, so it wouldn't be an issue, but we call ::SetFocus(NULL) from AwtFrame::WmActivate and it seems that it launches a separate native message pump and handles WM_AWT_DISPOSE. Then, after ::SetFocus is returned, the component is deleted from the memory, but we are still in its virtual function WmActivate - so the crash happens.
                                     
2006-03-02
SUGGESTED FIX

It looks like the whole process of creating and/or destroying native AWT objects must be rewritten to get this and many similiar CRs fixed. This needs much more investigation.
                                     
2006-03-02



Hardware and Software, Engineered to Work Together