Project: SWT
Bug 80216 KERN_PROTECTION_FAILURE due to EXC_BAD_ACCESS on exit
Reported: 2004-12-05 06:56:30 | Status: resolved fixed

Hi, when quitting RSSOwl on Mac using latest SWT from Integration Build I am getting a serious exception. There is no difference if running it via java_swt or Java: Date/Time: 1970-01-01 01:11:08 +0100 OS Version: 10.3 (Build 7B85) Command: java_swt (/Volumes/NO NAME/RSSOwl Release/MAC_BIN/rssowl_mac_1_0_bin/RSSOwl.app/Contents/MacOS/java_swt) PID: 324 Thread: 0 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000037 Thread 0 Crashed: #0 0x92d59d2c in SetupParamBlockForCIcon (SetupParamBlockForCIcon + 32) #1 0x92d41310 in PlotCIconHandle (PlotCIconHandle + 240) #2 0x9288c54c in _ZN10HIIconView8DrawSelfEsP15OpaqueRgnHandleP9CGContext (_ZN10HIIconView8DrawSelfEsP15OpaqueRgnHandleP9CGContext + 504) #3 0x927f5acc in _ZN6HIView15DrawCacheOrSelfEsP15OpaqueRgnHandleP9CGContext (_ZN6HIView15DrawCacheOrSelfEsP15OpaqueRgnHandleP9CGContext + 328) #4 0x927d5444 in _ZN6HIView12EventHandlerEP25OpaqueEventHandlerCallRefP14OpaqueEventRefPv (_ZN6HIView12EventHandlerEP25OpaqueEventHandlerCallRefP14OpaqueEventRefPv + 4920) #5 0x927d1f94 in DispatchEventToHandlers (DispatchEventToHandlers + 336) #6 0x927d2208 in SendEventToEventTargetInternal (SendEventToEventTargetInternal + 372) #7 0x927d6600 in SendEventToEventTargetWithOptions (SendEventToEventTargetWithOptions + 40) #8 0x927ddcac in _Z18SendControlDefDrawP6HIViewsP13OpaqueGrafPtrP15OpaqueRgnHandleP9CGContext (_Z18SendControlDefDrawP6HIViewsP13OpaqueGrafPtrP15OpaqueRgnHandleP9CGContext + 288) #9 0x927dbac4 in _ZN6HIView12DrawInternalEsP13OpaqueGrafPtrP15OpaqueRgnHandlehhhPS_P9CGContext (_ZN6HIView12DrawInternalEsP13OpaqueGrafPtrP15OpaqueRgnHandlehhhPS_P9CGContext + 584) #10 0x927dbbc0 in _ZN6HIView12DrawInternalEsP13OpaqueGrafPtrP15OpaqueRgnHandlehhhPS_P9CGContext (_ZN6HIView12DrawInternalEsP13OpaqueGrafPtrP15OpaqueRgnHandlehhhPS_P9CGContext + 836) #11 0x927dbbc0 in _ZN6HIView12DrawInternalEsP13OpaqueGrafPtrP15OpaqueRgnHandlehhhPS_P9CGContext (_ZN6HIView12DrawInternalEsP13OpaqueGrafPtrP15OpaqueRgnHandlehhhPS_P9CGContext + 836) #12 0x927dbbc0 in _ZN6HIView12DrawInternalEsP13OpaqueGrafPtrP15OpaqueRgnHandlehhhPS_P9CGContext (_ZN6HIView12DrawInternalEsP13OpaqueGrafPtrP15OpaqueRgnHandlehhhPS_P9CGContext + 836) #13 0x927dbbc0 in _ZN6HIView12DrawInternalEsP13OpaqueGrafPtrP15OpaqueRgnHandlehhhPS_P9CGContext (_ZN6HIView12DrawInternalEsP13OpaqueGrafPtrP15OpaqueRgnHandlehhhPS_P9CGContext + 836) #14 0x927dbbc0 in _ZN6HIView12DrawInternalEsP13OpaqueGrafPtrP15OpaqueRgnHandlehhhPS_P9CGContext (_ZN6HIView12DrawInternalEsP13OpaqueGrafPtrP15OpaqueRgnHandlehhhPS_P9CGContext + 836) #15 0x927dbbc0 in _ZN6HIView12DrawInternalEsP13OpaqueGrafPtrP15OpaqueRgnHandlehhhPS_P9CGContext (_ZN6HIView12DrawInternalEsP13OpaqueGrafPtrP15OpaqueRgnHandlehhhPS_P9CGContext + 836) #16 0x927dcb68 in _ZN6HIView4DrawEsP13OpaqueGrafPtrP15OpaqueRgnHandlemPS_P9CGContext (_ZN6HIView4DrawEsP13OpaqueGrafPtrP15OpaqueRgnHandlemPS_P9CGContext + 792) #17 0x92882430 in DeactivateControl (DeactivateControl + 48) #18 0x92800120 in HandleWindowEvent (HandleWindowEvent + 1312) #19 0x92827cf0 in StandardWindowEventHandler (StandardWindowEventHandler + 180) #20 0x927d1f94 in DispatchEventToHandlers (DispatchEventToHandlers + 336) #21 0x927d2208 in SendEventToEventTargetInternal (SendEventToEventTargetInternal + 372) #22 0x927d6600 in SendEventToEventTargetWithOptions (SendEventToEventTargetWithOptions + 40) #23 0x9287266c in SendWindowEvent (SendWindowEvent + 200) #24 0x92800140 in HandleWindowEvent (HandleWindowEvent + 1344) #25 0x92827cf0 in StandardWindowEventHandler (StandardWindowEventHandler + 180) #26 0x927d1f94 in DispatchEventToHandlers (DispatchEventToHandlers + 336) #27 0x927d2208 in SendEventToEventTargetInternal (SendEventToEventTargetInternal + 372) #28 0x927d6600 in SendEventToEventTargetWithOptions (SendEventToEventTargetWithOptions + 40) #29 0x928206c4 in PostActivateEvent (PostActivateEvent + 336) #30 0x9281a05c in HiliteAndActivateWindow (HiliteAndActivateWindow + 392) #31 0x92833480 in _Z27AdjustToNewWindowActivationP10WindowDataP13WindowContextP15OpaqueWindowPtrS0_ (_Z27AdjustToNewWindowActivationP10WindowDataP13WindowContextP15OpaqueWindowPtrS0_ + 156) #32 0x014bdd30 in Java_org_eclipse_swt_internal_carbon_OS_HideWindow (Java_org_eclipse_swt_internal_carbon_OS_HideWindow + 40) #33 0x03d9e580 in 0x3d9e580 #34 0x03d97fb0 in 0x3d97fb0 #35 0x03d97fb0 in 0x3d97fb0 #36 0x03d97fb0 in 0x3d97fb0 #37 0x03d97fb0 in 0x3d97fb0 #38 0x03d98310 in 0x3d98310 #39 0x03eef570 in 0x3eef570 #40 0x03ef7934 in 0x3ef7934 #41 0x03d97fb0 in 0x3d97fb0 #42 0x03d97fb0 in 0x3d97fb0 #43 0x03d97fb0 in 0x3d97fb0 #44 0x03d97fb0 in 0x3d97fb0 #45 0x03d97fb0 in 0x3d97fb0 #46 0x03d97fb0 in 0x3d97fb0 #47 0x03d97fb0 in 0x3d97fb0 #48 0x03d97fb0 in 0x3d97fb0 #49 0x03d97fb0 in 0x3d97fb0 #50 0x03d97fb0 in 0x3d97fb0 #51 0x03d97fb0 in 0x3d97fb0 #52 0x03d97ef0 in 0x3d97ef0 #53 0x03d97ef0 in 0x3d97ef0 #54 0x03d9516c in 0x3d9516c #55 0x947ba0f8 in JVM_GetCPMethodClassNameUTF (JVM_GetCPMethodClassNameUTF + 2856) #56 0x947dbce8 in JVM_GetCPClassNameUTF (JVM_GetCPClassNameUTF + 2456) #57 0x948d2cf0 in JVM_UnloadLibrary (JVM_UnloadLibrary + 72080) #58 0x94991974 in jio_vsnprintf (jio_vsnprintf + 13748) #59 0x01587ef4 in callback (callback + 1064) #60 0x01562b28 in fn17_3 (fn17_3 + 52) #61 0x927d1f94 in DispatchEventToHandlers (DispatchEventToHandlers + 336) #62 0x927d2208 in SendEventToEventTargetInternal (SendEventToEventTargetInternal + 372) #63 0x927d6600 in SendEventToEventTargetWithOptions (SendEventToEventTargetWithOptions + 40) #64 0x9287266c in SendWindowEvent (SendWindowEvent + 200) #65 0x9280048c in HandleWindowEvent (HandleWindowEvent + 2188) #66 0x92827cf0 in StandardWindowEventHandler (StandardWindowEventHandler + 180) #67 0x927d1f94 in DispatchEventToHandlers (DispatchEventToHandlers + 336) #68 0x927d2208 in SendEventToEventTargetInternal (SendEventToEventTargetInternal + 372) #69 0x927e4634 in SendEventToEventTarget (SendEventToEventTarget + 40) #70 0x928f4778 in SendEventFromMouseDown (SendEventFromMouseDown + 148) #71 0x92884a4c in HandleWindowClick (HandleWindowClick + 572) #72 0x92865dfc in HandleMouseEvent (HandleMouseEvent + 440) #73 0x92827ce4 in StandardWindowEventHandler (StandardWindowEventHandler + 168) #74 0x927d1f94 in DispatchEventToHandlers (DispatchEventToHandlers + 336) #75 0x927d2208 in SendEventToEventTargetInternal (SendEventToEventTargetInternal + 372) #76 0x927e4634 in SendEventToEventTarget (SendEventToEventTarget + 40) #77 0x927f2e08 in _Z25HandleMouseEventForWindowP15OpaqueWindowPtrP14OpaqueEventReft (_Z25HandleMouseEventForWindowP15OpaqueWindowPtrP14OpaqueEventReft + 372) #78 0x927e8704 in _Z16HandleMouseEventP14OpaqueEventRef (_Z16HandleMouseEventP14OpaqueEventRef + 368) #79 0x927e2bd4 in _Z29ToolboxEventDispatcherHandlerP25OpaqueEventHandlerCallRefP14OpaqueEventRefPv (_Z29ToolboxEventDispatcherHandlerP25OpaqueEventHandlerCallRefP14OpaqueEventRefPv + 488) #80 0x927d2050 in DispatchEventToHandlers (DispatchEventToHandlers + 524) #81 0x927d2208 in SendEventToEventTargetInternal (SendEventToEventTargetInternal + 372) #82 0x927e4634 in SendEventToEventTarget (SendEventToEventTarget + 40) #83 0x014c3cb0 in Java_org_eclipse_swt_internal_carbon_OS_SendEventToEventTarget (Java_org_eclipse_swt_internal_carbon_OS_SendEventToEventTarget + 56) #84 0x03d9e580 in 0x3d9e580 #85 0x03d97ef0 in 0x3d97ef0 #86 0x03d97e30 in 0x3d97e30 #87 0x03d97fb0 in 0x3d97fb0 #88 0x03d97fb0 in 0x3d97fb0 #89 0x03d98310 in 0x3d98310 #90 0x03d97fb0 in 0x3d97fb0 #91 0x03d97e30 in 0x3d97e30 #92 0x03d97e30 in 0x3d97e30 #93 0x03d97e30 in 0x3d97e30 #94 0x03d97fb0 in 0x3d97fb0 #95 0x03d9516c in 0x3d9516c #96 0x947ba0f8 in JVM_GetCPMethodClassNameUTF (JVM_GetCPMethodClassNameUTF + 2856) #97 0x947dbce8 in JVM_GetCPClassNameUTF (JVM_GetCPClassNameUTF + 2456) #98 0x948d06fc in JVM_UnloadLibrary (JVM_UnloadLibrary + 62364) #99 0x9499e79c in jio_vsnprintf (jio_vsnprintf + 66524) #100 0x00003328 in main (main + 4396) #101 0x00001f2c in _start (crt.c:267) #102 0x00001da0 in start (start + 48) Thread 1: #0 0x900075c8 in mach_msg_trap (mach_msg_trap + 8) #1 0x90007118 in mach_msg (mach_msg + 56) #2 0x9487f80c in JNI_CreateJavaVM_Impl (JNI_CreateJavaVM_Impl + 17580) #3 0x9487f7a0 in JNI_CreateJavaVM_Impl (JNI_CreateJavaVM_Impl + 17472) #4 0x9496f9cc in JVM_UnloadLibrary (JVM_UnloadLibrary + 714348) #5 0x900247e8 in _pthread_body (_pthread_body + 40) Thread 2: #0 0x900075c8 in mach_msg_trap (mach_msg_trap + 8) #1 0x90007118 in mach_msg (mach_msg + 56) #2 0x947a7688 in JVM_GetClassAccessFlags (JVM_GetClassAccessFlags + 4584) #3 0x947da944 in __divdi3 (__divdi3 + 20612) #4 0x947f0480 in JVM_GetMethodIxModifiers (JVM_GetMethodIxModifiers + 1264) #5 0x94897b8c in JVM_GetInterfaceVersion (JVM_GetInterfaceVersion + 97052) #6 0x9496f9cc in JVM_UnloadLibrary (JVM_UnloadLibrary + 714348) #7 0x900247e8 in _pthread_body (_pthread_body + 40) Thread 3: #0 0x900075c8 in mach_msg_trap (mach_msg_trap + 8) #1 0x90007118 in mach_msg (mach_msg + 56) #2 0x947a7608 in JVM_GetClassAccessFlags (JVM_GetClassAccessFlags + 4456) #3 0x947a2034 in _mh_dylib_header (_mh_dylib_header + 8244) #4 0x947ab3a4 in __cmpdi2 (__cmpdi2 + 6820) #5 0x947a7ae8 in JVM_MonitorWait (JVM_MonitorWait + 264) #6 0x03d9e580 in 0x3d9e580 #7 0x03d97fb0 in 0x3d97fb0 #8 0x03d97fb0 in 0x3d97fb0 #9 0x03d9516c in 0x3d9516c #10 0x947ba0f8 in JVM_GetCPMethodClassNameUTF (JVM_GetCPMethodClassNameUTF + 2856) #11 0x947dbce8 in JVM_GetCPClassNameUTF (JVM_GetCPClassNameUTF + 2456) #12 0x94818868 in JVM_Close (JVM_Close + 1208) #13 0x94829120 in JVM_Interrupt (JVM_Interrupt + 736) #14 0x948cdeac in JVM_UnloadLibrary (JVM_UnloadLibrary + 52044) #15 0x948145d4 in JVM_FindClassFromClass (JVM_FindClassFromClass + 3092) #16 0x9496f9cc in JVM_UnloadLibrary (JVM_UnloadLibrary + 714348) #17 0x900247e8 in _pthread_body (_pthread_body + 40) Thread 4: #0 0x900075c8 in mach_msg_trap (mach_msg_trap + 8) #1 0x90007118 in mach_msg (mach_msg + 56) #2 0x947a7608 in JVM_GetClassAccessFlags (JVM_GetClassAccessFlags + 4456) #3 0x947a2034 in _mh_dylib_header (_mh_dylib_header + 8244) #4 0x947ab3a4 in __cmpdi2 (__cmpdi2 + 6820) #5 0x947a7ae8 in JVM_MonitorWait (JVM_MonitorWait + 264) #6 0x03d9e580 in 0x3d9e580 #7 0x03d97fb0 in 0x3d97fb0 #8 0x03d97ec0 in 0x3d97ec0 #9 0x03d97ec0 in 0x3d97ec0 #10 0x03d9516c in 0x3d9516c #11 0x947ba0f8 in JVM_GetCPMethodClassNameUTF (JVM_GetCPMethodClassNameUTF + 2856) #12 0x947dbce8 in JVM_GetCPClassNameUTF (JVM_GetCPClassNameUTF + 2456) #13 0x94818868 in JVM_Close (JVM_Close + 1208) #14 0x94829120 in JVM_Interrupt (JVM_Interrupt + 736) #15 0x948cdeac in JVM_UnloadLibrary (JVM_UnloadLibrary + 52044) #16 0x948145d4 in JVM_FindClassFromClass (JVM_FindClassFromClass + 3092) #17 0x9496f9cc in JVM_UnloadLibrary (JVM_UnloadLibrary + 714348) #18 0x900247e8 in _pthread_body (_pthread_body + 40) Thread 5: #0 0x900075c8 in mach_msg_trap (mach_msg_trap + 8) #1 0x90007118 in mach_msg (mach_msg + 56) #2 0x947a7688 in JVM_GetClassAccessFlags (JVM_GetClassAccessFlags + 4584) #3 0x947b7130 in JVM_GetCPMethodSignatureUTF (JVM_GetCPMethodSignatureUTF + 6160) #4 0x947b72d0 in JVM_GetCPMethodSignatureUTF (JVM_GetCPMethodSignatureUTF + 6576) #5 0x9496f9cc in JVM_UnloadLibrary (JVM_UnloadLibrary + 714348) #6 0x900247e8 in _pthread_body (_pthread_body + 40) Thread 6: #0 0x90014628 in semaphore_wait_trap (semaphore_wait_trap + 8) #1 0x948d2e80 in JVM_UnloadLibrary (JVM_UnloadLibrary + 72480) #2 0x948d2044 in JVM_UnloadLibrary (JVM_UnloadLibrary + 68836) #3 0x948145d4 in JVM_FindClassFromClass (JVM_FindClassFromClass + 3092) #4 0x9496f9cc in JVM_UnloadLibrary (JVM_UnloadLibrary + 714348) #5 0x900247e8 in _pthread_body (_pthread_body + 40) Thread 7: #0 0x900075c8 in mach_msg_trap (mach_msg_trap + 8) #1 0x90007118 in mach_msg (mach_msg + 56) #2 0x947a7608 in JVM_GetClassAccessFlags (JVM_GetClassAccessFlags + 4456) #3 0x947da9a4 in __divdi3 (__divdi3 + 20708) #4 0x94811ce0 in JVM_GetFieldIxModifiers (JVM_GetFieldIxModifiers + 2912) #5 0x947fda2c in JVM_SocketAvailable (JVM_SocketAvailable + 4876) #6 0x948145d4 in JVM_FindClassFromClass (JVM_FindClassFromClass + 3092) #7 0x9496f9cc in JVM_UnloadLibrary (JVM_UnloadLibrary + 714348) #8 0x900247e8 in _pthread_body (_pthread_body + 40) Thread 8: #0 0x900075c8 in mach_msg_trap (mach_msg_trap + 8) #1 0x90007118 in mach_msg (mach_msg + 56) #2 0x947a7688 in JVM_GetClassAccessFlags (JVM_GetClassAccessFlags + 4584) #3 0x947b7044 in JVM_GetCPMethodSignatureUTF (JVM_GetCPMethodSignatureUTF + 5924) #4 0x948548f8 in JVM_Sleep (JVM_Sleep + 344) #5 0x03d9e580 in 0x3d9e580 #6 0x03d97fb0 in 0x3d97fb0 #7 0x03d9516c in 0x3d9516c #8 0x947ba0f8 in JVM_GetCPMethodClassNameUTF (JVM_GetCPMethodClassNameUTF + 2856) #9 0x947dbce8 in JVM_GetCPClassNameUTF (JVM_GetCPClassNameUTF + 2456) #10 0x94818868 in JVM_Close (JVM_Close + 1208) #11 0x94829120 in JVM_Interrupt (JVM_Interrupt + 736) #12 0x948cdeac in JVM_UnloadLibrary (JVM_UnloadLibrary + 52044) #13 0x948145d4 in JVM_FindClassFromClass (JVM_FindClassFromClass + 3092) #14 0x9496f9cc in JVM_UnloadLibrary (JVM_UnloadLibrary + 714348) #15 0x900247e8 in _pthread_body (_pthread_body + 40) Thread 9: #0 0x900075c8 in mach_msg_trap (mach_msg_trap + 8) #1 0x90007118 in mach_msg (mach_msg + 56) #2 0x947a7688 in JVM_GetClassAccessFlags (JVM_GetClassAccessFlags + 4584) #3 0x947b7044 in JVM_GetCPMethodSignatureUTF (JVM_GetCPMethodSignatureUTF + 5924) #4 0x948548f8 in JVM_Sleep (JVM_Sleep + 344) #5 0x03d9e580 in 0x3d9e580 #6 0x03d97fb0 in 0x3d97fb0 #7 0x03d9516c in 0x3d9516c #8 0x947ba0f8 in JVM_GetCPMethodClassNameUTF (JVM_GetCPMethodClassNameUTF + 2856) #9 0x947dbce8 in JVM_GetCPClassNameUTF (JVM_GetCPClassNameUTF + 2456) #10 0x94818868 in JVM_Close (JVM_Close + 1208) #11 0x94829120 in JVM_Interrupt (JVM_Interrupt + 736) #12 0x948cdeac in JVM_UnloadLibrary (JVM_UnloadLibrary + 52044) #13 0x948145d4 in JVM_FindClassFromClass (JVM_FindClassFromClass + 3092) #14 0x9496f9cc in JVM_UnloadLibrary (JVM_UnloadLibrary + 714348) #15 0x900247e8 in _pthread_body (_pthread_body + 40) PPC Thread State: srr0: 0x92d59d2c srr1: 0x0200f030 vrsave: 0x00000000 cr: 0x44022242 xer: 0x20000004 lr: 0x92d41310 ctr: 0x90286514 r0: 0x92d41310 r1: 0xbfffbc80 r2: 0x44022242 r3: 0xbfffbd30 r4: 0xbfffbcd0 r5: 0xffffff80 r6: 0x002ff89c r7: 0x000703ea r8: 0x001303f7 r9: 0xffffffff r10: 0x4420c000 r11: 0x00000000 r12: 0x90286514 r13: 0x00500dd0 r14: 0x0050aa50 r15: 0x014bdd08 r16: 0xbfffd590 r17: 0x6b06c388 r18: 0x00000000 r19: 0x00000000 r20: 0x00000002 r21: 0x00000000 r22: 0x0031aeb0 r23: 0x00360190 r24: 0xbfffc360 r25: 0x00000000 r26: 0xbfffbf10 r27: 0x00000000 r28: 0x24022244 r29: 0xbfffbd30 r30: 0xffffffff r31: 0x92d41230 Ben

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