Skip to content

Various asserts and crashes with TURN / PJNATH

Typical assertion when PJSIP built with asserts:

2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A  *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A  Build fingerprint: 'google/cheetah/cheetah:14/AP1A.240305.019.A1/11445699:user/release-keys'
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A  Revision: 'MP1.0'
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A  ABI: 'arm64'
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A  Timestamp: 2024-03-22 14:13:31.550572829-0400
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A  Process uptime: 2s
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A  Cmdline: cx.ring
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A  pid: 8414, tid: 9172, name: Thread-64  >>> cx.ring <<<
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A  uid: 10352
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A  tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A  signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A  Abort message: '../src/pjnath/turn_session.c:740: pj_status_t pj_turn_session_alloc(pj_turn_session *, const pj_turn_alloc_param *): assertion "sess->state>PJ_TURN_STATE_NULL && sess->state<=PJ_TURN_STATE_RESOLVED" failed'
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A      x0  0000000000000000  x1  00000000000023d4  x2  0000000000000006  x3  000000795e531320
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A      x4  2f333639622d6d6e  x5  2f333639622d6d6e  x6  2f333639622d6d6e  x7  7f7f7f7f7f7f7f7f
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A      x8  00000000000000f0  x9  0000007d40c87200  x10 0000000000000001  x11 0000007d40cd1ba0
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A      x12 0000007d5ac86020  x13 000000007fffffff  x14 00000000009ffbec  x15 00000247cba606d0
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A      x16 0000007d40d3cfc8  x17 0000007d40d1a160  x18 000000795b0d8000  x19 00000000000020de
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A      x20 00000000000023d4  x21 00000000ffffffff  x22 0000000000002374  x23 00000000000020de
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A      x24 000000795e5318b0  x25 000000795e5318b0  x26 000000795e531bf0  x27 00000000000fc000
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A      x28 00000000000fe000  x29 000000795e5313a0
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A      lr  0000007d40cc2e48  sp  000000795e531300  pc  0000007d40cc2e74  pst 0000000000001000
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A  11 total frames
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A  backtrace:
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A        #00 pc 000000000005ee74  /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: 33ad5959e2b38fc822cda3c642e16c94)
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A        #01 pc 000000000005f284  /apex/com.android.runtime/lib64/bionic/libc.so (__assert2+36) (BuildId: 33ad5959e2b38fc822cda3c642e16c94)
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A        #02 pc 0000000001922e2c  /data/app/~~VtmIPQIw72akn02OjhBU0g==/cx.ring-aDZMbBTi4zOBSAIxpYGD2w==/base.apk!libjami-core-jni.so (offset 0xd64000) (pj_turn_session_alloc+284) (BuildId: f128353698d79bade99658daa4d09034a3aee20e)
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A        #03 pc 000000000192a61c  /data/app/~~VtmIPQIw72akn02OjhBU0g==/cx.ring-aDZMbBTi4zOBSAIxpYGD2w==/base.apk!libjami-core-jni.so (offset 0xd64000) (BuildId: f128353698d79bade99658daa4d09034a3aee20e)
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A        #04 pc 000000000192a258  /data/app/~~VtmIPQIw72akn02OjhBU0g==/cx.ring-aDZMbBTi4zOBSAIxpYGD2w==/base.apk!libjami-core-jni.so (offset 0xd64000) (BuildId: f128353698d79bade99658daa4d09034a3aee20e)
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A        #05 pc 000000000194d5f4  /data/app/~~VtmIPQIw72akn02OjhBU0g==/cx.ring-aDZMbBTi4zOBSAIxpYGD2w==/base.apk!libjami-core-jni.so (offset 0xd64000) (BuildId: f128353698d79bade99658daa4d09034a3aee20e)
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A        #06 pc 00000000019414bc  /data/app/~~VtmIPQIw72akn02OjhBU0g==/cx.ring-aDZMbBTi4zOBSAIxpYGD2w==/base.apk!libjami-core-jni.so (offset 0xd64000) (ioqueue_dispatch_write_event+416) (BuildId: f128353698d79bade99658daa4d09034a3aee20e)
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A        #07 pc 0000000001945428  /data/app/~~VtmIPQIw72akn02OjhBU0g==/cx.ring-aDZMbBTi4zOBSAIxpYGD2w==/base.apk!libjami-core-jni.so (offset 0xd64000) (pj_ioqueue_poll+1476) (BuildId: f128353698d79bade99658daa4d09034a3aee20e)
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A        #08 pc 0000000001739b98  /data/app/~~VtmIPQIw72akn02OjhBU0g==/cx.ring-aDZMbBTi4zOBSAIxpYGD2w==/base.apk!libjami-core-jni.so (offset 0xd64000) (BuildId: f128353698d79bade99658daa4d09034a3aee20e)
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A        #09 pc 00000000000ca7cc  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204) (BuildId: 33ad5959e2b38fc822cda3c642e16c94)
2024-03-22 14:13:31.793  9191-9191  DEBUG                    pid-9191          A        #10 pc 00000000000607b0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 33ad5959e2b38fc822cda3c642e16c94)