Uploaded image for project: 'Realm Java SDK'
  1. Realm Java SDK
  2. RJAVA-341

Native Crash in ART interpreter

      Goal

      The Async Task to continue as expected.

      Actual Results

      2018-10-08 10:41:09.032 7770-7770/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
      2018-10-08 10:41:09.032 7770-7770/? A/DEBUG: Build fingerprint: 'google/walleye/walleye:8.1.0/OPM2.171019.029.B1/4720900:user/release-keys'
      2018-10-08 10:41:09.032 7770-7770/? A/DEBUG: Revision: 'MP1'
      2018-10-08 10:41:09.032 7770-7770/? A/DEBUG: ABI: 'arm64'
      2018-10-08 10:41:09.032 7770-7770/? A/DEBUG: pid: 19625, tid: 7763, name: AsyncTask #40  >>> com.testapp <<<
      2018-10-08 10:41:09.032 7770-7770/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
      2018-10-08 10:41:09.032 7770-7770/? A/DEBUG:     x0   0000000000000000  x1   0000000000001e53  x2   0000000000000006  x3   0000000000000008
      2018-10-08 10:41:09.032 7770-7770/? A/DEBUG:     x4   fefeff7c98e20eff  x5   fefeff7c98e20eff  x6   fefeff7c98e20eff  x7   7f7f7f7fffff7f7f
      2018-10-08 10:41:09.032 7770-7770/? A/DEBUG:     x8   0000000000000083  x9   0000000010000000  x10  0000007ce490cca0  x11  0000000000000001
      2018-10-08 10:41:09.032 7770-7770/? A/DEBUG:     x12  0000007d0dc8c9d8  x13  ffffffffffffffff  x14  ffffffffff000000  x15  ffffffffffffffff
      2018-10-08 10:41:09.032 7770-7770/? A/DEBUG:     x16  0000005798663fa8  x17  0000007d99dc352c  x18  0000000000000000  x19  0000000000004ca9
      2018-10-08 10:41:09.032 7770-7770/? A/DEBUG:     x20  0000000000001e53  x21  0000000000000083  x22  0000007d007c168d  x23  0000007d03bd6a03
      2018-10-08 10:41:09.032 7770-7770/? A/DEBUG:     x24  0000000000000008  x25  0000007ce4910588  x26  0000007d02a0e0a0  x27  0000000000000002
      2018-10-08 10:41:09.032 7770-7770/? A/DEBUG:     x28  0000007ce490d070  x29  0000007ce490cce0  x30  0000007d99d78760
      2018-10-08 10:41:09.032 7770-7770/? A/DEBUG:     sp   0000007ce490cca0  pc   0000007d99d78788  pstate 0000000060000000
      2018-10-08 10:41:09.066 7770-7770/? A/DEBUG: backtrace:
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #00 pc 000000000001d788  /system/lib64/libc.so (abort+120)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #01 pc 000000000020ae3c  /data/app/com.testapp-cl9zX8Mwghooa3iGwCgQsg==/lib/arm64/librealm-jni.so
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #02 pc 000000000020aea0  /data/app/com.testapp-cl9zX8Mwghooa3iGwCgQsg==/lib/arm64/librealm-jni.so
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #03 pc 000000000020afe8  /data/app/com.testapp-cl9zX8Mwghooa3iGwCgQsg==/lib/arm64/librealm-jni.so
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #04 pc 00000000002069f4  /data/app/com.testapp-cl9zX8Mwghooa3iGwCgQsg==/lib/arm64/librealm-jni.so
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #05 pc 00000000001a4188  /data/app/com.testapp-cl9zX8Mwghooa3iGwCgQsg==/lib/arm64/librealm-jni.so
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #06 pc 00000000001a41ec  /data/app/com.testapp-cl9zX8Mwghooa3iGwCgQsg==/lib/arm64/librealm-jni.so
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #07 pc 00000000001a49b8  /data/app/com.testapp-cl9zX8Mwghooa3iGwCgQsg==/lib/arm64/librealm-jni.so
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #08 pc 00000000000eca1c  /data/app/com.testapp-cl9zX8Mwghooa3iGwCgQsg==/lib/arm64/librealm-jni.so
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #09 pc 000000000006c45c  /data/app/com.testapp-cl9zX8Mwghooa3iGwCgQsg==/lib/arm64/librealm-jni.so (Java_io_realm_internal_OsSharedRealm_nativeCloseSharedRealm+52)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #10 pc 0000000000553bf0  /system/lib64/libart.so (art_quick_generic_jni_trampoline+144)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #11 pc 000000000054ae4c  /system/lib64/libart.so (art_quick_invoke_static_stub+604)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #12 pc 00000000000dc5d0  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+264)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #13 pc 000000000029b49c  /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #14 pc 0000000000295a90  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+700)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #15 pc 0000000000533f50  /system/lib64/libart.so (MterpInvokeStatic+264)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #16 pc 000000000053ca94  /system/lib64/libart.so (ExecuteMterpImpl+14612)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #17 pc 0000000000275c00  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #18 pc 000000000027b7cc  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #19 pc 0000000000295a70  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #20 pc 0000000000532ad8  /system/lib64/libart.so (MterpInvokeVirtual+652)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #21 pc 000000000053c914  /system/lib64/libart.so (ExecuteMterpImpl+14228)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #22 pc 0000000000275c00  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #23 pc 000000000027b7cc  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #24 pc 0000000000295a70  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #25 pc 0000000000532ad8  /system/lib64/libart.so (MterpInvokeVirtual+652)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #26 pc 000000000053c914  /system/lib64/libart.so (ExecuteMterpImpl+14228)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #27 pc 0000000000275c00  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #28 pc 000000000027b7cc  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #29 pc 0000000000295a70  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #30 pc 0000000000532ad8  /system/lib64/libart.so (MterpInvokeVirtual+652)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #31 pc 000000000053c914  /system/lib64/libart.so (ExecuteMterpImpl+14228)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #32 pc 0000000000275c00  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #33 pc 000000000027b7cc  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #34 pc 0000000000295a70  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #35 pc 0000000000533164  /system/lib64/libart.so (MterpInvokeSuper+1452)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #36 pc 000000000053c994  /system/lib64/libart.so (ExecuteMterpImpl+14356)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #37 pc 0000000000275c00  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #38 pc 000000000027b7cc  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #39 pc 0000000000295a70  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #40 pc 0000000000532ad8  /system/lib64/libart.so (MterpInvokeVirtual+652)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #41 pc 000000000053c914  /system/lib64/libart.so (ExecuteMterpImpl+14228)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #42 pc 0000000000275c00  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #43 pc 000000000027b7cc  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #44 pc 0000000000295a70  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #45 pc 0000000000533d68  /system/lib64/libart.so (MterpInvokeDirect+356)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #46 pc 000000000053ca14  /system/lib64/libart.so (ExecuteMterpImpl+14484)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #47 pc 0000000000275c00  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #48 pc 000000000027b7cc  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #49 pc 0000000000295a70  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #50 pc 0000000000532ad8  /system/lib64/libart.so (MterpInvokeVirtual+652)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #51 pc 000000000053c914  /system/lib64/libart.so (ExecuteMterpImpl+14228)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #52 pc 0000000000275c00  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #53 pc 000000000027b7cc  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #54 pc 0000000000295a70  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #55 pc 0000000000532ad8  /system/lib64/libart.so (MterpInvokeVirtual+652)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #56 pc 000000000053c914  /system/lib64/libart.so (ExecuteMterpImpl+14228)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #57 pc 0000000000275c00  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #58 pc 000000000027b7cc  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #59 pc 0000000000295a70  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #60 pc 0000000000533ab8  /system/lib64/libart.so (MterpInvokeInterface+1576)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #61 pc 000000000053cb14  /system/lib64/libart.so (ExecuteMterpImpl+14740)
      2018-10-08 10:41:09.067 7770-7770/? A/DEBUG:     #62 pc 0000000000275c00  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
      2018-10-08 10:41:09.068 7770-7770/? A/DEBUG:     #63 pc 000000000027b7cc  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
      2018-10-08 10:41:11.066 817-817/? E//system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_05
      

      Steps & Code to Reproduce

      I've not been able to recreate the problem since, and I don't know what line of code cause the crash.

      Version of Realm and tooling

      Realm version(s): 5.7.0

      Realm Sync feature enabled: No

      Android Studio version: 3.2.0

      Android Build Tools version: 3.2.0

      Gradle version: 4.6

      Which Android version and device(s): Pixel 2 running 8.1

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: