[pjsip] The libpjsua.so frequently crashes in android devices

屈振华 qzhua3 at gmail.com
Sat Apr 9 01:47:22 EDT 2016


I have been experiencing libpjsua.so crashes in devlelopping some android
smart phones.

I went into the details of source codes of pjproject 2.4.5, but could not
find out the reason.

Does anyone have similar experiences or kown how to debug this issue in an
android device?

The kernel dumps are as follows:

04-08 16:43:50.752 F/DEBUG   ( 3011): *** *** *** *** *** *** *** *** ***
*** *** *** *** *** *** ***

04-08 16:43:50.752 F/DEBUG   ( 3011): Build fingerprint:
'HUAWEI/GRA-CL00/HWGRA:6.0/HUAWEIGRA-CL00/C92B352:user/release-keys'

04-08 16:43:50.752 F/DEBUG   ( 3011): Revision: '0'

04-08 16:43:50.752 F/DEBUG   ( 3011): ABI: 'arm'

04-08 16:43:50.753 F/DEBUG   ( 3011): pid: 14221, tid: 18195, name:
Thread-532  >>> com.mycomp.MyApp <<<

04-08 16:43:50.753 F/DEBUG   ( 3011): signal 6 (SIGABRT), code -6
(SI_TKILL), fault addr --------

04-08 16:43:50.833 F/DEBUG   ( 3011): Abort message:
'../src/pj/ioqueue_common_abs.c:97: ioqueue_init_key: assertion
"key->ref_count == 0" failed'

04-08 16:43:50.834 F/DEBUG   ( 3011):     r0 00000000  r1 00004713  r2
00000006  r3 d1ebe978

04-08 16:43:50.834 F/DEBUG   ( 3011):     r4 d1ebe980  r5 d1ebe930  r6
00000000  r7 0000010c

04-08 16:43:50.834 F/DEBUG   ( 3011):     r8 f6d9fe50  r9 d70c0f68  sl
d5be80a9  fp d1ebe394

04-08 16:43:50.834 F/DEBUG   ( 3011):     ip 00000006  sp d1ebe2c8  lr
f6d64e39  pc f6d67258  cpsr 400f0010

04-08 16:43:50.845 F/DEBUG   ( 3011):

04-08 16:43:50.845 F/DEBUG   ( 3011): backtrace:

04-08 16:43:50.845 F/DEBUG   ( 3011):     #00 pc 00044258  /system/lib/libc.so
(tgkill+12)

04-08 16:43:50.845 F/DEBUG   ( 3011):     #01 pc 00041e35  /system/lib/libc.so
(pthread_kill+32)

04-08 16:43:50.845 F/DEBUG   ( 3011):     #02 pc 0001bb53  /system/lib/libc.so
(raise+10)

04-08 16:43:50.845 F/DEBUG   ( 3011):     #03 pc 00018db1  /system/lib/libc.so
(__libc_android_abort+34)

04-08 16:43:50.845 F/DEBUG   ( 3011):     #04 pc 0001696c  /system/lib/libc.so
(abort+4)

04-08 16:43:50.845 F/DEBUG   ( 3011):     #05 pc 0001a813  /system/lib/libc.so
(__libc_fatal+16)

04-08 16:43:50.845 F/DEBUG   ( 3011):     #06 pc 00018e39  /system/lib/libc.so
(__assert2+20)

04-08 16:43:50.845 F/DEBUG   ( 3011):     #07 pc 0022c24c
/data/app/com.mycomp.MyApp-1/lib/arm/libpjsua.so

04-08 16:43:50.845 F/DEBUG   ( 3011):     #08 pc 0022eeb4
/data/app/com.mycomp.MyApp-1/lib/arm/libpjsua.so
(pj_ioqueue_register_sock2+508)

04-08 16:43:50.845 F/DEBUG   ( 3011):     #09 pc 0022f044
/data/app/com.mycomp.MyApp-1/lib/arm/libpjsua.so
(pj_ioqueue_register_sock+108)

04-08 16:43:50.846 F/DEBUG   ( 3011):     #10 pc 00147928
/data/app/com.mycomp.MyApp-1/lib/arm/libpjsua.so
(pjmedia_transport_udp_attach+1520)

04-08 16:43:50.846 F/DEBUG   ( 3011):     #11 pc 00147278
/data/app/com.mycomp.MyApp-1/lib/arm/libpjsua.so
(pjmedia_transport_udp_create3+880)

04-08 16:43:50.846 F/DEBUG   ( 3011):     #12 pc 00146ecc
/data/app/com.mycomp.MyApp-1/lib/arm/libpjsua.so
(pjmedia_transport_udp_create2+120)

04-08 16:43:50.846 F/DEBUG   ( 3011):     #13 pc 00146e1c
/data/app/com.mycomp.MyApp-1/lib/arm/libpjsua.so
(pjmedia_transport_udp_create+92)

04-08 16:43:50.846 F/DEBUG   ( 3011):     #14 pc 0000783d
/data/app/com.mycomp.MyApp-1/lib/arm/libMediaEngin.so
(AudioStreamer::CreateTransport()+96)

04-08 16:43:50.846 F/DEBUG   ( 3011):     #15 pc 000067a5
/data/app/com.mycomp.MyApp-1/lib/arm/libMediaEngin.so
(AudioChannel::startChannel()+128)

04-08 16:43:50.846 F/DEBUG   ( 3011):     #16 pc 0000bacf
/data/app/com.mycomp.MyApp-1/lib/arm/libMediaEngin.so
(audioChannelOpenThreadFunc(void*)+402)

04-08 16:43:50.846 F/DEBUG   ( 3011):     #17 pc 00041737  /system/lib/libc.so
(__pthread_start(void*)+30)

04-08 16:43:50.846 F/DEBUG   ( 3011):     #18 pc 00019433  /system/lib/libc.so
(__start_thread+6)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20160409/c665d3a2/attachment-0002.html>


More information about the pjsip mailing list