CoreFoundation cow_cleanup iOS 16 crash - ios

Since iOS 16 update and my iOS application crash reports are going crazy. The stack trace on crashlytics starts at main.swift my application entry point to be specific at the function name UIApplicationMain()
// main.swift
import Foundation
import UIKit
/// NOTE: comment out #UIApplicationMain in AppDelegate
UIApplicationMain(
CommandLine.argc,
CommandLine.unsafeArgv,
NSStringFromClass(TimerApplication.self),
NSStringFromClass(AppDelegate.self)
)
Then the stack trace goes like this
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x736544697263248c
Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x1c20 objc_msgSend + 32
1 CoreFoundation 0x2a3cc cow_cleanup + 168
2 CoreFoundation 0x6444c -[__NSDictionaryM dealloc] + 148
3 libobjc.A.dylib 0x15d8 AutoreleasePoolPage::releaseUntil(objc_object**) + 196
4 libobjc.A.dylib 0x4f40 objc_autoreleasePoolPop + 256
5 FrontBoardServices 0x6aec -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 176
6 FrontBoardServices 0x6a00 __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke + 340
7 libdispatch.dylib 0x3fdc _dispatch_client_callout + 20
8 libdispatch.dylib 0x7a5c _dispatch_block_invoke_direct + 264
9 FrontBoardServices 0x10f2c __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 52
10 FrontBoardServices 0x10ac8 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220
11 FrontBoardServices 0x132a8 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
12 CoreFoundation 0xd622c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
13 CoreFoundation 0xe2614 __CFRunLoopDoSource0 + 176
14 CoreFoundation 0x6651c __CFRunLoopDoSources0 + 244
15 CoreFoundation 0x7beb8 __CFRunLoopRun + 836
16 CoreFoundation 0x811e4 CFRunLoopRunSpecific + 612
17 GraphicsServices 0x1368 GSEventRunModal + 164
18 UIKitCore 0x3a2d88 -[UIApplication _run] + 888
19 UIKitCore 0x3a29ec UIApplicationMain + 340
20 MobileApp 0x13fb578 main + 12 (main.swift:12)
21 ??? 0x1c56a9948 (Missing)

Related

Strange crashes at ios 13 in background - cow_cleanup

i got several crashes in my crashlytics, all crash happened at ios13 and background, my app did request location in background
this is crash logs
Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x184da7150 objc_release + 16
1 CoreUI 0x191d3bd40 -[_CUIInternalLinkRendition dealloc] + 40
2 CoreFoundation 0x18509511c cow_cleanup + 168
3 CoreFoundation 0x184f3f438 -[__NSDictionaryM dealloc] + 144
4 libobjc.A.dylib 0x184da86e0 AutoreleasePoolPage::releaseUntil(objc_object**) + 180
5 libobjc.A.dylib 0x184da85d8 objc_autoreleasePoolPop + 224
6 FrontBoardServices 0x18a108100 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240
7 FrontBoardServices 0x18a122d84 __88-[FBSWorkspaceScenesClient sceneID:updateWithSettingsDiff:transitionContext:completion:]_block_invoke + 184
8 libdispatch.dylib 0x184d32184 _dispatch_client_callout + 16
9 libdispatch.dylib 0x184cdb038 _dispatch_block_invoke_direct$VARIANT$mp + 224
10 FrontBoardServices 0x18a147540 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40
11 FrontBoardServices 0x18a14720c -[FBSSerialQueue _queue_performNextIfPossible] + 404
12 FrontBoardServices 0x18a147734 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
13 CoreFoundation 0x184fe27e0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
14 CoreFoundation 0x184fe2738 __CFRunLoopDoSource0 + 80
15 CoreFoundation 0x184fe1ed0 __CFRunLoopDoSources0 + 180
16 CoreFoundation 0x184fdd01c __CFRunLoopRun + 1080
17 CoreFoundation 0x184fdc8bc CFRunLoopRunSpecific + 464
18 GraphicsServices 0x18ee48328 GSEventRunModal + 104
19 UIKitCore 0x1890726d4 UIApplicationMain + 1936
20 FoodyNowPartners 0x100c6b564 main + 20 (PushManager.swift:20)
21 libdyld.dylib 0x184e67460 start + 4

Unknown crash in Fabric [FIRAAlarm cancel]

