Selector name found in current argument registers: isEqual: - objective-c

I am looking for some assistance with squashing a bug in an OSX app that i just can't work out. I am getting a logged error of:
Selector name found in current argument registers: isEqual:
But i can't for the life of me work out where it's coming from as the log is very unhelpful. Also i can't reproduce this on my own test systems, but it seems to be happening quite a lot on some of the beta testers machines. This only seems to happen on 10.9.
Here is the log file for the crash:
Incident Identifier: 77FAD32D-0316-489E-B898-9C084A4FF48A
CrashReporter Key: A9FEF4E7-53F7-5FD1-AEDE-915C87BD437F
Hardware Model: MacBookPro8,1
Process: iModerate Deskto [4155]
Path: /Users/USER/Desktop/iModerate Desktop.app/Contents/MacOS/iModerate Desktop
Identifier: com.fuzzybadger.iModerate-Desktop
Version: 1.1.549
Code Type: X86-64
Parent Process: launchd [159]
Date/Time: 2014-02-28 10:40:33 +0000
OS Version: Mac OS X 10.9.0 (13A603)
Report Version: 104
Exception Type: SIGSEGV
Exception Codes: SEGV_NOOP at 0x0
Crashed Thread: 10
Application Specific Information:
Selector name found in current argument registers: isEqual:
Thread 0:
0 libsystem_kernel.dylib 0x00007fff852b1716 __psynch_cvwait + 10
1 QuartzCore 0x00007fff8769cce7 _ZN2CA13DispatchGroupD2Ev + 53
2 QuartzCore 0x00007fff8768916e _ZN2CA5Layer17display_if_neededEPNS_11TransactionE + 538
3 QuartzCore 0x00007fff876888f1 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 35
4 QuartzCore 0x00007fff8768837c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 236
5 QuartzCore 0x00007fff87688016 _ZN2CA11Transaction6commitEv + 388
6 QuartzCore 0x00007fff876987a1 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 71
7 CoreFoundation 0x00007fff8998d0a7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
8 CoreFoundation 0x00007fff8998d017 __CFRunLoopDoObservers + 391
9 CoreFoundation 0x00007fff8997e294 CFRunLoopRunSpecific + 340
10 HIToolbox 0x00007fff8fbd1f0d RunCurrentEventLoopInMode + 226
11 HIToolbox 0x00007fff8fbd1b85 ReceiveNextEventCommon + 173
12 HIToolbox 0x00007fff8fbd1abc _BlockUntilNextEventMatchingListInModeWithFilter + 65
13 AppKit 0x00007fff8ce6828e _DPSNextEvent + 1434
14 AppKit 0x00007fff8ce678db -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
15 AppKit 0x00007fff8ce5b9cc -[NSApplication run] + 553
16 AppKit 0x00007fff8ce46803 NSApplicationMain + 940
17 libdyld.dylib 0x00007fff8ce435fd start + 1
Thread 1:
0 libsystem_kernel.dylib 0x00007fff852b2662 kevent64 + 10
1 libdispatch.dylib 0x00007fff91e9f152 _dispatch_mgr_init + 0
Thread 2:
0 libsystem_kernel.dylib 0x00007fff852ada1a mach_msg_trap + 10
1 CoreFoundation 0x00007fff8997f315 __CFRunLoopServiceMachPort + 181
2 CoreFoundation 0x00007fff8997e939 __CFRunLoopRun + 1161
3 CoreFoundation 0x00007fff8997e275 CFRunLoopRunSpecific + 309
4 Foundation 0x00007fff90e47907 +[NSURLConnection(Loader) _resourceLoadLoop:] + 348
5 Foundation 0x00007fff90e4770b __NSThread__main__ + 1318
6 libsystem_pthread.dylib 0x00007fff905e8899 _pthread_body + 138
7 libsystem_pthread.dylib 0x00007fff905e872a _pthread_struct_init + 0
Thread 3:
0 libsystem_kernel.dylib 0x00007fff852ada1a mach_msg_trap + 10
1 CoreFoundation 0x00007fff8997f315 __CFRunLoopServiceMachPort + 181
2 CoreFoundation 0x00007fff8997e939 __CFRunLoopRun + 1161
3 CoreFoundation 0x00007fff8997e275 CFRunLoopRunSpecific + 309
4 AppKit 0x00007fff8d0081ce _NSEventThread + 144
5 libsystem_pthread.dylib 0x00007fff905e8899 _pthread_body + 138
6 libsystem_pthread.dylib 0x00007fff905e872a _pthread_struct_init + 0
Thread 4:
0 libsystem_kernel.dylib 0x00007fff852ada1a mach_msg_trap + 10
1 CoreFoundation 0x00007fff8997f315 __CFRunLoopServiceMachPort + 181
2 CoreFoundation 0x00007fff8997e939 __CFRunLoopRun + 1161
3 CoreFoundation 0x00007fff8997e275 CFRunLoopRunSpecific + 309
4 Foundation 0x00007fff90e49a7c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 253
5 Simperium-OSX 0x000000010cb6b838 -[_SRRunLoopThread main] (SRWebSocket.m:1744)
6 Foundation 0x00007fff90e4770b __NSThread__main__ + 1318
7 libsystem_pthread.dylib 0x00007fff905e8899 _pthread_body + 138
8 libsystem_pthread.dylib 0x00007fff905e872a _pthread_struct_init + 0
Thread 5:
0 libsystem_kernel.dylib 0x00007fff852b19aa __select + 10
1 libsystem_pthread.dylib 0x00007fff905e8899 _pthread_body + 138
2 libsystem_pthread.dylib 0x00007fff905e872a _pthread_struct_init + 0
Thread 6:
0 libsystem_kernel.dylib 0x00007fff852b1e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 7:
0 libsystem_kernel.dylib 0x00007fff852b1e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 8:
0 libsystem_platform.dylib 0x00007fff8bde7cd1 OSAtomicDequeue + 17
1 libsystem_malloc.dylib 0x00007fff8f4b16c4 nano_malloc + 35
2 libsystem_malloc.dylib 0x00007fff8f4af87c malloc_zone_malloc + 71
3 CoreFoundation 0x00007fff899118df __CFBasicHashRehash + 287
4 CoreFoundation 0x00007fff89917566 __CFBasicHashAddValue + 86
5 CoreFoundation 0x00007fff89916609 CFDictionarySetValue + 217
6 libCGCMS.A.dylib 0x00007fff8b857fb8 CreateProfileSet + 104
7 libCGCMS.A.dylib 0x00007fff8b857e61 profileRef + 189
8 libCGCMS.A.dylib 0x00007fff8b858b79 create + 1205
9 libCGCMS.A.dylib 0x00007fff8b859454 get_cms_space_for_space + 140
10 libCGCMS.A.dylib 0x00007fff8b8592ca get_color_world_for_space + 166
11 libCGCMS.A.dylib 0x00007fff8b8591f0 CMSTransformCreateConverter + 63
12 CoreGraphics 0x00007fff86681ba1 CGColorTransformCacheGetConversionType + 145
13 CoreGraphics 0x00007fff86681aeb CGColorTransformConvertNeedsCMS + 113
14 CoreGraphics 0x00007fff8667f8e9 img_data_lock + 1217
15 CoreGraphics 0x00007fff8667e480 CGSImageDataLock + 149
16 libRIP.A.dylib 0x00007fff86548b3c ripc_AcquireImage + 769
17 libRIP.A.dylib 0x00007fff86547b85 ripc_DrawImage + 1025
18 CoreGraphics 0x00007fff8667e023 CGContextDrawImage + 457
19 AppKit 0x00007fff8cfd8c02 __74-[NSImageRep drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke + 835
20 AppKit 0x00007fff8cfd86a8 -[NSImageRep drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 1073
21 AppKit 0x00007fff8cfd7fee __71-[NSImage drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke + 896
22 AppKit 0x00007fff8cf63626 -[NSImage _usingBestRepresentationForRect:context:hints:body:] + 170
23 AppKit 0x00007fff8cfd7b6c -[NSImage drawInRect:fromRect:operation:fraction:respectFlipped:hints:] + 1447
24 AppKit 0x00007fff8cfd7153 -[NSImage _drawMappingAlignmentRectToRect:withState:backgroundStyle:operation:fraction:flip:hints:] + 1453
25 AppKit 0x00007fff8d01fa21 -[NSImageCell _drawImageWithFrame:inView:] + 225
26 AppKit 0x00007fff8d01f8e5 -[NSImageCell drawInteriorWithFrame:inView:] + 625
27 AppKit 0x00007fff8cfd4728 -[NSControl drawRect:] + 341
28 AppKit 0x00007fff8cfc98b0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1075
29 AppKit 0x00007fff8cfc9bb0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1843
30 AppKit 0x00007fff8cfc9bb0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1843
31 AppKit 0x00007fff8cfc9bb0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1843
32 AppKit 0x00007fff8cfc936d __46-[NSView(NSLayerKitGlue) drawLayer:inContext:]_block_invoke + 186
33 AppKit 0x00007fff8cfc9153 -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:] + 2297
34 AppKit 0x00007fff8cfc8848 -[NSView(NSLayerKitGlue) drawLayer:inContext:] + 108
35 QuartzCore 0x00007fff8768a852 CABackingStoreUpdate_ + 2220
36 QuartzCore 0x00007fff87689fa0 ___ZN2CA5Layer8display_Ev_block_invoke + 59
37 QuartzCore 0x00007fff87689f5c x_blame_allocations + 84
38 QuartzCore 0x00007fff87689a6b _ZN2CA5Layer8display_Ev + 1539
39 AppKit 0x00007fff8cfc8713 _NSBackingLayerDisplay + 235
40 AppKit 0x00007fff8cf9faab -[_NSViewBackingLayer display] + 811
41 QuartzCore 0x00007fff8769ce1a _ZL16display_callbackPvS_ + 81
42 QuartzCore 0x00007fff8769cd69 _ZN2CA13DispatchGroup8dispatchEb + 69
43 libdispatch.dylib 0x00007fff91e9d2ad _dispatch_client_callout + 8
44 libdispatch.dylib 0x00007fff91e9f09e _dispatch_root_queue_drain + 326
45 libdispatch.dylib 0x00007fff91ea0193 _dispatch_worker_thread2 + 40
46 libsystem_pthread.dylib 0x00007fff905e9ef8 _pthread_wqthread + 314
47 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 9:
0 libsystem_kernel.dylib 0x00007fff852b1e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 10 Crashed:
0 libobjc.A.dylib 0x00007fff87f0e097 objc_msgSend + 23
1 CoreFoundation 0x00007fff899573d9 -[__NSDictionaryM setObject:forKey:] + 505
2 AppKit 0x00007fff8ceb032b -[NSCell _textAttributes] + 531
3 AppKit 0x00007fff8ceb00e2 -[NSCell _unformattedAttributedStringValue:] + 301
4 AppKit 0x00007fff8cfead57 -[NSButtonCell _currentTitle] + 122
5 AppKit 0x00007fff8cfea3fb -[NSButtonCell _configureAndDrawTitleWithRect:cellFrame:controlView:] + 148
6 AppKit 0x00007fff8cfd62cf -[NSButtonCell drawInteriorWithFrame:inView:] + 1965
7 AppKit 0x00007fff8cfd5ac8 -[NSButtonCell drawWithFrame:inView:] + 498
8 AppKit 0x00007fff8cfd4728 -[NSControl drawRect:] + 341
9 AppKit 0x00007fff8cfc98b0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1075
10 AppKit 0x00007fff8cfc9bb0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1843
11 AppKit 0x00007fff8cfc9bb0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1843
12 AppKit 0x00007fff8cfc9bb0 -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] + 1843
13 AppKit 0x00007fff8cfc936d __46-[NSView(NSLayerKitGlue) drawLayer:inContext:]_block_invoke + 186
14 AppKit 0x00007fff8cfc9153 -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:] + 2297
15 AppKit 0x00007fff8cfc8848 -[NSView(NSLayerKitGlue) drawLayer:inContext:] + 108
16 AppKit 0x00007fff8d01e57c -[_NSBackingLayerContents drawLayer:inContext:] + 149
17 QuartzCore 0x00007fff8768bcc9 -[CALayer drawInContext:] + 115
18 AppKit 0x00007fff8d01e0b8 -[_NSTiledLayer drawTile:inContext:] + 654
19 AppKit 0x00007fff8d01ddbc -[_NSTiledLayerContents drawLayer:inContext:] + 172
20 QuartzCore 0x00007fff8768bcc9 -[CALayer drawInContext:] + 115
21 AppKit 0x00007fff8d7f2565 -[NSTileLayer drawInContext:] + 169
22 QuartzCore 0x00007fff8768a852 CABackingStoreUpdate_ + 2220
23 QuartzCore 0x00007fff87689fa0 ___ZN2CA5Layer8display_Ev_block_invoke + 59
24 QuartzCore 0x00007fff87689f5c x_blame_allocations + 84
25 QuartzCore 0x00007fff87689a6b _ZN2CA5Layer8display_Ev + 1539
26 AppKit 0x00007fff8d01dccf -[NSTileLayer display] + 119
27 AppKit 0x00007fff8d01a175 -[_NSTiledLayerContents update:] + 5545
28 AppKit 0x00007fff8d0188e8 -[_NSTiledLayer display] + 404
29 QuartzCore 0x00007fff8769ce1a _ZL16display_callbackPvS_ + 81
30 QuartzCore 0x00007fff8769cd69 _ZN2CA13DispatchGroup8dispatchEb + 69
31 libdispatch.dylib 0x00007fff91e9d2ad _dispatch_client_callout + 8
32 libdispatch.dylib 0x00007fff91e9f09e _dispatch_root_queue_drain + 326
33 libdispatch.dylib 0x00007fff91ea0193 _dispatch_worker_thread2 + 40
34 libsystem_pthread.dylib 0x00007fff905e9ef8 _pthread_wqthread + 314
35 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 11:
0 libsystem_kernel.dylib 0x00007fff852b1e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 12:
0 libsystem_kernel.dylib 0x00007fff852b1e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 13:
0 libsystem_kernel.dylib 0x00007fff852b1e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff905ecfb9 start_wqthread + 13
Thread 10 crashed with X86-64 Thread State:
rip: 0x00007fff87f0e097 rbp: 0x000000011ab59d20 rsp: 0x000000011ab59cb8 rax: 0x00007fff76b7c648
rbx: 0x0000000000000001 rcx: 0x0000000000000000 rdx: 0x00007fff76b7c648 rdi: 0x00006080006321a0
rsi: 0x00007fff8d89320c r8: 0x00007fff8d85082b r9: 0x0000000000000032 r10: 0x00007fff8d89320c
r11: 0xbadd0dacedb8bead r12: 0x0000608000232d00 r13: 0x0000000000000002 r14: 0x0000000000000003
r15: 0x0000000000000003 rflags: 0x0000000000010246 cs: 0x000000000000002b fs: 0x0000000000000000
gs: 0x000000000e5d0000

