SIGSEGV ERROR causing wierd crash on app launch and few api calls - ios

From the breadcrumbs , I figured out that the app crashes right after launch and few api calls. What seems to be the issue here? Can't paste any relevant code here as this crash is not reproducible. Following is the stack trace:
Crashed Thread
1 CFNetwork 0x2da6bf95 _ZN8CFObject8AllocateEmRK7CFClassPK13__CFAllocator + 105
2 CFNetwork 0x2da82bd3 _ZN19HTTPConnectionCache21createEmptyCacheEntryEv + 20
3 CFNetwork 0x2da82a43 _ZN19HTTPConnectionCache34_onqueue_enqueueRequestForProtocolEP12HTTPProtocolP15__CFHTTPMessage + 64
4 CFNetwork 0x2dada00d ___ZN19HTTPConnectionCache25enqueueRequestForProtocolEP12HTTPProtocolP15__CFHTTPMessage_block_invoke + 14
5 CoreFoundation 0x2ddb68f1 CFArrayApplyFunction + 34
6 CFNetwork 0x2da7f6bb _ZN19RunloopBlockContext7performEv + 180
7 CFNetwork 0x2da7f579 _ZN17MultiplexerSource7performEv + 218
8 CFNetwork 0x2da7f40d _ZN17MultiplexerSource8_performEPv + 46
9 CoreFoundation 0x2de4e20b __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
10 CoreFoundation 0x2de4d6db __CFRunLoopDoSources0 + 204
11 CoreFoundation 0x2de4becf __CFRunLoopRun + 620
12 CoreFoundation 0x2ddb6ebf CFRunLoopRunSpecific + 520
13 CoreFoundation 0x2ddb6ca3 CFRunLoopRunInMode + 104
14 Foundation 0x2e7f7087 +[NSURLConnection(Loader) _resourceLoadLoop:] + 316
15 Foundation 0x2e86ca5f __NSThread__main__ + 1060
16 libsystem_pthread.dylib 0x38d29919 _pthread_body + 138
17 libsystem_pthread.dylib 0x38d2988b _pthread_start + 100
18 libsystem_pthread.dylib 0x38d27aa4 thread_start + 6

Related

IOS app crash with CFNetwork, but can not find the problem

can anyone help me with my app crash, here is the crash log, I can not find the problem, thanks very much.
Thread 8 name:
Thread 8 Crashed:
0 libobjc.A.dylib 0x00000001c852f6f0 objc_retain + 16 (objc-object.h:441)
1 CFNetwork 0x00000001c99594d0 formEventCallback(__CFReadStream*, unsigned long, void*) + 128 (FormDataStream.c:246)
2 CoreFoundation 0x00000001c92bd950 _signalEventSync + 220 (CFStream.c:653)
3 CoreFoundation 0x00000001c92bcf0c _cfstream_shared_signalEventSync + 348 (CFStream.c:784)
4 CoreFoundation 0x00000001c92aa6c4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1980)
5 CoreFoundation 0x00000001c92aa640 __CFRunLoopDoSource0 + 92 (CFRunLoop.c:2015)
6 CoreFoundation 0x00000001c92a9ef8 __CFRunLoopDoSources0 + 180 (CFRunLoop.c:2051)
7 CoreFoundation 0x00000001c92a4bd8 __CFRunLoopRun + 1032 (CFRunLoop.c:2922)
8 CoreFoundation 0x00000001c92a44b8 CFRunLoopRunSpecific + 452 (CFRunLoop.c:3247)
9 CFNetwork 0x00000001c98cd63c -[__CoreSchedulingSetRunnable runForever] + 216 (CoreSchedulingSet.mm:1365)
10 Foundation 0x00000001c9ca5fc0 -[NSThread main] + 72 (NSThread.m:1212)
11 Foundation 0x00000001c9de2c44 __NSThread__start__ + 1044 (NSThread.m:1175)
12 libsystem_pthread.dylib 0x00000001c8f1f974 _pthread_body + 132 (pthread.c:857)
13 libsystem_pthread.dylib 0x00000001c8f1f8d0 _pthread_start + 52 (pthread.c:884)
14 libsystem_pthread.dylib 0x00000001c8f27ddc thread_start + 4
As per your question, you need to install fabric or firebase crashlytics in your app. It will help you to debug the crash issue.
Here is the link for fabric: https://fabric.io/kits/ios/crashlytics/install

iOS App Crash with pthread_kill

