Skip to content

[Crash] SIGSEGV in SingularUserDefaultsManager #83

@lubko2808

Description

@lubko2808

Description

According to Crashlytics, this crash occurs at an early stage and only once for a specific user.

Environment

  • Singular SDK version: 12.8.1
  • iOS version: 26
  • Swift version: 6.0
com.apple.main-thread
0  libsystem_kernel.dylib         0x11d0 pread + 8
1  libsqlite3.dylib               0x9e1b8 sqlite3_rekey + 6888
2  libsqlite3.dylib               0x676c sqlite3_snprintf + 7488
3  libsqlite3.dylib               0x4278 sqlite3_vfs_find + 7212
4  libsqlite3.dylib               0x1350 sqlite3_open_v2 + 2568
5  eSIMo                          0xd1ae8c __12-[APDB open]_block_invoke + 108 (APDB.m:108)
6  libdispatch.dylib              0x1b7fc _dispatch_client_callout + 16
7  libdispatch.dylib              0x49e0 _dispatch_once_callout + 32
8  eSIMo                          0xd1add8 -[APDB open] + 84 (once.h:84)
9  eSIMo                          0xd1acf4 -[APDB get_connection] + 77 (APDB.m:77)
10 eSIMo                          0xd1b6cc -[APDB(ApiConfig) configExists] + 335 (APDB.m:335)
11 eSIMo                          0xd0b570 +[Singular reStartSession:withKey:] + 965 (Singular.m:965)
12 eSIMo                          0xd0cfc4 +[Singular copyFromPasteboard:] + 1423 (Singular.m:1423)
13 eSIMo                          0xd0d350 +[Singular startNewSessionOrContinueSavedSession:withKey:] + 1453 (Singular.m:1453)
14 eSIMo                          0xd0a00c +[Singular start:] + 627 (Singular.m:627)
15 eSIMo                          0x134ec specialized SceneDelegate.scene(_:willConnectTo:options:) + 27 (SceneDelegate.swift:27)
16 eSIMo                          0x125cc @objc SceneDelegate.scene(_:willConnectTo:options:) + 4368262604 (<compiler-generated>:4368262604)
17 UIKitCore                      0x875ce4 +[UIScene _sceneForFBSScene:create:withSession:connectionOptions:] + 1036
18 UIKitCore                      0x14244c0 -[UIApplication _connectUISceneFromFBSScene:transitionContext:] + 1168
19 UIKitCore                      0x1424870 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 308
20 UIKitCore                      0xed4cb4 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 288
21 FrontBoardServices             0x1e3ec __95-[FBSScene _callOutQueue_didCreateWithTransitionContext:alternativeCreationCallout:completion:]_block_invoke + 364
22 FrontBoardServices             0x1e8a4 -[FBSScene _callOutQueue_maybeCoalesceClientSettingsUpdates:] + 128
23 FrontBoardServices             0x1e204 -[FBSScene _callOutQueue_didCreateWithTransitionContext:alternativeCreationCallout:completion:] + 436
24 FrontBoardServices             0x8cbcc __93-[FBSWorkspaceScenesClient _callOutQueue_sendDidCreateForScene:transitionContext:completion:]_block_invoke.349 + 288
25 FrontBoardServices             0x2bf64 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 168
26 FrontBoardServices             0x48e04 -[FBSWorkspaceScenesClient _callOutQueue_sendDidCreateForScene:transitionContext:completion:] + 480
27 FrontBoardServices             0x4a768 __92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke_2 + 268
28 FrontBoardServices             0x2bf64 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 168
29 libdispatch.dylib              0x1b7fc _dispatch_client_callout + 16
30 libdispatch.dylib              0x6bb4 _dispatch_block_invoke_direct + 284
31 BoardServices                  0x91d4 __BSSERVICEMAINRUNLOOPQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 52
32 BoardServices                  0x9054 BSServiceMainRunLoopSourceHandler + 224
33 CoreFoundation                 0x68f10 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
34 CoreFoundation                 0x68e84 __CFRunLoopDoSource0 + 172
35 CoreFoundation                 0x46b30 __CFRunLoopDoSources0 + 332
36 CoreFoundation                 0x1d6d8 __CFRunLoopRun + 820
37 CoreFoundation                 0x1ca6c _CFRunLoopRunSpecificWithOptions + 532
38 GraphicsServices               0x1498 GSEventRunModal + 120
39 UIKitCore                      0x9ddf8 -[UIApplication _run] + 792
40 UIKitCore                      0x46e54 UIApplicationMain + 336
41 UIKitCore                      0x172938 -[UIScrollView contentInset] + 588
42 eSIMo                          0x10fe8 main + 4368257000 (AppDelegate.swift:4368257000)
43 ???                            0x19bf1ee28 (Missing)

