Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 824 Bytes

REMIND.md

File metadata and controls

13 lines (10 loc) · 824 Bytes

minidump_stackwalk 工具使用:

/Applications/Android\ Studio.app/Contents/plugins/android-ndk/resources/lldb/bin/minidump_stackwalk f6808d74-e3f8-4ff7-74aeb392-fb882724.dmp > crash.txt

  1. 注意 crash.txt 中的 CPU 类型,使用对应的工具进行 符号解析,可以使用 ndk 中提供的addr2line来根据地址进行一个符号反解的过程,该工具在 $NDK_HOME/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-addr2line

注意:此处要注意一下平台,如果是 arm64位的 so,解析是需要使用 aarch64-linux-android-4.9下的工具链

arm-linux-androideabi-addr2line -f -C -e sample/build/intermediates/transforms/mergeJniLibs/debug/0/lib/armeabi-v7a/libcrash-lib.so 0x77e                           
//输出结果如下
Crash()