Re: "Program exited with status value:45. mi_cmd_stack_list_frames_lite: No stack." Eh?
Re: "Program exited with status value:45. mi_cmd_stack_list_frames_lite: No stack." Eh?
- Subject: Re: "Program exited with status value:45. mi_cmd_stack_list_frames_lite: No stack." Eh?
- From: Jonathan del Strother <email@hidden>
- Date: Tue, 19 Jul 2005 11:24:40 +0100
On 19 Jul 2005, at 11:13, Jonathan del Strother wrote:
On 19 Jul 2005, at 06:09, Sailesh Agrawal wrote:
Jonathan del Strother wrote:
I'm trying to debug my program. It runs for a while, then
suddenly quits. No crash log is left, and gdb doesn't catch
anything. All I get is this in the debug console:
Program exited with status value:
45.mi_cmd_stack_list_frames_lite: No stack.
It runs fine without the debugger attached. Any bright ideas?
some ideas:
1. it might be that you're throwing an exception that is never
caught. though i don't know why this would only happen in debug
mode. you can tell XCode to break on all exceptions (Debug - Stop
on C++ throw).
2. it might be something is corrupting your stack really badly.
Try debugging with guarded memory allocated.
http://developer.apple.com/technotes/tn2004/tn2124.html#SECGMALLOC
Good ideas, but no luck with them.
After copious amounts of NSLogging, I traced the problem to this
line :
[[NSMovie alloc] initWithURL:url byReference:YES];
which is breaking for one specific file. Annoyingly, iTunes
manages to load the file fine, so I can't just blame the file...
Any further suggestions on preventing this from taking down my
entire program?
Took a while, but it finally clicked what's going on.
I'm using NSMovie initWithURL to load music files. Including m4p -
protected aac files. NSMovie is using that annoying PT_DENY_ATTACH
thing that makes gdb bomb out.
I've 'fixed' the problem using this sequence of gdb commands :
(gdb) br ptrace
Breakpoint 6 at 0x900541f4
(gdb) comm 6
>return
>cont
>end
(gdb) restart
(based on stuff from here - http://steike.com/HowToDebugITunesWithGdb)
Now, if anyone has a neater solution, I'd love to hear it. In
particular, I'd like to put this into .gdbinit, but can't see how
because the breakpoint number might change, so you can't just do
'comm 6'
Jon
_______________________________________________
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