EXC_BAD_ACCESS when using distribution profile - ios

When use develop profile everything is ok.app can run in simulator and real phone.But when use distribution profile,it crashes in lauching page.And crashes only happened in distribution profile.So it sounds so strange.
What's more,I am using enterprise profile.
Here is the crash log.
Incident Identifier: 35311121-D805-45AC-86D4-0F2D23FC6A0F
CrashReporter Key: d5d38df3c00b48e5d091b65c20d5ab3c373c35fd
Hardware Model: iPhone6,2
Process: GSD_ZHIFUBAO [271]
Path: /private/var/mobile/Containers/Bundle/Application/A36A0DCC-178E-4251-B611-F8C163EB705F/GSD_ZHIFUBAO.app/GSD_ZHIFUBAO
Identifier: com.nice.one
Version: 6 (2.0)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2016-01-19 16:05:32.32 +0800
Launch Time: 2016-01-19 16:05:30.30 +0800
OS Version: iOS 9.2 (13C75)
Report Version: 105
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000010
Triggered by Thread: 0
Filtered syslog:
None found
Last Exception Backtrace:
0 CoreFoundation 0x184161900 __exceptionPreprocess + 124
1 libobjc.A.dylib 0x1837cff80 objc_exception_throw + 56
2 CoreFoundation 0x184161848 +[NSException raise:format:] + 120
3 GSD_ZHIFUBAO 0x1004677d4 UmengSignalHandler + 144
4 libsystem_platform.dylib 0x183dc593c _sigtramp + 52
5 Foundation 0x184b0af40 ____addOperations_block_invoke + 328
6 Foundation 0x184b08c84 __addOperations + 292
7 GSD_ZHIFUBAO 0x1000a5738 -[NetworkClient postPath:baseUrl:parameters:attachHeaders:isDelete:completion:failure:] (NetworkClient.m:287)
8 GSD_ZHIFUBAO 0x100095b78 -[Netclient postUserinfo:failureBlock:] (Netclient.m:68)
9 GSD_ZHIFUBAO 0x1000427e0 -[AppDelegate application:didFinishLaunchingWithOptions:] (AppDelegate.m:172)
10 UIKit 0x188ec9704 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 400
11 UIKit 0x1890f8130 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2904
12 UIKit 0x1890fc4b8 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1672
13 UIKit 0x1890f95c0 -[UIApplication workspaceDidEndTransaction:] + 168
14 FrontBoardServices 0x185717790 -[FBSSerialQueue _performNext] + 184
15 FrontBoardServices 0x185717b10 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
16 CoreFoundation 0x184118efc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
17 CoreFoundation 0x184118990 __CFRunLoopDoSources0 + 540
18 CoreFoundation 0x184116690 __CFRunLoopRun + 724
19 CoreFoundation 0x184045680 CFRunLoopRunSpecific + 384
20 UIKit 0x188ec2580 -[UIApplication _run] + 460
21 UIKit 0x188ebcd90 UIApplicationMain + 204
22 GSD_ZHIFUBAO 0x100091104 main (main.m:14)
23 libdyld.dylib 0x183be68b8 start + 4
Global Trace Buffer (reverse chronological seconds):
6148914688.454477 CFNetwork 0x000000018473984c TCP Conn 0x154739670 SSL Handshake DONE
6148914688.544633 CFNetwork 0x000000018473984c TCP Conn 0x154747a20 SSL Handshake DONE
6148914689.195506 CFNetwork 0x000000018473975c TCP Conn 0x154747a20 starting SSL negotiation
6148914689.195804 CFNetwork 0x00000001847db104 TCP Conn 0x154747a20 complete. fd: 16, err: 0
6148914689.196920 CFNetwork 0x00000001847dc630 TCP Conn 0x154747a20 event 1. err: 0
6148914689.222770 CFNetwork 0x000000018473975c TCP Conn 0x154739670 starting SSL negotiation
6148914689.223070 CFNetwork 0x00000001847db104 TCP Conn 0x154739670 complete. fd: 15, err: 0
6148914689.224137 CFNetwork 0x00000001847dc630 TCP Conn 0x154739670 event 1. err: 0
6148914689.516014 CFNetwork 0x00000001847dc708 TCP Conn 0x154747a20 started
6148914689.604255 CFNetwork 0x00000001847dc708 TCP Conn 0x154739670 started
6148914689.721041 CFNetwork 0x00000001847db104 TCP Conn 0x1545b1ad0 complete. fd: 6, err: 0
6148914689.721764 CFNetwork 0x00000001847dc630 TCP Conn 0x1545b1ad0 event 1. err: 0
6148914689.791580 CFNetwork 0x00000001847dc708 TCP Conn 0x1545b1ad0 started
6148914689.795240 CFNetwork 0x00000001848318bc Creating default cookie storage with default identifier
6148914689.795240 CFNetwork 0x0000000184831888 Faulting in CFHTTPCookieStorage singleton
6148914689.795291 CFNetwork 0x0000000184883558 Faulting in NSHTTPCookieStorage singleton
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000183d04140 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000183dccef8 pthread_kill + 112
2 libsystem_c.dylib 0x0000000183c75dac abort + 140
3 libc++abi.dylib 0x00000001837a93f4 __cxa_bad_cast + 0
4 libc++abi.dylib 0x00000001837c2f60 std::__terminate(void (*)()) + 44
5 libc++abi.dylib 0x00000001837c285c __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 0
6 libobjc.A.dylib 0x00000001837d0094 _objc_exception_destructor(void*) + 0
7 CoreFoundation 0x0000000184161848 -[NSException initWithCoder:] + 0
8 GSD_ZHIFUBAO 0x00000001004677d4 UmengSignalHandler + 144
9 libsystem_platform.dylib 0x0000000183dc593c _sigtramp + 52
10 Foundation 0x0000000184b0af40 ____addOperations_block_invoke + 328
11 Foundation 0x0000000184b08c84 __addOperations + 292
12 GSD_ZHIFUBAO 0x00000001000a5738 -[NetworkClient postPath:baseUrl:parameters:attachHeaders:isDelete:completion:failure:] (NetworkClient.m:288)
13 GSD_ZHIFUBAO 0x0000000100095b78 -[Netclient postUserinfo:failureBlock:] (Netclient.m:121)
14 GSD_ZHIFUBAO 0x00000001000427e0 -[AppDelegate application:didFinishLaunchingWithOptions:] (AppDelegate.m:172)
15 UIKit 0x0000000188ec9704 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 400
16 UIKit 0x00000001890f8130 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2904
17 UIKit 0x00000001890fc4b8 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1672
18 UIKit 0x00000001890f95c0 -[UIApplication workspaceDidEndTransaction:] + 168
19 FrontBoardServices 0x0000000185717790 -[FBSSerialQueue _performNext] + 184
20 FrontBoardServices 0x0000000185717b10 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
21 CoreFoundation 0x0000000184118efc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24

