Got a SIGSEGV while executing native code

0

We had a code in c# dot net. Using mono-embeddinator, we have created a native AAR file. Now we are using this AAR file inside an android studio application.

When the app is executed, it gets crashed when any object of this AAR file is accessed. Exception :

  1. Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application.

Sometimes receive other exception :

2019-10-25 09:38:41.117 A/libc: Invalid address 0x714a2df940 passed to free: value not allocated
2019-10-25 09:38:41.118 A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 27395 (ers.com.sumoapp), pid 27395 (ers.com.sumoapp)
2019-10-25 09:38:41.454 I/crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone
2019-10-25 09:38:41.460 I//system/bin/tombstoned: received crash request for pid 27395
2019-10-25 09:38:41.469 I/crash_dump64: performing dump of process 27395 (target tid = 27395)
2019-10-25 09:38:41.470 A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2019-10-25 09:38:41.470 A/DEBUG: Build fingerprint: 'Nokia/TA-1021_00A0/PLE:8.1.0/OPR1.170623.026/00A0_5_580:user/release-keys'
2019-10-25 09:38:41.470 A/DEBUG: Revision: '0'
2019-10-25 09:38:41.470 A/DEBUG: ABI: 'arm64'
2019-10-25 09:38:41.470 A/DEBUG: pid: 27395, tid: 27395, name: ers.com.sumoapp  >>> sumoapp <<<
2019-10-25 09:38:41.470 A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
2019-10-25 09:38:41.485 A/DEBUG: Abort message: 'Invalid address 0x714a2df940 passed to free: value not allocated'
2019-10-25 09:38:41.486 A/DEBUG:     x0   0000000000000000  x1   0000000000006b03  x2   0000000000000006  x3   0000000000000008
2019-10-25 09:38:41.486 A/DEBUG:     x4   8000000000808080  x5   8000000000808080  x6   8000000000808080  x7   0000000000000008
2019-10-25 09:38:41.486 A/DEBUG:     x8   0000000000000083  x9   0000000010000000  x10  0000007fea232a50  x11  0000000000000001
2019-10-25 09:38:41.486 A/DEBUG:     x12  0000000000000000  x13  000000005db27549  x14  00065be258e4e429  x15  0000a9ba85543f40
2019-10-25 09:38:41.486 A/DEBUG:     x16  00000061b136efa8  x17  00000071eca3ac1c  x18  0000000000000020  x19  0000000000006b03
2019-10-25 09:38:41.486 A/DEBUG:     x20  0000000000006b03  x21  0000000000000083  x22  0000000000000000  x23  00000071ecaa98b8
2019-10-25 09:38:41.486 A/DEBUG:     x24  00000071ecaa9934  x25  00000071692c2a00  x26  00000071ede5ba40  x27  0000000000000043
2019-10-25 09:38:41.486 A/DEBUG:     x28  00000071ede5ba40  x29  0000007fea232a90  x30  00000071ec9efb6c
2019-10-25 09:38:41.486 A/DEBUG:     sp   0000007fea232a50  pc   00000071ec9efb94  pstate 0000000060000000
2019-10-25 09:38:41.924 W/ResourceType: No package identifier when getting value for resource number 0x00000000
2019-10-25 09:38:41.926 D/NetworkController.MobileSignalController(3): updateTelephony: hasService=true ss=SignalStrength: 99 0 -120 -160 -120 -1 -1 20 -98 -9 152 2147483647 0 2147483647 gsm|lte 99 99
2019-10-25 09:38:41.927 I/NetworkController.MobileSignalController(3): updateVoiceNetworkType voiceNetType: 13 mCurrentState.connected: true
2019-10-25 09:38:41.930 I/NetworkController.MobileSignalController(3): isShowSXLTEStyle: false isRoaming: false
2019-10-25 09:38:42.010 A/DEBUG: backtrace:
2019-10-25 09:38:42.010 A/DEBUG:     #00 pc 000000000001db94  /system/lib64/libc.so (abort+120)
2019-10-25 09:38:42.010 A/DEBUG:     #01 pc 0000000000094da0  /system/lib64/libc.so (ifree+816)
2019-10-25 09:38:42.010 A/DEBUG:     #02 pc 0000000000095018  /system/lib64/libc.so (je_free+120)
2019-10-25 09:38:42.010 A/DEBUG:     #03 pc 0000000000384c54  /system/lib64/libart.so (art::JNI::ReleaseStringCritical(_JNIEnv*, _jstring*, unsigned short const*)+660)
2019-10-25 09:38:42.010 A/DEBUG:     #04 pc 0000000000115c4c  /system/lib64/libart.so (art::CheckJNI::ReleaseStringCharsInternal(char const*, _JNIEnv*, _jstring*, void const*, bool, bool)+908)
2019-10-25 09:38:42.010 A/DEBUG:     #05 pc 00000000001127a0  /system/lib64/libandroid_runtime.so (android::android_os_Parcel_writeInterfaceToken(_JNIEnv*, _jclass*, long, _jstring*)+160)
2019-10-25 09:38:42.010 A/DEBUG:     #06 pc 00000000008c1264  /system/framework/arm64/boot-framework.oat (offset 0x626000) (android.app.admin.SecurityLog.readEventsOnWrapping [DEDUPED]+180)
2019-10-25 09:38:42.010 A/DEBUG:     #07 pc 000000000009bfd4  /dev/ashmem/dalvik-jit-code-cache (deleted)
2019-10-25 09:38:42.114 I/mmid: select timeout: wait for receiving msg
2019-10-25 09:38:43.970 E//system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_08```


android
android-studio
mono
asked on Stack Overflow Oct 24, 2019 by Kunal Singhvi • edited Feb 10, 2020 by qki

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0