Re: ISSUES While Running PJSUA Binary on ANDROID Device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Starce output while running pjsua binary on android for above issue:

mprotect(0xb66a9000, 4092, PROT_READ|PROT_WRITE) = 0
mprotect(0xb6a98000, 4092, PROT_READ|PROT_WRITE) = 0
mprotect(0xb6dab000, 4092, PROT_READ|PROT_WRITE) = 0
mprotect(0xb6f25000, 4092, PROT_READ|PROT_WRITE) = 0
mprotect(0xb58fc000, 4092, PROT_READ)   = 0
mprotect(0xb62af000, 4092, PROT_READ)   = 0
mprotect(0xb66a9000, 4092, PROT_READ)   = 0
mprotect(0xb6a98000, 4092, PROT_READ)   = 0
mprotect(0xb6dab000, 4092, PROT_READ)   = 0
mprotect(0xb6f25000, 4092, PROT_READ)   = 0
--- {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} (Segmentation fault) ---
sigaction(SIGSEGV, {SIG_DFL, , {0xb6f29a71, [], SA_RESTART|SA_SIGINFO|SA_ONSTACK}, 0) = 0
sigaction(SIGSEGV, {0xb6f29a71, [], SA_RESTART|SA_SIGINFO|SA_ONSTACK}, NULL, 0xb8588698) = 0
prctl(PR_GET_NAME, 0xb6f27c00, 0, 0, 0) = 0
gettid()                                = 1838
open("/dev/log/main", O_WRONLY)         = 3
writev(3, [{"\7", 1}, {"libc\0", 5}, {"Fatal signal 11 (SIGSEGV) at 0x0"..., 73}], 3) = 79
close(3)                                = 0
gettid()                                = 1838
socket(PF_UNIX, SOCK_STREAM, 0)         = 3
connect(3, {sa_family=AF_UNIX, path=@"android:debuggerd"}, 20) = 0
write(3, "\0\0\0\0.\7\0\0\0\0\0\0", 12) = 12
read(3, "", 1)                          = 0
close(3)                                = 0
sigaction(SIGSEGV, {SIG_DFL, , {0xb6f29a71, [], SA_RESTART|SA_SIGINFO|SA_ONSTACK}, 0) = 0
rt_sigreturn(0x1)                       = 0
--- {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} (Segmentation fault) ---
+++ killed by SIGSEGV +++
Segmentation fault


Logcat Traces:

/WLAN_PSA(  262): NL MSG, len[048], NL type[0x11] WNI type[0x5050] len[028]
V/WLAN_PSA(  262): NL MSG, len[4078], NL type[0x1C] WNI type[0x5900] len[54799]
F/libc    ( 7877): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 7877 (simpleua)
I/DEBUG   (  248): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (  248): AM write failure (32 / Broken pipe)
I/DEBUG   (  248): Build fingerprint: 'qcom/msm8909_512/msm8909_512:4.4.4/KTU84P/eng.lnxbuild.20150331.214016:userdebug/test-keys'
I/DEBUG   (  248): Revision: '0'
W/NativeCrashListener( 1317): Couldn't find ProcessRecord for pid 7877
I/DEBUG   (  248): pid: 7877, tid: 7877, name: simpleua  >>> ./system/bin/simpleua <<<
I/DEBUG   (  248): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
I/DEBUG   (  248):     r0 00000000  r1 00000ffc  r2 00000001  r3 b6f44678
I/DEBUG   (  248):     r4 00000000  r5 00000000  r6 00000000  r7 00000000
I/DEBUG   (  248):     r8 00000000  r9 00000000  sl 00000000  fp 00000000
I/DEBUG   (  248):     ip 00000000  sp beb27960  lr b6f35885  pc 00000000  cpsr 600e0010
I/DEBUG   (  248):     d0  0000000000000000  d1  b611a9b400000001

Kindly tell us if we can get some information from these logs.



With Warm Regards,
Vikas Sharma
VVDN Technologies Pvt Ltd
Cell : 9971507491 | Skype : vsvikas2013

On Fri, Apr 29, 2016 at 12:46 PM, Vikas Sharma <vikas.sharma@xxxxxxxxxxx> wrote:
Hi,

Can we have some workaround details on the above issues.

With Warm Regards,
Vikas Sharma
VVDN Technologies Pvt Ltd
Cell : 9971507491 | Skype : vsvikas2013

On Thu, Apr 28, 2016 at 11:12 PM, Vikas Sharma <vikas.sharma@xxxxxxxxxxx> wrote:
Just a little correction in the above query:

We were actually using Lollipop instead of Marshmallow android version.

With Warm Regards,
Vikas Sharma
VVDN Technologies Pvt Ltd
Cell : 9971507491 | Skype : vsvikas2013

On Thu, Apr 28, 2016 at 10:59 PM, Vikas Sharma <vikas.sharma@xxxxxxxxxxx> wrote:
Hi

We want to run a PJSIP application on an Android device.We have successfully compiled the PJSIP on an ubuntu 14.04 system for android version.We are following the below link to build the PJSIP with openh264 and libyuv support for android version.

https://trac.pjsip.org/repos/wiki/Getting-Started/Android

We are using below Android sdk and ndk versions:
Android sdk:
  android-sdk_r24.4.1-linux.tgz

We are facing following issues when we run the compiled PJSUA binary on android KITKAT/Marshmallow versions:

1)For APP_PLATFORM as Android-23 and Marshmallow as android version:
For this we are using android-23 as a TARGET while compiling openh264 and as an APP_PLATFORM while configuring PJSIP.But when we run the PJSUA binary on adb shell of the connected device(Marshmallow version),we get the below error.

"error: only position independent executables (PIE) are supported"        [We tried to solve this error by modifying  the CFLAGS value but no luck.We were not able to configure pjsip with -fPIC in CFLAGS]

2)For APP_PLATFORM as Android-16 and KITKAT as android version:
For this we are using android-16 as a TARGET while compiling openh264 and as an APP_PLATFORM while configuring PJSIP.But when we run the pjsua binary on adb shell of the connected device(KITKAT version),we are getting segmentation fault.

