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: Steve Cronin <email@hidden>
- Date: Sun, 28 Jun 2009 18:54:10 -0500
Fritz;
Thanks for the reply!
I am debugging an application I am developing. As I step through code
in the debugger XCode displays the stack trace I included earlier.
You ask what application crashes.... I guess I would answer my
application crashes inside of XCode.
Does that help you in any way? Am I missing the point?
No data formatters in variable pane.
If a string is internally inconsistent as you say below, is there any
way to get XCode to break on when it goes 'inconsistent'.
If the string is inconsistent, why does the code run if I don't step
through it?
Steve
On Jun 28, 2009, at 4:51 PM, Fritz Anderson wrote:
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