Project: SWT
Bug 46722 Crash on open of any java source
Reported: 2003-11-14 23:53:49 | Status: resolved fixed

System crashes when trying to open a java source file. Here's the dump: Date/Time: 2003-11-14 23:36:20 -0500 OS Version: 10.3.1 (Build 7C107) Command: java_swt (/Applications/eclipse/I20031114/eclipse/Eclipse.app/Contents/MacOS/ java_swt) PID: 4875 Thread: 0 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000 Thread 0 Crashed: #0 0x90192e58 in CFArrayGetCount (CFArrayGetCount + 52) #1 0x0245b43c in Java_org_eclipse_swt_internal_carbon_OS_CFArrayGetCount (Java_org_eclipse_swt_internal_carbon_OS_CFArrayGetCount + 40) #2 0x03d9e580 in 0x3d9e580 #3 0x03d97ef0 in 0x3d97ef0 #4 0x03d97ec0 in 0x3d97ec0 #5 0x03d97e30 in 0x3d97e30 #6 0x03d97e30 in 0x3d97e30 #7 0x03d97e30 in 0x3d97e30 #8 0x03d97e30 in 0x3d97e30 #9 0x03d98190 in 0x3d98190 #10 0x03d97fb0 in 0x3d97fb0 #11 0x03d97fb0 in 0x3d97fb0 #12 0x03d97fb0 in 0x3d97fb0 #13 0x03d97fb0 in 0x3d97fb0 #14 0x03d97fb0 in 0x3d97fb0 #15 0x03d97fb0 in 0x3d97fb0 #16 0x03d97fb0 in 0x3d97fb0 #17 0x03d97fb0 in 0x3d97fb0 #18 0x03d97fb0 in 0x3d97fb0 #19 0x03d97fb0 in 0x3d97fb0 #20 0x03d98310 in 0x3d98310 #21 0x0400e814 in 0x400e814 #22 0x0407c1c8 in 0x407c1c8 #23 0x03d97fb0 in 0x3d97fb0 #24 0x03d97fb0 in 0x3d97fb0 #25 0x03d97fb0 in 0x3d97fb0 #26 0x03d97fb0 in 0x3d97fb0 #27 0x03d97fb0 in 0x3d97fb0 #28 0x03d97fb0 in 0x3d97fb0 #29 0x03d97fb0 in 0x3d97fb0 #30 0x03d98310 in 0x3d98310 #31 0x03d97fb0 in 0x3d97fb0 #32 0x03d97fb0 in 0x3d97fb0 #33 0x03d97fb0 in 0x3d97fb0 #34 0x03d97ec0 in 0x3d97ec0 #35 0x03d97ec0 in 0x3d97ec0 #36 0x03d97ec0 in 0x3d97ec0 #37 0x03d97ec0 in 0x3d97ec0 #38 0x03d98310 in 0x3d98310 #39 0x03d97fb0 in 0x3d97fb0 #40 0x03d98220 in 0x3d98220 #41 0x03d97ec0 in 0x3d97ec0 #42 0x03d97ec0 in 0x3d97ec0 #43 0x03d97ec0 in 0x3d97ec0 #44 0x03d97fb0 in 0x3d97fb0 #45 0x03d97fb0 in 0x3d97fb0 #46 0x03d97fb0 in 0x3d97fb0 #47 0x03d97fb0 in 0x3d97fb0 #48 0x03d98310 in 0x3d98310 #49 0x03d98310 in 0x3d98310 #50 0x0400e814 in 0x400e814 #51 0x0407c1c8 in 0x407c1c8 #52 0x03d97fb0 in 0x3d97fb0 #53 0x03d97fb0 in 0x3d97fb0 #54 0x03d97fb0 in 0x3d97fb0 #55 0x03d98310 in 0x3d98310 #56 0x03d97fb0 in 0x3d97fb0 #57 0x03d97fb0 in 0x3d97fb0 #58 0x03f77bf0 in 0x3f77bf0 #59 0x03d97fb0 in 0x3d97fb0 #60 0x03d97fb0 in 0x3d97fb0 #61 0x03d97e30 in 0x3d97e30 #62 0x03d97e30 in 0x3d97e30 #63 0x03d97fb0 in 0x3d97fb0 #64 0x03d97ef0 in 0x3d97ef0 #65 0x03d97ef0 in 0x3d97ef0 #66 0x03d97ef0 in 0x3d97ef0 #67 0x03d98220 in 0x3d98220 #68 0x03d97ec0 in 0x3d97ec0 #69 0x03d9516c in 0x3d9516c #70 0x947ba0f8 in JVM_GetCPMethodClassNameUTF (JVM_GetCPMethodClassNameUTF + 2856) #71 0x947dbce8 in JVM_GetCPClassNameUTF (JVM_GetCPClassNameUTF + 2456) #72 0x948538e4 in JVM_IsNaN (JVM_IsNaN + 23316) #73 0x9487b234 in __floatdisf (__floatdisf + 3828) #74 0x948a9150 in JVM_InvokeMethod (JVM_InvokeMethod + 496) #75 0x03d9e580 in 0x3d9e580 #76 0x03d97ec0 in 0x3d97ec0 #77 0x03d97ec0 in 0x3d97ec0 #78 0x03d98220 in 0x3d98220 #79 0x03d97ec0 in 0x3d97ec0 #80 0x03d97ec0 in 0x3d97ec0 #81 0x03d97ec0 in 0x3d97ec0 #82 0x03d9516c in 0x3d9516c #83 0x947ba0f8 in JVM_GetCPMethodClassNameUTF (JVM_GetCPMethodClassNameUTF + 2856) #84 0x947dbce8 in JVM_GetCPClassNameUTF (JVM_GetCPClassNameUTF + 2456) #85 0x948d06fc in JVM_UnloadLibrary (JVM_UnloadLibrary + 62364) #86 0x9499e79c in jio_vsnprintf (jio_vsnprintf + 66524) #87 0x000034b4 in main (java_swt.c:364) #88 0x000020e4 in _start (crt.c:267) #89 0x00001f58 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 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 0x04081b0c in 0x4081b0c #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 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 0x03d97fb0 in 0x3d97fb0 #8 0x03d97ec0 in 0x3d97ec0 #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 10: #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 0x03d98310 in 0x3d98310 #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 11: #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 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 0x04081b0c in 0x4081b0c #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) PPC Thread State: srr0: 0x90192e58 srr1: 0x0200f030 vrsave: 0x00000000 cr: 0x22002248 xer: 0x00000004 lr: 0x90192e2c ctr: 0x90192e24 r0: 0x00300bc0 r1: 0xbfffc8e0 r2: 0xa01901f4 r3: 0x00000000 r4: 0xbfffca18 r5: 0x00000000 r6: 0x00000000 r7: 0x00500c20 r8: 0x00000000 r9: 0x00000010 r10: 0xa47af280 r11: 0x9024cc40 r12: 0x90192e24 r13: 0x00500c20 r14: 0x0052cc40 r15: 0x0245b414 r16: 0xbfffca00 r17: 0x6b1bf8f8 r18: 0xbfffca64 r19: 0xbfffc9e8 r20: 0x6b1cffd0 r21: 0x6b1bf8f4 r22: 0x000000b8 r23: 0xbfffed30 r24: 0xbfffee34 r25: 0x6b024620 r26: 0xbfffecf0 r27: 0x00000000 r28: 0x632827e0 r29: 0x00000000 r30: 0xbfffc940 r31: 0x90192e2c

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT Printing/carbon/org/eclipse/swt/printing/Printer.java