Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-1349

BadVersion being thrown in the notification mechanism on Core 13

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: None

      After upgrading Kotlin to Core 13 and running tests on AWS Device Farm, we saw this exception. It looks like versions might be reclaimed too soon, but we are still investigating if this can be reproduced

        11-29 06:09:52.097 31977 31977 F DEBUG   : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
        11-29 06:09:52.097 31977 31977 F DEBUG   : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
        11-29 06:09:52.097 31977 31977 F DEBUG   : Abort message: 'terminating with uncaught exception of type realm::DB::BadVersion: std::exception'
        11-29 06:09:52.097 31977 31977 F DEBUG   :     x0  0000000000000000  x1  0000000000007ce6  x2  0000000000000006  x3  000000768c2b5eb0
        11-29 06:09:52.097 31977 31977 F DEBUG   :     x4  736f646277641f73  x5  736f646277641f73  x6  736f646277641f73  x7  7f7f7f7f7f7f7f7f
        11-29 06:09:52.097 31977 31977 F DEBUG   :     x8  00000000000000f0  x9  0000007957bbc9e0  x10 0000000000000001  x11 0000007957bfd5e0
        11-29 06:09:52.097 31977 31977 F DEBUG   :     x12 000000003b9ac9ff  x13 000000007fffffff  x14 0000000000089fd2  x15 0000000a1bdc62e3
        11-29 06:09:52.097 31977 31977 F DEBUG   :     x16 0000007957c6ad58  x17 0000007957c46120  x18 00000076205dc000  x19 0000000000007392
        11-29 06:09:52.097 31977 31977 F DEBUG   :     x20 0000000000007ce6  x21 00000000ffffffff  x22 ffffff80ffffffc8  x23 000000768c2b6100
        11-29 06:09:52.097 31977 31977 F DEBUG   :     x24 000000768c2b5fe0  x25 000000768c2b6020  x26 0000000010080009  x27 0000000000000000
        11-29 06:09:52.097 31977 31977 F DEBUG   :     x28 000000768c2b7480  x29 000000768c2b5f30
        11-29 06:09:52.097 31977 31977 F DEBUG   :     lr  0000007957bee0c8  sp  000000768c2b5e90  pc  0000007957bee0f4  pst 0000000000001000
        11-29 06:09:52.097 31977 31977 F DEBUG   : backtrace:
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #00 pc 00000000000530f4  /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: cbc4c62a9b269839456f1d7728d8411e)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #01 pc 0000000000f47320  /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/lib/arm64/librealmc.so (abort_message+240) (BuildId: 569bdb2dc11525d377bf082d5d50e3a8fadc26cf)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #02 pc 0000000000f47548  /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/lib/arm64/librealmc.so (demangling_terminate_handler()+264) (BuildId: 569bdb2dc11525d377bf082d5d50e3a8fadc26cf)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #03 pc 0000000000f473d8  /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/lib/arm64/librealmc.so (std::__terminate(void (*)())+16) (BuildId: 569bdb2dc11525d377bf082d5d50e3a8fadc26cf)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #04 pc 0000000000f4697c  /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/lib/arm64/librealmc.so (__cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*)+32) (BuildId: 569bdb2dc11525d377bf082d5d50e3a8fadc26cf)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #05 pc 0000000000f468d0  /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/lib/arm64/librealmc.so (__cxa_throw+124) (BuildId: 569bdb2dc11525d377bf082d5d50e3a8fadc26cf)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #06 pc 0000000000c44918  /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/lib/arm64/librealmc.so (realm::DB::VersionManager::grab_read_lock(realm::DB::ReadLockInfo::Type, realm::VersionID)+620) (BuildId: 569bdb2dc11525d377bf082d5d50e3a8fadc26cf)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #07 pc 0000000000c445e8  /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/lib/arm64/librealmc.so (realm::DB::grab_read_lock(realm::DB::ReadLockInfo::Type, realm::VersionID)+168) (BuildId: 569bdb2dc11525d377bf082d5d50e3a8fadc26cf)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #08 pc 00000000007abc1c  /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/lib/arm64/librealmc.so (bool realm::Transaction::internal_advance_read<(anonymous namespace)::TransactLogValidator>((anonymous namespace)::TransactLogValidator*, realm::VersionID, realm::_impl::History&, bool)+108) (BuildId: 569bdb2dc11525d377bf082d5d50e3a8fadc26cf)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #09 pc 00000000007a2fe8  /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/lib/arm64/librealmc.so (void realm::Transaction::advance_read<(anonymous namespace)::TransactLogValidator>((anonymous namespace)::TransactLogValidator*, realm::VersionID)+396) (BuildId: 569bdb2dc11525d377bf082d5d50e3a8fadc26cf)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #10 pc 00000000007accb4  /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/lib/arm64/librealmc.so (auto realm::_impl::transaction::advance(std::__ndk1::shared_ptr<realm::Transaction> const&, realm::BindingContext*, realm::_impl::NotifierPackage&&)::$_1::operator()<(anonymous namespace)::TransactLogValidator*>((anonymous namespace)::TransactLogValidator*&&) const+144) (BuildId: 569bdb2dc11525d377bf082d5d50e3a8fadc26cf)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #11 pc 00000000007a31a8  /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/lib/arm64/librealmc.so (void (anonymous namespace)::advance_with_notifications<realm::_impl::transaction::advance(std::__ndk1::shared_ptr<realm::Transaction> const&, realm::BindingContext*, realm::_impl::NotifierPackage&&)::$_1>(realm::BindingContext*, std::__ndk1::shared_ptr<realm::Transaction> const&, realm::_impl::transaction::advance(std::__ndk1::shared_ptr<realm::Transaction> const&, realm::BindingContext*, realm::_impl::NotifierPackage&&)::$_1&&, realm::_impl::NotifierPackage&)+288) (BuildId: 569bdb2dc11525d377bf082d5d50e3a8fadc26cf)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #12 pc 00000000007a305c  /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/lib/arm64/librealmc.so (realm::_impl::transaction::advance(std::__ndk1::shared_ptr<realm::Transaction> const&, realm::BindingContext*, realm::_impl::NotifierPackage&&)+64) (BuildId: 569bdb2dc11525d377bf082d5d50e3a8fadc26cf)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #13 pc 0000000000786334  /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/lib/arm64/librealmc.so (realm::_impl::RealmCoordinator::advance_to_ready(realm::Realm&)+1232) (BuildId: 569bdb2dc11525d377bf082d5d50e3a8fadc26cf)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #14 pc 00000000006fbe80  /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/lib/arm64/librealmc.so (realm::Realm::notify()+544) (BuildId: 569bdb2dc11525d377bf082d5d50e3a8fadc26cf)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #15 pc 00000000007b44ec  /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/lib/arm64/librealmc.so (realm::_impl::WeakRealmNotifier::notify()::$_0::operator()() const+64) (BuildId: 569bdb2dc11525d377bf082d5d50e3a8fadc26cf)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #16 pc 00000000007b449c  /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/lib/arm64/librealmc.so (void realm::util::UniqueFunction<void ()>::call_regular_void<realm::_impl::WeakRealmNotifier::notify()::$_0>(std::__ndk1::integral_constant<bool, true>, realm::_impl::WeakRealmNotifier::notify()::$_0&)+20) (BuildId: 569bdb2dc11525d377bf082d5d50e3a8fadc26cf)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #17 pc 00000000007b4438  /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/lib/arm64/librealmc.so (realm::util::UniqueFunction<void ()>::SpecificImpl<realm::_impl::WeakRealmNotifier::notify()::$_0>::call()+24) (BuildId: 569bdb2dc11525d377bf082d5d50e3a8fadc26cf)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #18 pc 00000000005ff618  /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/lib/arm64/librealmc.so (realm::util::UniqueFunction<void ()>::operator()() const+112) (BuildId: 569bdb2dc11525d377bf082d5d50e3a8fadc26cf)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #19 pc 00000000007b4894  /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/lib/arm64/librealmc.so (realm::util::InvocationQueue::invoke_all()+160) (BuildId: 569bdb2dc11525d377bf082d5d50e3a8fadc26cf)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #20 pc 0000000000600550  /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/lib/arm64/librealmc.so (realm_scheduler_perform_work+100) (BuildId: 569bdb2dc11525d377bf082d5d50e3a8fadc26cf)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #21 pc 0000000000596b60  /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/lib/arm64/librealmc.so (invoke_core_notify_callback(long)+20) (BuildId: 569bdb2dc11525d377bf082d5d50e3a8fadc26cf)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #22 pc 00000000005923a4  /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/lib/arm64/librealmc.so (Java_io_realm_kotlin_internal_interop_realmcJNI_invoke_1core_1notify_1callback+36) (BuildId: 569bdb2dc11525d377bf082d5d50e3a8fadc26cf)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #23 pc 0000000000440554  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: d307dc6adc4105b5e392ad710770385d)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #24 pc 0000000000209a9c  /apex/com.android.art/lib64/libart.so (nterp_helper+1948) (BuildId: d307dc6adc4105b5e392ad710770385d)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #25 pc 0000000000188004  [anon:dalvik-classes2.dex extracted in memory from /data/app/~~RthpES-6N6bD1yIA4oxA_g==/io.realm.testapp.test-63XLSlBlASnFbDoGWzV31Q==/base.apk!classes2.dex] (io.realm.kotlin.internal.interop.realmc.invoke_core_notify_callback+0)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #26 pc 0000000002199460  /memfd:jit-cache (deleted) (io.realm.kotlin.internal.interop.JVMScheduler$notifyCore$function$1.invokeSuspend+208)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #27 pc 00000000020e251c  /memfd:jit-cache (deleted) (kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith+316)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #28 pc 00000000020d0634  /memfd:jit-cache (deleted) (kotlinx.coroutines.DispatchedTask.run+2004)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #29 pc 000000000216095c  /memfd:jit-cache (deleted) (java.util.concurrent.ThreadPoolExecutor.runWorker+700)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #30 pc 000000000020a2b0  /apex/com.android.art/lib64/libart.so (nterp_helper+4016) (BuildId: d307dc6adc4105b5e392ad710770385d)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #31 pc 0000000000221334  /apex/com.android.art/javalib/core-oj.jar (java.util.concurrent.ThreadPoolExecutor$Worker.run+4)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #32 pc 000000000020b074  /apex/com.android.art/lib64/libart.so (nterp_helper+7540) (BuildId: d307dc6adc4105b5e392ad710770385d)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #33 pc 00000000000f6740  /apex/com.android.art/javalib/core-oj.jar (java.lang.Thread.run+8)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #34 pc 0000000000436b6c  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+556) (BuildId: d307dc6adc4105b5e392ad710770385d)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #35 pc 0000000000468938  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+156) (BuildId: d307dc6adc4105b5e392ad710770385d)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #36 pc 0000000000468620  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+388) (BuildId: d307dc6adc4105b5e392ad710770385d)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #37 pc 0000000000618214  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1668) (BuildId: d307dc6adc4105b5e392ad710770385d)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #38 pc 00000000000c14dc  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204) (BuildId: cbc4c62a9b269839456f1d7728d8411e)
        11-29 06:09:52.097 31977 31977 F DEBUG   :       #39 pc 0000000000054930  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: cbc4c62a9b269839456f1d7728d8411e)
        11-29 06:09:52.112   670   670 
      

            Assignee:
            finn.schiermer-andersen@mongodb.com Finn Andersen (Inactive)
            Reporter:
            christian.melchior@mongodb.com Christian Melchior (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: