[strongSwan-dev] Android x86 crash

Alexander Sbitnev alexander.sbitnev at gmail.com
Fri Oct 17 11:57:25 CEST 2014


   Hi there!
   Just tried to compile client for android and found it is not working 
under x86 emulator.
As soon as you try to connect to peer it crash inside native code 
loading dynamic symbols.
I suppose it can be google fault as Qt folks experienced similar kind of 
problems:
https://bugreports.qt-project.org/browse/QTBUG-37211

ARM emulator looks to be immune to this problem but it boringly slow. :(

My question is it a known problem?
I am kinda new to whole android development so don't localize 
problematic place yet.
Appreciate if anyone can give me any head-start info.

Here is info for this crash:
I/DEBUG   (  924): *** *** *** *** *** *** *** *** *** *** *** *** *** 
*** *** ***
I/DEBUG   (  924): Build fingerprint: 
'generic_x86/sdk_x86/generic_x86:4.4.2/KK/999428:eng/test-keys'
I/DEBUG   (  924): Revision: '0'
I/DEBUG   (  924): pid: 1747, tid: 1834, name: Thread-71 >>> 
org.strongswan.android <<<
I/DEBUG   (  924): signal 8 (SIGFPE), code -6 (SI_TKILL), fault addr 
000006d3
I/DEBUG   (  924):     eax 00b9ae75  ebx b778bfe4  ecx 0000005f  edx 
00000000
I/DEBUG   (  924):     esi 00000000  edi b7768004
I/DEBUG   (  924):     xcs 00000073  xds 0000007b  xes 0000007b  xfs 
00000000  xss 0000007b
I/DEBUG   (  924):     eip b7772ac8  ebp b648fe70  esp a9126450 flags 
00210246
I/DEBUG   (  924):
I/DEBUG   (  924): backtrace:
I/DEBUG   (  924):     #00  pc 00006ac8  /system/bin/linker 
(__dl__Z19dlsym_linear_lookupPKcPP6soinfoS2_+216)
I/DEBUG   (  924):     #01  pc 00001265  /system/bin/linker (__dl_dlsym+325)
I/DEBUG   (  924):     #02  pc 000510d7 
/data/app-lib/org.strongswan.android-2/libstrongswan.so
I/DEBUG   (  924):     #03  pc 0005156a 
/data/app-lib/org.strongswan.android-2/libstrongswan.so
I/DEBUG   (  924):     #04  pc 0000fe3d 
/data/app-lib/org.strongswan.android-2/libcharon.so
I/DEBUG   (  924):     #05  pc 00006a46 
/data/app-lib/org.strongswan.android-2/libandroidbridge.so 
(Java_org_strongswan_android_logic_CharonVpnService_initializeCharon+1510)
I/DEBUG   (  924):     #06  pc 0002a0eb  /system/lib/libdvm.so 
(dvmPlatformInvoke+79)
I/DEBUG   (  924):     #07  pc 00152baf  [heap]
I/DEBUG   (  924):     #08  pc 0008689d  /system/lib/libdvm.so 
(dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+285)
I/DEBUG   (  924):     #09  pc 0004c0e2  /system/lib/libdvm.so 
(dvmCheckCallJNIMethod(unsigned int const*, JValue*, Method const*, 
Thread*)+66)
I/DEBUG   (  924):     #10  pc 0008ae96  /system/lib/libdvm.so 
(dvmResolveNativeMethod(unsigned int const*, JValue*, Method const*, 
Thread*)+326)
I/DEBUG   (  924):     #11  pc 00176ad5  /system/lib/libdvm.so
I/DEBUG   (  924):     #12  pc 00003f8f  <unknown>
I/DEBUG   (  924):     #13  pc 0003b592  /system/lib/libdvm.so 
(dvmMterpStd(Thread*)+66)
I/DEBUG   (  924):     #14  pc 00036c59  /system/lib/libdvm.so 
(dvmInterpret(Thread*, Method const*, JValue*)+217)
I/DEBUG   (  924):     #15  pc 000bcbb7  /system/lib/libdvm.so 
(dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, char*)+759)
I/DEBUG   (  924):     #16  pc 000bcfc7  /system/lib/libdvm.so 
(dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+55)
I/DEBUG   (  924):     #17  pc 00098f50  /system/lib/libdvm.so 
(interpThreadStart(void*)+992)
I/DEBUG   (  924):     #18  pc 0000bc0c  /system/lib/libc.so 
(__thread_entry+236)
I/DEBUG   (  924):     #19  pc 0003e075  /system/lib/libc.so 
(__pthread_clone+69)
I/DEBUG   (  924):     #20  pc 00098b6f  /system/lib/libdvm.so 
(internalThreadStart(void*)+655)



More information about the Dev mailing list