Re: Crash when stepping but no crash if not
Re: Crash when stepping but no crash if not
- Subject: Re: Crash when stepping but no crash if not
- From: Fritz Anderson <email@hidden>
- Date: Sun, 28 Jun 2009 16:51:06 -0500
On 28 Jun 2009, at 3:28 PM, Steve Cronin wrote:
I am experiencing a crash if I step through some code but no crash
if I run through the code.
You don't say what application is crashing. Your stack trace, however,
contains lots of references to "pbx" and "gdb." So it's Xcode
crashing, and not your application? But then what to make of -[MyTool
analyzeString:], which I'd bet was yours and not anything in Xcode?
The pattern is not that of an overreleased object, which usually ends
in EXC_BAD_ACCESS in the method dispatcher. Never mind about Xcode
reporting it is garbage-collected. The fact that you're using a GC
application to build or debug non-GC code doesn't mean anything.
The oscillation between "function called from gdb" and
objc_exception_throw suggests to me that there is some kind of
infinite regress. It looks as though the exception mechanism is trying
to work with a string that's internally inconsistent, which raises an
exception, which does the same thing, etc.
Misbehavior in the debugger upon stepping through code often comes
from problems in data formatters. But it's gotten better of late, and
it usually manifested as finite hangs or messages in the gdb console,
not crashes.
By any chance do you have a data formatter in the variables pane, that
calls into your code, such as by calling an accessor method on one of
the displayed values? If so, try removing the formatter. Also, have a
look at the method the formatter calls.
— F
--
Fritz Anderson -- Xcode 3 Unleashed: Now in its second printing -- <http://x3u.manoverboard.org/
>
_______________________________________________
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