如何调试mapbox崩溃

时间:2018-05-18 07:48:44

标签: android-ndk mapbox-gl mapbox-android ndk-stack

我遇到了地图集库com.mapbox.mapboxsdk:mapbox-android-sdk:6.1.1

的多余崩溃

在logcat上我得到了这个堆栈:

pid: 4960, tid: 4960, name: [...]  >>> [...] <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
r0 00000000  r1 6b9faf17  r2 0000010f  r3 00000001
r4 00000000  r5 b4d96a80  r6 00000003  r7 bef0db50
r8 bef0dae0  r9 b4db6500  sl bef0dbb0  fp b4db6500
ip b4cfc94c  sp bef0da88  lr b499dc29  pc 9fdc9ebc  cpsr 60060030
backtrace:
    #00 pc 00095ebc  /data/app/[...]/lib/arm/libmapbox-gl.so
    #01 pc 00097545  /data/app/[...]/lib/arm/libmapbox-gl.so
    #02 pc 00097587  /data/app/[...]/lib/arm/libmapbox-gl.so
    #03 pc 000eaa29  /system/lib/libart.so (art_quick_generic_jni_trampoline+40)
    #04 pc 000e6331  /system/lib/libart.so (art_quick_invoke_stub_internal+64)
    #05 pc 004028a5  /system/lib/libart.so (art_quick_invoke_stub+188)
    #06 pc 007fccdc  [stack]`

尝试使用libmapbox-gl.so获取ndk-stack的明确行号,我只能得到:

Build fingerprint: 'google/hammerhead/hammerhead:6.0.1/M4B30Z/3437181:user/release-keys'
pid: 4960, tid: 4960, name: [...]  >>> [...] <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
Stack frame #00 pc 00095ebc  /data/app/[...]/lib/arm/libmapbox-gl.so: Routine ??
??:0
Stack frame #01 pc 00097545  /data/app/[...]/lib/arm/libmapbox-gl.so: Routine ??
??:0
Stack frame #02 pc 00097587  /data/app/[...]/lib/arm/libmapbox-gl.so: Routine ??
??:0
Stack frame #03 pc 000eaa29  /system/lib/libart.so (art_quick_generic_jni_trampoline+40)
Stack frame #04 pc 000e6331  /system/lib/libart.so (art_quick_invoke_stub_internal+64)
Stack frame #05 pc 004028a5  /system/lib/libart.so (art_quick_invoke_stub+188)
Stack frame #06 pc 007fccdc  [stack]

这是我的ndk-stack命令:$ANDROID_LIB_PATH/sdk/ndk-bundle/ndk-stack -sym $PROJECT_PATH/app/build/intermediates/transforms/mergeJniLibs/servertest/release/0/lib/x86_64/ -dump logcat.txt

如何获取发生崩溃的行号?

0 个答案:

没有答案