Looks like you're crashing at mach_msg_trap
, the function that handles Objective-C message passing. This is often a sign that you're doing one of two things:
- You have a memory management issue somewhere - you're trying to call a selector on an object that's already been released, you're overreleasing an object, or something similar.
- You're not being thread-safe in some framework. This can be especially tricky in UIKit (most of the UI* elements that the iPhone uses), where you're not allowed to update the screen from any thread other than the main thread.
Look at using Instruments to check your object allocation and leaks, and double-check that you're respecting thread safety properly.