Audio sink crashes with SIGSEGV (SEGV_MAPERR) during initialization in Android

asked 2015-05-05 08:35:50 -0800

sard_tg gravatar image

Hi, I have built the audio service framework and Sink application for Android. But the audio Sink application crashes while initialization itself. The crash occurs at Crypto_GetRandomBytes() function. Is the crash related to openssl library ?

I have used Alljoyn_core_sdk_15.04 libraries and also pulled the openssl libraries from the device.

How do I resolve it?

The crashdump is as follows:

F/libc    (10088): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 10107 (BusHandler)
I/DEBUG   (  356): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (  356): UUID: cfa84578-8083-4a56-b53e-efb7976b11c6
I/DEBUG   (  356): Build fingerprint: 'Sony/C6602/C6602:4.4.4/10.5.1.A.0.283/5P53rQ:user/release-keys'
I/DEBUG   (  356): Revision: '0'
I/DEBUG   (  356): pid: 10088, tid: 10107, name: BusHandler  >>> org.alljoyn.services.audio.sink <<<
I/DEBUG   (  356): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000

I/DEBUG   (  356): backtrace:
I/DEBUG   (  356):     #00  pc 0010a558  /data/app-lib/org.alljoyn.services.audio.sink-2/libAllJoynAudioSink.so (qcc::Crypto_GetRandomBytes(unsigned char*, unsigned int)+56)
I/DEBUG   (  356):     #01  pc 000fa2c0  /data/app-lib/org.alljoyn.services.audio.sink-2/libAllJoynAudioSink.so (qcc::GUID128::GUID128()+56)
I/DEBUG   (  356):     #02  pc 0011fe08  /data/app-lib/org.alljoyn.services.audio.sink-2/libAllJoynAudioSink.so (ajn::_LocalEndpoint::_LocalEndpoint(ajn::BusAttachment&, unsigned int)+772)
I/DEBUG   (  356):     #03  pc 00140fac  /data/app-lib/org.alljoyn.services.audio.sink-2/libAllJoynAudioSink.so (ajn::TransportList::TransportList(ajn::BusAttachment&, ajn::TransportFactoryContainer&, qcc::IODispatch*, unsigned int)+140)
I/DEBUG   (  356):     #04  pc 001145f4  /data/app-lib/org.alljoyn.services.audio.sink-2/libAllJoynAudioSink.so (ajn::BusAttachment::Internal::Internal(char const*, ajn::BusAttachment&, ajn::TransportFactoryContainer&, ajn::Router*, bool, char const*, unsigned int)+228)
I/DEBUG   (  356):     #05  pc 001149b8  /data/app-lib/org.alljoyn.services.audio.sink-2/libAllJoynAudioSink.so (ajn::BusAttachment::BusAttachment(char const*, bool, unsigned int)+100)
I/DEBUG   (  356):     #06  pc 000755a4  /data/app-lib/org.alljoyn.services.audio.sink-2/libAllJoynAudioSink.so (MyAllJoynCode::initialize(char const*)+152)
I/DEBUG   (  356):     #07  pc 00074bf0  /data/app-lib/org.alljoyn.services.audio.sink-2/libAllJoynAudioSink.so (Java_org_alljoyn_services_audio_sink_BusHandler_initialize+112)
I/DEBUG   (  356):     #08  pc 0002034c  /system/lib/libdvm.so (dvmPlatformInvoke+112)
I/DEBUG   (  356):     #09  pc 00050fcf  /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
I/DEBUG   (  356):     #10  pc 000529b9  /system/lib/libdvm.so (dvmResolveNativeMethod(unsigned int const*, JValue*, Method const*, Thread*)+184)
I/DEBUG   (  356):     #11  pc 000297e0  /system/lib/libdvm.so
I/DEBUG   (  356):     #12  pc 00030c6c  /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
I/DEBUG   (  356):     #13  pc 0002e304  /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
I/DEBUG   (  356):     #14  pc 00063431  /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336)
I/DEBUG   (  356):     #15  pc 00063455  /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
I/DEBUG   (  356):     #16  pc 00058133  /system/lib/libdvm.so
I/DEBUG   (  356):     #17  pc 0000d280  /system/lib/libc.so (__thread_entry+72)
I/DEBUG   (  356):     #18  pc 0000d418  /system/lib/libc.so (pthread_create+240)

-Thanks

P.S. I have tried with options CRYPTO=openssl and CRYPTO=builtin while running scons script. But ... (more)

edit retag flag offensive close merge delete

Comments

you might try on the core mailing list. https://lists.allseenalliance.org/mailman/listinfo/allseen-core

ry.jones ( 2015-08-15 00:41:39 -0800 )edit