Below are the logcat traces.

V/XTWiFiOS( 1001): filter out passive location report
V/WLAN_PSA(  262): NL MSG, len[048], NL type[0x11] WNI type[0x5050] len[028]
V/WLAN_PSA(  262): NL MSG, len[048], NL type[0x11] WNI type[0x5050] len[028]
E/LocSvc_libulp( 1001): I/===> int ulp_msg_process_system_update(UlpSystemEvent) line 1460
E/LocSvc_libulp( 1001): I/int ulp_msg_process_system_update(UlpSystemEvent): systemEvent:5
E/LocSvc_libulp( 1001): I/===> int ulp_brain_process_system_update(UlpSystemEvent) line 2345
V/WLAN_PSA(  262): NL MSG, len[048], NL type[0x11] WNI type[0x5050] len[028]
F/libc    (30123): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 30123 (pjsua-arm-unkno)
I/DEBUG   (  246): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (  246): AM write failure (32 / Broken pipe)
I/DEBUG   (  246): Build fingerprint: 'qcom/msm8909_512/msm8909_512:4.4.4/KTU84P/eng.lnxbuild.20150331.214016:userdebug/test-keys'
I/DEBUG   (  246): Revision: '0'
I/DEBUG   (  246): pid: 30123, tid: 30123, name: pjsua-arm-unkno  >>> ./pjsua-arm-unknown-linux-androideabi <<<
I/DEBUG   (  246): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
--------- beginning of /dev/log/system
W/NativeCrashListener( 1001): Couldn't find ProcessRecord for pid 30123

Can somebody help us to solve the above issues or tell us the correct way to run pjsua binary on an android device?                                                             



With Warm Regards,
Vikas Sharma
VVDN Technologies Pvt Ltd
Cell : 9971507491 | Skype : vsvikas2013



_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux