pubnub / objective-c

PubNub Objective-C based APIs for iOS and OS X
Other
185 stars 189 forks source link

Crash: EXC_CRASH (SIGSEGV) SIGNAL 11 Segmentation fault: 11 #451

Open shivareddy opened 10 months ago

shivareddy commented 10 months ago

Hi,

We have been encountering numerous crashes originating from the PubNub library within our production apps. Below, you'll find the crash stack trace for the most prevalent issue we're observing in our production app.


Beta Identifier:     D28987DD-2FD9-4778-BFC0-66D5D5E12673
Hardware Model:      iPhone15,3
AppStoreTools:       15A240a
AppVariant:          1:iPhone15,3:17
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]

Date/Time:           2023-11-20 13:07:55.0992 -0800
Launch Time:         2023-11-20 13:05:52.3865 -0800
OS Version:          iPhone OS 17.1.1 (21B91)
Release Type:        User
Baseband Version:    2.10.03
Report Version:      104

Exception Type:  EXC_CRASH (SIGSEGV)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: SIGNAL 11 Segmentation fault: 11

Triggered by Thread:  0

Kernel Triage:
VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter
VM - (arg = 0x0) Waiting on busy page was interrupted

Thread 0 name:   Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   dyld                                   0x1bff9069c dyld3::MachOLoaded::findClosestSymbol(unsigned long long, char const**, unsigned long long*) const + 416
1   dyld                                   0x1bff8fee0 dyld4::APIs::dladdr(void const*, dl_info*) + 236
2   UIKitCore                              0x19fa22088 _UIApplicationBeginBackgroundTaskWithExpirationHandler + 104
3   PubNub                             0x104c7cb88 __41-[PNNetwork handleClientWillResignActive]_block_invoke + 192
4   PubNub                             0x104c74560 _pn_lock + 88
5   PubNub                             0x104c7cab4 -[PNNetwork handleClientWillResignActive] + 132
6   PubNub                             0x104c9d720 -[PubNub handleContextTransition:] + 188
7   CoreFoundation                         0x19d5134c8 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 148
8   CoreFoundation                         0x19d512e90 ___CFXRegistrationPost_block_invoke + 88
9   CoreFoundation                         0x19d512dd8 _CFXRegistrationPost + 440
10  CoreFoundation                         0x19d512328 _CFXNotificationPost + 724
11  Foundation                             0x19c4ae864 -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
12  UIKitCore                              0x1a0518674 __47-[UIApplication _applicationDidEnterBackground]_block_invoke + 268
13  UIKitCore                              0x19f9c6c44 +[UIViewController _performWithoutDeferringTransitionsAllowingAnimation:actions:] + 140
14  UIKitCore                              0x1a0518454 -[UIApplication _applicationDidEnterBackground] + 136
15  UIKitCore                              0x19f893a60 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke_2 + 652
16  UIKitCore                              0x19f893798 _UIScenePerformActionsWithLifecycleActionMask + 112
17  UIKitCore                              0x19f91ae74 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 216
18  UIKitCore                              0x19f8427e8 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 332
19  UIKitCore                              0x19f8411f0 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 608
20  UIKitCore                              0x19f840b58 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 248
21  UIKitCore                              0x19f840a28 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 148
22  UIKitCore                              0x19f840930 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:fromCurrentState:actions:completion:] + 736
23  UIKitCore                              0x19f8401b8 _UISceneSettingsDiffActionPerformChangesWithTransitionContextAndCompletion + 224
24  UIKitCore                              0x19f83fe68 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 316
25  UIKitCore                              0x19fbc3620 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.225 + 612
26  UIKitCore                              0x19f83efec -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 216
27  UIKitCore                              0x19f83ee5c -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 244
28  UIKitCore                              0x19f83ec9c -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 336
29  FrontBoardServices                     0x1b57825b4 -[FBSScene updater:didUpdateSettings:withDiff:transitionContext:completion:] + 660
30  FrontBoardServices                     0x1b5782300 __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke_2 + 152
31  FrontBoardServices                     0x1b578219c -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 168
32  FrontBoardServices                     0x1b57820b8 __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke + 344
33  libdispatch.dylib                      0x1a54a1300 _dispatch_client_callout + 20
34  libdispatch.dylib                      0x1a54a4d48 _dispatch_block_invoke_direct + 284
35  FrontBoardServices                     0x1b577e520 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 52
36  FrontBoardServices                     0x1b577e4a0 -[FBSMainRunLoopSerialQueue _targetQueue_performNextIfPossible] + 240
37  FrontBoardServices                     0x1b577e378 -[FBSMainRunLoopSerialQueue _performNextFromRunLoopSource] + 28
38  CoreFoundation                         0x19d51b31c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
39  CoreFoundation                         0x19d51a598 __CFRunLoopDoSource0 + 176
40  CoreFoundation                         0x19d518d4c __CFRunLoopDoSources0 + 244
41  CoreFoundation                         0x19d517a88 __CFRunLoopRun + 828
42  CoreFoundation                         0x19d517668 CFRunLoopRunSpecific + 608
43  GraphicsServices                       0x1e08e25ec GSEventRunModal + 164
44  UIKitCore                              0x19f9342b4 -[UIApplication _run] + 888
45  UIKitCore                              0x19f9338f0 UIApplicationMain + 340
46  App                            0x1001d6ff4 0x1000f8000 + 913396
47  dyld                                   0x1bff6adcc start + 2240```

Please let us know if require any additional information.