• 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
What is overwriting 'isa' with 0xbaddc0dedeadbead ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What is overwriting 'isa' with 0xbaddc0dedeadbead ?


  • Subject: What is overwriting 'isa' with 0xbaddc0dedeadbead ?
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 22 May 2015 18:42:51 -0700

I’m trying to debug a mysterious crash in a Swift init method. At the end of the method there are some calls to objc_release generated by the compiler, and it’s the first of these that crashes: the object being released has has its ‘isa’ pointer replaced by the value 0xbaddc0dedeadbead. This is obviously a magic value that someone put there to indicate the pointer isn’t valid, but I’ve never seen that particular value before. I’m guessing that it’s something to do with the Swift runtime.

I’ve turned on NSZombieEnabled but it doesn’t make a difference. And the object address doesn’t correspond to any parameter of the init method, nor is it the receiver (the class inherits from NSObject.) The crash is also not consistent; sometimes it doesn’t happen. I’m drawing a blank. Does anyone know what this means?

(Oh, and this is in a 64-bit Mac OS X process. It’s a small all-Swift app I just started writing this week, which used to work until an hour ago, so I don’t think there’s any mysterious memory corruption involved.)

—Jens
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: What is overwriting 'isa' with 0xbaddc0dedeadbead ?
      • From: Greg Parker <email@hidden>
    • Re: What is overwriting 'isa' with 0xbaddc0dedeadbead ?
      • From: Scott Ribe <email@hidden>
    • Re: What is overwriting 'isa' with 0xbaddc0dedeadbead ?
      • From: Michael Hall <email@hidden>
  • Prev by Date: Re: Custom NSView subclass - expressing the fact that a property affects the displayed image
  • Next by Date: Re: Disabling auto-synthesis of property accessors.
  • Previous by thread: Contact - Selection on UiTableView Does Works Only in The First Row
  • Next by thread: Re: What is overwriting 'isa' with 0xbaddc0dedeadbead ?
  • Index(es):
    • Date
    • Thread