Uploaded image for project: 'Realm Cocoa SDK'
  1. Realm Cocoa SDK
  2. RCOCOA-848

realm::util::EncryptedFileMapping::read_barrier

      Application getting crash intermittently after upgraded to version 5.3.6 and 5.4.0.

      Realm framework version: 5.4.0
      Xcode version: 11.2
      iOS/OSX version: 13.7
      Dependency manager + version: CocoaPod Latest

      Incident Identifier: 901c3fd7-625d-4173-95a0-80f6da312643
      CrashReporter Key: B5E6761D-6702-4CC1-A55F-EDF920BD93A9
      Hardware Model: iPhone8,2
      Process: AppName [377]
      Path: /private/var/containers/Bundle/Application/3F38930D-33A7-4029-BBCC-755A766D8177/AppName.app/AppName
      Identifier: com.domain.phone2
      Version: 4.0.955 (4.0.955)
      Code Type: arm64
      Parent Process: ??? [1]

      Date/Time: 2020-09-13T19:18:20.999Z
      Launch Time: 2020-09-13T18:52:06Z
      OS Version: iPhone OS 13.7 (17H35)
      Report Version: 104

      Exception Type: SIGSEGV
      Exception Codes: SEGV_ACCERR at 0x1a
      Crashed Thread: 24

      Thread 24 Crashed:
      0 Realm 0x00000001023f1f70 realm::util::EncryptedFileMapping::read_barrier(void const_, unsigned long, unsigned long (_)(char const*)) + 32
      1 Realm 0x00000001020de844 realm::util::do_encryption_read_barrier(void const_, unsigned long, unsigned long ()(char const), realm::util::EncryptedFileMapping_) (file_mapper.hpp:133)
      2 Realm 0x00000001023c73e0 realm::Table::init(unsigned long, realm::ArrayParent*, unsigned long, bool, bool) + 516
      3 Realm 0x0000000102322efc realm::Group::create_table_accessor(unsigned long) + 752
      4 Realm 0x0000000102322bac realm::Group::do_get_table(unsigned long) + 92
      5 Realm 0x00000001020f2714 realm::ObjectSchema::ObjectSchema(realm::Group const&, realm::StringData, realm::TableKey) (group.hpp:1169)
      6 Realm 0x00000001020f9cb0 realm::ObjectStore::schema_from_group(realm::Group const&) (memory:1826)
      7 Realm 0x00000001021dce64 realm::Realm::read_schema_from_group_if_needed() (shared_realm.cpp:202)
      8 Realm 0x00000001021dd2e0 realm::Realm::begin_read(realm::VersionID) (shared_realm.cpp:138)
      9 Realm 0x00000001021dd1ac realm::Realm::read_group() (shared_realm.cpp:97)
      10 Realm 0x00000001021de0b8 realm::Realm::do_refresh() (shared_realm.cpp:858)
      11 Realm 0x00000001021ae1b0 -[RLMRealm refresh] (RLMRealm.mm:818)
      12 RealmSwift 0x000000010292f604 RealmSwift.Realm.refresh() -> Swift.Bool (Realm.swift:754)
      13 AppName 0x0000000100e1f238 function signature specialization <Arg[0] = Dead> of generic specialization <AppName.MStoreDate> of AppName.UnifiedDatabase.(realm in _15EE5ABE828ED209C1CFF5BDEB0C36C4).getter : RealmSwift.Realm? (UnifiedDatabase.swift:31)
      14 AppName 0x0000000100e1b680 function signature specialization <Arg[3] = Dead> of generic specialization <AppName.Message> of AppName.UnifiedDatabase.fetch(predicate: __C.NSPredicate?, sortDescriptors: [RealmSwift.SortDescriptor]?, count: Swift.Int?) -> [A.ModelType] (<compiler-generated>:0)
      15 AppName 0x00000001002d8d70 closure #1 (AppName.ConversationModel) -> Swift.Bool in closure #1 ([AppName.ConversationModel]) -> () in closure #3 (Swift.String) -> () in AppName.MessagesDao.rx_initializeAllConversations(completion: (AppName.ItemResult<AppName.ConversationModel>) -> (), onInitialLoadComplete: () -> ()) -> () (<compiler-generated>:0)
      16 AppName 0x00000001002d8748 closure #1 ([AppName.ConversationModel]) -> () in closure #3 (Swift.String) -> () in AppName.MessagesDao.rx_initializeAllConversations(completion: (AppName.ItemResult<AppName.ConversationModel>) -> (), onInitialLoadComplete: () -> ()) -> () (<compiler-generated>:0)
      17 AppName 0x000000010030c35c partial apply forwarder for reabstraction thunk helper from @escaping @callee_guaranteed (@guaranteed [AppName.ConversationModel]) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@in_guaranteed [AppName.ConversationModel]) -> (@out (), @error @owned Swift.Error) (<compiler-generated>:0)
      18 RxSwift 0x0000000102d66ac0 RxSwift.(MapSink in _5428EFA9A9B0C0340021B871D2E5AC01).on(RxSwift.Event<A>) -> () (Map.swift:43)
      19 RxSwift 0x0000000102d66c94 protocol witness for RxSwift.ObserverType.on(RxSwift.Event<A.Element>) -> () in conformance RxSwift.(MapSink in _5428EFA9A9B0C0340021B871D2E5AC01)<A, B> : RxSwift.ObserverType in RxSwift (<compiler-generated>:0)
      20 RxSwift 0x0000000102d73ad4 partial apply forwarder (<compiler-generated>:0)
      21 RxSwift 0x0000000102d8fd00 partial apply forwarder for reabstraction thunk helper <A><A1 where A == A1.Element, A1: RxSwift.ObserverType> from @escaping @callee_guaranteed (@in_guaranteed RxSwift.Event<A>) -> () to @escaping @callee_guaranteed (@in_guaranteed RxSwift.Event<A>) -> (@out ()) (<compiler-generated>:0)
      22 RxSwift 0x0000000102d8ebe8 merged RxSwift.(ShareReplay1WhileConnectedConnection in _E9FE621655D67A613BF2FC2D9B3041FC).on(RxSwift.Event<A>) -> () + 112
      23 RxSwift 0x0000000102d8e714 protocol witness for RxSwift.ObserverType.on(RxSwift.Event<A.Element>) -> () in conformance RxSwift.(ShareReplay1WhileConnectedConnection in _E9FE621655D67A613BF2FC2D9B3041FC)<A> : RxSwift.ObserverType in RxSwift (<compiler-generated>:0)
      24 RxSwift 0x0000000102d933b4 RxSwift.Sink.forwardOn(RxSwift.Event<A.Element>) -> () (Sink.swift:34)
      25 RxSwift 0x0000000102d6be44 RxSwift.(MergeSinkIter in _DDEA0423368B3B462AE46699A4D080E1).on(RxSwift.Event<B.Element>) -> () (Merge.swift:394)
      26 RxSwift 0x0000000102d6bfc8 protocol witness for RxSwift.ObserverType.on(RxSwift.Event<A.Element>) -> () in conformance RxSwift.(MergeSinkIter in _DDEA0423368B3B462AE46699A4D080E1)<A, B, C> : RxSwift.ObserverType in RxSwift (<compiler-generated>:0)
      27 RxSwift 0x0000000102d64e24 RxSwift.(Just in _BD9B9D4356C4038796FB16D0D54A9F8E).subscribe<A where A == A1.Element, A1: RxSwift.ObserverType>(A1) -> RxSwift.Disposable (Just.swift:83)
      28 RxSwift 0x0000000102d6b4dc RxSwift.(MergeSink in _DDEA0423368B3B462AE46699A4D080E1).subscribeInner(RxSwift.Observable<B.Element>) -> () (Merge.swift:477)
      29 RxSwift 0x0000000102d6b30c RxSwift.(MergeSink in _DDEA0423368B3B462AE46699A4D080E1).on(RxSwift.Event<A>) -> () (Merge.swift:459)
      30 RxSwift 0x0000000102d6c0f4 protocol witness for RxSwift.ObserverType.on(RxSwift.Event<A.Element>) -> () in conformance RxSwift.(MergeSink in _DDEA0423368B3B462AE46699A4D080E1)<A, B, C> : RxSwift.ObserverType in RxSwift (<compiler-generated>:0)
      31 RxSwift 0x0000000102d933b4 RxSwift.Sink.forwardOn(RxSwift.Event<A.Element>) -> () (Sink.swift:34)
      32 RxSwift 0x0000000102d66b4c RxSwift.(MapSink in _5428EFA9A9B0C0340021B871D2E5AC01).on(RxSwift.Event<A>) -> () (Map.swift:44)
      33 RxSwift 0x0000000102d66c94 protocol witness for RxSwift.ObserverType.on(RxSwift.Event<A.Element>) -> () in conformance RxSwift.(MapSink in _5428EFA9A9B0C0340021B871D2E5AC01)<A, B> : RxSwift.ObserverType in RxSwift (<compiler-generated>:0)
      34 RxSwift 0x0000000102d933b4 RxSwift.Sink.forwardOn(RxSwift.Event<A.Element>) -> () (Sink.swift:34)
      35 RxSwift 0x0000000102d5f7b4 RxSwift.(FilterSink in _172A575932639FDD42969ED91F7BE949).on(RxSwift.Event<A.Element>) -> () (Filter.swift:60)
      36 RxSwift 0x0000000102d5f8e8 protocol witness for RxSwift.ObserverType.on(RxSwift.Event<A.Element>) -> () in conformance RxSwift.(FilterSink in _172A575932639FDD42969ED91F7BE949)<A> : RxSwift.ObserverType in RxSwift (<compiler-generated>:0)
      37 RxSwift 0x0000000102d73ad4 partial apply forwarder (<compiler-generated>:0)
      38 RxSwift 0x0000000102d8fd00 partial apply forwarder for reabstraction thunk helper <A><A1 where A == A1.Element, A1: RxSwift.ObserverType> from @escaping @callee_guaranteed (@in_guaranteed RxSwift.Event<A>) -> () to @escaping @callee_guaranteed (@in_guaranteed RxSwift.Event<A>) -> (@out ()) (<compiler-generated>:0)
      39 RxSwift 0x0000000102d8ebe8 merged RxSwift.(ShareReplay1WhileConnectedConnection in _E9FE621655D67A613BF2FC2D9B3041FC).on(RxSwift.Event<A>) -> () + 112
      40 RxSwift 0x0000000102d8e714 protocol witness for RxSwift.ObserverType.on(RxSwift.Event<A.Element>) -> () in conformance RxSwift.(ShareReplay1WhileConnectedConnection in _E9FE621655D67A613BF2FC2D9B3041FC)<A> : RxSwift.ObserverType in RxSwift (<compiler-generated>:0)
      41 RxSwift 0x0000000102d72100 RxSwift.(ObserveOnSink in _277A93ABA8477198C125F3F26B2D4B62).run((), (()) -> ()) -> () (ObserveOn.swift:117)
      42 RxSwift 0x0000000102d73340 partial apply forwarder for reabstraction thunk helper from @escaping @callee_guaranteed (@unowned @callee_guaranteed () -> ()) -> () to @escaping @callee_guaranteed (@in_guaranteed (), @unowned @callee_guaranteed (@in_guaranteed ()) -> ()) -> () (<compiler-generated>:0)
      43 RxSwift 0x0000000102d81130 partial apply forwarder for reabstraction thunk helper <A> from @escaping @callee_guaranteed (@in_guaranteed A, @unowned @callee_guaranteed (@in_guaranteed A) -> ()) -> () to @escaping @callee_guaranteed (@in_guaranteed A, @in_guaranteed @callee_guaranteed (@in_guaranteed A) -> (@out ())) -> (@out ()) (<compiler-generated>:0)
      44 RxSwift 0x0000000102d80a68 closure #1 (A) -> RxSwift.Disposable in RxSwift.RecursiveImmediateScheduler.schedule(A) -> () (<compiler-generated>:0)
      45 RxSwift 0x0000000102d591d8 closure #1 () -> () in RxSwift.DispatchQueueConfiguration.schedule<A>(_: A, action: (A) -> RxSwift.Disposable) -> RxSwift.Disposable (DispatchQueueConfiguration.swift:27)
      46 RxSwift 0x0000000102d4c35c reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () (<compiler-generated>:0)
      47 libdispatch.dylib 0x00000001bb2859a8 _dispatch_call_block_and_release + 20
      48 libdispatch.dylib 0x00000001bb286524 _dispatch_client_callout + 12
      49 libdispatch.dylib 0x00000001bb22ee98 _dispatch_continuation_pop$VARIANT$mp + 408
      50 libdispatch.dylib 0x00000001bb22e5ec _dispatch_async_redirect_invoke + 652
      51 libdispatch.dylib 0x00000001bb23b438 _dispatch_root_queue_drain + 372
      52 libdispatch.dylib 0x00000001bb23bbf8 _dispatch_worker_thread2 + 120
      53 libsystem_pthread.dylib 0x00000001bb2d7b38 _pthread_wqthread + 208
      54 libsystem_pthread.dylib 0x00000001bb2da740 start_wqthread + 4

            Assignee:
            lee.maguire@mongodb.com Lee Maguire
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: