instrumentisto / medea-jason

Mozilla Public License 2.0
2 stars 2 forks source link

Fix segfault in frb on Android arm64 #184

Closed alexlapa closed 3 months ago

alexlapa commented 3 months ago

Synopsis

F/libc    (16798): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7fffffffffffffff in tid 16845 (1.ui), pid 16798
(a_jason_example)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Redmi/rosemary_eea/rosemary:13/TP1A.220624.014/V14.0.11.0.TKLEUXM:user/release-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: 2024-08-26 11:36:50.304956973+0300
Process uptime: 6s
ZygotePid: 848
Cmdline: com.instrumentisto.medea_jason_example
pid: 16798, tid: 16845, name: 1.ui  >>> com.instrumentisto.medea_jason_example <<<
uid: 10313
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7fffffffffffffff
    x0  7fffffffffffffff  x1  b40000785e7b6a00  x2  7fffffffffffffff  x3  0000000000000014
    x4  000000760000a431  x5  00000077fc803200  x6  00000077cf682000  x7  00000077cf681c00
    x8  7fffffffffffffff  x9  fffffffffffffff0  x10 0000000000000010  x11 0000000000000008
    x12 00000077fc801830  x13 00000000078059a0  x14 00000000078055a0  x15 00000077eff75080
    x16 0000000000000000  x17 b40000785e783f98  x18 00000077e7180000  x19 000000785b1ae05c
    x20 00000076062d1809  x21 b40000785e783800  x22 0000007600008081  x23 00000076062d1789
    x24 0000007600008081  x25 00000077efd94000  x26 b40000785e783800  x27 0000007606657dd0
    x28 0000000800000076  x29 00000077eff75098
    lr  00000077b0c869ec  sp  00000077eff74fb0  pc  00000077b0c8c624  pst 0000000080001000
backtrace:
      #00 pc 0000000000796624
      /data/app/~~rz0PNnjEMdVN2PlLkH59sw==/com.instrumentisto.medea_jason_example-Or47IAl5XWxbw4SaRilMLA==/base.apk
      #01 pc 00000000007909e8
      /data/app/~~rz0PNnjEMdVN2PlLkH59sw==/com.instrumentisto.medea_jason_example-Or47IAl5XWxbw4SaRilMLA==/base.apk
      #02 pc 0000000000798770
      /data/app/~~rz0PNnjEMdVN2PlLkH59sw==/com.instrumentisto.medea_jason_example-Or47IAl5XWxbw4SaRilMLA==/base.apk
      #03 pc 0000000000794ed4
      /data/app/~~rz0PNnjEMdVN2PlLkH59sw==/com.instrumentisto.medea_jason_example-Or47IAl5XWxbw4SaRilMLA==/base.apk
      #04 pc 0000000000794ea8
      /data/app/~~rz0PNnjEMdVN2PlLkH59sw==/com.instrumentisto.medea_jason_example-Or47IAl5XWxbw4SaRilMLA==/base.apk
      (dart_opaque_rust2dart_decode+12)
      #05 pc 00000000000081d4  [anon:dart-code]

Solution

This is caused by bad pointer arithmetic in frb. Its a temporary fix while waiting for a proper one in frb codegen.

Checklist

alexlapa commented 3 months ago

FCM

Fix segfault in `flutter_rust_bridge` on Android arm64 (#184)

Additionally:
- temporary disable iOS tests running on CI