com.apple.libtrace.state.block-list
0  libsystem_kernel.dylib         0x710c __ulock_wait + 8
1  libdispatch.dylib              0x3c6c _dlock_wait + 56
2  libdispatch.dylib              0x3a8c _dispatch_thread_event_wait_slow + 56
3  libdispatch.dylib              0x11ba0 __DISPATCH_WAIT_FOR_QUEUE__ + 368
4  libdispatch.dylib              0x11758 _dispatch_sync_f_slow + 148
5  libsystem_trace.dylib          0xa1dc ___os_state_request_for_self_block_invoke + 372
6  libdispatch.dylib              0x1adc _dispatch_call_block_and_release + 32
7  libdispatch.dylib              0x1b7fc _dispatch_client_callout + 16
8  libdispatch.dylib              0xa468 _dispatch_lane_serial_drain + 740
9  libdispatch.dylib              0xaf78 _dispatch_lane_invoke + 440
10 libdispatch.dylib              0x153ec _dispatch_root_queue_drain_deferred_wlh + 292
11 libdispatch.dylib              0x14ce4 _dispatch_workloop_worker_thread + 692
12 libsystem_pthread.dylib        0x13b8 _pthread_wqthread + 292
13 libsystem_pthread.dylib        0x8c0 start_wqthread + 8

com.google.firebase.firestore
0  libsystem_kernel.dylib         0x54a0 __rename + 8
1  libsystem_kernel.dylib         0x547c rename + 16
2  eSIMo                          0x9ceae4 leveldb::(anonymous namespace)::PosixEnv::RenameFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&) + 622 (env_posix.cc:622)
3  eSIMo                          0x9bf230 leveldb::SetCurrentFile(leveldb::Env*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, unsigned long long) + 44 (swap.h:44)
4  eSIMo                          0x9c3344 leveldb::VersionSet::LogAndApply(leveldb::VersionEdit*, leveldb::port::Mutex*) + 44 (swap.h:44)
5  eSIMo                          0x9ba270 leveldb::DB::Open(leveldb::Options const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, leveldb::DB**) + 44 (swap.h:44)
6  eSIMo                          0xddf528 firebase::firestore::local::LevelDbPersistence::OpenDb(firebase::firestore::util::Path const&) + 4382733608
7  eSIMo                          0xddef6c firebase::firestore::local::LevelDbPersistence::Create(firebase::firestore::util::Path, int, firebase::firestore::local::LocalSerializer, firebase::firestore::local::LruParams const&) + 4382732140
8  eSIMo                          0xddf6b0 firebase::firestore::local::LevelDbPersistence::Create(firebase::firestore::util::Path, firebase::firestore::local::LocalSerializer, firebase::firestore::local::LruParams const&) + 4382734000
9  eSIMo                          0xddcd34 firebase::firestore::local::LevelDbOpener::Create(firebase::firestore::local::LruParams const&) + 4382723380
10 eSIMo                          0xd85f90 firebase::firestore::core::FirestoreClient::Initialize(firebase::firestore::credentials::User const&, firebase::firestore::api::Settings const&) + 4382367632
11 eSIMo                          0xd2fb64 firebase::firestore::util::AsyncQueue::ExecuteBlocking(std::__1::function<void ()> const&) + 4382014308
12 eSIMo                          0xe4f15c firebase::firestore::util::Task::ExecuteAndRelease() + 123928
13 libdispatch.dylib              0x1b7fc _dispatch_client_callout + 16
14 libdispatch.dylib              0xa468 _dispatch_lane_serial_drain + 740
15 libdispatch.dylib              0xaf44 _dispatch_lane_invoke + 388
16 libdispatch.dylib              0x153ec _dispatch_root_queue_drain_deferred_wlh + 292
17 libdispatch.dylib              0x14ce4 _dispatch_workloop_worker_thread + 692
18 libsystem_pthread.dylib        0x13b8 _pthread_wqthread + 292
19 libsystem_pthread.dylib        0x8c0 start_wqthread + 8

