• 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: EXC_BAD_ACCESS mystery
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EXC_BAD_ACCESS mystery


  • Subject: Re: EXC_BAD_ACCESS mystery
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 10 Nov 2009 08:21:55 -0800


On Nov 10, 2009, at 5:37 AM, Ian Piper wrote:

Can anyone advise a good strategy for tracking down EXC_BAD_ACCESS crashes? I have an application that I can run quite happily two out of three times. Then it will crash with this error. By this I mean I can do Build and Run successively with no problems and then it will crash - no code or other changes.

That exception just means the CPU dereferenced a pointer to an invalid memory address; your average garden-variety crash. If you have earlier experience debugging native code on any other platform, it'll come in handy. Run with the debugger enabled and look at the backtrace when you crash. Find out what variable contains the bad pointer.


If the crash is within the function objc_msgsend, what's happened is that something's called a method of an invalid (probably freed) object. There's a whole FAQ somewhere on this, titled something like "So, You've Crashed In objc_msgsend!".

—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: EXC_BAD_ACCESS mystery
      • From: Ian Piper <email@hidden>
    • Re: EXC_BAD_ACCESS mystery
      • From: Ryan Homer <email@hidden>
References: 
 >EXC_BAD_ACCESS mystery (From: Ian Piper <email@hidden>)

  • Prev by Date: [MEET] CocoaHeads-NYC this Thursday, 11/12
  • Next by Date: Re: Font experts: How to determine if a glyph is available for a particular character
  • Previous by thread: Re: EXC_BAD_ACCESS mystery
  • Next by thread: Re: EXC_BAD_ACCESS mystery
  • Index(es):
    • Date
    • Thread