Project: SWT
Bug 36386 Eclipse crashes on exit
Reported: 2003-04-10 19:19:42 | Status: resolved fixed

2.1 + SWT HEAD Date/Time: 2003-04-11 01:09:02 +0200 OS Version: 10.2.5 (Build 6L29) Host: lipari.local. Command: Eclipse PID: 637 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000037 Thread 0: #0 0x90073c48 in mach_msg_trap #1 0x90005f90 in mach_msg #2 0x0366a000 in 0x366a000 #3 0x90180f58 in CFRunLoopRunSpecific #4 0x92b10ca4 in startupJava(int, int, char const**, __CFDictionary const*, BuilderVersion, char const*, char const**) #5 0x00001c54 in 0x1c54 #6 0x00001ad4 in 0x1ad4 Thread 1 Crashed: #0 0x930276e0 in SetupParamBlockForCIcon #1 0x9300ece4 in PlotCIconHandle #2 0x96a3e354 in HIIconView::DrawSelf(short, OpaqueRgnHandle*, CGContext*) #3 0x969a9b2c in HIView::EventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) #4 0x969a2c54 in DispatchEventToHandlers #5 0x969a2fbc in SendEventToEventTargetInternal #6 0x969a63d0 in SendEventToEventTargetWithOptions #7 0x969b362c in SendControlDefDraw(HIView*, short, OpaqueGrafPtr*, OpaqueRgnHandle*, CGContext*) #8 0x969af108 in HIView::DrawInternal(short, OpaqueGrafPtr*, OpaqueRgnHandle*, unsigned char, unsigned char, unsigned char, HIView*, CGContext*) #9 0x969af224 in HIView::DrawInternal(short, OpaqueGrafPtr*, OpaqueRgnHandle*, unsigned char, unsigned char, unsigned char, HIView*, CGContext*) #10 0x969af224 in HIView::DrawInternal(short, OpaqueGrafPtr*, OpaqueRgnHandle*, unsigned char, unsigned char, unsigned char, HIView*, CGContext*) #11 0x969af224 in HIView::DrawInternal(short, OpaqueGrafPtr*, OpaqueRgnHandle*, unsigned char, unsigned char, unsigned char, HIView*, CGContext*) #12 0x969af224 in HIView::DrawInternal(short, OpaqueGrafPtr*, OpaqueRgnHandle*, unsigned char, unsigned char, unsigned char, HIView*, CGContext*) #13 0x969af224 in HIView::DrawInternal(short, OpaqueGrafPtr*, OpaqueRgnHandle*, unsigned char, unsigned char, unsigned char, HIView*, CGContext*) #14 0x969b09bc in HIView::Draw(short, OpaqueGrafPtr*, OpaqueRgnHandle*, unsigned long, HIView*, CGContext*) #15 0x96a22950 in DeactivateControl #16 0x969dd100 in HandleWindowEvent #17 0x969ee2f8 in StandardWindowEventHandler #18 0x969a2c54 in DispatchEventToHandlers #19 0x969a2fbc in SendEventToEventTargetInternal #20 0x969a63d0 in SendEventToEventTargetWithOptions #21 0x969f25d8 in PostActivateEvent #22 0x969eb704 in HiliteAndActivateWindow #23 0x96a0a304 in AdjustToNewWindowActivation(WindowData*, WindowContext*, OpaqueWindowPtr*, WindowData*) #24 0x96a58518 in PotentiallyAdjustActivationOnOrderIn(WindowData*, WindowData*) #25 0x96a49ffc in ShowWindow #26 0x0496669c in Java_org_eclipse_swt_internal_carbon_OS_ShowWindow #27 0x013b0580 in 0x13b0580 #28 0x013a9fb0 in 0x13a9fb0 #29 0x013a9fb0 in 0x13a9fb0 #30 0x013a9fb0 in 0x13a9fb0 #31 0x013a9fb0 in 0x13a9fb0 #32 0x013a9ef0 in 0x13a9ef0 #33 0x013a9fb0 in 0x13a9fb0 #34 0x013a9fb0 in 0x13a9fb0 #35 0x013a9e30 in 0x13a9e30 #36 0x013a9e30 in 0x13a9e30 #37 0x01c3c270 in 0x1c3c270 #38 0x013a9fb0 in 0x13a9fb0 #39 0x013a9e30 in 0x13a9e30 #40 0x013a9e30 in 0x13a9e30 #41 0x013a9e30 in 0x13a9e30 #42 0x0167a35c in 0x167a35c #43 0x013a9fb0 in 0x13a9fb0 #44 0x013a9fb0 in 0x13a9fb0 #45 0x013a9fb0 in 0x13a9fb0 #46 0x013a716c in 0x13a716c #47 0x966a8208 in JVM_Read #48 0x966cde94 in JVM_FillInStackTrace #49 0x966b8c80 in JVM_GetCPMethodClassNameUTF #50 0x9676d788 in JVM_EnableCompiler #51 0x049a31e4 in callback #52 0x0497d81c in fn3_3 #53 0x969a2c54 in DispatchEventToHandlers #54 0x969a2fbc in SendEventToEventTargetInternal #55 0x969b5494 in SendEventToEventTarget #56 0x969c3030 in SendHICommandEvent #57 0x96a5b8dc in SendMenuItemSelectedEvent #58 0x96a5c980 in FinishMenuSelection(MenuData*, MenuResult*, MenuResult*, unsigned long, unsigned long) #59 0x96a39380 in MenuSelectCore(Point, double, unsigned long, OpaqueMenuRef**, unsigned short*) #60 0x96a5cbf8 in MenuSelect #61 0x04961fe0 in Java_org_eclipse_swt_internal_carbon_OS_MenuSelect #62 0x013b0580 in 0x13b0580 #63 0x016deb0c in 0x16deb0c #64 0x013a716c in 0x13a716c #65 0x966a8208 in JVM_Read #66 0x966cde94 in JVM_FillInStackTrace #67 0x966b8c80 in JVM_GetCPMethodClassNameUTF #68 0x9676d788 in JVM_EnableCompiler #69 0x049a31e4 in callback #70 0x0497db3c in fn13_3 #71 0x969a2c54 in DispatchEventToHandlers #72 0x969a2fbc in SendEventToEventTargetInternal #73 0x969b5494 in SendEventToEventTarget #74 0x969b9948 in HandleMouseEvent(OpaqueEventRef*) #75 0x969b287c in ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) #76 0x969a2d0c in DispatchEventToHandlers #77 0x969a2fbc in SendEventToEventTargetInternal #78 0x969b5494 in SendEventToEventTarget #79 0x04964354 in Java_org_eclipse_swt_internal_carbon_OS_SendEventToEventTarget #80 0x019e0060 in 0x19e0060 #81 0x016dc0d8 in 0x16dc0d8 #82 0x013a9e30 in 0x13a9e30 #83 0x013a9fb0 in 0x13a9fb0 #84 0x013aa220 in 0x13aa220 #85 0x013a9ec0 in 0x13a9ec0 #86 0x013a716c in 0x13a716c #87 0x966a8208 in JVM_Read #88 0x966cde94 in JVM_FillInStackTrace #89 0x967338bc in JVM_GetClassCPTypes #90 0x9673cce8 in JVM_Write #91 0x96744f00 in JVM_InvokeMethod #92 0x013b0580 in 0x13b0580 #93 0x013a9ec0 in 0x13a9ec0 #94 0x013a9ec0 in 0x13a9ec0 #95 0x013aa220 in 0x13aa220 #96 0x013a9ec0 in 0x13a9ec0 #97 0x013a9ec0 in 0x13a9ec0 #98 0x013a9ec0 in 0x13a9ec0 #99 0x013a716c in 0x13a716c #100 0x966a8208 in JVM_Read #101 0x966cde94 in JVM_FillInStackTrace #102 0x967338bc in JVM_GetClassCPTypes #103 0x9673cce8 in JVM_Write #104 0x96744f00 in JVM_InvokeMethod #105 0x013b0580 in 0x13b0580 #106 0x013a9ec0 in 0x13a9ec0 #107 0x013a9ec0 in 0x13a9ec0 #108 0x013aa220 in 0x13aa220 #109 0x013a9ec0 in 0x13a9ec0 #110 0x013a9fb0 in 0x13a9fb0 #111 0x013a9fb0 in 0x13a9fb0 #112 0x013a716c in 0x13a716c #113 0x966a8208 in JVM_Read #114 0x966cde94 in JVM_FillInStackTrace #115 0x966c1f94 in JVM_GetCPFieldClassNameUTF #116 0x968ae93c in jio_vsnprintf #117 0x92b2316c in JNIEnv_::CallStaticVoidMethod(_jclass*, _jmethodID*, ...) #118 0x92b16b10 in CallAppLauncherMain(JNIEnv_*, __CFDictionary const*, __CFArray const*) #119 0x92b18ab4 in startJavaApplication #120 0x92b10b70 in java_main_stub(void*) #121 0x90020d48 in _pthread_body Thread 2: #0 0x90073c48 in mach_msg_trap #1 0x90005f90 in mach_msg #2 0x9676b04c in JNI_CreateJavaVM_Impl #3 0x9676b1d0 in JNI_CreateJavaVM_Impl #4 0x967641fc in JVM_IsSupportedJNIVersion #5 0x90020d48 in _pthread_body Thread 3: #0 0x90073c48 in mach_msg_trap #1 0x90005f90 in mach_msg #2 0x96697dd0 in __cmpdi2 #3 0x966d072c in JVM_FillInStackTrace #4 0x966e173c in JVM_RawMonitorEnter #5 0x9685d46c in JVM_UnloadLibrary #6 0x967641fc in JVM_IsSupportedJNIVersion #7 0x90020d48 in _pthread_body Thread 4: #0 0x90073c48 in mach_msg_trap #1 0x90005f90 in mach_msg #2 0x96697d34 in __cmpdi2 #3 0x966d9264 in JVM_GetCPFieldSignatureUTF #4 0x966fc7ac in JVM_GetMethodIxModifiers #5 0x966f9a48 in JVM_MonitorWait #6 0x013b0580 in 0x13b0580 #7 0x013a9fb0 in 0x13a9fb0 #8 0x013a9fb0 in 0x13a9fb0 #9 0x013a716c in 0x13a716c #10 0x966a8208 in JVM_Read #11 0x96750af4 in JVM_StartThread #12 0x96755bd0 in JVM_GC #13 0x96755b64 in JVM_GC #14 0x96744174 in JVM_GetClassInterfaces #15 0x967641fc in JVM_IsSupportedJNIVersion #16 0x90020d48 in _pthread_body Thread 5: #0 0x90073c48 in mach_msg_trap #1 0x90005f90 in mach_msg #2 0x96697d34 in __cmpdi2 #3 0x966d9264 in JVM_GetCPFieldSignatureUTF #4 0x966fc7ac in JVM_GetMethodIxModifiers #5 0x966f9a48 in JVM_MonitorWait #6 0x013b0580 in 0x13b0580 #7 0x01834c8c in 0x1834c8c #8 0x018339a8 in 0x18339a8 #9 0x013a9ec0 in 0x13a9ec0 #10 0x013a716c in 0x13a716c #11 0x966a8208 in JVM_Read #12 0x96750af4 in JVM_StartThread #13 0x96755bd0 in JVM_GC #14 0x96755b64 in JVM_GC #15 0x96744174 in JVM_GetClassInterfaces #16 0x967641fc in JVM_IsSupportedJNIVersion #17 0x90020d48 in _pthread_body Thread 6: #0 0x90073c48 in mach_msg_trap #1 0x90005f90 in mach_msg #2 0x96697dd0 in __cmpdi2 #3 0x966a29c4 in JVM_CurrentTimeMillis #4 0x966a2a60 in JVM_CurrentTimeMillis #5 0x967641fc in JVM_IsSupportedJNIVersion #6 0x90020d48 in _pthread_body Thread 7: #0 0x90034848 in semaphore_wait_trap #1 0x96764bfc in JVM_IsSupportedJNIVersion #2 0x967649e4 in JVM_IsSupportedJNIVersion #3 0x96744174 in JVM_GetClassInterfaces #4 0x967641fc in JVM_IsSupportedJNIVersion #5 0x90020d48 in _pthread_body Thread 8: #0 0x90073c48 in mach_msg_trap #1 0x90005f90 in mach_msg #2 0x96697d34 in __cmpdi2 #3 0x966d078c in JVM_FillInStackTrace #4 0x9670b5bc in JVM_IsConstructorIx #5 0x966ec7f0 in JVM_RawMonitorEnter #6 0x96744174 in JVM_GetClassInterfaces #7 0x967641fc in JVM_IsSupportedJNIVersion #8 0x90020d48 in _pthread_body Thread 9: #0 0x90073c48 in mach_msg_trap #1 0x90005f90 in mach_msg #2 0x96697dd0 in __cmpdi2 #3 0x966a28d4 in JVM_CurrentTimeMillis #4 0x96729c10 in JVM_Sleep #5 0x013b0580 in 0x13b0580 #6 0x013a9fb0 in 0x13a9fb0 #7 0x013aa310 in 0x13aa310 #8 0x013a716c in 0x13a716c #9 0x966a8208 in JVM_Read #10 0x96750af4 in JVM_StartThread #11 0x96755bd0 in JVM_GC #12 0x96755b64 in JVM_GC #13 0x96744174 in JVM_GetClassInterfaces #14 0x967641fc in JVM_IsSupportedJNIVersion #15 0x90020d48 in _pthread_body Thread 10: #0 0x90073c48 in mach_msg_trap #1 0x90005f90 in mach_msg #2 0x96697d34 in __cmpdi2 #3 0x966d9264 in JVM_GetCPFieldSignatureUTF #4 0x966fc7ac in JVM_GetMethodIxModifiers #5 0x966f9a48 in JVM_MonitorWait #6 0x013b0580 in 0x13b0580 #7 0x01b919c8 in 0x1b919c8 #8 0x013a9ec0 in 0x13a9ec0 #9 0x013aa310 in 0x13aa310 #10 0x013a716c in 0x13a716c #11 0x966a8208 in JVM_Read #12 0x96750af4 in JVM_StartThread #13 0x96755bd0 in JVM_GC #14 0x96755b64 in JVM_GC #15 0x96744174 in JVM_GetClassInterfaces #16 0x967641fc in JVM_IsSupportedJNIVersion #17 0x90020d48 in _pthread_body Thread 11: #0 0x90073c48 in mach_msg_trap #1 0x90005f90 in mach_msg #2 0x96697dd0 in __cmpdi2 #3 0x966d9264 in JVM_GetCPFieldSignatureUTF #4 0x966fc7ac in JVM_GetMethodIxModifiers #5 0x966f9a48 in JVM_MonitorWait #6 0x013b0580 in 0x13b0580 #7 0x013a9fb0 in 0x13a9fb0 #8 0x013aa310 in 0x13aa310 #9 0x013a716c in 0x13a716c #10 0x966a8208 in JVM_Read #11 0x96750af4 in JVM_StartThread #12 0x96755bd0 in JVM_GC #13 0x96755b64 in JVM_GC #14 0x96744174 in JVM_GetClassInterfaces #15 0x967641fc in JVM_IsSupportedJNIVersion #16 0x90020d48 in _pthread_body PPC Thread State: srr0: 0x930276e0 srr1: 0x0200f030 vrsave: 0x00000000 xer: 0x00000000 lr: 0x9300ece4 ctr: 0x90223244 mq: 0x00000000 r0: 0x9300ece4 r1: 0xf007c0d0 r2: 0x84022280 r3: 0xf007c180 r4: 0xffffff80 r5: 0xffffff80 r6: 0x035577b8 r7: 0x00000000 r8: 0x00000001 r9: 0xffffffff r10: 0x0013001d r11: 0x00000000 r12: 0x90223244 r13: 0x000ea290 r14: 0x04251850 r15: 0x04966674 r16: 0xf007d520 r17: 0x6b2ca178 r18: 0x00000000 r19: 0x00000000 r20: 0x00000002 r21: 0x00000000 r22: 0x71cfa243 r23: 0x07645420 r24: 0xf007c380 r25: 0x00000000 r26: 0x00000000 r27: 0x035577b8 r28: 0x24022280 r29: 0xf007c180 r30: 0xffffffff r31: 0x9300ec04

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Display.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Shell.java