After I released a new version of my app using XCode8, this crash was reported in Fabric:
#0. Crashed: com.apple.main-thread
0 libdispatch.dylib 0x187c89834 dispatch_source_cancel + 4
1 Appname 0x1003d866c -[FIRAAlarm cancel] + 4298868332
2 Appname 0x1003d8318 -[FIRAAlarm runAfterDelay:withBlock:] + 4298867480
3 Appname 0x1003fc054 -[FIRASessionReporter rescheduleSessionStartTimer] + 4299014228
4 CoreFoundation 0x188d9622c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
5 CoreFoundation 0x188d95930 _CFXRegistrationPost + 400
6 CoreFoundation 0x188d956ac ___CFXNotificationPost_block_invoke + 60
7 CoreFoundation 0x188e04b9c -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1504
8 CoreFoundation 0x188cd7bf4 _CFXNotificationPost + 376
9 Foundation 0x1897de6bc -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
10 UIKit 0x18ecca284 <redacted> + 1212
11 UIKit 0x18eecdd20 <redacted> + 2744
12 UIKit 0x18eee2080 <redacted> + 48
13 UIKit 0x18eeca8c4 <redacted> + 168
14 FrontBoardServices 0x18a99d8bc <redacted> + 36
15 FrontBoardServices 0x18a99d728 <redacted> + 176
16 FrontBoardServices 0x18a99dad0 <redacted> + 56
17 CoreFoundation 0x188daa278 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
18 CoreFoundation 0x188da9bc0 __CFRunLoopDoSources0 + 524
19 CoreFoundation 0x188da77c0 __CFRunLoopRun + 804
20 CoreFoundation 0x188cd6048 CFRunLoopRunSpecific + 444
21 UIKit 0x18ecb05dc <redacted> + 608
22 UIKit 0x18ecab360 UIApplicationMain + 208
23 Appname 0x1000f6724 main (main.m:15)
24 libdispatch.dylib 0x187cb85b8 (Missing)
The crash detail doesn't show any specific file, just this information:
Appname
#CrashNumber-[FIRAAlarm cancel]
Any ideas what this “FIRAAlarm” is?
This is a known Firebase issue and will be fixed in their next release:
https://groups.google.com/forum/#!topic/firebase-talk/W-gPv4tmXpw

Strange crash after entering the background?