The string Selector name found in current argument registers: isEqual: in the crash report is actually coming from HockeySDK and shows the last selector name objc_msgSend() was trying to call. It is identical to OS X showing the following string in their crash reports: objc_msgSend() selector name: isEqual:.
We'll improve this message in our SDK and also see what we can do in the backend for current incoming messages.
So the crash is not caused by HockeySDK!
The reason for the crash is, that objc_msgSend (thread 10 frame 0) was trying to call isEqual on an invalid object, hence the exception type SIGSEGV (See http://en.wikipedia.org/wiki/Segmentation_fault ). This was triggered by [NSButtonCell _currentTitle] in frame 4.
So you might want to check your table views and cells memory management. Especially when you assign a title to an NSButtonCell.

Related

Interpret Mac OS X crash report

I just really need some help deciphering this crash report:
Process: Farm Hand [616]
Path: /Applications/Farm Hand.app/Contents/MacOS/Farm Hand
Identifier: Farm Hand
Version: 1.0 (1)
Code Type: X86-64 (Native)
Parent Process: Instruments [386]
Responsible: Instruments [386]
User ID: 501
Date/Time: 2014-10-12 00:13:17.116 +0100
OS Version: Mac OS X 10.10 (14A388a)
Report Version: 11
Anonymous UUID: 9C6E9671-468C-DBE5-F856-4D6923A3F425
Time Awake Since Boot: 1400 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00007fd37a589ae0
VM Regions Near 0x7fd37a589ae0:
MALLOC_TINY 00007fd37a400000-00007fd37a500000 [ 1024K] rw-/rwx SM=PRV
--> MALLOC_TINY 00007fd37a500000-00007fd37a800000 [ 3072K] rw-/rwx SM=COW
MALLOC_SMALL 00007fd37a800000-00007fd37a83c000 [ 240K] rw-/rwx SM=ZER
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 ??? 0x00007fd37a589ae0 0 + 140546267454176
1 com.apple.AppKit 0x00007fff9230b67a -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1875
2 com.apple.AppKit 0x00007fff92309516 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 913
3 com.apple.AppKit 0x00007fff92308c73 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 333
4 com.apple.AppKit 0x00007fff923057cb -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 2761
5 com.apple.AppKit 0x00007fff922e41ca -[NSView displayIfNeeded] + 1876
6 com.apple.AppKit 0x00007fff923016c5 -[NSWindow displayIfNeeded] + 232
7 com.apple.AppKit 0x00007fff9233e8c2 _handleWindowNeedsDisplayOrLayoutOrUpdateConstraints + 936
8 com.apple.AppKit 0x00007fff92903d91 __83-[NSWindow _postWindowNeedsDisplayOrLayoutOrUpdateConstraintsUnlessPostingDisabled]_block_invoke1523 + 46
9 com.apple.CoreFoundation 0x00007fff8c8f9d87 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
10 com.apple.CoreFoundation 0x00007fff8c8f9ce0 __CFRunLoopDoObservers + 368
11 com.apple.CoreFoundation 0x00007fff8c8ebde8 __CFRunLoopRun + 872
12 com.apple.CoreFoundation 0x00007fff8c8eb838 CFRunLoopRunSpecific + 296
13 com.apple.HIToolbox 0x00007fff990a043f RunCurrentEventLoopInMode + 235
14 com.apple.HIToolbox 0x00007fff990a00be ReceiveNextEventCommon + 179
15 com.apple.HIToolbox 0x00007fff9909fffb _BlockUntilNextEventMatchingListInModeWithFilter + 71
16 com.apple.AppKit 0x00007fff921df821 _DPSNextEvent + 964
17 com.apple.AppKit 0x00007fff921defd0 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 194
18 com.apple.AppKit 0x00007fff921d2f73 -[NSApplication run] + 594
19 com.apple.AppKit 0x00007fff921be424 NSApplicationMain + 1832
20 libdyld.dylib 0x00007fff919c15c9 start + 1
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff8e8dc22e kevent64 + 10
1 libdispatch.dylib 0x00007fff9a706a6a _dispatch_mgr_thread + 52
Thread 2:
0 libsystem_kernel.dylib 0x00007fff8e8db946 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9aac04a1 start_wqthread + 13
Thread 3:
0 libsystem_kernel.dylib 0x00007fff8e8db946 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9aac04a1 start_wqthread + 13
Thread 4:: Dispatch queue: com.apple.root.default-qos
0 libsqlite3.dylib 0x00007fff97cdf4b4 sqlite3HashInsert + 100
1 libsqlite3.dylib 0x00007fff97d7ef9e sqlite3CreateForeignKey + 1358
2 libsqlite3.dylib 0x00007fff97cea93e yy_reduce + 4622
3 libsqlite3.dylib 0x00007fff97ce95ea sqlite3Parser + 122
4 libsqlite3.dylib 0x00007fff97ce8544 sqlite3RunParser + 324
5 libsqlite3.dylib 0x00007fff97ce7cfa sqlite3Prepare + 794
6 libsqlite3.dylib 0x00007fff97ce78e7 sqlite3LockAndPrepare + 231
7 libsqlite3.dylib 0x00007fff97d0d3c3 sqlite3InitCallback + 771
8 libsqlite3.dylib 0x00007fff97ce74a4 sqlite3_exec + 964
9 libsqlite3.dylib 0x00007fff97d0ce21 sqlite3InitOne + 1457
10 libsqlite3.dylib 0x00007fff97d0c7de sqlite3Init + 94
11 libsqlite3.dylib 0x00007fff97d27f75 selectExpander + 1941
12 libsqlite3.dylib 0x00007fff97d27671 sqlite3WalkSelect + 81
13 libsqlite3.dylib 0x00007fff97def1ba sqlite3SelectPrep + 154
14 libsqlite3.dylib 0x00007fff97d1bde0 sqlite3Select + 464
15 libsqlite3.dylib 0x00007fff97ceaaae yy_reduce + 4990
16 libsqlite3.dylib 0x00007fff97ce95ea sqlite3Parser + 122
17 libsqlite3.dylib 0x00007fff97ce85f6 sqlite3RunParser + 502
18 libsqlite3.dylib 0x00007fff97ce7cfa sqlite3Prepare + 794
19 libsqlite3.dylib 0x00007fff97ce78e7 sqlite3LockAndPrepare + 231
20 libsqlite3.dylib 0x00007fff97d7de33 sqlite3_prepare_v2 + 195
21 rh.CoreFarmHand 0x0000000109eeb500 -[RHFileController loadSheepMovementsOff:fromDatabaseAtPath:] + 624 (RHFileController.m:3330)
22 rh.CoreFarmHand 0x0000000109ebd442 __73-[RHFarmDataController loadResourcesFromDatabaseForYear:animation:error:]_block_invoke + 4690 (RHFarmDataController.m:218)
23 libdispatch.dylib 0x00007fff9a708323 _dispatch_call_block_and_release + 12
24 libdispatch.dylib 0x00007fff9a703c13 _dispatch_client_callout + 8
25 libdispatch.dylib 0x00007fff9a70688f _dispatch_root_queue_drain + 935
26 libdispatch.dylib 0x00007fff9a714fe4 _dispatch_worker_thread3 + 91
27 libsystem_pthread.dylib 0x00007fff9aac26cb _pthread_wqthread + 729
28 libsystem_pthread.dylib 0x00007fff9aac04a1 start_wqthread + 13
Thread 5:: Dispatch queue: com.apple.root.default-qos
0 libobjc.A.dylib 0x00007fff97aefb89 getMethodNoSuper_nolock(objc_class*, objc_selector*) + 71
1 libobjc.A.dylib 0x00007fff97ae3a09 class_getInstanceMethod + 75
2 com.apple.Foundation 0x00007fff8e4d5218 -[NSKeyValueUndefinedSetter initWithContainerClassID:key:containerIsa:] + 76
3 com.apple.Foundation 0x00007fff8e4d515b +[NSObject(NSKeyValueCodingPrivate) _createValuePrimitiveSetterWithContainerClassID:key:] + 504
4 com.apple.Foundation 0x00007fff8e4b89db +[NSObject(NSKeyValueCodingPrivate) _createValueSetterWithContainerClassID:key:] + 540
5 com.apple.Foundation 0x00007fff8e4b8748 _NSKeyValueSetterForClassAndKey + 268
6 com.apple.Foundation 0x00007fff8e4b7e36 _NSKVONotifyingEnableForInfoAndKey + 222
7 com.apple.Foundation 0x00007fff8e491c7e -[NSKeyValueUnnestedProperty _isaForAutonotifying] + 101
8 com.apple.Foundation 0x00007fff8e491ada -[NSKeyValueUnnestedProperty isaForAutonotifying] + 74
9 com.apple.Foundation 0x00007fff8e4b737d -[NSObject(NSKeyValueObserverRegistration) _addObserver:forProperty:options:context:] + 602
10 com.apple.Foundation 0x00007fff8e4b6f7a -[NSObject(NSKeyValueObserverRegistration) addObserver:forKeyPath:options:context:] + 107
11 rh.CoreFarmHand 0x0000000109e965f9 __38-[RHPersistentManager addSheepDeaths:]_block_invoke259 + 681 (RHPersistentManager.m:1074)
12 libdispatch.dylib 0x00007fff9a708323 _dispatch_call_block_and_release + 12
13 libdispatch.dylib 0x00007fff9a703c13 _dispatch_client_callout + 8
14 libdispatch.dylib 0x00007fff9a70688f _dispatch_root_queue_drain + 935
15 libdispatch.dylib 0x00007fff9a714fe4 _dispatch_worker_thread3 + 91
16 libsystem_pthread.dylib 0x00007fff9aac26cb _pthread_wqthread + 729
17 libsystem_pthread.dylib 0x00007fff9aac04a1 start_wqthread + 13
Thread 6:
0 libsystem_kernel.dylib 0x00007fff8e8db946 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9aac04a1 start_wqthread + 13
Thread 7:
0 libsystem_kernel.dylib 0x00007fff8e8d652e mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff8e8d569f mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff8c8ecb14 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff8c8ebfdb __CFRunLoopRun + 1371
4 com.apple.CoreFoundation 0x00007fff8c8eb838 CFRunLoopRunSpecific + 296
5 com.apple.AppKit 0x00007fff923428f7 _NSEventThread + 137
6 libsystem_pthread.dylib 0x00007fff9aac22fc _pthread_body + 131
7 libsystem_pthread.dylib 0x00007fff9aac2279 _pthread_start + 176
8 libsystem_pthread.dylib 0x00007fff9aac04b1 thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00007fd37a7e96b0 rcx: 0x00000000000fc080 rdx: 0x000000000002fb10
rdi: 0x00007fd37a4a5700 rsi: 0x00007fff92b52ae3 rbp: 0x00007fff55df9420 rsp: 0x00007fff55df91d0
r8: 0x0000000000000006 r9: 0x00007fd37a400000 r10: 0x00007fd37b087e30 r11: 0x00007fff7c561ec8
r12: 0x00007fd37a4a5700 r13: 0x0000000000000000 r14: 0x0000014a164eaad8 r15: 0x0000000000000088
rip: 0x00007fd37a589ae0 rfl: 0x0000000000010202 cr2: 0x00007fd37a589ae0
Logical CPU: 1
Error Code: 0x00000015
Trap Number: 14
I'm fairly sure this is a stack overflow. Am I correct and is it a recursive loop that is doing it? If not what is happening!
No, it is not a stack overflow. The illegal access is at 0x00007fd37a589ae0. [NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:], 1875 bytes within its code, tried to jump there, and this memory area is reserved for data, not code. The particular piece of code [NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] does not have to be at fault, or indeed any piece of code that appears in the call stack. The crash may be the consequence of a bug in any function that has been called (directly or indirectly) by a function that appears in the call stack, and this function may no longer be featured in the call stack because it has finished executing and left a time bomb in memory.
The stack pointer register contains the value 0x00007fff55df91d0, confirming that an illegal access at 0x00007fd37a589ae0 is not likely to be the stack overflowing.
Also, if you are not the author of Farm Hand, there is nothing useful you can do with this report except send it to the author of Farm Hand (and hope this person is the kind of programmer that can make sense of it) or launch a debugger for a long and tedious session. All the interpretations you suggest in your question (recursion, stack overflow) appear to be wrong.

EXC_BAD_ACCESS (SIGSEGV) and KERN_INVALID_ADDRESS

This issue is getting on my nerves. Please see the crash report and help. In iOS 6 app is working fine. I am performing some operations. After 30 operations are completed I am experiencing this crash. This number can go till 20 also or 1 also. Attaching crash log with this. All the experts please help.
Incident Identifier: E863E717-DE21-4BD0-A203-32E9D4648869
CrashReporter Key: b7fe8726c57b6cc93687be0e904625ecf3813fb9
Hardware Model: iPad2,5
Process: mobile [3833]
Path:
Identifier:
Version:
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2014-06-01 17:07:33.679 +0530
OS Version: iOS 7.0.6 (11B651)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x1e2d1f28
Triggered by Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x38e79b26 objc_msgSend + 6
1 CoreFoundation 0x2e618650 CFRelease + 552
2 CoreFoundation 0x2e626702 -[__NSDictionaryI dealloc] + 114
3 libobjc.A.dylib 0x38e89b06 objc_object::sidetable_release(bool) + 170
4 libobjc.A.dylib 0x38e7b002 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 354
5 CoreFoundation 0x2e61b97c _CFAutoreleasePoolPop + 12
6 Foundation 0x2f00385c -[NSAutoreleasePool release] + 116
7 CoreFoundation 0x2e6b3180 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
8 CoreFoundation 0x2e6b264e __CFRunLoopDoSources0 + 202
9 CoreFoundation 0x2e6b0e42 __CFRunLoopRun + 618
10 CoreFoundation 0x2e61bc22 CFRunLoopRunSpecific + 518
11 CoreFoundation 0x2e61ba06 CFRunLoopRunInMode + 102
12 Foundation 0x2f0093d6 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
13 mobile 0x001704d0 -[VFIPinpad waitForACK] (VFIPinpad.m:2876)
14 mobile 0x00174cd8 -[VFIPinpad sendDataCommand:calcLRC:] (VFIPinpad.m:3716)
15 mobile 0x0017a46a -[VFIPinpad setROSParams:threshold:target:targetPercent:] (VFIPinpad.m:4702)
16 mobile 0x0020d5a4 -[VFIPWLm startTransaction:origAmount:finalAmount:surcharge:invoice:discount:promocode:chequeData:AVSAddress:AVSPostcode:email:refTransactionID:gpsLatitude:gpsLongitude:merchID:terminalID:allowRefundSystemByID:status:statusMsg:tranID:authCode:totalCharge:signatureRequired:voiceAuthPhone:merchantID:tipAmount:receiptData:cardScheme:] (VFIPWLm.m:2840)
17 mobile 0x00064df0 -[MainViewController startTran] (MainViewController.m:1918)
18 mobile 0x00077dac -[MainViewController showView] (MainViewController.m:3359)
19 mobile 0x00084d14 -[MainViewController sc8Next] (MainViewController.m:4674)
20 UIKit 0x30e8f70e -[UIApplication sendAction:to:from:forEvent:] + 86
21 UIKit 0x30e8f6ae -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26
22 UIKit 0x30e8f68c -[UIControl sendAction:to:forEvent:] + 40
23 UIKit 0x30e7b11a -[UIControl _sendActionsForEvents:withEvent:] + 370
24 UIKit 0x30e8f102 -[UIControl touchesEnded:withEvent:] + 586
25 UIKit 0x30e8edd4 -[UIWindow _sendTouchesForEvent:] + 524
26 UIKit 0x30e89e60 -[UIWindow sendEvent:] + 828
27 UIKit 0x30e5f798 -[UIApplication sendEvent:] + 192
28 UIKit 0x30e5df9e _UIApplicationHandleEventQueue + 7094
29 CoreFoundation 0x2e6b3180 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
30 CoreFoundation 0x2e6b264e __CFRunLoopDoSources0 + 202
31 CoreFoundation 0x2e6b0e42 __CFRunLoopRun + 618
32 CoreFoundation 0x2e61bc22 CFRunLoopRunSpecific + 518
33 CoreFoundation 0x2e61ba06 CFRunLoopRunInMode + 102
34 GraphicsServices 0x3330f27e GSEventRunModal + 134
35 UIKit 0x30ebf044 UIApplicationMain + 1132
36 mobile 0x00054ae0 main (main.m:16)
37 libdyld.dylib 0x39386ab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x3942a83c kevent64 + 24
1 libdispatch.dylib 0x3936b210 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x3936af96 _dispatch_mgr_thread$VARIANT$mp + 34
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x3942aa8c mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3942a888 mach_msg + 44
2 CoreFoundation 0x2e6b27be __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x2e6b0ee4 __CFRunLoopRun + 780
4 CoreFoundation 0x2e61bc22 CFRunLoopRunSpecific + 518
5 CoreFoundation 0x2e61ba06 CFRunLoopRunInMode + 102
6 WebCore 0x36829266 RunWebThread(void*) + 414
7 libsystem_pthread.dylib 0x394a5c1a _pthread_body + 138
8 libsystem_pthread.dylib 0x394a5b8a _pthread_start + 98
9 libsystem_pthread.dylib 0x394a3c8c thread_start + 4
Thread 3:
0 libsystem_kernel.dylib 0x3942aa8c mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3942a888 mach_msg + 44
2 CoreFoundation 0x2e6b27be __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x2e6b0ee4 __CFRunLoopRun + 780
4 CoreFoundation 0x2e61bc22 CFRunLoopRunSpecific + 518
5 CoreFoundation 0x2e61ba06 CFRunLoopRunInMode + 102
6 libAVFAudio.dylib 0x2d69e584 GenericRunLoopThread::Entry(void*) + 124
7 libAVFAudio.dylib 0x2d69299c CAPThread::Entry(CAPThread*) + 176
8 libsystem_pthread.dylib 0x394a5c1a _pthread_body + 138
9 libsystem_pthread.dylib 0x394a5b8a _pthread_start + 98
10 libsystem_pthread.dylib 0x394a3c8c thread_start + 4
Thread 4 name: com.apple.CFSocket.private
Thread 4:
0 libsystem_kernel.dylib 0x3943d440 select$DARWIN_EXTSN + 20
1 CoreFoundation 0x2e6b6680 __CFSocketManager + 480
2 libsystem_pthread.dylib 0x394a5c1a _pthread_body + 138
3 libsystem_pthread.dylib 0x394a5b8a _pthread_start + 98
4 libsystem_pthread.dylib 0x394a3c8c thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x3943d440 select$DARWIN_EXTSN + 20
1 ExternalAccessory 0x2eff4352 -[EAInputStream _readInputFromAccThread] + 342
2 Foundation 0x2f0cbc82 __NSThread__main__ + 1058
3 libsystem_pthread.dylib 0x394a5c1a _pthread_body + 138
4 libsystem_pthread.dylib 0x394a5b8a _pthread_start + 98
5 libsystem_pthread.dylib 0x394a3c8c thread_start + 4
Thread 6:
0 libsystem_kernel.dylib 0x3942aa8c mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3942a888 mach_msg + 44
2 CoreFoundation 0x2e6b27be __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x2e6b0ee4 __CFRunLoopRun + 780
4 CoreFoundation 0x2e61bc22 CFRunLoopRunSpecific + 518
5 CoreFoundation 0x2e65f736 CFRunLoopRun + 94
6 CoreMotion 0x2ecd2230 ___lldb_unnamed_function1404$$CoreMotion + 724
7 libsystem_pthread.dylib 0x394a5c1a _pthread_body + 138
8 libsystem_pthread.dylib 0x394a5b8a _pthread_start + 98
9 libsystem_pthread.dylib 0x394a3c8c thread_start + 4
Thread 7:
0 libsystem_kernel.dylib 0x3943dc7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x394a3dc6 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x394a3c80 start_wqthread + 4
Thread 8:
0 libsystem_kernel.dylib 0x3943dc7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x394a3dc6 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x394a3c80 start_wqthread + 4
Thread 9:
0 libsystem_kernel.dylib 0x3943dc7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x394a3dc6 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x394a3c80 start_wqthread + 4
Thread 10:
0 libsystem_kernel.dylib 0x3943dc7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x394a3dc6 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x394a3c80 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x0281f840 r1: 0x31441b29 r2: 0x39647f78 r3: 0x000037f7
r4: 0x559b030e r5: 0x39632010 r6: 0x0281f840 r7: 0x27dde5a8
r8: 0x0281f844 r9: 0x1e2d1f1c r10: 0x16895960 r11: 0x00000000
ip: 0x3961f740 sp: 0x27dde568 lr: 0x2e618655 pc: 0x38e79b26
cpsr: 0x40000030

Is this crash in libdispatch caused by Reachability?

Can anyone tell me if this crashing stack appears to be caused by Reachability? I am running apple's latest implementation of Reachability, downloadable at https://developer.apple.com/library/ios/samplecode/reachability/Introduction/Intro.html
I have an app where ARC is not enabled by default (it is a legacy app) but I enable it on a per-file basis. I have enabled -fobjc-arc for Reachability.m
When I look at these threads, my code is nowhere to be found. I see some activity happening because of a WebHTMLView (probably the ad network view code currently on screen; it's not mine).
On Thread 10, I see a SCNetworkReachabilityDeallocate, then a dispatch_semaphore_wait_slow, and the crash happens on Thread 14 in libdispatch.
Do you think this crash is being caused by that Reachability code, and have I erred in using -fobjc-arc with Reachability.m?
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x2000000c
Triggered by Thread: 14
Thread 0:
0 libsystem_kernel.dylib 0x39cafa84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39caf87c mach_msg + 36
2 CoreFoundation 0x2f3e255c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2f3e0cc2 __CFRunLoopRun + 858
4 CoreFoundation 0x2f34b53c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2f34b31e CFRunLoopRunInMode + 102
6 GraphicsServices 0x340822e6 GSEventRunModal + 134
7 UIKit 0x31c021e0 UIApplicationMain + 1132
8 MyApp 0x00053ad4 main (main.m:33)
9 libdyld.dylib 0x39c0bab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x39caf838 kevent64 + 24
1 libdispatch.dylib 0x39bfe0d0 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x39bf863e _dispatch_mgr_thread + 34
Thread 2 name: com.apple.NSURLConnectionLoader
Thread 2:
0 libsystem_kernel.dylib 0x39cb0910 close + 8
1 CoreFoundation 0x2f370ef6 CFSocketInvalidate + 434
2 CFNetwork 0x2f0122a2 Schedulables::_SchedulablesInvalidateApplierFunction(void const*, void*) + 14
3 CoreFoundation 0x2f34af6e CFArrayApplyFunction + 34
4 CFNetwork 0x2f011a94 SocketStream::close(void const*) + 280
5 CFNetwork 0x2f01194e CoreStreamBase::_streamInterface_Close() + 46
6 CFNetwork 0x2f030286 HTTPReadFilter::_streamImpl_Close() + 66
7 CFNetwork 0x2f01194e CoreStreamBase::_streamInterface_Close() + 46
8 CFNetwork 0x2f0301c6 NetConnection::shutdownConnectionStreams() + 98
9 CFNetwork 0x2f0309c8 NetConnection::closeStreamsIfPossibleOrSignalThatThatNeedsToBeDonePrettyPlease() + 56
10 CFNetwork 0x2f030d12 HTTPConnectionCacheEntry::removeUnauthConnection(NetConnection*) + 182
11 CoreFoundation 0x2f34af6e CFArrayApplyFunction + 34
12 CFNetwork 0x2f075678 HTTPConnectionCacheEntry::purgeIdleConnections(double, double) + 256
13 CFNetwork 0x2f030ad4 HTTPConnectionCache::performIdleSweep() + 156
14 CFNetwork 0x2f073b42 HTTPConnectionCache::timeoutIdleCellConnections() + 18
15 CFNetwork 0x2f0b3394 ___ZNK17CoreSchedulingSet13_performAsyncEPKcU13block_pointerFvvE_block_invoke + 16
16 CoreFoundation 0x2f34af6e CFArrayApplyFunction + 34
17 CFNetwork 0x2f019f10 RunloopBlockContext::perform() + 160
18 CFNetwork 0x2f019de2 MultiplexerSource::perform() + 218
19 CFNetwork 0x2f019c70 MultiplexerSource::_perform(void*) + 44
20 CoreFoundation 0x2f3e2f24 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
21 CoreFoundation 0x2f3e23ea __CFRunLoopDoSources0 + 202
22 CoreFoundation 0x2f3e0bda __CFRunLoopRun + 626
23 CoreFoundation 0x2f34b53c CFRunLoopRunSpecific + 520
24 CoreFoundation 0x2f34b31e CFRunLoopRunInMode + 102
25 Foundation 0x2fd8664c +[NSURLConnection(Loader) _resourceLoadLoop:] + 316
26 Foundation 0x2fdfbdc2 __NSThread__main__ + 1058
27 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
28 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
29 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 3 name: WebThread
Thread 3:
0 CoreGraphics 0x2f49163c CGRectIsEmpty + 0
1 WebCore 0x37291700 -[WAKView setNeedsDisplayInRect:] + 76
2 WebKit 0x37cad22a -[WebHTMLView setNeedsDisplayInRect:] + 214
3 WebCore 0x372915cc WebCore::ScrollView::platformRepaintContentRectangle(WebCore::IntRect const&, bool) + 148
4 WebCore 0x37291412 WebCore::ScrollView::repaintContentRectangle(WebCore::IntRect const&, bool) + 98
5 WebCore 0x37291272 WebCore::FrameView::doDeferredRepaints() + 90
6 WebCore 0x372dc96c WebCore::FrameView::layout(bool) + 1748
7 WebCore 0x3721fb94 WebCore::ThreadTimers::sharedTimerFiredInternal() + 132
8 WebCore 0x3721fae6 WebCore::timerFired(__CFRunLoopTimer*, void*) + 22
9 CoreFoundation 0x2f3e2e84 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 12
10 CoreFoundation 0x2f3e2a9e __CFRunLoopDoTimer + 790
11 CoreFoundation 0x2f3e0e26 __CFRunLoopRun + 1214
12 CoreFoundation 0x2f34b53c CFRunLoopRunSpecific + 520
13 CoreFoundation 0x2f34b31e CFRunLoopRunInMode + 102
14 WebCore 0x372ae7d8 RunWebThread(void*) + 416
15 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
16 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
17 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x39cafa84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39caf87c mach_msg + 36
2 CoreFoundation 0x2f3e255c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2f3e0c7c __CFRunLoopRun + 788
4 CoreFoundation 0x2f34b53c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2f34b31e CFRunLoopRunInMode + 102
6 libAVFAudio.dylib 0x2e3295ae GenericRunLoopThread::Entry(void*) + 126
7 libAVFAudio.dylib 0x2e31dbf4 CAPThread::Entry(CAPThread*) + 176
8 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
9 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
10 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 5 name: JavaScriptCore::BlockFree
Thread 5:
0 libsystem_kernel.dylib 0x39cc1f38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x39d28262 _pthread_cond_wait + 538
2 libsystem_pthread.dylib 0x39d2903c pthread_cond_wait + 36
3 JavaScriptCore 0x3036f408 JSC::BlockAllocator::blockFreeingThreadMain() + 204
4 JavaScriptCore 0x3036ca70 WTF::wtfThreadEntryPoint(void*) + 12
5 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
6 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
7 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 6 name: JavaScriptCore::Marking
Thread 6:
0 libsystem_kernel.dylib 0x39cc1f38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x39d28262 _pthread_cond_wait + 538
2 libsystem_pthread.dylib 0x39d2903c pthread_cond_wait + 36
3 JavaScriptCore 0x3050daf2 JSC::GCThread::waitForNextPhase() + 74
4 JavaScriptCore 0x3050db4c JSC::GCThread::gcThreadMain() + 48
5 JavaScriptCore 0x3036ca70 WTF::wtfThreadEntryPoint(void*) + 12
6 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
7 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
8 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 7 name: com.apple.CFSocket.private
Thread 7:
0 libsystem_kernel.dylib 0x39cc2440 select$DARWIN_EXTSN + 20
1 CoreFoundation 0x2f3e645e __CFSocketManager + 482
2 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
3 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
4 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 8 name: AFNetworking
Thread 8:
0 libsystem_kernel.dylib 0x39cafa84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39caf87c mach_msg + 36
2 CoreFoundation 0x2f3e255c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2f3e0c7c __CFRunLoopRun + 788
4 CoreFoundation 0x2f34b53c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2f34b31e CFRunLoopRunInMode + 102
6 Foundation 0x2fd39822 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x2fd8a664 -[NSRunLoop(NSRunLoop) run] + 76
8 MyApp 0x002c33d0 +[AFURLConnectionOperation networkRequestThreadEntryPoint:] (AFURLConnectionOperation.m:184)
9 Foundation 0x2fdfbdc2 __NSThread__main__ + 1058
10 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
11 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
12 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 9 name: WebCore: CFNetwork Loader
Thread 9:
0 libsystem_kernel.dylib 0x39cafa84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39caf87c mach_msg + 36
2 CoreFoundation 0x2f3e255c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2f3e0c7c __CFRunLoopRun + 788
4 CoreFoundation 0x2f34b53c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2f34b31e CFRunLoopRunInMode + 102
6 WebCore 0x372f7872 WebCore::runLoaderThread(void*) + 250
7 JavaScriptCore 0x3036ca70 WTF::wtfThreadEntryPoint(void*) + 12
8 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
9 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
10 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 10:
0 libsystem_kernel.dylib 0x39cafad4 semaphore_wait_trap + 8
1 libdispatch.dylib 0x39bfcdec _dispatch_semaphore_wait_slow + 172
2 libxpc.dylib 0x39d370d6 xpc_connection_send_message_with_reply_sync + 150
3 SystemConfiguration 0x31b77362 _reach_server_target_remove + 90
4 SystemConfiguration 0x31b772d2 __SCNetworkReachabilityServer_targetRemove + 38
5 SystemConfiguration 0x31b5e318 __SCNetworkReachabilityDeallocate + 92
6 CoreFoundation 0x2f347efc CFRelease + 464
7 libdispatch.dylib 0x39bfc7e0 _dispatch_root_queue_drain + 220
8 libdispatch.dylib 0x39bfc9cc _dispatch_worker_thread2 + 52
9 libsystem_pthread.dylib 0x39d26dfc _pthread_wqthread + 296
10 libsystem_pthread.dylib 0x39d26cc0 start_wqthread + 4
Thread 11:
0 libsystem_kernel.dylib 0x39cc2c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x39d26e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x39d26cc0 start_wqthread + 4
Thread 12:
0 libsystem_kernel.dylib 0x39cc2c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x39d26e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x39d26cc0 start_wqthread + 4
Thread 13:
0 libsystem_kernel.dylib 0x39cafa84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39caf87c mach_msg + 36
2 CoreFoundation 0x2f3e255c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2f3e0c7c __CFRunLoopRun + 788
4 CoreFoundation 0x2f34b53c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2f38f1a6 CFRunLoopRun + 94
6 CoreMotion 0x2fa03394 ___lldb_unnamed_function1407$$CoreMotion + 724
7 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
8 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
9 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 14 Crashed:
0 libobjc.A.dylib 0x3970db66 objc_msgSend + 6
1 CoreFoundation 0x2f347f58 CFRelease + 556
2 libdispatch.dylib 0x39bf7100 _dispatch_call_block_and_release + 8
3 libdispatch.dylib 0x39bfbe72 _dispatch_queue_drain + 370
4 libdispatch.dylib 0x39bf8f96 _dispatch_queue_invoke + 38
5 libdispatch.dylib 0x39bfc74e _dispatch_root_queue_drain + 74
6 libdispatch.dylib 0x39bfc9cc _dispatch_worker_thread2 + 52
7 libsystem_pthread.dylib 0x39d26dfc _pthread_wqthread + 296
8 libsystem_pthread.dylib 0x39d26cc0 start_wqthread + 4
This crash could be caused by just about any piece of code, including your own.
The stack trace indicates that a block has previously retained a pointer that is now being released with CFRelease. If the pointer was not properly retained in the first place - or was in the process of being dealloc-ed when it was originally retained, you could see this stack trace.
If you are accessing the pointer on one thread, but releasing it another, then you may well have the kind of race condition that can cause this kind of crash.

Strange crash on iOS 4.3.5

SIGSEGV SEGV_ACCERR
Here's stacktraces (according to crittercism)
Crashed thread:
0 libobjc.A.dylib 0x33b75c98 objc_msgSend + 15
1 Foundation 0x34ce5389 -[NSThread main] + 44
2 Foundation 0x34d575cd __NSThread__main__ + 972
3 libsystem_c.dylib 0x34600311 _pthread_start + 248
Other threads:
0 libsystem_kernel.dylib 0x345c4c00 mach_msg_trap + 20
1 CoreFoundation 0x368f62bf __CFRunLoopServiceMachPort + 94
2 CoreFoundation 0x368f8569 __CFRunLoopRun + 356
3 CoreFoundation 0x36888ec3 CFRunLoopRunSpecific + 230
4 CoreFoundation 0x36888dcb CFRunLoopRunInMode + 58
5 GraphicsServices 0x3604241f GSEventRunModal + 114
6 GraphicsServices 0x360424cb GSEventRun + 62
7 UIKit 0x35732d69 -[UIApplication _run] + 404
8 UIKit 0x35730807 UIApplicationMain + 670
9 (app name) 0x3b97 main (main.m:8)
Thread: Unknown Name
0 libsystem_kernel.dylib 0x345c7fbc kevent + 24
1 libdispatch.dylib 0x33799041 _dispatch_queue_invoke + 92
2 libdispatch.dylib 0x337985f1 _dispatch_worker_thread2 + 192
3 libsystem_c.dylib 0x34601591 _pthread_wqthread + 264
Thread: Unknown Name
0 libsystem_kernel.dylib 0x345c4c00 mach_msg_trap + 20
1 CoreFoundation 0x368f62bf __CFRunLoopServiceMachPort + 94
2 CoreFoundation 0x368f8569 __CFRunLoopRun + 356
3 CoreFoundation 0x36888ec3 CFRunLoopRunSpecific + 230
4 CoreFoundation 0x36888dcb CFRunLoopRunInMode + 58
5 WebCore 0x36051285 _ZL12RunWebThreadPv + 388
6 libsystem_c.dylib 0x34600311 _pthread_start + 248
Thread: Unknown Name
0 libsystem_kernel.dylib 0x345c4c00 mach_msg_trap + 20
1 CoreFoundation 0x368f62bf __CFRunLoopServiceMachPort + 94
2 CoreFoundation 0x368f8569 __CFRunLoopRun + 356
3 CoreFoundation 0x36888ec3 CFRunLoopRunSpecific + 230
4 CoreFoundation 0x36888dcb CFRunLoopRunInMode + 58
5 Foundation 0x34cf27fd +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 212
6 Foundation 0x34ce5389 -[NSThread main] + 44
7 Foundation 0x34d575cd __NSThread__main__ + 972
8 libsystem_c.dylib 0x34600311 _pthread_start + 248
Thread: Unknown Name
0 libsystem_kernel.dylib 0x345c4c00 mach_msg_trap + 20
1 CoreFoundation 0x368f62bf __CFRunLoopServiceMachPort + 94
2 CoreFoundation 0x368f8569 __CFRunLoopRun + 356
3 CoreFoundation 0x36888ec3 CFRunLoopRunSpecific + 230
4 CoreFoundation 0x368cb6d9 CFRunLoopRun + 48
5 (app name) 0x0001e04b +[ASIHTTPRequest runRequests] (ASIHTTPRequest.m:4791)
6 Foundation 0x34ce5389 -[NSThread main] + 44
7 Foundation 0x34d575cd __NSThread__main__ + 972
8 libsystem_c.dylib 0x34600311 _pthread_start + 248
Thread: Unknown Name
0 libsystem_kernel.dylib 0x345c6c60 __select + 20
1 libsystem_c.dylib 0x34600311 _pthread_start + 248
Thread: Unknown Name
0 libsystem_kernel.dylib 0x345c6d18 __semwait_signal + 24
1 libsystem_c.dylib 0x345ceeb9 pthread_cond_wait + 32
2 CoreMedia 0x313578fb WaitOnCondition + 10
3 CoreMedia 0x31357841 FigSemaphoreWaitRelative + 72
4 MediaToolbox 0x3336ba6b fpa_AsyncMovieControlThread + 54
5 CoreMedia 0x313754e3 figThreadMain + 162
6 libsystem_c.dylib 0x34600311 _pthread_start + 248
Thread: Unknown Name
0 libsystem_kernel.dylib 0x345c4c00 mach_msg_trap + 20
1 CoreFoundation 0x368f62bf __CFRunLoopServiceMachPort + 94
2 CoreFoundation 0x368f8569 __CFRunLoopRun + 356
3 CoreFoundation 0x36888ec3 CFRunLoopRunSpecific + 230
4 CoreFoundation 0x36888dcb CFRunLoopRunInMode + 58
5 MapKit 0x313a345d _ZN16TileCachePrivate14runCacheThreadEv + 280
6 MapKit 0x313a3341 _ZL15_runCacheThreadPv + 8
7 libsystem_c.dylib 0x34600311 _pthread_start + 248
Thread: Unknown Name
0 libsystem_kernel.dylib 0x345c6d18 __semwait_signal + 24
1 libsystem_c.dylib 0x345ceeb9 pthread_cond_wait + 32
2 QuartzCore 0x30dcb737 _ZN2CA13DispatchGroup6threadEPv + 90
3 QuartzCore 0x30de583d thread_fun + 16
4 libsystem_c.dylib 0x34600311 _pthread_start + 248
Thread: Unknown Name
0 libsystem_kernel.dylib 0x345c4c00 mach_msg_trap + 20
1 CoreFoundation 0x368f62bf __CFRunLoopServiceMachPort + 94
2 CoreFoundation 0x368f8569 __CFRunLoopRun + 356
3 CoreFoundation 0x36888ec3 CFRunLoopRunSpecific + 230
4 CoreFoundation 0x36888dcb CFRunLoopRunInMode + 58
5 MapKit 0x313ae215 +[NSThread(MKAdditions) _mapkit_runThread:] + 340
6 Foundation 0x34ce5389 -[NSThread main] + 44
7 Foundation 0x34d575cd __NSThread__main__ + 972
8 libsystem_c.dylib 0x34600311 _pthread_start + 248
Thread: Unknown Name
0 libsystem_kernel.dylib 0x345c73ec __workq_kernreturn + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x345c73ec __workq_kernreturn + 8
Will be grateful for any suggestions how to fix this crash.
This crash happens because of a memory leak or zombie object. You are releasing an object which later on is accessed on the main thread. Best way to track this down is to use instruments leaks detection or NSZombie.
The leak could be anywhere in your app, the crash report can't give you a lot of help on that.

What's going wrong in this crash log

So i have this crash log from my application. I don't have much experience in reading such logs :( Could someone please help me?
Thanks
CrashLog:
Process: SoundCloud Downloader [15495]
Path: /Applications/SoundCloud Downloader.app/Contents/MacOS/SoundCloud Downloader
Identifier: com.BirdiCode.SoundCloud_Downloader
Version: 2.1.1 (b7)
Code Type: X86-64 (Native)
Parent Process: launchd [227]
Date/Time: 2012-01-08 15:16:21.614 +0100
OS Version: Mac OS X 10.7.2 (11C74)
Report Version: 9
Crashed Thread: 7
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: 0x000000000000000d, 0x0000000000000000
VM Regions Near 0:
-->
__TEXT 0000000100000000-0000000100053000 [ 332K] r-x/rwx SM=COW /Applications/SoundCloud Downloader.app/Contents/MacOS/SoundCloud Downloader
Application Specific Information:
objc_msgSend() selector name: _cfTypeID
objc[15495]: garbage collection is OFF
Thread 0:: Dispatch queue: com.apple.main-thread
0 libunwind.dylib 0x00007fff8bf97239 libunwind::CompactUnwinder_x86_64<libunwind::LocalAddressSpace>::stepWithCompactEncodingRBPFrame(unsigned int, unsigned long long, libunwind::LocalAddressSpace&, libunwind::Registers_x86_64&) + 1
1 libunwind.dylib 0x00007fff8bf971fd libunwind::CompactUnwinder_x86_64<libunwind::LocalAddressSpace>::stepWithCompactEncoding(unsigned int, unsigned long long, libunwind::LocalAddressSpace&, libunwind::Registers_x86_64&) + 37
2 libunwind.dylib 0x00007fff8bf97171 libunwind::UnwindCursor<libunwind::LocalAddressSpace, libunwind::Registers_x86_64>::step() + 69
3 libobjc.A.dylib 0x00007fff91442294 objc_addExceptionHandler + 82
4 com.apple.CoreFoundation 0x00007fff94d27d44 _CFDoExceptionOperation + 308
5 com.apple.AppKit 0x00007fff8ffd3309 _NSAppKitLock + 73
6 com.apple.AppKit 0x00007fff9009acb2 -[NSCGSContext _invalidate] + 57
7 com.apple.AppKit 0x00007fff9009ac53 -[NSCGSContext dealloc] + 27
8 com.apple.AppKit 0x00007fff9009ac31 -[NSWindowGraphicsContext dealloc] + 67
9 com.apple.AppKit 0x00007fff9009abe5 -[NSBitmapGraphicsContext dealloc] + 92
10 libobjc.A.dylib 0x00007fff9144003c (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 434
11 com.apple.CoreFoundation 0x00007fff94cc5f75 _CFAutoreleasePoolPop + 37
12 com.apple.Foundation 0x00007fff8a83c2a6 __NSFireDelayedPerform + 468
13 com.apple.CoreFoundation 0x00007fff94cecf84 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
14 com.apple.CoreFoundation 0x00007fff94cecad6 __CFRunLoopDoTimer + 534
15 com.apple.CoreFoundation 0x00007fff94ccd471 __CFRunLoopRun + 1617
16 com.apple.CoreFoundation 0x00007fff94cccae6 CFRunLoopRunSpecific + 230
17 com.apple.HIToolbox 0x00007fff8c02a3d3 RunCurrentEventLoopInMode + 277
18 com.apple.HIToolbox 0x00007fff8c03163d ReceiveNextEventCommon + 355
19 com.apple.HIToolbox 0x00007fff8c0314ca BlockUntilNextEventMatchingListInMode + 62
20 com.apple.AppKit 0x00007fff8ffd83f1 _DPSNextEvent + 659
21 com.apple.AppKit 0x00007fff8ffd7cf5 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135
22 com.apple.AppKit 0x00007fff8ffd462d -[NSApplication run] + 470
23 com.apple.AppKit 0x00007fff9025380c NSApplicationMain + 867
24 com.BirdiCode.SoundCloud_Downloader 0x0000000100001e50 start + 52
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff8c7c97e6 kevent + 10
1 libdispatch.dylib 0x00007fff8f5cb5be _dispatch_mgr_invoke + 923
2 libdispatch.dylib 0x00007fff8f5ca14e _dispatch_mgr_thread + 54
Thread 2:: com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x00007fff8c7c767a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff8c7c6d71 mach_msg + 73
2 com.apple.CoreFoundation 0x00007fff94cc4b6c __CFRunLoopServiceMachPort + 188
3 com.apple.CoreFoundation 0x00007fff94ccd2d4 __CFRunLoopRun + 1204
4 com.apple.CoreFoundation 0x00007fff94cccae6 CFRunLoopRunSpecific + 230
5 com.apple.Foundation 0x00007fff8a8960ab +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 335
6 com.apple.Foundation 0x00007fff8a88a7fe -[NSThread main] + 68
7 com.apple.Foundation 0x00007fff8a88a776 __NSThread__main__ + 1575
8 libsystem_c.dylib 0x00007fff8a60e8bf _pthread_start + 335
9 libsystem_c.dylib 0x00007fff8a611b75 thread_start + 13
Thread 3:: com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x00007fff8c7c8df2 __select + 10
1 com.apple.CoreFoundation 0x00007fff94d15f9b __CFSocketManager + 1355
2 libsystem_c.dylib 0x00007fff8a60e8bf _pthread_start + 335
3 libsystem_c.dylib 0x00007fff8a611b75 thread_start + 13
Thread 4:
0 libsystem_kernel.dylib 0x00007fff8c7c9192 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8a610594 _pthread_wqthread + 758
2 libsystem_c.dylib 0x00007fff8a611b85 start_wqthread + 13
Thread 5:
0 libsystem_kernel.dylib 0x00007fff8c7c9192 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8a610594 _pthread_wqthread + 758
2 libsystem_c.dylib 0x00007fff8a611b85 start_wqthread + 13
Thread 6:
0 libsystem_kernel.dylib 0x00007fff8c7c9192 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8a610594 _pthread_wqthread + 758
2 libsystem_c.dylib 0x00007fff8a611b85 start_wqthread + 13
Thread 7 Crashed:
0 libobjc.A.dylib 0x00007fff9143ae90 objc_msgSend + 16
1 com.apple.CoreFoundation 0x00007fff94ca6ae0 CFGetTypeID + 240
2 com.apple.CoreGraphics 0x00007fff8b1a31f0 CGSReleaseRegion + 23
3 com.apple.AppKit 0x00007fff9001ac0d -[NSRegion dealloc] + 33
4 com.apple.AppKit 0x00007fff900a23fc +[_NSAutomaticFocusRing showForView:] + 2655
5 com.apple.AppKit 0x00007fff9001acbe -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 136
6 com.apple.AppKit 0x00007fff9001493e -[NSView displayIfNeeded] + 1676
7 com.apple.AppKit 0x00007fff9016ca18 -[NSWindow setFrame:display:animate:] + 1320
8 com.BirdiCode.SoundCloud_Downloader 0x0000000100015682 -[SoundCloud_DownloaderAppDelegate expandTheWindowForDownload] + 654
9 com.BirdiCode.SoundCloud_Downloader 0x0000000100016374 -[SoundCloud_DownloaderAppDelegate addToDownloadsQue:title:artist:buy:] + 2900
10 com.BirdiCode.SoundCloud_Downloader 0x00000001000126f9 -[SoundCloud_DownloaderAppDelegate prepareForDownloadThread:] + 727
11 com.BirdiCode.SoundCloud_Downloader 0x00000001000129c6 -[SoundCloud_DownloaderAppDelegate prepareThread1] + 70
12 com.apple.Foundation 0x00007fff8a88a7fe -[NSThread main] + 68
13 com.apple.Foundation 0x00007fff8a88a776 __NSThread__main__ + 1575
14 libsystem_c.dylib 0x00007fff8a60e8bf _pthread_start + 335
15 libsystem_c.dylib 0x00007fff8a611b75 thread_start + 13
Thread 8:
0 libsystem_kernel.dylib 0x00007fff8c7c9192 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8a610594 _pthread_wqthread + 758
2 libsystem_c.dylib 0x00007fff8a611b85 start_wqthread + 13
Thread 9:
0 libsystem_kernel.dylib 0x00007fff8c7c767a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff8c7c6d71 mach_msg + 73
2 com.apple.CoreFoundation 0x00007fff94cc4b6c __CFRunLoopServiceMachPort + 188
3 com.apple.CoreFoundation 0x00007fff94ccd2d4 __CFRunLoopRun + 1204
4 com.apple.CoreFoundation 0x00007fff94cccae6 CFRunLoopRunSpecific + 230
5 com.apple.Foundation 0x00007fff8a83c04f -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 267
6 com.BirdiCode.SoundCloud_Downloader 0x0000000100029601 -[ASIHTTPRequest startSynchronous] + 229
7 com.BirdiCode.SoundCloud_Downloader 0x0000000100013849 -[SoundCloud_DownloaderAppDelegate downloadThisFromThread:] + 952
8 com.BirdiCode.SoundCloud_Downloader 0x0000000100014db2 -[SoundCloud_DownloaderAppDelegate downloadT1] + 70
9 com.apple.Foundation 0x00007fff8a88a7fe -[NSThread main] + 68
10 com.apple.Foundation 0x00007fff8a88a776 __NSThread__main__ + 1575
11 libsystem_c.dylib 0x00007fff8a60e8bf _pthread_start + 335
12 libsystem_c.dylib 0x00007fff8a611b75 thread_start + 13
Thread 10:
0 libsystem_kernel.dylib 0x00007fff8c7c767a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff8c7c6d71 mach_msg + 73
2 com.apple.CoreFoundation 0x00007fff94cc4b6c __CFRunLoopServiceMachPort + 188
3 com.apple.CoreFoundation 0x00007fff94ccd2d4 __CFRunLoopRun + 1204
4 com.apple.CoreFoundation 0x00007fff94cccae6 CFRunLoopRunSpecific + 230
5 com.apple.Foundation 0x00007fff8a83c04f -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 267
6 com.BirdiCode.SoundCloud_Downloader 0x0000000100029601 -[ASIHTTPRequest startSynchronous] + 229
7 com.BirdiCode.SoundCloud_Downloader 0x00000001000139c3 -[SoundCloud_DownloaderAppDelegate downloadThisFromThread:] + 1330
8 com.BirdiCode.SoundCloud_Downloader 0x0000000100014ccb -[SoundCloud_DownloaderAppDelegate downloadT2] + 70
9 com.apple.Foundation 0x00007fff8a88a7fe -[NSThread main] + 68
10 com.apple.Foundation 0x00007fff8a88a776 __NSThread__main__ + 1575
11 libsystem_c.dylib 0x00007fff8a60e8bf _pthread_start + 335
12 libsystem_c.dylib 0x00007fff8a611b75 thread_start + 13
Thread 11:
0 libsystem_kernel.dylib 0x00007fff8c7c767a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff8c7c6d71 mach_msg + 73
2 com.apple.CoreFoundation 0x00007fff94cc4b6c __CFRunLoopServiceMachPort + 188
3 com.apple.CoreFoundation 0x00007fff94ccd2d4 __CFRunLoopRun + 1204
4 com.apple.CoreFoundation 0x00007fff94cccae6 CFRunLoopRunSpecific + 230
5 com.apple.Foundation 0x00007fff8a83c04f -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 267
6 com.BirdiCode.SoundCloud_Downloader 0x0000000100029601 -[ASIHTTPRequest startSynchronous] + 229
7 com.BirdiCode.SoundCloud_Downloader 0x0000000100013b3d -[SoundCloud_DownloaderAppDelegate downloadThisFromThread:] + 1708
8 com.BirdiCode.SoundCloud_Downloader 0x0000000100014be4 -[SoundCloud_DownloaderAppDelegate downloadT3] + 70
9 com.apple.Foundation 0x00007fff8a88a7fe -[NSThread main] + 68
10 com.apple.Foundation 0x00007fff8a88a776 __NSThread__main__ + 1575
11 libsystem_c.dylib 0x00007fff8a60e8bf _pthread_start + 335
12 libsystem_c.dylib 0x00007fff8a611b75 thread_start + 13
Thread 7 crashed with X86 Thread State (64-bit):
rax: 0x00007fff7a7a5b00 rbx: 0x0000000101aad400 rcx: 0xf000000000000000 rdx: 0x00007fff7a7d56c0
rdi: 0x0000000101aad400 rsi: 0x00007fff9089fb17 rbp: 0x000000010a1da1d0 rsp: 0x000000010a1da1b0
r8: 0x0000000000000080 r9: 0x0000000000000180 r10: 0x000000010035ec80 r11: 0xf000000000000000
r12: 0x000000010a5263b0 r13: 0x00000000000000e0 r14: 0x000000010a527250 r15: 0x000000010a526500
rip: 0x00007fff9143ae90 rfl: 0x0000000000010246 cr2: 0x000000010a527000
Logical CPU: 0
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 7
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 167922
thread_create: 2
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=162.9M resident=115.1M(71%) swapped_out_or_unallocated=47.8M(29%)
Writable regions: Total=122.9M written=12.7M(10%) resident=21.4M(17%) swapped_out=860K(1%) unallocated=101.4M(83%)
REGION TYPE VIRTUAL
=========== =======
CG backing stores 1496K
CG image 1872K
CG raster data 1988K
CG shared images 3512K
CoreGraphics 16K
CoreImage 4K
CoreServices 2888K
MALLOC 86.6M
MALLOC guard page 32K
Memory tag=240 4K
Memory tag=242 12K
Memory tag=243 12K
Memory tag=251 8K
OpenCL 8K
STACK GUARD 56.0M
Stack 13.1M
VM_ALLOCATE 16.2M
__CI_BITMAP 80K
__DATA 15.3M
__IMAGE 1256K
__LINKEDIT 48.2M
__RC_CAMERAS 236K
__TEXT 114.7M
__UNICODE 544K
mapped file 45.3M
shared memory 17.7M
=========== =======
TOTAL 426.9M
Also, ist there a book or some website where i could learn how to read crash logs?
Update:
Here is the code for expandWindowForDownload
- (void)expandTheWindowForDownload
{
// Get the window size
NSRect frame = [window frame];
frame.origin.y += frame.size.height - 201;
frame.size.height = 201;
// Apply it
[window setFrame:frame display:YES animate:YES];
}
Here are the things I normally look for:
Exception type
This normally helps you to understand what the basic problem is. In your case, the exception type is EXC_BAD_ACCESS:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
As Google, Stack Overflow or Apple will tell you, these kind of errors occur when you try to access an object after you've released it. (One common root cause of this is if you "over-release" an object - i.e. you call the release method on an object more often than it had been retained.)
Xcode can often find the source of these kind of errors when you run "Analyze" from the Product menu. (In Xcode 3 it's "Build and Analyze" from the Build menu if I recall correctly.) So give that a try, it might save you some time. Otherwise...
Crashed Thread
You'll find this at the top of the crash log, right above the exception type. In your case you've got:
Crashed Thread: 7
This allows you to discard most of the content of the crash log and concentrate on just the thread that caused the crash. So the bit you're interested in is this:
Thread 7 Crashed:
0 libobjc.A.dylib 0x00007fff9143ae90 objc_msgSend + 16
1 com.apple.CoreFoundation 0x00007fff94ca6ae0 CFGetTypeID + 240
2 com.apple.CoreGraphics 0x00007fff8b1a31f0 CGSReleaseRegion + 23
3 com.apple.AppKit 0x00007fff9001ac0d -[NSRegion dealloc] + 33
4 com.apple.AppKit 0x00007fff900a23fc +[_NSAutomaticFocusRing showForView:] + 2655
5 com.apple.AppKit 0x00007fff9001acbe -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 136
6 com.apple.AppKit 0x00007fff9001493e -[NSView displayIfNeeded] + 1676
7 com.apple.AppKit 0x00007fff9016ca18 -[NSWindow setFrame:display:animate:] + 1320
8 com.BirdiCode.SoundCloud_Downloader 0x0000000100015682 -[SoundCloud_DownloaderAppDelegate expandTheWindowForDownload] + 654
9 com.BirdiCode.SoundCloud_Downloader 0x0000000100016374 -[SoundCloud_DownloaderAppDelegate addToDownloadsQue:title:artist:buy:] + 2900
10 com.BirdiCode.SoundCloud_Downloader 0x00000001000126f9 -[SoundCloud_DownloaderAppDelegate prepareForDownloadThread:] + 727
11 com.BirdiCode.SoundCloud_Downloader 0x00000001000129c6 -[SoundCloud_DownloaderAppDelegate prepareThread1] + 70
12 com.apple.Foundation 0x00007fff8a88a7fe -[NSThread main] + 68
13 com.apple.Foundation 0x00007fff8a88a776 __NSThread__main__ + 1575
14 libsystem_c.dylib 0x00007fff8a60e8bf _pthread_start + 335
15 libsystem_c.dylib 0x00007fff8a611b75 thread_start + 13
Now you can work down this stack trace from top to bottom until you reach the first call from your own code. (In theory it's possible that the crash is being caused by an error in Apple's code, but in practice it's almost always our code, not theirs.)
So for you the line of code where things have started to go wrong is:
8 com.BirdiCode.SoundCloud_Downloader 0x0000000100015682 -[SoundCloud_DownloaderAppDelegate expandTheWindowForDownload] + 654
Have a look through the expandTheWindowForDownload method and see if you can spot where you're accessing a released object. If you can't spot it, post the code for that method here and we should be able to find the answer and help you understand what's gone wrong.
Ok, so for anyone viewing this I found the solution to the problem.
It seems to be if you resize the window and the user has "Focused" on a NSTextField while the window is resizing it may cause the crash. This happens on all text input except the NSForm.
This problem occurs on 10.7.2 & 10.7.3. I haven't tried it on any other versions of mac os x.
To solve this problem I just called [textField setEditable:NO]; before and [textField setEditable:YES]; after the window resizing call.
Anyway, thanks for helping!