com.apple.Pasteboard.notification-queue
0  libsystem_kernel.dylib         0x65d4 __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x2b58 _pthread_cond_wait + 984
2  Foundation                     0x16132c -[NSOperation waitUntilFinished] + 480
3  CoreFoundation                 0x50f4c _CFXNotificationPost + 800
4  Foundation                     0x9633cc -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
5  Pasteboard                     0xe11c __67+[PBServerConnection beginListeningToPasteboardChangeNotifications]_block_invoke_2 + 156
6  libsystem_notify.dylib         0x26d8 notify_set_state + 2124
7  libdispatch.dylib              0x11450 _dispatch_block_async_invoke2 + 148
8  libdispatch.dylib              0x1b7fc _dispatch_client_callout + 16
9  libdispatch.dylib              0xa468 _dispatch_lane_serial_drain + 740
10 libdispatch.dylib              0xaf44 _dispatch_lane_invoke + 388
11 libdispatch.dylib              0x153ec _dispatch_root_queue_drain_deferred_wlh + 292
12 libdispatch.dylib              0x14ce4 _dispatch_workloop_worker_thread + 692
13 libsystem_pthread.dylib        0x13b8 _pthread_wqthread + 292
14 libsystem_pthread.dylib        0x8c0 start_wqthread + 8

Crashed: com.apple.root.default-qos
0  libobjc.A.dylib                0x39a4 objc_retainAutoreleaseReturnValue + 68
1  eSIMo                          0xd03fa8 +[SingularUserDefaultsManager getUserDefaults] + 109 (SingularUserDefaultsManager.m:109)
2  eSIMo                          0xd03c54 +[SingularUserDefaultsManager setObject:forKey:] + 64 (SingularUserDefaultsManager.m:64)
3  eSIMo                          0xd07ee8 __44+[Singular asyncTryRetrieveGoogleOdmValues:]_block_invoke + 143 (Singular.m:143)
4  libdispatch.dylib              0x1adc _dispatch_call_block_and_release + 32
5  libdispatch.dylib              0x1b7fc _dispatch_client_callout + 16
6  libdispatch.dylib              0x377e4 _dispatch_queue_override_invoke.cold.3 + 32
7  libdispatch.dylib              0x62fc _dispatch_queue_override_invoke + 848
8  libdispatch.dylib              0x13f48 _dispatch_root_queue_drain + 364
9  libdispatch.dylib              0x146fc _dispatch_worker_thread2 + 180
10 libsystem_pthread.dylib        0x137c _pthread_wqthread + 232
11 libsystem_pthread.dylib        0x8c0 start_wqthread + 8

com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0xcd4 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x42f8 mach_msg2_internal + 76
2  libsystem_kernel.dylib         0x4214 mach_msg_overwrite + 428
3  libsystem_kernel.dylib         0x405c mach_msg + 24
4  CoreFoundation                 0x46868 __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x1d848 __CFRunLoopRun + 1188
6  CoreFoundation                 0x1ca6c _CFRunLoopRunSpecificWithOptions + 532
7  Foundation                     0x9a2f54 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  Foundation                     0x9a312c -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9  UIKitCore                      0x73094 -[UIEventFetcher threadMain] + 408
10 Foundation                     0x6221c __NSThread__start__ + 732
11 libsystem_pthread.dylib        0x444c _pthread_start + 136
12 libsystem_pthread.dylib        0x8cc thread_start + 8

Thread
0  libsystem_kernel.dylib         0xa80 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1404 _pthread_wqthread + 368
2  libsystem_pthread.dylib        0x8c0 start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0xa80 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1404 _pthread_wqthread + 368
2  libsystem_pthread.dylib        0x8c0 start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0xa80 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1404 _pthread_wqthread + 368
2  libsystem_pthread.dylib        0x8c0 start_wqthread + 8