I have the following crash report but I can't figure out the cause of this crash. This crash appears quite frequently but the pattern varies at each time. Many thanks!
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000198337270 __pthread_kill + 8
1 libsystem_c.dylib 0x00000001982aeb18 abort + 112
2 libsystem_malloc.dylib 0x00000001983723e4 <redacted> + 0
3 libsystem_malloc.dylib 0x00000001983712f8 <redacted> + 192
4 CoreFoundation 0x00000001866c55e8 <redacted> + 192
5 CoreFoundation 0x00000001865d1394 CFRelease + 328
6 CoreFoundation 0x00000001866bc2bc _CFStringCreateWithFormatAndArgumentsAux2 + 272
7 Foundation 0x0000000187502448 -[NSPlaceholderString initWithFormat:locale:arguments:] + 172
8 0x000000010020f088 _mh_execute_header + 1536136
9 0x0000000100225614 _mh_execute_header + 1627668
10 0x00000001001ac6d0 _mh_execute_header + 1132240
11 CFNetwork 0x00000001861745b8 <redacted> + 80
12 CFNetwork 0x0000000186174548 <redacted> + 208
13 CFNetwork 0x00000001861746c4 <redacted> + 60
14 CFNetwork 0x0000000186047990 <redacted> + 104
15 CFNetwork 0x000000018611150c <redacted> + 104
16 CFNetwork 0x0000000186033ac8 <redacted> + 76
17 CoreFoundation 0x00000001865d4cdc CFArrayApplyFunction + 68
18 CFNetwork 0x0000000186033974 <redacted> + 136
19 CFNetwork 0x0000000186033828 <redacted> + 312
20 CFNetwork 0x0000000186033654 <redacted> + 68
21 CoreFoundation 0x00000001866ac240 <redacted> + 24
22 CoreFoundation 0x00000001866ab4e4 <redacted> + 264
23 CoreFoundation 0x00000001866a9594 <redacted> + 712
24 CoreFoundation 0x00000001865d52d4 CFRunLoopRunSpecific + 396
25 GraphicsServices 0x000000018fc9b6fc GSEventRunModal + 168
26 UIKit 0x000000018b19afac UIApplicationMain + 1488
27 0x000000010024bf1c _mh_execute_header + 1785628
28 libdyld.dylib 0x000000019821ea08 <redacted> + 4
I am assuming that you download some information from the web and are trying to create a string with some parts of that information:
6 CoreFoundation 0x00000001866bc2bc _CFStringCreateWithFormatAndArgumentsAux2 + 272
7 Foundation 0x0000000187502448 -[NSPlaceholderString initWithFormat:locale:arguments:] + 172
Where ever you are using information that you fetched from the Internet, you should first check if that information is valid and respects the right format you expect. Therefore, I recommend you to validate the information before using it.
this might help you:
iPhone app crash at [NSString stringWithFormat]
the error line must be:
[NSString stringWithFormat:#"%#,%#...",a,b...];

Understanding stack trace that is redacted

I have a stack trace from Flurry that is from a crash that is happening a couple times on my app and I dont understand what is going wrong. Any suggestions or hints how I can make sense of this?
0 CoreFoundation 0x184bc2084 <redacted> + 132
1 libobjc.A.dylib 0x1951a00e4 _objc_exception_throw + 60
2 CoreFoundation 0x184ab6ff8 <redacted> + 0
3 My App 0x100015ef4 __mh_execute_header + 73460
4 My App 0x10000c61c __mh_execute_header + 34332
5 My App 0x10000b024 __mh_execute_header + 28708
6 CFNetwork 0x1846624cc <redacted> + 80
7 CFNetwork 0x18466245c <redacted> + 208
8 CFNetwork 0x1846625d8 <redacted> + 60
9 CFNetwork 0x184537684 <redacted> + 104
10 CFNetwork 0x1845ffcb8 <redacted> + 104
11 CFNetwork 0x1845239cc <redacted> + 76
12 CoreFoundation 0x184aa506c _CFArrayApplyFunction + 68
13 CFNetwork 0x184523878 <redacted> + 136
14 CFNetwork 0x18452372c <redacted> + 312
15 CFNetwork 0x184523558 <redacted> + 68
16 CoreFoundation 0x184b7a324 <redacted> + 24
17 CoreFoundation 0x184b795c8 <redacted> + 264
18 CoreFoundation 0x184b77678 <redacted> + 712
19 CoreFoundation 0x184aa5664 _CFRunLoopRunSpecific + 396
20 GraphicsServices 0x18dbe75a4 _GSEventRunModal + 168
21 UIKit 0x1893aa4f8 _UIApplicationMain + 1488
22 My App 0x10000c8f0 __mh_execute_header + 35056
23 libdyld.dylib 0x19580ea08 <redacted> + 4

Strange CFNetwork crash in iOS7.1 - possibly AFNetworking Related

I have started receiving details of a crash that I have not seen before, and it only appears to have started happening since the 7.1 update.
The exact line from the stack is :
CFNetwork
___ZN14CoreStreamBase34_streamSetEventAndScheduleDeliveryEmh_block_invoke + 30
and the entire trace is here:
Thread : Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x3a1b81f0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x3a222797 pthread_kill + 58
2 libsystem_c.dylib 0x3a168fdd abort + 76
3 libc++abi.dylib 0x39497cd7 abort_message + 74
4 libc++abi.dylib 0x394af6f3 __cxa_pure_virtual + 18
5 CFNetwork 0x2ec994bf ___ZN14CoreStreamBase34_streamSetEventAndScheduleDeliveryEmh_block_invoke + 30
6 CoreFoundation 0x2ef37981 CFArrayApplyFunction + 36
7 CFNetwork 0x2ec007fb RunloopBlockContext::perform() + 182
8 CFNetwork 0x2ec006b9 MultiplexerSource::perform() + 220
9 CFNetwork 0x2ec0054d MultiplexerSource::_perform(void*) + 48
10 CoreFoundation 0x2efcf25b __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
11 CoreFoundation 0x2efce72b __CFRunLoopDoSources0 + 206
12 CoreFoundation 0x2efccf1f __CFRunLoopRun + 622
13 CoreFoundation 0x2ef37f4f CFRunLoopRunSpecific + 522
14 CoreFoundation 0x2ef37d33 CFRunLoopRunInMode + 106
15 GraphicsServices 0x33e3e663 GSEventRunModal + 138
16 UIKit 0x3188316d UIApplicationMain + 1136
The only other thread i can see that is running is from AFNetworking, as this would be the only thing I would imagine is using CFNetworking:
Thread : AFNetworking (com.apple.main-thread)
0 libsystem_kernel.dylib 0x3a1a5a58 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3a1a5859 mach_msg + 48
2 CoreFoundation 0x2efce89b __CFRunLoopServiceMachPort + 154
3 CoreFoundation 0x2efccfc1 __CFRunLoopRun + 784
4 CoreFoundation 0x2ef37f4f CFRunLoopRunSpecific + 522
5 CoreFoundation 0x2ef37d33 CFRunLoopRunInMode + 106
6 Foundation 0x2f92a1eb -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 254
7 Foundation 0x2f97b0a1 -[NSRunLoop(NSRunLoop) run] + 80
8 **** 0x0011d35f +[AFURLConnectionOperation networkRequestThreadEntryPoint:] (AFURLConnectionOperation.m:148)
9 Foundation 0x2f9eca5f __NSThread__main__ + 1062
10 libsystem_pthread.dylib 0x3a221919 _pthread_body + 140
11 libsystem_pthread.dylib 0x3a22188b _pthread_start + 102
Has anyone else experienced issues with this? I have been over to the AFN github but cant see anyone else reporting this issue.
Thanks

SDWebImage crash randomly

Im using SDImage in my project, when checking the crash log, this SDImage crashed at
[SDWebImageDownloaderOperation start] func, here are logs, pls help, it wastes my 2 days.
Thread 12:
0 libsystem_kernel.dylib 0x3c383eb4 mach_msg_trap + 20
1 CoreFoundation 0x34143045 __CFRunLoopServiceMachPort + 129
2 CoreFoundation 0x34141da3 __CFRunLoopRun + 883
3 CoreFoundation 0x340b4ebd CFRunLoopRunSpecific + 357
4 CoreFoundation 0x340b4d49 CFRunLoopRunInMode + 105
5 demo 0x0022a683 -[SDWebImageDownloaderOperation start] + 471
6 Foundation 0x34a73be3 __block_global_6 + 103
7 libdispatch.dylib 0x3c2ae11f _dispatch_call_block_and_release + 11
8 libdispatch.dylib 0x3c2b2961 _dispatch_root_queue_drain + 253
9 libdispatch.dylib 0x3c2b2ac1 _dispatch_worker_thread2 + 85
10 libsystem_c.dylib 0x3c2e2a11 _pthread_wqthread + 361
another log
Thread 9 Crashed:
0 CoreFoundation 0x35418b9c CFEqual + 24
1 CFNetwork 0x34d60469 URLConnectionClient::getRequestForTransmission(unsigned char, CFURLResponse*, _CFURLRequest const*, __CFError**) + 205
2 CFNetwork 0x34cc666d URLConnectionClient::_clientWillSendRequest(_CFURLRequest const*, _CFURLResponse*, URLConnectionClient::ClientConnectionEventQueue*) + 157
3 CFNetwork 0x34cc64c5 URLConnectionClient::ClientConnectionEventQueue::processAllEventsAndConsumePayload(XConnectionEventInfo*, long) + 457
4 CFNetwork 0x34cc61a3 URLConnectionClient::processEvents() + 107
5 CFNetwork 0x34cc60d9 MultiplexerSource::perform() + 157
6 CoreFoundation 0x354a3ad3 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION_ + 15
7 CoreFoundation 0x354a329f __CFRunLoopDoSources0 + 215
8 CoreFoundation 0x354a2045 __CFRunLoopRun + 653
9 CoreFoundation 0x354254a5 CFRunLoopRunSpecific + 301
10 CoreFoundation 0x3542536d CFRunLoopRunInMode + 105
11 demo 0x001d1683 -[SDWebImageDownloaderOperation start] + 471
12 Foundation 0x34fe2793 __block_global_6 + 103
13 libdispatch.dylib 0x3435cc59 _dispatch_call_block_and_release + 13
14 libdispatch.dylib 0x3435f817 _dispatch_worker_thread2 + 259
15 libsystem_c.dylib 0x3288cdfb _pthread_wqthread + 295
another crash on cancel
Thread 0 Crashed:
0 demo 0x001a58f2 -[SDWebImageDownloaderOperation cancel] + 130
1 demo 0x001a88df -[SDWebImageCombinedOperation cancel] + 179
2 demo 0x001aaf71 -[UIImageView(WebCache) cancelCurrentImageLoad] + 49
my log help~

Resources