EXC_BAD_ACCESS signal in Core Data app on Lion 10.7.4
EXC_BAD_ACCESS signal in Core Data app on Lion 10.7.4
- Subject: EXC_BAD_ACCESS signal in Core Data app on Lion 10.7.4
- From: Ken Victor <email@hidden>
- Date: Thu, 31 May 2012 12:26:02 -0700
i’m getting an EXC_BAD_ACCESS crash in my app when it runs under lion 10.7.4. the app runs fine on 10.6.8. the app is built with xCode 3.2.6 on lion, using the 10.6 sdk and targeting 10.6.
this is 100% repeatable. when the user executes a menu item, i execute a bunch of code that includes several changes to several core data objects. in this processing, i also defer some execution via -performSelectorOnMainThread (without waiting for completion). a few, but not all, of my deferred requests have executed and this crash happens when one of the deferred requests finishes.
i normally run my debug environment with zombies enabled and i’m not getting any hits. and fwiw, i’m testing using a 2006 MacPro with 9GB memory.
can anyone offer me suggestions or pointers to documentation to help me find this? or can anyone explain to me what might be going on that could cause this crash?
thanx,
ken
#0 0x7fff891d5fd0 in -[NSManagedObject(_NSInternalMethods) _newSnapshotForUndo__]
#1 0x7fff891b60ea in -[NSManagedObjectContext(_NSInternalChangeProcessing) _registerUndoForOperation:withObjects:withExtraArguments:]
#2 0x7fff891b218e in -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:]
#3 0x7fff891d745e in -[NSManagedObjectContext(_NSInternalNotificationHandling) _processEndOfEventNotification:]
#4 0x7fff86450d0e in __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1
#5 0x7fff88fe77ba in _CFXNotificationPost
#6 0x7fff8643cfc3 in -[NSNotificationCenter postNotificationName:object:userInfo:]
#7 0x7fff865b7e00 in -[NSUndoManager _postCheckpointNotification]
#8 0x7fff865b7a07 in -[NSUndoManager _endUndoGroupRemovingIfEmpty:]
#9 0x7fff891b66a4 in -[NSManagedObjectContext(_NSInternalChangeProcessing) _updateUndoTransactionForThisEvent:withDeletions:withUpdates:]
#10 0x7fff891b220e in -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:]
#11 0x7fff8918ab87 in _performRunLoopAction
#12 0x7fff88ffe8e7 in __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
#13 0x7fff88ffe846 in __CFRunLoopDoObservers
#14 0x7fff88fd34a2 in CFRunLoopRunSpecific
#15 0x7fff8b5d64d3 in RunCurrentEventLoopInMode
#16 0x7fff8b5dd6d3 in ReceiveNextEventCommon
#17 0x7fff8b5dd60e in BlockUntilNextEventMatchingListInMode
#18 0x7fff84260e31 in _DPSNextEvent
#19 0x7fff84260735 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
#20 0x7fff8425d071 in -[NSApplication run]
#21 0x7fff844d9244 in NSApplicationMain
#22 0x1000165d9 in main at main.m:13
#23 0x1000016d8 in start
_______________________________________________
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