com.google.fira.worker
0  libsystem_kernel.dylib         0x710c __ulock_wait + 8
1  libdispatch.dylib              0x3c6c _dlock_wait + 56
2  libdispatch.dylib              0x3a8c _dispatch_thread_event_wait_slow + 56
3  libdispatch.dylib              0x11ba0 __DISPATCH_WAIT_FOR_QUEUE__ + 368
4  libdispatch.dylib              0x11758 _dispatch_sync_f_slow + 148
5  eSIMo                          0x1254098 -[APMIdentity identifierForVendor] + 768228
6  eSIMo                          0x1268d94 APMUpdateConsentSignalsAndIdentifiers + 853472
7  eSIMo                          0x126ef30 -[APMMeasurement(Event) createRawEventMetadataWithUserAttributes:] + 878460
8  eSIMo                          0x1270ccc -[APMMeasurement(Event) writeEvent:isPublicEvent:isRealtime:] + 886040
9  eSIMo                          0x126ea40 __57-[APMMeasurement(Event) writeFilteredEventOnWorkerQueue:]_block_invoke + 877196
10 eSIMo                          0x12c678c -[APMSqliteStore performTransactionWithError:block:] + 1236952
11 eSIMo                          0x1236770 -[APMDatabase performTransaction:] + 647100
12 eSIMo                          0x126e794 -[APMMeasurement(Event) writeFilteredEventOnWorkerQueue:] + 876512
13 eSIMo                          0x126e4fc -[APMMeasurement(Event) writeEventOnWorkerQueue:] + 875848
14 eSIMo                          0x126e0d4 -[APMMeasurement(Event) handleEventOnWorkerQueue:] + 874784
15 eSIMo                          0x126dde4 -[APMMeasurement(Event) handleInternalEventOnWorkerQueue:] + 874032
16 eSIMo                          0x125f1b0 -[APMMeasurement reportFirstOpenOnWorkerQueue] + 813564
17 eSIMo                          0x125e244 __47-[APMMeasurement startMeasurementOnWorkerQueue]_block_invoke + 809616
18 eSIMo                          0x125dc90 -[APMMeasurement startMeasurementOnWorkerQueue] + 808156
19 eSIMo                          0x125d61c -[APMMeasurement setEnabledOnWorkerQueue:] + 806504
20 eSIMo                          0x125d564 __29-[APMMeasurement setEnabled:]_block_invoke + 806320
21 eSIMo                          0x12bdb44 __51-[APMScheduler scheduleOnWorkerQueueBlockID:block:]_block_invoke + 1201040
22 libdispatch.dylib              0x1adc _dispatch_call_block_and_release + 32
23 libdispatch.dylib              0x1b7fc _dispatch_client_callout + 16
24 libdispatch.dylib              0xa468 _dispatch_lane_serial_drain + 740
25 libdispatch.dylib              0xaf44 _dispatch_lane_invoke + 388
26 libdispatch.dylib              0x153ec _dispatch_root_queue_drain_deferred_wlh + 292
27 libdispatch.dylib              0x14ce4 _dispatch_workloop_worker_thread + 692
28 libsystem_pthread.dylib        0x13b8 _pthread_wqthread + 292
29 libsystem_pthread.dylib        0x8c0 start_wqthread + 8

com.apple.StoreKit.SKAdNetworkImpressionQueue
0  libsystem_kernel.dylib         0xcd4 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x42f8 mach_msg2_internal + 76
2  libsystem_kernel.dylib         0x4214 mach_msg_overwrite + 428
3  libsystem_kernel.dylib         0x405c mach_msg + 24
4  libdispatch.dylib              0x1ce94 _dispatch_mach_send_and_wait_for_reply + 548
5  libdispatch.dylib              0x1d234 dispatch_mach_send_with_result_and_wait_for_reply + 60
6  libxpc.dylib                   0x11e9c xpc_connection_send_message_with_reply_sync + 256
7  Foundation                     0x289f0 __NSXPCCONNECTION_IS_WAITING_FOR_A_SYNCHRONOUS_REPLY__ + 16
8  Foundation                     0xa713a4 -[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:] + 2100
9  Foundation                     0xa709a0 -[NSXPCConnection _sendSelector:withProxy:arg1:arg2:] + 128
10 Foundation                     0x1aa6c _NSXPCDistantObjectSimpleMessageSend2 + 68
11 StoreKit                       0x249fc __63+[SKAdNetwork updatePostbackConversionValue:completionHandler:]_block_invoke.39 + 160
12 libdispatch.dylib              0x1adc _dispatch_call_block_and_release + 32
13 libdispatch.dylib              0x1b7fc _dispatch_client_callout + 16
14 libdispatch.dylib              0xa468 _dispatch_lane_serial_drain + 740
15 libdispatch.dylib              0xaf44 _dispatch_lane_invoke + 388
16 libdispatch.dylib              0x153ec _dispatch_root_queue_drain_deferred_wlh + 292
17 libdispatch.dylib              0x14ce4 _dispatch_workloop_worker_thread + 692
18 libsystem_pthread.dylib        0x13b8 _pthread_wqthread + 292
19 libsystem_pthread.dylib        0x8c0 start_wqthread + 8

