Uploaded image for project: 'Realm .NET SDK'
  1. Realm .NET SDK
  2. RNET-369

Native libc crash on commit transaction in multithreaded environment

      As per discussion https://github.com/realm/realm-dotnet/issues/2207 opened (now closed) a few days ago by my colleague, a similar problem has now also occurred on a Samsung A40 device. This issue is related to a crash during a commit transaction as per the crash report below.
      My questions are :

      • is there a possibility that the problem is internal to the library?
      • is there the possibility that the problem is related to our incorrect implementation?

      Goals

      Successfully commit the transaction

      Expected Results

      The transaction commit must complete successfully

      Actual Results

      Native libc crash

      --------- beginning of crash
      01-18 09:01:49.253 917 917 F linker : CANNOT LINK EXECUTABLE "/system/bin/sec_diag_uart_log": library "libdiag_system.so" not found
      01-18 15:37:01.267 9030 3102 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x72616d69725024 in tid 3102 (Thread Pool Wor), pid 9030 (com.vimar.view)
      01-18 15:37:01.634 3566 3566 F DEBUG :


      01-18 15:37:01.634 3566 3566 F DEBUG : Build fingerprint: 'samsung/a70qeea/a70q:10/QP1A.190711.020/A705FNXXU5CTK4:user/release-keys'
      01-18 15:37:01.634 3566 3566 F DEBUG : Revision: '14'
      01-18 15:37:01.634 3566 3566 F DEBUG : ABI: 'arm64'
      01-18 15:37:01.645 3566 3566 F DEBUG : Timestamp: 2021-01-18 15:37:01+0100
      01-18 15:37:01.645 3566 3566 F DEBUG : pid: 9030, tid: 3102, name: Thread Pool Wor >>> com.vimar.view <<<
      01-18 15:37:01.645 3566 3566 F DEBUG : uid: 10319
      01-18 15:37:01.645 3566 3566 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x72616d69725024
      01-18 15:37:01.645 3566 3566 F DEBUG : x0 00000079d5cd1800 x1 0000000000000029 x2 0000000000000000 x3 00000079f9441ed4
      01-18 15:37:01.645 3566 3566 F DEBUG : x4 0000007a090efce0 x5 0000007a090efd00 x6 00000079d616ae80 x7 00000079c6682850
      01-18 15:37:01.645 3566 3566 F DEBUG : x8 0000000000000029 x9 7972616d69725014 x10 0000000000000000 x11 0000000000000004
      01-18 15:37:01.645 3566 3566 F DEBUG : x12 00000079cb4b0040 x13 0000000000002587 x14 00000079c0000000 x15 0000007b01d43560
      01-18 15:37:01.645 3566 3566 F DEBUG : x16 00000079f9b20420 x17 0000007b01257ffc x18 0000000000000008 x19 00000079d6038048
      01-18 15:37:01.645 3566 3566 F DEBUG : x20 0000000000000000 x21 00000079d5cd1d88 x22 00000079c57fc020 x23 00000079c57fc020
      01-18 15:37:01.645 3566 3566 F DEBUG : x24 0000000000000000 x25 0000007a02a77b48 x26 0000007a02aca4f8 x27 0000000000000000
      01-18 15:37:01.645 3566 3566 F DEBUG : x28 00000079c57fc020 x29 00000079c57fa840
      01-18 15:37:01.645 3566 3566 F DEBUG : sp 00000079c57fa6f0 lr 00000079f979c1f8 pc 00000079f96d2e2c
      01-18 15:37:01.918 3566 3566 F DEBUG :
      01-18 15:37:01.918 3566 3566 F DEBUG : backtrace:
      01-18 15:37:01.918 3566 3566 F DEBUG : #00 pc 00000000003e5e2c /data/app/com.vimar.view-EpmnC9DopvgAw2qLIES2NA==/lib/arm64/librealm-wrappers.so (BuildId: 464c0f025e0b843293e1a31d06965fd887cc188c)
      01-18 15:37:01.918 3566 3566 F DEBUG : #01 pc 00000000004af1f4 /data/app/com.vimar.view-EpmnC9DopvgAw2qLIES2NA==/lib/arm64/librealm-wrappers.so (BuildId: 464c0f025e0b843293e1a31d06965fd887cc188c)
      01-18 15:37:01.918 3566 3566 F DEBUG : #02 pc 0000000000457d20 /data/app/com.vimar.view-EpmnC9DopvgAw2qLIES2NA==/lib/arm64/librealm-wrappers.so (BuildId: 464c0f025e0b843293e1a31d06965fd887cc188c)
      01-18 15:37:01.918 3566 3566 F DEBUG : #03 pc 000000000045ec20 /data/app/com.vimar.view-EpmnC9DopvgAw2qLIES2NA==/lib/arm64/librealm-wrappers.so (BuildId: 464c0f025e0b843293e1a31d06965fd887cc188c)
      01-18 15:37:01.918 3566 3566 F DEBUG : #04 pc 00000000001c7948 /data/app/com.vimar.view-EpmnC9DopvgAw2qLIES2NA==/lib/arm64/librealm-wrappers.so (BuildId: 464c0f025e0b843293e1a31d06965fd887cc188c)
      01-18 15:37:01.918 3566 3566 F DEBUG : #05 pc 00000000001a9e94 /data/app/com.vimar.view-EpmnC9DopvgAw2qLIES2NA==/lib/arm64/librealm-wrappers.so (BuildId: 464c0f025e0b843293e1a31d06965fd887cc188c)
      01-18 15:37:01.919 3566 3566 F DEBUG : #06 pc 0000000000161820 /data/app/com.vimar.view-EpmnC9DopvgAw2qLIES2NA==/lib/arm64/librealm-wrappers.so (shared_realm_commit_transaction+44) (BuildId: 464c0f025e0b843293e1a31d06965fd887cc188c)
      01-18 15:37:01.919 3566 3566 F DEBUG : #07 pc 000000000004b134 <anonymous:79fc9f8000>

      Steps to Reproduce

      non reproducible, happens in random contexts.

      Version of Realm and Tooling

      Realm 5.1.1 on Android/Ios
      XamarinForms

            Assignee:
            nikola.irinchev@mongodb.com Nikola Irinchev
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: