Re: GDB crashing
Re: GDB crashing
- Subject: Re: GDB crashing
- From: Scott Ribe <email@hidden>
- Date: Sun, 15 Apr 2007 12:09:17 -0600
- Thread-topic: GDB crashing
> From the replies i got so far i would guess that it is normal for gdb
> to hit this assert() when debugging an application and it is not
> considered a bug in gdb, is that correct?
Sort of in between. The ideal is that gdb not crash, however that may not be
attainable if you mess up memory too badly, however it doesn't happen often,
however it does sometimes happen.
Your best bet is probably to start enabling memory debugging options: in
Xcode, get info on your executable, in the arguments tab, add an environment
variable MallocHelp set to 1. Now when you launch your program, in the log
you'll see a message with help re the malloc debugging options that you
might want to use: MallocGuardEdges, MallocCheapHeapStart,
MallocCheckHeapEach, MallocScribble, and so on. These options won't
necessarily tell you exactly where you're going wrong, but they are likely
to cause your app to crash or throw an exception much closer to the actual
source of the problem--welcome to C ;-)
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
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