JDK-6890861 : Crash in awt.dll after sun.awt.windows.WWindowPeer.modalEnable is called
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6,6u10,6u18
  • Priority: P2
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS:
    generic,windows,windows_xp,windows_7 generic,windows,windows_xp,windows_7
  • CPU: generic,x86
  • Submitted: 2009-10-13
  • Updated: 2011-04-11
  • Resolved: 2010-09-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u22-revFixed 7Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
6u15b03 could crash with following error (full hs_err file is attached):

# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d06953d, pid=2320, tid=2140
#
# JRE version: 6.0_15-b03
# Java VM: Java HotSpot(TM) Client VM (14.1-b02 mixed mode, sharing windows-x86 )
# Problematic frame:
# C  [awt.dll+0x6953d]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

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

Current thread (0x033b7400):  JavaThread "AWT-EventQueue-1" [_thread_in_native, id=2140, stack(0x03860000,0x038b0000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000004;; 
;; si_signo=0xc0000005  EXCEPTION_ACCESS_VIOLATION /* The thread tried to read from or write to a virtual address for wh
ich it does not have the appropriate access. */

Registers:
EAX=0x00000000, EBX=0x7e429313, ECX=0x00000052, EDX=0x6da28734
ESP=0x038ae5c4, EBP=0x038ae638, ESI=0x033b7510, EDI=0x00000000
EIP=0x6d06953d, EFLAGS=0x00010246

Top of Stack: (sp=0x038ae5c4)
0x038ae5c4:   00000000 00f201f0 6d09de68 02a64610
0x038ae5d4:   033b7510 00f201f0 6d09eca7 00f201f0
0x038ae5e4:   00000000 2b2e1a00 033b7400 6d102ad0
0x038ae5f4:   6d099f0c 02a64610 2aa685f8 6d102ad0
0x038ae604:   038ae62c 6d0bf258 00000000 6d09fb6d
0x038ae614:   6d09ec40 02a64610 033b7400 2aa685f8
0x038ae624:   2b2e1a00 038ae61c 038aea7c 6d0bf5e0
0x038ae634:   00000000 038ae674 00919e27 033b7510 

Instructions: (pc=0x6d06953d)
0x6d06952d:   68 85 c0 7d 05 5f 33 c0 5e c3 8b 0d a8 27 10 6d
0x6d06953d:   8b 47 04 8b 16 53 51 50 56 ff 92 7c 01 00 00 8b 
;; 6d06952d 68 85 c0 7d 05          push   $0x57dc085
;; 6d069532 5f                      pop    %edi
;; 6d069533 33 c0                   xor    %eax,%eax
;; 6d069535 5e                      pop    %esi
;; 6d069536 c3                      ret    
;; 6d069537 8b 0d a8 27 10 6d       mov    0x6d1027a8,%ecx
;; ---------------
;; 6d06953d 8b 47 04                mov    0x4(%edi),%eax
;; 6d069540 8b 16                   mov    (%esi),%edx
;; 6d069542 53                      push   %ebx
;; 6d069543 51                      push   %ecx
;; 6d069544 50                      push   %eax
;; 6d069545 56                      push   %esi
;; 6d069546 ff 92 7c 01 00 00       call   *0x17c(%edx)
;; 6d06954c 8b ff                   mov    %edi,%edi
;; 

Stack: [0x03860000,0x038b0000],  sp=0x038ae5c4,  free space=313k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [awt.dll+0x6953d];;  ?isEnabled@AwtComponent@@QAEHXZ+0x2d
j  sun.awt.windows.WWindowPeer.modalEnable(Ljava/awt/Dialog;)V+0
j  sun.awt.windows.WWindowPeer.setModalBlocked(Ljava/awt/Dialog;Z)V+132
j  java.awt.Window.setModalBlocked(Ljava/awt/Dialog;Z)V+28
j  java.awt.Dialog.unblockWindow(Ljava/awt/Window;)V+30
j  java.awt.Dialog.modalHide()V+46
j  java.awt.Dialog.hideAndDisposePreHandler()V+20
j  java.awt.Dialog.hide()V+1
j  java.awt.Component.show(Z)V+12
j  java.awt.Component.setVisible(Z)V+2
j  java.awt.Window.setVisible(Z)V+2
j  java.awt.Dialog.setVisible(Z)V+2
j  com.sun.deploy.ui.DialogTemplate.setVisible(Z)V+72
j  com.sun.deploy.ui.UIFactory$12.execute()Ljava/lang/Object;+5
j  com.sun.javaws.ui.JavawsSysRun.delegate(Lcom/sun/deploy/util/DeploySysAction;)Ljava/lang/Object;+16
j  com.sun.deploy.util.DeploySysRun.execute(Lcom/sun/deploy/util/DeploySysAction;)Ljava/lang/Object;+10
j  com.sun.deploy.util.DeploySysRun$1.run()Ljava/lang/Object;+4
v  ~StubRoutines::call_stub
V  [jvm.dll+0xecfac];;  ?call_helper@JavaCalls@@CAXPAVJavaValue@@PAVmethodHandle@@PAVJavaCallArguments@@PAVThread@@@Z+0x
15c
V  [jvm.dll+0x1741d1];;  ?os_exception_wrapper@os@@SAXP6AXPAVJavaValue@@PAVmethodHandle@@PAVJavaCallArguments@@PAVThread
@@@Z0123@Z+0x61
V  [jvm.dll+0xed02d];;  ?call@JavaCalls@@SAXPAVJavaValue@@VmethodHandle@@PAVJavaCallArguments@@PAVThread@@@Z+0x1d
V  [jvm.dll+0x11c2cf];;  _JVM_DoPrivileged@20+0x19f
C  [java.dll+0x1015];;  _Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2@12+0x15
j  com.sun.deploy.util.DeploySysRun.executePrivileged(Lcom/sun/deploy/util/DeploySysAction;Ljava/lang/Object;)Ljava/lang
/Object;+9
j  com.sun.deploy.ui.UIFactory.hideProgressDialog(Lcom/sun/deploy/ui/ProgressDialog;)I+16
j  com.sun.javaws.ui.DownloadWindow$11.run()V+58
j  java.awt.event.InvocationEvent.dispatch()V+47
j  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+26
j  java.awt.EventDispatchThread.pumpOneEventForFilters(I)Z+204
j  java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V+30
j  java.awt.EventDispatchThread.pumpEventsForFilter(Ljava/awt/Conditional;Ljava/awt/EventFilter;)V+4
j  java.awt.Dialog$1.run()V+23
j  java.awt.Dialog$3.run()Ljava/lang/Object;+4
v  ~StubRoutines::call_stub
V  [jvm.dll+0xecfac];;  ?call_helper@JavaCalls@@CAXPAVJavaValue@@PAVmethodHandle@@PAVJavaCallArguments@@PAVThread@@@Z+0x
15c
V  [jvm.dll+0x1741d1];;  ?os_exception_wrapper@os@@SAXP6AXPAVJavaValue@@PAVmethodHandle@@PAVJavaCallArguments@@PAVThread
@@@Z0123@Z+0x61
V  [jvm.dll+0xed02d];;  ?call@JavaCalls@@SAXPAVJavaValue@@VmethodHandle@@PAVJavaCallArguments@@PAVThread@@@Z+0x1d
V  [jvm.dll+0x11c2cf];;  _JVM_DoPrivileged@20+0x19f
C  [java.dll+0x1015];;  _Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2@12+0x15
j  java.awt.Dialog.show()V+223
j  java.awt.Component.show(Z)V+5
j  java.awt.Component.setVisible(Z)V+2
j  java.awt.Window.setVisible(Z)V+2
j  java.awt.Dialog.setVisible(Z)V+2
j  com.sun.deploy.ui.DialogTemplate$10.run()V+43
j  com.sun.deploy.ui.DialogTemplate.setVisible(Z)V+41
j  com.sun.deploy.ui.UIFactory$11.execute()Ljava/lang/Object;+15
j  com.sun.javaws.ui.JavawsSysRun.delegate(Lcom/sun/deploy/util/DeploySysAction;)Ljava/lang/Object;+16
j  com.sun.deploy.util.DeploySysRun.execute(Lcom/sun/deploy/util/DeploySysAction;)Ljava/lang/Object;+10
j  com.sun.deploy.util.DeploySysRun$1.run()Ljava/lang/Object;+4
v  ~StubRoutines::call_stub
V  [jvm.dll+0xecfac];;  ?call_helper@JavaCalls@@CAXPAVJavaValue@@PAVmethodHandle@@PAVJavaCallArguments@@PAVThread@@@Z+0x
15c
V  [jvm.dll+0x1741d1];;  ?os_exception_wrapper@os@@SAXP6AXPAVJavaValue@@PAVmethodHandle@@PAVJavaCallArguments@@PAVThread
@@@Z0123@Z+0x61
V  [jvm.dll+0xed02d];;  ?call@JavaCalls@@SAXPAVJavaValue@@VmethodHandle@@PAVJavaCallArguments@@PAVThread@@@Z+0x1d
V  [jvm.dll+0x11c2cf];;  _JVM_DoPrivileged@20+0x19f
C  [java.dll+0x1015];;  _Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2@12+0x15
:
j  com.sun.deploy.util.DeploySysRun.executePrivileged(Lcom/sun/deploy/util/DeploySysAction;Ljava/lang/Object;)Ljava/lang
/Object;+9
j  com.sun.deploy.ui.UIFactory.showProgressDialog(Lcom/sun/deploy/ui/ProgressDialog;)I+21
j  com.sun.javaws.ui.DownloadWindow$11.run()V+14
j  java.awt.event.InvocationEvent.dispatch()V+47
j  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+26
j  java.awt.EventDispatchThread.pumpOneEventForFilters(I)Z+204
j  java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V+30
j  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11
j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j  java.awt.EventDispatchThread.run()V+9
v  ~StubRoutines::call_stub
V  [jvm.dll+0xecfac];;  ?call_helper@JavaCalls@@CAXPAVJavaValue@@PAVmethodHandle@@PAVJavaCallArguments@@PAVThread@@@Z+0x
15c
V  [jvm.dll+0x1741d1];;  ?os_exception_wrapper@os@@SAXP6AXPAVJavaValue@@PAVmethodHandle@@PAVJavaCallArguments@@PAVThread
@@@Z0123@Z+0x61
V  [jvm.dll+0xed177];;  ?call_virtual@JavaCalls@@SAXPAVJavaValue@@VKlassHandle@@VsymbolHandle@@2PAVJavaCallArguments@@PA
VThread@@@Z+0x97
V  [jvm.dll+0xed1ed];;  ?call_virtual@JavaCalls@@SAXPAVJavaValue@@VHandle@@VKlassHandle@@VsymbolHandle@@3PAVThread@@@Z+0
x5d
V  [jvm.dll+0x1162a0];;  ?thread_entry@@YAXPAVJavaThread@@PAVThread@@@Z+0x90
V  [jvm.dll+0x1d03a4];;  ?thread_main_inner@JavaThread@@QAEXXZ+0x34
V  [jvm.dll+0x173e4c];;  ?java_start@@YGIPAVThread@@@Z+0x8c
C  [msvcr71.dll+0x9565]
C  [kernel32.dll+0xb729]

Comments
EVALUATION The submitter wasn't able to reproduce the problem using the patched build (with the changes for 6387273 and 6513421).
26-10-2009

EVALUATION This is most likely a duplicate of 6387273. Requires backporting the changes for 6387273 and some additional changes (for regressions introduced by 6387273) to 6 update.
16-10-2009