Xcode crashes on breakpoints
Xcode crashes on breakpoints
- Subject: Xcode crashes on breakpoints
- From: "Bob Hansen" <email@hidden>
- Date: Mon, 10 Dec 2007 15:46:17 -0600
On one of our projects (call it projectA), Xcode has been a real pain about handling breakpoints. The problem is when a breakpoint is placed, the debugger stops on the breakpoint momentarily and then Xcode crashes. This doesn't happen on EVERY possible breakpoint location, but so far seems like at least half of all breakpoints placed, when reached, results in a crash.
The strange thing is, if i remove all breakpoints the program executes and runs just fine, even when running the debugger. You can pause, step, and continue just fine too (although pointless without use of breakpoints).
It is also important to note that functions that crash on a breakpoint cannot be reached by functions that don't crash. That is, note the scenario where functionA calls functionB. functionB crashes on breakpoints and functionA doesn't. If I place breakpoint on functionA and step into functionB, at some point Xcode will crash. It might crash in functionB or it might crash before I step into functionB, while I'm still in functionA. Most would say this is a code issue, but I'm confident that the code is fine as it is very straightforward and is being used by other projects without breakpoint problems.
To add to the confusion, projectA is the only project that displays breakpoint symptoms. projectA has almost identical project and target settings as other projects. We're currently using Xcode 2.5 although these problems have been occurring somewhere back to Xcode
1.5. I don't think I had these problems when I developed on using a PowerPC Mac, but I'm not for sure.
Settings that may be pertinent:
Load symbols lazily - Off
Prebinding - Off
Zerolink - Off
Debug - Stabs
Architectures - i386
Xcode Error report:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Date/Time: 2007-12-10 15:00:46.544 -0600
OS Version: 10.4.10 (Build 8R3032)
Report Version: 4
Command: Xcode
Path: /Developer/Applications/Xcode.app/Contents/MacOS/Xcode
Parent: WindowServer [64]
Version: 2.5 (799)
Build Version: 2
Project Name: DevToolsIDE
Source Version: 7990000
PID: 20739
Thread: 0
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00005000
Thread 0 Crashed:
0 <<00000000>> 0xffff08b7 __memcpy + 279 (cpu_capabilities.h:228)
1 com.apple.CoreFoundation 0x90870b4e CFStorageReplaceValues + 558
2 com.apple.AppKit 0x93324270 -[NSLayoutManager(NSPrivate) _fillGlyphHoleAtIndex:desiredNumberOfCharacters:] + 1574
3 com.apple.AppKit 0x932c95d6 -[NSLayoutManager(NSPrivate) _glyphIndexForCharacterIndex:startOfRange:okToFillHoles:] + 344
4 com.apple.AppKit 0x932c9276 -[NSLayoutManager(NSPrivate) _glyphRangeForCharacterRange:actualCharacterRange:okToFillHoles:] + 232
5 com.apple.AppKit 0x932c9185 -[NSLayoutManager glyphRangeForCharacterRange:actualCharacterRange:] + 62
6 com.apple.AppKit 0x9332a0a2 -[NSTypesetter _getRemainingNominalParagraphRange:andParagraphSeparatorRange:charactarIndex:layoutManager:string:] + 879
7 com.apple.AppKit 0x932c370a -[NSTypesetter layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:] + 2791
8 com.apple.AppKit 0x932c29ba -[NSATSTypesetter layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:] + 689
9 com.apple.AppKit 0x933286e4 -[NSLayoutManager(NSPrivate) _fillLayoutHoleAtIndex:desiredNumberOfLines:] + 1328
10 com.apple.AppKit 0x9333ea35 +[NSLayoutManager(NSPrivate) _doSomeBackgroundLayout] + 607
11 com.apple.AppKit 0x9333e602 _NSPostBackgroundLayout + 345
12 com.apple.CoreFoundation 0x9082dd6e __CFRunLoopDoObservers + 342
13 com.apple.CoreFoundation 0x9082d0e1 CFRunLoopRunSpecific + 1548
14 com.apple.CoreFoundation 0x9082cace CFRunLoopRunInMode + 61
15 com.apple.HIToolbox 0x92ded8d8 RunCurrentEventLoopInMode + 285
16 com.apple.HIToolbox 0x92decfe2 ReceiveNextEventCommon + 385
17 com.apple.HIToolbox 0x92dece39 BlockUntilNextEventMatchingListInMode + 81
18 com.apple.AppKit 0x93273465 _DPSNextEvent + 572
19 com.apple.AppKit 0x93273056 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 137
20 com.apple.AppKit 0x9326cddb -[NSApplication run] + 512
21 com.apple.AppKit 0x93260d2f NSApplicationMain + 573
22 com.apple.Xcode 0x0000a472 0x1000 + 38002
23 com.apple.Xcode 0x0000a399 0x1000 + 37785
.
.
.
//there is more to the report but it looks not as important
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Any ideas? Thanks in advance.
Bob
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden