当前位置:网站首页>Breakpad usage and DMP analysis
Breakpad usage and DMP analysis
2022-06-25 14:58:00 【qq_ twenty-three million nine hundred and fifty-three thousand 】
breakpad compile
1,breakpad Source download path
https://chromium.googlesource.com/breakpad/breakpad
The latest version requires g++ Support c++11, If g++ I won't support it c++11, You can use a lower version breakpad, Choose... Here 42
2,./configure && make
3, There are few problems encountered during compilation lss file , Download here https://chromium.googlesource.com/linux-syscall-support/
4, If gcc Version is too low , Will be submitted to the -Werror Wait for several unrecognized error messages , At this time, you can Makefile in -Werror Relevant settings are commented out
breakpad Use
1, Include header file
“client/linux/handler/minidump_descriptor.h”
“client/linux/handler/exception_handler.h”
2, google_breakpad::MinidumpDescriptor descriptor("./tmp"); // Appoint minidump File write Directory
google_breakpad::ExceptionHandler eh(descriptor, NULL, breakpad_callback, NULL, true ,-1);
// finish writing sth. minidump Callback function after
static bool breakpad_callback(const google_breakpad::MinidumpDescriptor& descriptor,
void* context, bool succeeded)
{
printf("Dump path: %s\n", descriptor.path());
return succeeded;
}
int main()
{
google_breakpad::MinidumpDescriptor descriptor("./tmp"); // Appoint minidump File write Directory
google_breakpad::ExceptionHandler eh(descriptor, NULL, breakpad_callback, NULL, true ,-1);
char *p = NULL;
*p=1;
return 0;
}
}
dmp analysis
dmp File analysis requires two executable programs , The first is dump_syms, The second is minidump_stackwalk
1,dump_syms A symbol table used to generate executable programs , Such as
./dump_syms main >main.sym
./dump_syms libsecmodel.so > libsecmodel.so.sym
2, according to main.sym obtain version number
perform head main.sym -n 1
obtain MODULE Linux x86_64 0B3BFC770A76BCA18E2ECC7A19DF61DF0 main
Create folder symobols/main/0B3BFC770A76BCA18E2ECC7A19DF61DF0
3, take main.sym Copied to the symobols/main/0B3BFC770A76BCA18E2ECC7A19DF61DF0 Next
4, Suppose the program crashes and generates dmp File for 7f0a5ae5-4ea2-150e-55e9b70e-05c9ae40.dmp
5, Generate readable stack information
minidump_stackwalk 7f0a5ae5-4ea2-150e-55e9b70e-05c9ae40.dmp ./symbols > main.result
Stack information is stored in main.result In file
边栏推荐
- QT opens the print dialog box in a text editor
- Time stamp calculation and audio-visual synchronization of TS stream combined video by ffmpeg protocol concat
- 15 -- 最接近原点的 K 个点
- Heavyweight! The domestic IDE is released and developed by Alibaba. It is completely open source! (high performance + high customization)
- basic_ String mind map
- Learning notes on February 5, 2022 (C language)
- 如何裁剪动图大小?试试这个在线照片裁剪工具
- JS determines whether two values are equal, and compares any two values, including array objects
- 14 -- validate palindrome string II
- System Verilog - function and task
猜你喜欢

从408改考自主命题,211贵州大学考研改考

弹性布局(display:flex;)属性详解

Sequential programming 1

搭建极简GB28181 网守和网关服务器,建立AI推理和3d服务场景,然后开源代码(一)

如何裁剪动图大小?试试这个在线照片裁剪工具

New good friend Pinia, leading the new era of state management

Judging the number of leap years from 1 to N years
![[Ocean University of China] information sharing for the first and second examinations of postgraduate entrance examination](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[Ocean University of China] information sharing for the first and second examinations of postgraduate entrance examination

关于win10 版本kicad 卡死的问题, 版本6.x

从0到1完全掌握 XSS
随机推荐
JS select all exercise
Automatic correlation between QT signal and slot
Basic knowledge of pointer
basic_ String mind map
2022年广东高考分数线出炉,一个几家欢喜几家愁
Power automatic test system nsat-8000, accurate, high-speed and reliable power test equipment
dmsetup命令
[try to hack] vulhub shooting range construction
定位position(5种方式)
Review of arrays and pointers triggered by a topic
Native JS obtains form data and highlights and beautifies JSON output display
NBD Network Block Device
One question per day, punch in
Character encoding minutes
ffmpeg protocol concat 进行ts流合并视频的时间戳计算及其音画同步方式一点浅析
【深度学习】多任务学习 多个数据集 数据集漏标
Is it safe to open a stock account online?
14 -- validate palindrome string II
移除区间(贪心)
Time stamp calculation and audio-visual synchronization of TS stream combined video by ffmpeg protocol concat