当前位置:网站首页>Crash usage
Crash usage
2022-06-10 05:25:00 【Xinxin defect gold】
Crash Use
Environment building
1.crash Tool compilation
sudo apt-get install libaio-dev libncurses5-dev zlib1g-dev liblzma-dev flex bison byacc m4 bison g++-multilib gcc-multilib lib32ncurses5-dev lib32z1-dev
2. install termcap libary
1) download termcap
wget http://ftp.gnu.org/gnu/termcap/termcap-1.3.1.tar.gz
2) decompression
tar -zxv -f termcap-1.3.1.tar.gz
3) install
cd termcap-1.3.1
./configure
3. download crash Source code
https://github.com/crash-utility/crash
https://github.com/crash-utility/crash.git
4. compile crash Tools
cd crash-master/crash-master
make target=ARM64
sudo make install
5、 If you need a fallback code
git reset --hard 0ab7ac3bea5deaa3da894247ffab9ef2433c1b9b
start-up
According to the environment, we built our door and compiled it crash Executable program , There are two , One is debugging ARM Of , One is ARM64 Of ,
See you debug target yes ARM still ARM64, Then decide which one to use , Here we will debug ARM The named carsh, To be debugged ARM64 The named crash64.
start-up crash You need two files , One is coredump(dump) Here is SYS_COREDUMP、 One is vmlinux( The symbol table ).
take vmlinux and SYS_COREDUMP Put in crash In the same directory of the executable program , start-up :
crash vmlinux SYS_COREDUMP
give the result as follows 
At this point, you can enter various debugging commands
Routine debugging
Common commands
crash Use GDB As his internal engine ,crash Many commands and grammars in are related to GDB identical . If ever used GDB, You will find crash It's not that strange .
If you want to get crash More commands and detailed descriptions of related commands , have access to crash The internal order of help To get :




Command expansion
The extension command
crash Support extended commands , To be specific, see crash Expand the description of the command
Two commands to help analyze the problem 
Compile extended command Library
Download the source code on the official website of the expansion command , Put in crash Source code inside extensions Catalog , For example, will trace.c Put in extensions Catalog .
And then in crash Enter the following command in the source directory :
make extensions
After compiling , There will be so Library generation , Files in extensions Catalog , such as trace.so
Use the expand command
Enter into crash after , stay crash Command line diagram
extend <path-to> /xxx.so

crash The corresponding command is supported .
Unique features - see ftrace( Write next time )
边栏推荐
- New words new words new words new words new words new words
- stack_quick_sort
- 微信手机端js小游戏踩方块源码
- Interview question 05.04 Next number
- [untitled]
- 使用GAT解析Minidump(图形界面)
- Wechat mobile JS small game stepping on the box source code
- 【对话直播】图计算是下一个科技前沿
- [STM32] transplantation of Hal library on 4-pin 0.96 inch OLED screen - hardware IIC (I)
- 联系人二维码生成插件qrcode.js
猜你喜欢

Power mathematics of leetcode326-3

The world's first financial chart database test benchmark project was approved, and ant group opened patent Co Construction

每日一题—LeetCode497—非重叠矩形中的随机点-前缀和-二分

Interview question 05.06 Integer conversion
![[live dialogue] graph computing is the next frontier of science and technology](/img/23/7477ec2c81866ece291b01db9b7e4b.png)
[live dialogue] graph computing is the next frontier of science and technology

Examination questions and online simulation examination of the third batch of Guangdong Provincial Safety Officer a certificate (principal) in 2022
![[stacking | fast scheduling] Top-k problem](/img/8e/43739ffd6a24c50d99d21ec0db4d4c.jpg)
[stacking | fast scheduling] Top-k problem

《模型轻量化-剪枝蒸馏量化系列》YOLOv5无损剪枝(附源码)

使用GAT解析Minidump(图形界面)

【创新文档技术解决方案】上海道宁为您提供涵盖整个文档起草生命周期的产品——Litera,帮助用户创建质量更高的文档
随机推荐
2022山东省安全员C证考试题库及答案
2022.6.3-----leetcode. eight hundred and twenty-nine
Softing provides Emerson with connection solutions for AMS device management system
LeetCode326-3的幂-数学
使用GAT解析Minidump(图形界面)
[UE4 automatic terrain material]
2022.6.1-----leetcode. four hundred and seventy-three
npm、yarn的安装及配置
Interview question 08.08 Permutation with duplicate strings
最高奖项!2022数博会领先科技成果“新技术”授予OceanBase数据库
IDC发布《中国云原生市场分析》,蚂蚁集团已成覆盖最全面厂商之一
Yuandao communication has passed the registration: its annual revenue is 1.625 billion yuan, and its performance is highly dependent on China Mobile
Be diligent in some habits of foreign lead
Interview question 08.02 Lost robot
Interview question 08.07 Permutation without duplicate strings
Array, string, function and structure in C language
Five best! Ant group passed the highest level evaluation of the "stability Assurance Plan" of the ICT Institute
[innovative document technology solution] Shanghai daoning provides you with a product - litera, which covers the entire document drafting life cycle, to help users create higher quality documents
[how much management knows] Chinese "other", English "other", Japanese "other"
How can nlm5 relay acquisition, acquisition and generation instrument save more power?