I think its trying to access deallocated memory.Exception subtype denotes it.
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000010
Just enable zombies object to track exact line of code which creates crash.
You can enable zombies by Go To Edit Scheme of project settings.
Please check below images to enable zombies.

Related

Xcode 10 not symbolicating crash log

I have couple of crashes on startup of app and there are no code changes made since it was last installed by Xcode. When I open device logs, Xcode is not fully symbolicating crash, particularly the place where it crashed. Why is it so and how do I get the fully symbolicated crash log? The crash is unfortunately not reproducible in direct debugging session.
Date/Time: 2018-12-01 12:30:38.3874 +0400
Launch Time: 2018-12-01 12:30:36.0854 +0400
OS Version: iPhone OS 12.1 (16B92)
Baseband Version: 2.01.07
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x0000000101abe1a4
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [43684]
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libswiftCore.dylib 0x0000000101abe1a4 0x1018cc000 + 2040228
1 libswiftCore.dylib 0x0000000101abe1a4 0x1018cc000 + 2040228
2 libswiftCore.dylib 0x0000000101925db8 0x1018cc000 + 368056
3 MyApp-Swift 0x0000000100e69880 0x100d64000 + 1071232
4 MyApp-Swift 0x0000000100dfbd00 0x100d64000 + 621824
5 MyApp-Swift 0x0000000100dfbdb8 0x100d64000 + 622008
6 UIKitCore 0x00000001c29da768 -[UIApplication sendAction:to:from:forEvent:] + 96
7 UIKitCore 0x00000001c24686d0 -[UIControl sendAction:to:forEvent:] + 80
8 UIKitCore 0x00000001c24689f0 -[UIControl _sendActionsForEvents:withEvent:] + 440
9 UIKitCore 0x00000001c24679f0 -[UIControl touchesEnded:withEvent:] + 568
10 UIKitCore 0x00000001c2a1418c -[UIWindow _sendTouchesForEvent:] + 2472
11 UIKitCore 0x00000001c2a153f0 -[UIWindow sendEvent:] + 3156
12 UIKitCore 0x00000001c29f46ec -[UIApplication sendEvent:] + 340
13 UIKitCore 0x00000001c2ac057c __dispatchPreprocessedEventFromEventQueue + 1620
14 UIKitCore 0x00000001c2ac2f74 __handleEventQueueInternal + 4740
15 UIKitCore 0x00000001c2abba64 __handleHIDEventFetcherDrain + 152
16 CoreFoundation 0x00000001958ac1cc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
17 CoreFoundation 0x00000001958ac14c __CFRunLoopDoSource0 + 88
18 CoreFoundation 0x00000001958aba30 __CFRunLoopDoSources0 + 176
19 CoreFoundation 0x00000001958a68fc __CFRunLoopRun + 1040
20 CoreFoundation 0x00000001958a61cc CFRunLoopRunSpecific + 436
21 GraphicsServices 0x0000000197b1d584 GSEventRunModal + 100
22 UIKitCore 0x00000001c29d9054 UIApplicationMain + 212
23 MyApp-Swift 0x0000000100f48dec 0x100d64000 + 1986028
24 libdyld.dylib 0x0000000195366bb4 start + 4

