• 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: How set breakpoint in szone_error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How set breakpoint in szone_error?


  • Subject: Re: How set breakpoint in szone_error?
  • From: "Sean McBride" <email@hidden>
  • Date: Thu, 21 Sep 2006 11:18:27 -0400
  • Organization: Rogue Research

On 2006-09-20 07:56, Bill Cheeseman said:

>Xcode tells me to set a breakpoint in szone_error to debug a memory problem.
>I can't find any documentation explaining how to do this. Can somebody give
>me a step-by-step?

I suggest creating a .gdbinit file in your home folder and placing the
following in it:

fb -[NSException raise]
fb objc_exception_throw()
fb -[_NSZombie release]
fb szone_error

Save as ASCII with unix line endings.  Then gdb will always break on
those 4 places, which is quite handy.  However, sometimes the OS gives
messages saying to break on szone_error even though the code path that
gets you to that message never uses szone_error. :( Please file a
dupe. :) You can break on malloc_printf instead, but that function also
prints the heap checking messages and so can trigger far too often.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >How set breakpoint in szone_error? (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: Save dialog question
  • Next by Date: Re: pid vs. Process Serial Number
  • Previous by thread: Re: How set breakpoint in szone_error?
  • Next by thread: How to enable Undo only for subgroup of managed objects?
  • Index(es):
    • Date
    • Thread