• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: GDB crashing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re[2]: GDB crashing
      • From: Peter Mulholland <email@hidden>
References: 
 >Re: GDB crashing (From: Ed Martin <email@hidden>)

  • Prev by Date: Re: Xcode Performance on 8-Core Macs
  • Next by Date: Re: Bus error with gcc on simple function?
  • Previous by thread: Re: GDB crashing
  • Next by thread: Re[2]: GDB crashing
  • Index(es):
    • Date
    • Thread