com.google.firebase.crashlytics.MachExceptionServer
0  libsystem_kernel.dylib         0xcd4 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x42f8 mach_msg2_internal + 76
2  libsystem_kernel.dylib         0x4214 mach_msg_overwrite + 428
3  libsystem_kernel.dylib         0x405c mach_msg + 24
4  eSIMo                          0x8970d4 FIRCLSMachExceptionServer + 196 (FIRCLSMachException.c:196)
5  libsystem_pthread.dylib        0x444c _pthread_start + 136
6  libsystem_pthread.dylib        0x8cc thread_start + 8

AudioSession - RootQueue
0  libsystem_kernel.dylib         0xc68 semaphore_timedwait_trap + 8
1  libdispatch.dylib              0x366cc _dispatch_sema4_timedwait + 64
2  libdispatch.dylib              0x3e88 _dispatch_semaphore_wait_slow + 76
3  libdispatch.dylib              0x13d40 _dispatch_worker_thread + 324
4  libsystem_pthread.dylib        0x444c _pthread_start + 136
5  libsystem_pthread.dylib        0x8cc thread_start + 8

com.apple.CoreMotion.MotionThread
0  libsystem_kernel.dylib         0xcd4 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x42f8 mach_msg2_internal + 76
2  libsystem_kernel.dylib         0x4214 mach_msg_overwrite + 428
3  libsystem_kernel.dylib         0x405c mach_msg + 24
4  CoreFoundation                 0x46868 __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x1d848 __CFRunLoopRun + 1188
6  CoreFoundation                 0x1ca6c _CFRunLoopRunSpecificWithOptions + 532
7  CoreFoundation                 0x9a7c8 CFRunLoopRun + 64
8  CoreMotion                     0x14b20 CLMotionActivity::isMounted() const + 30548
9  libsystem_pthread.dylib        0x444c _pthread_start + 136
10 libsystem_pthread.dylib        0x8cc thread_start + 8

Thread
0  libsystem_kernel.dylib         0x67f4 __semwait_signal + 8
1  libsystem_c.dylib              0xc7e4 nanosleep + 220
2  libsystem_c.dylib              0xc908 sleep + 52
3  Intercom                       0x7c540 monitorCachedData + 888
4  libsystem_pthread.dylib        0x444c _pthread_start + 136
5  libsystem_pthread.dylib        0x8cc thread_start + 8

SentryCrash Exception Handler (Secondary)
0  libsystem_kernel.dylib         0xcd4 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x42f8 mach_msg2_internal + 76
2  libsystem_kernel.dylib         0x4214 mach_msg_overwrite + 428
3  libsystem_kernel.dylib         0x405c mach_msg + 24
4  Intercom                       0x88740 handleExceptions + 1180
5  libsystem_pthread.dylib        0x444c _pthread_start + 136
6  libsystem_pthread.dylib        0x8cc thread_start + 8

io.sentry.app-hang-tracker
0  libsystem_kernel.dylib         0x67f4 __semwait_signal + 8
1  libsystem_c.dylib              0xc7e4 nanosleep + 220
2  Foundation                     0x9c4180 +[NSThread sleepForTimeInterval:] + 156
3  Intercom                       0x6b298 -[IntercomSDK_SentryANRTracker detectANRs] + 53940
4  Foundation                     0x6221c __NSThread__start__ + 732
5  libsystem_pthread.dylib        0x444c _pthread_start + 136
6  libsystem_pthread.dylib        0x8cc thread_start + 8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions