一、crash-utility下载
1.1 crash工具官网下载:https://people.redhat.com/anderson/
1.2 github也有部分版本crash工具
Releases · crash-utility/crash · GitHub
1.3 wget方式下载
wget https://github.com/crash-utility/crash/archive/7.2.8.tar.gz
二、crash工具编译
2.1 build compile
->make target=ARM(编译arm 32bit tool)
->make target=ARM64(编译arm 64bit tool)
->make (编译x86 tool)
2.2 build clean
->remove the gdb-7.6 subdirectory
->perform a "make clean"
-> build说明:crash内嵌了gdb,会自动下载gdb包源码进行编译。
三、crash 常用方法说明
可参考:https://crash-utility.github.io/crash_whitepaper.html
四、crash实际应用举例(以高通SDX55系列为例)
4.1 使用高通qpst工具抓取ramdump(内存转储文件),抓取后看到ramdump信息如下