hidden line error in crash log in device

my app works fine when debugging on device and simulator ,but crashing during OTA and AD HOC distribution , I adding here my device log , Im getting the hidden error at the first line in thread 0 :
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001001435ac
Triggered by Thread: 0
Filtered syslog:
None found
Global Trace Buffer (reverse chronological seconds):
0.471355 CFNetwork 0x00000001839f9a80 TCP Conn 0x126183ed0 SSL Handshake DONE
0.705883 CFNetwork 0x00000001839f9990 TCP Conn 0x126183ed0 starting SSL negotiation
0.706739 CFNetwork 0x0000000183a9bf18 TCP Conn 0x126183ed0 complete. fd: 32, err: 0
0.708259 CFNetwork 0x0000000183a9d444 TCP Conn 0x126183ed0 event 1. err: 0
0.748479 CFNetwork 0x0000000183a9d51c TCP Conn 0x126183ed0 started
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 SimPlan 0x00000001001435ac __hidden#11038_ (__hidden#11355_:122)
1 UIKit 0x00000001888231b8 __47-[UIApplication _applicationDidEnterBackground]_block_invoke + 228
2 UIKit 0x00000001888f36d4 +[UIViewController _performWithoutDeferringTransitions:] + 128
3 UIKit 0x0000000188823080 -[UIApplication _applicationDidEnterBackground] + 100
4 UIKit 0x0000000188823604 -[UIApplication _handleApplicationDeactivationWithScene:shouldForceExit:transitionContext:completion:] + 700
5 UIKit 0x0000000188833a80 -[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:] + 448
6 UIKit 0x000000018881d70c __70-[UIApplication scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 152
7 UIKit 0x000000018881d394 -[UIApplication scene:didUpdateWithDiff:transitionContext:completion:] + 712
8 FrontBoardServices 0x0000000184db77ac __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36
9 FrontBoardServices 0x0000000184db7618 -[FBSSerialQueue _performNext] + 168
10 FrontBoardServices 0x0000000184db79c8 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
11 CoreFoundation 0x00000001833cd09c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
12 CoreFoundation 0x00000001833ccb30 __CFRunLoopDoSources0 + 540
13 CoreFoundation 0x00000001833ca830 __CFRunLoopRun + 724
14 CoreFoundation 0x00000001832f4c50 CFRunLoopRunSpecific + 384
15 GraphicsServices 0x0000000184bdc088 GSEventRunModal + 180
16 UIKit 0x00000001885de088 UIApplicationMain + 204
17 SimPlan 0x000000010014184c main (__hidden#11355_:21)
18 libdyld.dylib 0x0000000182e928b8 start + 4
I try to debug with optimization level as suggest here :
Thanks for any help!

Crash in NRMANSURLConnectionSupport

I Keep getting the following crash log in my new relic board. But I am not able to replicate the bug. The issue affects maybe more than half of the users. Has anyone else faced a similar issue or know how to fix it?
Hardware Model: iPhone 6 (iPhone7,2)
Process: T_APP [1421]
Code Type: arm64
Parent Process: launchd [1]
Date/Time: 2015-07-22 01:09:04 +0000
Launch Time: 2015-07-22 01:09:04 +0000
OS Version: iOS 8.1.2 (12B440)
Exception Type: SIGSEGV
Crashed Thread: 14
Application Specific Information:
*** Terminating app due to uncaught exception 'SIGSEGV', reason: ''
Thread 14 Crashed:
0 CFNetwork 0x187e41030 __ZN11HTTPMessage20ensureParserFinishedEv + 69680
1 CFNetwork 0x187e40fb8 __ZN11HTTPMessage19copyAllHeaderFieldsEPPK9__CFArray + 69560
2 CFNetwork 0x187e766d4 [NSHTTPURLResponse allHeaderFields] + 288468
3 T_App 0x10006b22c [NRMANSURLConnectionSupport noticeResponse:forRequest:withTimer:andBody:bytesSent:bytesReceived:] (NRMANSURLConnectionSupport.m:341)
4 T_App 0x100097fe0 [NRMANSURLConnectionDelegateBase connectionDidFinishLoading:] (NRMANSURLConnectionDelegateBase.m:126)
5 CFNetwork 0x187f8ae70 ___65-[NSURLConnectionInternal + 1420912
6 CFNetwork 0x187f8ae00 [NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 1420800
7 CFNetwork 0x187f8af7c [NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 1421180
8 CFNetwork 0x187f2c3f4 ____ZN27URLConnectionClient_Classic23_delegate_cacheTrifectaEPK20_CFCachedURLResponseU13block_pointerFvvE_block_invoke + 1033204
9 CFNetwork 0x187f28540 ____ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 1017152
10 CFNetwork 0x187e4bb54 __ZN19RunloopBlockContext13_invoke_blockEPKvPv + 113492
11 CoreFoundation 0x1883c8aac _CFArrayApplyFunction + 35500
12 CFNetwork 0x187e4ba00 __ZN19RunloopBlockContext7performEv + 113152
13 CFNetwork 0x187e4b8b4 __ZN17MultiplexerSource7performEv + 112820
14 CFNetwork 0x187e4b6e0 __ZN17MultiplexerSource8_performEPv + 112352
15 CoreFoundation 0x18849e9ec ___CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 911852
16 CoreFoundation 0x18849dc90 ___CFRunLoopDoSources0 + 908432
17 CoreFoundation 0x18849bd40 ___CFRunLoopRun + 900416
18 CoreFoundation 0x1883c90a4 _CFRunLoopRunSpecific + 37028
19 WebCore 0x195f50674 __ZN7WebCoreL15runLoaderThreadEPv + 935540
20 JavaScriptCore 0x189950b80 __ZN3WTFL19wtfThreadEntryPointEPv + 84864
21 libsystem_pthread.dylib 0x19945fe80 __pthread_body + 16000
22 libsystem_pthread.dylib 0x19945fddc __pthread_body + 15836
23 libsystem_pthread.dylib 0x19945cfb0 _thread_start + 4016

Why class method appears twice in the call stack of the crash log, iOS

I got a crash log from an app that is already in App Store. The weird part of the crash log is that a class method appears twice in the backtrace of the crashed thread, as if the class method recursively called itself. I said weird because that class method is quite simple and it doesn't make a recursive call inside method body. Here is the part from the crash log:
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3b788350 __pthread_kill + 8
1 libsystem_c.dylib 0x3b6fefb2 pthread_kill + 54
2 libsystem_c.dylib 0x3b73b366 abort + 90
3 btg2 0x0172a358 ___lldb_unnamed_function128645$$btg2 + 280
4 btg2 0x0171af34 ___lldb_unnamed_function128478$$btg2 + 256
5 libsystem_c.dylib 0x3b708d38 _sigtramp + 40
6 btg2 0x0129fd7c +[PHAPIRequest expectedSignatureValueForResponse:nonce:secret:] (PHAPIRequest.m:129)
7 btg2 0x0129fd7c +[PHAPIRequest expectedSignatureValueForResponse:nonce:secret:] (PHAPIRequest.m:129)
8 btg2 0x012a1ee4 -[PHAPIRequest connectionDidFinishLoadingWithRequest:response:data:context:] (PHAPIRequest.m:501)
9 btg2 0x012aee04 -[PHConnectionManager connectionDidFinishLoading:] (PHConnectionManager.m:234)
10 Foundation 0x33d46912 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke_0 + 14
11 Foundation 0x33c86764 -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 196
12 Foundation 0x33c86680 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 56
13 CFNetwork 0x330e764c ___delegate_didFinishLoading_block_invoke_0 + 24
14 CFNetwork 0x330e6d30 ___withDelegateAsync_block_invoke_0 + 52
15 CFNetwork 0x3310f010 ___performAsync_block_invoke_068 + 16
16 CoreFoundation 0x33350aca CFArrayApplyFunction + 174
17 CFNetwork 0x3310f46e RunloopBlockContext::perform() + 70
18 CFNetwork 0x3307345e MultiplexerSource::perform() + 186
19 CoreFoundation 0x333df8f4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
20 CoreFoundation 0x333df158 __CFRunLoopDoSources0 + 208
21 CoreFoundation 0x333ddf2a __CFRunLoopRun + 642
22 CoreFoundation 0x33351238 CFRunLoopRunSpecific + 352
23 CoreFoundation 0x333510c4 CFRunLoopRunInMode + 100
24 GraphicsServices 0x36f0c336 GSEventRunModal + 70
25 UIKit 0x3526d2b4 UIApplicationMain + 1116
26 btg2 0x0007da00 main (main.mm:21)
27 btg2 0x0007a504 ___lldb_unnamed_function1$$btg2 + 36
Does any one have a reasoning why +[PHAPIRequest expectedSignatureValueForResponse:nonce:secret:] appears twice in the backtrace or may be knows the reason of the crash? Appreciate your help!

MFMailComposeViewController hangs app on iOS 4.3

I used the code below to send mail:
MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
picker.mailComposeDelegate = self;
[picker setSubject:#"my title"];
NSMutableString *emailBody = [[NSMutableString alloc] initWithString: #"Hi\n\n"];
[emailBody appendString: #"test"];
[picker setMessageBody:emailBody isHTML:NO];
[self presentModalViewController:picker animated:YES];
[picker release];
[emailBody release];
The code works well on old OS version (Base SDK 5.0, Deployment Target 4.0). I just upgraded to Xcode 4.5 with iOS 6.0 as the Base SDK, Deployment Target still 4.3, and the code still works well on Simulator with 5.0, 5.1, and 6.0.
Now I installed the app to iPad with iOS 4.3.3. The MFMailComposeViewController does not appear, it hogs and the app stops working. I checked the device log, it displays:
Incident Identifier: 53CF815B-36FB-4523-8E58-03D80E6BD2D6
CrashReporter Key: e1ce74069fc4d91cdf244ef60282649f2ea4716e
Hardware Model: iPad1,1
Process: MyApp [1018]
Path: /var/mobile/Applications/75088803-4768-4CD6-A561-553F4A182229/MyApp.app/MyApp
Identifier: MyApp
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-11-16 14:29:59.959 +0800
OS Version: iPhone OS 4.3.3 (8J3)
Report Version: 104
Exception Type: 00000020
Exception Codes: 0x8badf00d
Highlighted Thread: 0
Application Specific Information:
MyApp[1018] has active assertions beyond permitted time:
{(
<SBProcessAssertion: 0x1fa0dd00> identifier: Suspending process: MyApp[1018] permittedBackgroundDuration: 10.000000 reason: suspend owner pid:30 preventSuspend preventThrottleDownCPU preventThrottleDownUI
)}
Elapsed total CPU time (seconds): 0.770 (user 0.460, system 0.310), 8% CPU
Elapsed application CPU time (seconds): 0.000, 0% CPU
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x332e5c00 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x332e5758 mach_msg + 44
2 AppSupport 0x33bbb7b8 CPDMTwoWayMessage + 164
3 AppSupport 0x33bba530 -[CPDistributedMessagingCenter _sendMessage:userInfoData:oolKey:oolData:makeServer:receiveReply:nonBlocking:error:] + 352
4 AppSupport 0x33bba0b2 -[CPDistributedMessagingCenter _sendMessage:userInfo:receiveReply:error:toTarget:selector:context:nonBlocking:] + 618
5 AppSupport 0x33bb91ae -[CPDistributedMessagingCenter _sendMessage:userInfo:receiveReply:error:toTarget:selector:context:] + 58
6 AppSupport 0x33bb9312 -[CPDistributedMessagingCenter sendMessageAndReceiveReplyName:userInfo:] + 42
7 MessageUI 0x3693c1fa _CallMessageUIServiceMethod + 182
8 MessageUI 0x3693c01e +[MFMailAccountProxy reloadAccounts] + 22
9 MessageUI 0x3693bf6c +[MFMailComposeController _refreshMailAccountsIfNecessary] + 32
10 MessageUI 0x3693bf2a +[MFMailComposeController isSetupForDelivery] + 10
11 MessageUI 0x3693be80 +[MFMailComposeViewController canSendMail] + 24
12 MessageUI 0x3693bc36 -[MFMailComposeViewController initWithComposition:contentSize:mailComposeControllerOptions:] + 42
13 MessageUI 0x3693bbf8 -[MFMailComposeViewController initWithComposition:] + 28
14 MessageUI 0x36963fac -[MFMailComposeViewController initWithNibName:bundle:] + 44
15 UIKit 0x329e8a0c -[UIViewController init] + 12
16 MyApp 0x000d09ee 0xb5000 + 113134
17 MyApp 0x000e3820 0xb5000 + 190496
18 UIKit 0x32ad1036 -[UIActionSheet(Private) _buttonClicked:] + 186
19 CoreFoundation 0x32dc956a -[NSObject(NSObject) performSelector:withObject:withObject:] + 18
20 UIKit 0x329ceec2 -[UIApplication sendAction:to:from:forEvent:] + 78
21 UIKit 0x329cee62 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26
22 UIKit 0x329cee34 -[UIControl sendAction:to:forEvent:] + 32
23 UIKit 0x329ceb86 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 350
24 UIKit 0x329cf41c -[UIControl touchesEnded:withEvent:] + 336
25 UIKit 0x329cdbee -[UIWindow _sendTouchesForEvent:] + 362
26 UIKit 0x329cd568 -[UIWindow sendEvent:] + 256
27 UIKit 0x329b630c -[UIApplication sendEvent:] + 292
28 UIKit 0x329b5c4c _UIApplicationHandleEvent + 5084
29 GraphicsServices 0x35c8ee70 PurpleEventCallback + 660
30 CoreFoundation 0x32e30a90 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 20
31 CoreFoundation 0x32e32838 __CFRunLoopDoSource1 + 160
32 CoreFoundation 0x32e33606 __CFRunLoopRun + 514
33 CoreFoundation 0x32dc3ebc CFRunLoopRunSpecific + 224
34 CoreFoundation 0x32dc3dc4 CFRunLoopRunInMode + 52
35 GraphicsServices 0x35c8e418 GSEventRunModal + 108
36 GraphicsServices 0x35c8e4c4 GSEventRun + 56
37 UIKit 0x329e0d62 -[UIApplication _run] + 398
38 UIKit 0x329de800 UIApplicationMain + 664
39 MyApp 0x000c95a4 0xb5000 + 83364
40 MyApp 0x000b73b8 0xb5000 + 9144
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x332e8fbc kevent + 24
1 libdispatch.dylib 0x33abc032 _dispatch_mgr_invoke + 706
2 libdispatch.dylib 0x33abd03a _dispatch_queue_invoke + 86
3 libdispatch.dylib 0x33abc5ea _dispatch_worker_thread2 + 186
4 libsystem_c.dylib 0x363d958a _pthread_wqthread + 258
5 libsystem_c.dylib 0x363d9bbc start_wqthread + 0
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x332e5c00 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x332e5758 mach_msg + 44
2 CoreFoundation 0x32e312b8 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x32e33562 __CFRunLoopRun + 350
4 CoreFoundation 0x32dc3ebc CFRunLoopRunSpecific + 224
5 CoreFoundation 0x32dc3dc4 CFRunLoopRunInMode + 52
6 WebCore 0x31e5c27e RunWebThread(void*) + 382
7 libsystem_c.dylib 0x363d830a _pthread_start + 242
8 libsystem_c.dylib 0x363d9bb4 thread_start + 0
Any comment welcome.
The stack trace looks like this is not your fault, it’s system code that hangs and leads to your app being killed. There’s a post in the Developer Forums (non-public link, sorry) that suggest that this might be connected to the system Mail.app.
I’d try rebooting the device and similar tricks, but in the end your app might still be unstable on 4.3 in general. Do you really need to support 4.3?

Resources