Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358891

Summary: A fatal error has been detected by the Java Runtime Environment
Product: [Eclipse Project] Platform Reporter: Zeko <zeko_bellucci>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: grant_gayed
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Zeko CLA 2011-09-26 09:52:01 EDT
Build Identifier: M20110210-1200


I am Unable to run the Snippet example Snippet307.java

Try to run the following example :
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet307.java

Would you please guide us how to run this on IE 9


#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6c99ac2f, pid=4768, tid=3968
#
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) Client VM (20.1-b02 mixed mode, sharing windows-x86 )
# Problematic frame:
# C  [jscript9.dll+0xac2f]
#
# 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 (0x001e9000):  JavaThread "main" [_thread_in_native, id=3968, stack(0x00430000,0x00480000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000054

Registers:
EAX=0x00000001, EBX=0x007094e8, ECX=0x00000000, EDX=0x00000001
ESP=0x0047e800, EBP=0x0047e82c, ESI=0x0779ee44, EDI=0x00000001
EIP=0x6c99ac2f, EFLAGS=0x00010246

Top of Stack: (sp=0x0047e800)
0x0047e800:   c4402ad7 0047e874 0779ee44 007094e8
0x0047e810:   6d9f9d60 00000001 ffffffff 0047e800
0x0047e820:   0047eb4c 6cb2accd 00000000 0047e844
0x0047e830:   6c99b1ae 0779ee44 0779ee44 001e9128
0x0047e840:   0047e8dc 0047e888 1002c945 0779ee44
0x0047e850:   0047e874 007094e8 001e9000 343aeb20
0x0047e860:   343aeb20 00000000 0047e8e0 007094e8
0x0047e870:   0047e874 a6ef9860 11d0c720 a0003793 

Instructions: (pc=0x6c99ac2f)
0x6c99ac0f:   6c fe 78 ab 6c 9c 7b ab 6c 8b 10 85 d2 79 bb 32
0x6c99ac1f:   c0 5e 5d c2 04 00 c7 45 fc 00 00 00 00 8b 4e 14
0x6c99ac2f:   8b 41 54 83 c6 fc 56 50 e8 89 69 ff ff 8b c7 8b
0x6c99ac3f:   4d f4 64 89 0d 00 00 00 00 59 5f 5e 5b 8b e5 5d 


Register to memory mapping:

EAX=0x00000001 is an unknown value
EBX=0x007094e8 is an unknown value
ECX=0x00000000 is an unknown value
EDX=0x00000001 is an unknown value
ESP=0x0047e800 is pointing into the stack for thread: 0x001e9000
EBP=0x0047e82c is pointing into the stack for thread: 0x001e9000
ESI=0x0779ee44 is an unknown value
EDI=0x00000001 is an unknown value


