Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIGABRT (local_ndx, m_page_state.size(), size_t(addr), size_t(m_addr), m_page_shift) #7319

Closed
bb-git opened this issue Nov 3, 2023 · 0 comments · Fixed by #7535
Closed
Assignees

Comments

@bb-git
Copy link

bb-git commented Nov 3, 2023

How frequently does the bug occur?

Sometimes

Description

Crashes for some users.
Xcode marks line numbered 9 below red

Stacktrace & log output

Thread 0 name:
Thread 0 Crashed:
0   libsystem_kernel.dylib        	0x000000020ea79578 __pthread_kill + 8 (:-1)
1   libsystem_pthread.dylib       	0x000000022f8f8118 pthread_kill + 268 (pthread.c:1670)
2   libsystem_c.dylib             	0x00000001d6fe4178 abort + 180 (abort.c:118)
3   app                        	0x0000000102d2c558 please_report_this_issue_in_github_realm_realm_core_v_13_21_0 + 12 (terminate.cpp:65)
4   app                        	0x0000000102d2c798 realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 244 (terminate.cpp:143)
5   app                        	0x0000000102d2c678 realm::util::terminate_with_info(char const*, char const*, long, char const*, std::initializer_list<realm::util::Printable>&&) + 268 (terminate.cpp:162)
6   app                        	0x0000000102aee268 void realm::util::terminate_with_info<unsigned long&, unsigned long, unsigned long, unsigned long, unsigned long const&>(char const*, int, char const*, char const*, unsigned long&, unsigned long&&,... + 112 (terminate.hpp:52)
7   app                        	0x0000000102d17af0 realm::util::EncryptedFileMapping::read_barrier(void const*, unsigned long, unsigned long (*)(char const*), bool) + 664 (encrypted_file_mapping.cpp:0)
8   app                        	0x0000000102a9a068 realm::util::do_encryption_read_barrier(void const*, unsigned long, unsigned long (*)(char const*), realm::util::EncryptedFileMapping*, bool) + 104 (file_mapper.hpp:144)
9   app                        	0x0000000102a9c48c void realm::util::encryption_read_barrier<char>(realm::util::File::Map<char> const&, unsigned long, unsigned long) + 32 (file_mapper.hpp:176)
10  app                        	0x0000000102a9c48c realm::SlabAlloc::align_filesize_for_mmap(unsigned long, realm::SlabAlloc::Config&) + 568 (alloc_slab.cpp:727)
11  app                        	0x0000000102acf3ec realm::DB::open(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, realm::DBOptions const&) + 2360 (db.cpp:1309)
12  app                        	0x0000000102ad5c40 realm::DB::create(std::__1::unique_ptr<realm::Replication, std::__1::default_delete<realm::Replication> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > cons... + 116 (db.cpp:2767)
13  app                        	0x0000000102b647b0 realm::_impl::RealmCoordinator::open_db() + 880 (realm_coordinator.cpp:488)
14  app                        	0x0000000102b653a4 realm::_impl::RealmCoordinator::do_get_realm(realm::RealmConfig&&, std::__1::shared_ptr<realm::Realm>&, std::__1::optional<realm::VersionID>, realm::util::CheckedUniqueLock&, bool) + 76 (realm_coordinator.cpp:325)
15  app                        	0x0000000102b652c0 realm::_impl::RealmCoordinator::get_realm(realm::RealmConfig, std::__1::optional<realm::VersionID>) + 476 (realm_coordinator.cpp:274)
16  app                        	0x0000000102bc38f0 realm::Realm::get_shared_realm(realm::RealmConfig) + 120 (shared_realm.cpp:161)
17  app                        	0x00000001029bba70 +[RLMRealm realmWithConfiguration:confinedTo:error:] + 1000 (RLMRealm.mm:426)
18  app                        	0x00000001029bb60c +[RLMRealm realmWithConfiguration:queue:error:] + 88 (RLMRealm.mm:391)
19  app                        	0x0000000102a596e4 @nonobjc RLMRealm.__allocating_init(configuration:queue:) + 72 (<compiler-generated>:0)
20  app                        	0x0000000102a5a2b8 Realm.init(configuration:queue:) + 120 (Realm.swift:95)
21  app                        	0x00000001027c8078 specialized AppDelegate.configureAndMigrateFoodBaseRealm() + 4080 (AppDelegate.swift:452)
22  app                        	0x00000001027c9468 AppDelegate.configureAndMigrateFoodBaseRealm() + 4 (<compiler-generated>:0)
23  app                        	0x00000001027c9468 specialized AppDelegate.application(_:didFinishLaunchingWithOptions:) + 456 (AppDelegate.swift:54)
24  app                        	0x00000001027c51f0 AppDelegate.application(_:didFinishLaunchingWithOptions:) + 8 (<compiler-generated>:0)
25  app                        	0x00000001027c51f0 @objc AppDelegate.application(_:didFinishLaunchingWithOptions:) + 136
26  UIKitCore                     	0x00000001d1e77054 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 300 (UIApplication.m:2537)
27  UIKitCore                     	0x00000001d1e7678c -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 2848 (UIApplication.m:2968)
28  UIKitCore                     	0x00000001d1e75768 -[UIApplication _runWithMainScene:transitionContext:completion:] + 856 (UIApplication.m:4782)
29  UIKitCore                     	0x00000001d1e753b4 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 132 (_UISceneLifecycleMultiplexer.m:451)
30  UIKitCore                     	0x00000001d1bbd664 _UIScenePerformActionsWithLifecycleActionMask + 112 (_UISceneLifecycleState.m:109)
31  UIKitCore                     	0x00000001d1efb850 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 216 (_UISceneLifecycleMultiplexer.m:567)
32  UIKitCore                     	0x00000001d1dadccc -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 332 (_UISceneLifecycleMultiplexer.m:519)
33  UIKitCore                     	0x00000001d1dada84 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 620 (_UISceneLifecycleMultiplexer.m:566)
34  UIKitCore                     	0x00000001d1dad634 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 252 (_UISceneLifecycleMultiplexer.m:469)
35  UIKitCore                     	0x00000001d1dad500 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block... + 148 (_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction.m:73)
36  UIKitCore                     	0x00000001d249aa68 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:fromCurrentState:actions:completion:] + 736 (BSAnimationSettings+UIKit.m:54)
37  UIKitCore                     	0x00000001d2539074 _UISceneSettingsDiffActionPerformChangesWithTransitionContextAndCompletion + 224 (_UISceneSettingsDiffAction.m:27)
38  UIKitCore                     	0x00000001d1c5ac70 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 316 (_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction.m:58)
39  UIKitCore                     	0x00000001d20cc1ac __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.223 + 556 (UIScene.m:2007)
40  UIKitCore                     	0x00000001d1d2bc60 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 216 (UIScene.m:1683)
41  UIKitCore                     	0x00000001d1d2bad0 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 244 (UIScene.m:1969)
42  UIKitCore                     	0x00000001d1d2b028 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 520 (UIApplication.m:4231)
43  UIKitCore                     	0x00000001d1d2adb4 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 288 (UIApplicationSceneClientAgent.m:47)
44  FrontBoardServices            	0x00000001e5b382e4 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 344 (FBSScene.m:440)
45  FrontBoardServices            	0x00000001e5b78068 __92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke.80 + 120 (FBSWorkspaceScenesClient.m:394)
46  FrontBoardServices            	0x00000001e5b3c120 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 168 (FBSWorkspace.m:359)
47  FrontBoardServices            	0x00000001e5b77cc0 __92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke + 360 (FBSWorkspaceScenesClient.m:393)
48  libdispatch.dylib             	0x00000001d6f83eac _dispatch_client_callout + 20 (object.m:560)
49  libdispatch.dylib             	0x00000001d6f8791c _dispatch_block_invoke_direct + 264 (queue.c:496)
50  FrontBoardServices            	0x00000001e5b4624c __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 52 (FBSSerialQueue.m:157)
51  FrontBoardServices            	0x00000001e5b45de8 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220 (FBSSerialQueue.m:181)
52  FrontBoardServices            	0x00000001e5b48694 -[FBSSerialQueue _performNextFromRunLoopSource] + 28 (FBSSerialQueue.m:194)
53  CoreFoundation                	0x00000001cfb86128 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1957)
54  CoreFoundation                	0x00000001cfb927b4 __CFRunLoopDoSource0 + 176 (CFRunLoop.c:2001)
55  CoreFoundation                	0x00000001cfb17648 __CFRunLoopDoSources0 + 340 (CFRunLoop.c:2046)
56  CoreFoundation                	0x00000001cfb2d0d4 __CFRunLoopRun + 828 (CFRunLoop.c:2953)
57  CoreFoundation                	0x00000001cfb323ec CFRunLoopRunSpecific + 612 (CFRunLoop.c:3418)
58  GraphicsServices              	0x000000020b04835c GSEventRunModal + 164 (GSEvent.c:2196)
59  UIKitCore                     	0x00000001d1ebef58 -[UIApplication _run] + 888 (UIApplication.m:3782)
60  UIKitCore                     	0x00000001d1ebebbc UIApplicationMain + 340 (UIApplication.m:5372)
61  app                        	0x0000000102602b8c main + 68 (AppDelegate.swift:21)
62  dyld                          	0x00000001ef064dec start + 2220 (dyldMain.cpp:1165)

Can you reproduce the bug?

No

Reproduction Steps

No response

Version

realm_core_v_13_21_0

What Atlas Services are you using?

Local Database only

Are you using encryption?

Yes

Platform OS and version(s)

iOS 15, 16 & 17

Build environment

Xcode version: 14.3.1
Dependency manager and version: SPM

@bb-git bb-git added the T-Bug label Nov 3, 2023
@nirinchev nirinchev transferred this issue from realm/realm-swift Feb 6, 2024
@ironage ironage linked a pull request Apr 15, 2024 that will close this issue
4 tasks
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants