For some reason my app was crashing on a particular action. After investigation, I found out it is because of releasing something that has already been released. Then I read on the internet that I can track down the cause of this using NSZombie and MallocStackLogging which I implemented and got this as the result.
NSZombie: 2011-01-19 14:39:09.523 iota[13649:207] * -[CFString release]: message sent to deallocated instance 0xeeaf510
malloc_history
ALLOC 0xeeaf510-0xeeaf52f [size=32]: thread_a0041500 |start | main | UIApplicationMain | GSEventRun | GSEventRunModal | CFRunLoopRunInMode | CFRunLoopRunSpecific | CFRunLoopRun | __CFRunLoopDoTimer | __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION | __NSFireDelayedPerform | -[UITableView _userSelectRowAtIndexPath:] | -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] | -[CorpDirViewController tableView:didSelectRowAtIndexPath:] | -[CorpDirPersonViewController corpDirViewController:shouldContinueAfterSelectingContact:] | -[ContactItem mergeWithContact:] | -[ContactItem getValueForProperty:] | ABRecordCopyValue | CPRecordCopyProperty | CPRecordGetProperty | ABCMultiValueLoad | ABCDBContextFetchMultiValuePropertyIntoRecord | ABCDBContextFetchMultiValueEntries | CPSqliteStatementSendResults | CollectMultiValueEntries | _sqliteStatementApplyValuesFromRecordWithNullValue | CFStringCreateWithCString | __CFStringCreateImmutableFunnel3 | _CFRuntimeCreateInstance | malloc_zone_malloc
Now I am unable to find out particularly what is causing the crash. Can anyone help me out with it?