Stack: [0x00430000,0x00480000],  sp=0x0047e800,  free space=314k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [jscript9.dll+0xac2f]  JsVarToScriptDirect+0x9136
C  [jscript9.dll+0xb1ae]  JsVarToScriptDirect+0x96b5
C  [swt-win32-3659.dll+0x2c945]  Java_org_eclipse_swt_internal_ole_win32_COM_VtblCall__IILorg_eclipse_swt_internal_ole_win32_GUID_2_3I+0x6c
j  org.eclipse.swt.internal.ole.win32.COM.VtblCall(IILorg/eclipse/swt/internal/ole/win32/GUID;[I)I+0
j  org.eclipse.swt.internal.ole.win32.IUnknown.QueryInterface(Lorg/eclipse/swt/internal/ole/win32/GUID;[I)I+7
j  org.eclipse.swt.browser.WebSite.convertToJS(Ljava/lang/Object;)Lorg/eclipse/swt/ole/win32/Variant;+363
j  org.eclipse.swt.browser.WebSite.Invoke(IIIIIIII)I+350
j  org.eclipse.swt.browser.WebSite$7.method6([I)I+30
j  org.eclipse.swt.internal.ole.win32.COMObject.callback6([I)I+47
v  ~StubRoutines::call_stub
V  [jvm.dll+0xfae4b]
V  [jvm.dll+0x18c531]
V  [jvm.dll+0xfaecd]
V  [jvm.dll+0x95846]
V  [jvm.dll+0x9c663]
C  [swt-win32-3659.dll+0x11f9]  Java_org_eclipse_swt_internal_Callback_reset+0x172
C  0x049d09e7
C  [mshtml.dll+0x6be37b]  ConvertAndEscapePostData+0x96af
C  [jscript9.dll+0x59d96]  DllGetClassObject+0x48e62
C  [jscript9.dll+0xd724b]  DllCanUnloadNow+0xdc4a
C  [jscript9.dll+0xadf3e]  DllGetClassObject+0x9d00a
C  [jscript9.dll+0xadd59]  DllGetClassObject+0x9ce25
C  [jscript9.dll+0xadd2d]  DllGetClassObject+0x9cdf9
C  0x0777076a
C  0x07770c5a
C  [jscript9.dll+0x85ae]  JsVarToScriptDirect+0x6ab5
C  [jscript9.dll+0xae86a]  DllGetClassObject+0x9d936
C  [jscript9.dll+0xae813]  DllGetClassObject+0x9d8df
C  [jscript9.dll+0x74927]  DllGetClassObject+0x639f3
C  [jscript9.dll+0x7489c]  DllGetClassObject+0x63968
C  [jscript9.dll+0x85ae]  JsVarToScriptDirect+0x6ab5
C  [jscript9.dll+0x84d3]  JsVarToScriptDirect+0x69da
C  [jscript9.dll+0x840a]  JsVarToScriptDirect+0x6911
C  [jscript9.dll+0x8396]  JsVarToScriptDirect+0x689d
C  [jscript9.dll+0x31eb6]  DllGetClassObject+0x20f82
C  [jscript9.dll+0x31d4f]  DllGetClassObject+0x20e1b
C  [jscript9.dll+0x337cd]  DllGetClassObject+0x22899
C  [mshtml.dll+0x2e0530]  DllGetClassObject+0x668b2
C  [mshtml.dll+0x29fd45]  DllGetClassObject+0x260c7
C  [mshtml.dll+0x2e150e]  DllGetClassObject+0x67890
C  [mshtml.dll+0x2e11e7]  DllGetClassObject+0x67569
C  [mshtml.dll+0x2e22c4]  DllGetClassObject+0x68646
C  [mshtml.dll+0x2624cc]  CTravelLog_CreateInstance+0x1ed67
C  [mshtml.dll+0x29dbaf]  DllGetClassObject+0x23f31
C  [mshtml.dll+0x267cb0]  CTravelLog_CreateInstance+0x2454b
C  [mshtml.dll+0x267bdc]  CTravelLog_CreateInstance+0x24477
C  [mshtml.dll+0x19c614]  RunHTMLApplication+0x47275
C  [mshtml.dll+0x3ea119]  DllGetClassObject+0x17049b
C  [mshtml.dll+0x4095e8]  DllGetClassObject+0x18f96a
C  [USER32.dll+0x162fa]  gapfnScSendMessage+0x332
C  [USER32.dll+0x16d3a]  GetThreadDesktop+0xd7
C  [USER32.dll+0x177c4]  CharPrevW+0x138
C  [USER32.dll+0x1788a]  DispatchMessageW+0xf
C  [swt-win32-3659.dll+0x39b7]  Java_org_eclipse_swt_internal_win32_OS_DispatchMessageW+0x31
j  org.eclipse.swt.internal.win32.OS.DispatchMessageW(Lorg/eclipse/swt/internal/win32/MSG;)I+0
j  org.eclipse.swt.internal.win32.OS.DispatchMessage(Lorg/eclipse/swt/internal/win32/MSG;)I+7
j  org.eclipse.swt.widgets.Display.readAndDispatch()Z+64
J  tvs.test.main([Ljava/lang/String;)V
V  [jvm.dll+0xfae4b]
V  [jvm.dll+0x18c531]
V  [jvm.dll+0xfaecd]
V  [jvm.dll+0x95846]
V  [jvm.dll+0x9d683]
C  [javaw.exe+0x2155]
C  [javaw.exe+0x8644]
C  [kernel32.dll+0x1339a]  BaseThreadInitThunk+0x12
C  [ntdll.dll+0x39ed2]  RtlInitializeExceptionChain+0x63
C  [ntdll.dll+0x39ea5]  RtlInitializeExceptionChain+0x36

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.eclipse.swt.internal.ole.win32.COM.VtblCall(IILorg/eclipse/swt/internal/ole/win32/GUID;[I)I+0
j  org.eclipse.swt.internal.ole.win32.IUnknown.QueryInterface(Lorg/eclipse/swt/internal/ole/win32/GUID;[I)I+7
j  org.eclipse.swt.browser.WebSite.convertToJS(Ljava/lang/Object;)Lorg/eclipse/swt/ole/win32/Variant;+363
j  org.eclipse.swt.browser.WebSite.Invoke(IIIIIIII)I+350
j  org.eclipse.swt.browser.WebSite$7.method6([I)I+30
j  org.eclipse.swt.internal.ole.win32.COMObject.callback6([I)I+47
v  ~StubRoutines::call_stub
j  org.eclipse.swt.internal.win32.OS.DispatchMessageW(Lorg/eclipse/swt/internal/win32/MSG;)I+0
j  org.eclipse.swt.internal.win32.OS.DispatchMessage(Lorg/eclipse/swt/internal/win32/MSG;)I+7
j  org.eclipse.swt.widgets.Display.readAndDispatch()Z+64
J  tvs.test.main([Ljava/lang/String;)V
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
  0x0070e000 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3144, stack(0x07410000,0x07460000)]
  0x058f0c00 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=4872, stack(0x06ba0000,0x06bf0000)]
  0x006fd400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=4764, stack(0x04630000,0x04680000)]
  0x006ed400 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=4752, stack(0x045a0000,0x045f0000)]
  0x006ec400 JavaThread "Attach Listener" daemon [_thread_blocked, id=3996, stack(0x02210000,0x02260000)]
  0x006e9400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5016, stack(0x02180000,0x021d0000)]
  0x006da000 JavaThread "Finalizer" daemon [_thread_blocked, id=5076, stack(0x020f0000,0x02140000)]
  0x006d8800 JavaThread "Reference Handler" daemon [_thread_blocked, id=3216, stack(0x020a0000,0x020f0000)]
=>0x001e9000 JavaThread "main" [_thread_in_native, id=3968, stack(0x00430000,0x00480000)]

Other Threads:
  0x0069d000 VMThread [stack: 0x008a0000,0x008f0000] [id=4748]
  0x0070f000 WatcherThread [stack: 0x046c0000,0x04710000] [id=4804]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 12736K, used 3573K [0x241a0000, 0x24f70000, 0x296f0000)
  eden space 11328K,  27% used [0x241a0000, 0x244b67a0, 0x24cb0000)
  from space 1408K,  29% used [0x24e10000, 0x24e76d30, 0x24f70000)
  to   space 1408K,   0% used [0x24cb0000, 0x24cb0000, 0x24e10000)
 tenured generation   total 28184K, used 23310K [0x296f0000, 0x2b276000, 0x341a0000)
   the space 28184K,  82% used [0x296f0000, 0x2adb3870, 0x2adb3a00, 0x2b276000)
 compacting perm gen  total 12288K, used 3332K [0x341a0000, 0x34da0000, 0x381a0000)
   the space 12288K,  27% used [0x341a0000, 0x344e1090, 0x344e1200, 0x34da0000)
    ro space 10240K,  51% used [0x381a0000, 0x386cdff8, 0x386ce000, 0x38ba0000)
    rw space 12288K,  55% used [0x38ba0000, 0x3923c208, 0x3923c400, 0x397a0000)

Code Cache  [0x02560000, 0x02690000, 0x04560000)
 total_blobs=552 nmethods=336 adapters=152 free_code_cache=32340800 largest_free_block=256




This Error only happened When I upgraded to IE 9



Reproducible: Always

Steps to Reproduce:
1.Install Internet Explorer 9 on Windows 7
2.Install Eclipse Helious
3.Try to run the following example :
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet307.java

This Error only happened When I upgraded to IE 9
Comment 1 Grant Gayed CLA 2011-09-26 11:00:42 EDT
This is fixed in the 3.7 release, closing report as a duplicate of bug 343932.

*** This bug has been marked as a duplicate of bug 343932 ***