I got a few of these crashes (from Crashlytics), which I can't understand.
Anyone can understand what it is about?
I can see it happens after applicationDidEnterBackground. Does it mean it crashes after the app went into the background?
Thread : Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x181b9db90 objc_msgSend + 16
1 CoreFoundation 0x1825314a4 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1548
2 CoreFoundation 0x182406788 _CFXNotificationPost + 368
3 Foundation 0x182e0e89c -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
4 UIKit 0x18791f124 __47-[UIApplication _applicationDidEnterBackground]_block_invoke + 320
5 UIKit 0x1879ef5e4 +[UIViewController _performWithoutDeferringTransitions:] + 128
6 UIKit 0x18791ef90 -[UIApplication _applicationDidEnterBackground] + 100
7 UIKit 0x18791f514 -[UIApplication _handleApplicationDeactivationWithScene:shouldForceExit:transitionContext:completion:] + 700
8 UIKit 0x18792f990 -[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:] + 448
9 UIKit 0x18791961c __70-[UIApplication scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 152
10 UIKit 0x1879192a4 -[UIApplication scene:didUpdateWithDiff:transitionContext:completion:] + 712
11 FrontBoardServices 0x183ec77ac __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36
12 FrontBoardServices 0x183ec7618 -[FBSSerialQueue _performNext] + 168
13 FrontBoardServices 0x183ec79c8 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
14 CoreFoundation 0x1824dd124 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
15 CoreFoundation 0x1824dcbb8 __CFRunLoopDoSources0 + 540
16 CoreFoundation 0x1824da8b8 __CFRunLoopRun + 724
17 CoreFoundation 0x182404d10 CFRunLoopRunSpecific + 384
18 GraphicsServices 0x183cec088 GSEventRunModal + 180
19 UIKit 0x1876d9f70 UIApplicationMain + 204
20 Trenìt! 0x1000f32e4 main (AppDelegate.swift:14)
21 libdispatch.dylib 0x181fa28b8 (Missing)

EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x000000008346beb8

I get the following crash log from Crashlytics for my app. My code do not call msgpack_zone_free or msgpack parse method at all and so I'm confused how that happened. I'm unable to reproduce this crash myself so I'm left to analyze the issue from the crash report itself. Any pointers to what I need to check will be very helpful.
This is not a case of low memory as I see free memory from Crashlytics.
Thread : Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x0000000192953bd0 objc_msgSend + 16
1 CoreFoundation 0x00000001820d5228 CFRelease + 524
2 CoreFoundation 0x00000001821e62ac -[__NSArrayM removeAllObjects] + 284
3 MyApp 0x00000001004a69e0 msgpack_zone_free
4 MyApp 0x00000001004a4afc msgpack_zone_free
5 CoreFoundation 0x000000018219cae4 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
6 CoreFoundation 0x00000001820db220 _CFXNotificationPost + 2060
7 Foundation 0x0000000182fdac60 -[NSNotificationCenter postNotificationName:object:userInfo:] + 72
8 UIKit 0x0000000186c32e98 -[UIApplication _handleApplicationDectivationWithScene:shouldForceExit:transitionContext:completion:] + 1132
9 UIKit 0x0000000186c3b370 __88-[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:]_block_invoke + 92
10 UIKit 0x0000000186c3b2f8 -[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:] + 380
11 UIKit 0x0000000186c2ec2c -[UIApplication scene:didUpdateWithDiff:transitionContext:completion:] + 512
12 FrontBoardServices 0x000000018a45d62c __31-[FBSSerialQueue performAsync:]_block_invoke + 28
13 CoreFoundation 0x00000001821aea28 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20
14 CoreFoundation 0x00000001821adb30 __CFRunLoopDoBlocks + 312
15 CoreFoundation 0x00000001821ac154 __CFRunLoopRun + 1756
16 CoreFoundation 0x00000001820d90a4 CFRunLoopRunSpecific + 396
17 GraphicsServices 0x000000018b2735a4 GSEventRunModal + 168
18 UIKit 0x0000000186a0aaa4 UIApplicationMain + 1488
19 MyApp 0x00000001000cce40 main (main.m:16)
20 libdyld.dylib 0x0000000192faea08 start + 4
Thanks.

iOS App Crash in unknown module-mdDoRequest mdlExchange mdlRemoteExec

The crash tools report a weird crash of my app.
It crashed at MDOSWebViewDelegate.
After listed all the symbols of binary with command nm -a myApp,
and still can't locate it from the crash stack.
I don't even know what features of these modules, it seems this module is from an System framework.
(mdDoRequest mdlExchange mdlRemoteExec)
Following is the crash stack.
crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x6e2e6483
Thread : Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x37305f46 objc_msgSend + 5
1 MyApp 0x00d59ca3 mdDoRequest (MDOSWebViewDelegate.m:129)
2 MyApp 0x00d5dafb mdlExchange (lang.c:57)
3 MyApp 0x00d5df4f mdlRemoteExec (lang.c:110)
4 MyApp 0x00d592e5 forwardInvocation (MDOSProxy.m:213)
5 CoreFoundation 0x2943d62f ___forwarding___ + 354
6 CoreFoundation 0x2936f008 _CF_forwarding_prep_0 + 24
7 CoreFoundation 0x293f2e31 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
8 CoreFoundation 0x2934e6cd _CFXNotificationPost + 1784
9 Foundation 0x2a0a4dd9 -[NSNotificationCenter postNotificationName:object:userInfo:] + 72
10 UIKit 0x2cbbba65 -[UIApplication _handleApplicationDectivationWithScene:shouldForceExit:transitionContext:completion:] + 980
11 UIKit 0x2cbc2d8d __88-[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:]_block_invoke + 76
12 UIKit 0x2cbc2d39 -[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:] + 360
13 UIKit 0x2cbb7ef3 -[UIApplication scene:didUpdateWithDiff:transitionContext:completion:] + 478
14 FrontBoardServices 0x2fd83169 __80-[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:]_block_invoke_2 + 40
15 FrontBoardServices 0x2fd920a9 __31-[FBSSerialQueue performAsync:]_block_invoke + 12
16 CoreFoundation 0x29400fe5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
17 CoreFoundation 0x294002a9 __CFRunLoopDoBlocks + 216
18 CoreFoundation 0x293fede3 __CFRunLoopRun + 1714
19 CoreFoundation 0x2934c3b1 CFRunLoopRunSpecific + 476
20 CoreFoundation 0x2934c1c3 CFRunLoopRunInMode + 106
21 GraphicsServices 0x30939201 GSEventRunModal + 136
22 UIKit 0x2c9b643d UIApplicationMain + 1440
23 MyApp 0x0003696f main (main.m:19)
Any suggestion?

Resources