Uploaded image for project: 'Realm Dart SDK'
  1. Realm Dart SDK
  2. RDART-955

SIGSEGV: null pointer dereference from 1.7.0 up

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      What happened?

      Starting from version 1.7.0 up (bug was detected after upgrade to 1.9.0 from 1.6.1) we see application crashes probably caused by user logging out from AppServices and realm closing database.
      After downgrading to 1.6.1 everything works as expected.

      Repro steps

      1. Login to Atlas App Services with idToken
      2. Open synced realm with flexible sync
      3. Logout from App Services
      4. Realm is closing
      5. Crash

      Version

      Dart 3.3.0; Flutter 3.19.1

      What Atlas Services are you using?

      Both Atlas Device Sync and Atlas App Services

      What type of application is this?

      Flutter Application

      Client OS and version

      Android 14

      Code snippets

      No response

      Stacktrace of the exception/crash you're getting

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      Build fingerprint: 'google/panther/panther:14/UQ1A.240205.002/11224170:user/release-keys'
      Revision: 'MP1.0'
      ABI: 'arm64'
      Timestamp: 2024-02-29 16:15:22.471350839+0100
      Process uptime: 22s
      Cmdline: ********
      pid: 25226, tid: 25378, name: 1.ui  >>> ***** <<<
      uid: 10287
      tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
      signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x000000000000029c
      Cause: null pointer dereference
          x0  000000000000029c  x1  0000006d174fbc81  x2  0000006ecc4482b4  x3  0000006d18204549
          x4  b400007056cf8970  x5  0000000000000000  x6  0000006d0caa5eb1  x7  000000000000001f
          x8  c4279bbc2a99832d  x9  0000000000000001  x10 0000000000000002  x11 0000000000000000
          x12 0000000000000000  x13 ffffff92e7dfbabf  x14 0000000000000000  x15 0000006f80204e40
          x16 0000006ecc9cb9a8  x17 00000072b6ef6e50  x18 0000006eeb7cc000  x19 0000006f80204d88
          x20 0000000000000000  x21 0000006f80206000  x22 0000006d00008081  x23 0000006eeef459e8
          x24 0000006d00008081  x25 0000006f8012b000  x26 b40000712769bb80  x27 0000006d0ab6dd40
          x28 000000080000006d  x29 0000006f80204ce0
          lr  0000006ecc8c5540  sp  0000006f80204ce0  pc  00000072b6ef6e58  pst 0000000080001000
      8 total frames
      backtrace:
            #00 pc 00000000000cae58  /apex/com.android.runtime/lib64/bionic/libc.so (pthread_mutex_lock+8) (BuildId: 19c32900d9d702c303d2b4164fbba76c)
            #01 pc 00000000008c253c  /data/app/~~Y7c-PDewOcM6dlh6kJMNOQ==/******-u2ggXUYnnHPnaR7yYX5oxQ==/lib/arm64/librealm_dart.so (std::__ndk1::mutex::lock()+12) (BuildId: 69308beb1f46a85c209ff2f51c8a4c01fa69d6b8)
            #02 pc 000000000048ef40  /data/app/~~Y7c-PDewOcM6dlh6kJMNOQ==/******-u2ggXUYnnHPnaR7yYX5oxQ==/lib/arm64/librealm_dart.so (BuildId: 69308beb1f46a85c209ff2f51c8a4c01fa69d6b8)
            #03 pc 000000000048d540  /data/app/~~Y7c-PDewOcM6dlh6kJMNOQ==/******-u2ggXUYnnHPnaR7yYX5oxQ==/lib/arm64/librealm_dart.so (BuildId: 69308beb1f46a85c209ff2f51c8a4c01fa69d6b8)
            #04 pc 000000000048efa4  /data/app/~~Y7c-PDewOcM6dlh6kJMNOQ==/******-u2ggXUYnnHPnaR7yYX5oxQ==/lib/arm64/librealm_dart.so (BuildId: 69308beb1f46a85c209ff2f51c8a4c01fa69d6b8)
            #05 pc 00000000004938a4  /data/app/~~Y7c-PDewOcM6dlh6kJMNOQ==/******-u2ggXUYnnHPnaR7yYX5oxQ==/lib/arm64/librealm_dart.so (BuildId: 69308beb1f46a85c209ff2f51c8a4c01fa69d6b8)
            #06 pc 00000000004c2444  /data/app/~~Y7c-PDewOcM6dlh6kJMNOQ==/******-u2ggXUYnnHPnaR7yYX5oxQ==/lib/arm64/librealm_dart.so (BuildId: 69308beb1f46a85c209ff2f51c8a4c01fa69d6b8)
            #07 pc 0000000000007bc4  [anon:dart-code]
      Lost connection to device.
      the Dart compiler exited unexpectedly.
      

      Relevant log output

      No response

            Assignee:
            kasper.nielsen@mongodb.com Kasper Nielsen (Inactive)
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: