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

Re: breakpoint in szone_error


  • Subject: Re: breakpoint in szone_error
  • From: Eric Albert <email@hidden>
  • Date: Thu, 9 Feb 2006 10:17:26 -0800

On Feb 9, 2006, at 9:45 AM, Chris Espinosa wrote:

On Feb 9, 2006, at 9:25 AM, Ruotger Skupin wrote:

have you tried "b szone_error" in the debugger console?

Am 09.02.2006 um 17:37 schrieb Stefan Werner:

when running my application, I see messages like this in the output:
malloc: *** error for object 0x21653490: double free
malloc: *** set a breakpoint in szone_error to debug

However, Xcode won't let me set a breakpoint in szone_error - when I try to set it with Debug/Add Symbolic Breakpoint, the gdb console returns
Function "szone_error" not defined.

szone_error is only in the Debug variant of Libsystem.   See "Using Debug Variants of System Libraries":


http://developer.apple.com/documentation/DeveloperTools/Conceptual/ XcodeUserGuide/Contents/Resources/en.lproj/06_02_db_set_up_debug/ chapter_39_section_10.html#//apple_ref/doc/uid/TP40002699- DontLinkElementID_184

Yes, we know it's bad for the non-debug variant of malloc to spew an error message asking you to do the impossible, and there's a bug written about that.

For now, though, try putting a breakpoint on malloc_printf. That usually works.


Hope this helps,
Eric

_______________________________________________
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


References: 
 >breakpoint in szone_error (From: Stefan Werner <email@hidden>)
 >Re: breakpoint in szone_error (From: Ruotger Skupin <email@hidden>)
 >Re: breakpoint in szone_error (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Seattle XCoders meeting tonight, 7 PM - Squeak - book study: Advanced Mac OS X Programming
  • Next by Date: RE: Problem with included headers
  • Previous by thread: Re: breakpoint in szone_error
  • Next by thread: Re: breakpoint in szone_error
  • Index(es):
    • Date
    • Thread