随笔 - 45  文章 - 2  评论 - 0  阅读 - 9984

gdb调试coredump文件

查看coredump文件位置

cat /proc/sys/kernel/core_pattern
coredumpctl list
coredumpctl dump pid_xxx --output xxx.core

gdb调试

gdb -c xxx.core xxx.bin
tui
up 1
down 1
disas

设置coredump文件位置

sudo sysctl -w kernel.core_pattern="/home/bill/project/test_coredump/core/core_%e_%p"
cat /proc/sys/kernel/core_pattern

参考

https://debugging.works/blog/analyzing-linux-coredump/
https://blog.csdn.net/u011942101/article/details/119480601

posted on   生活的艺术  阅读(35)  评论(0编辑  收藏  举报
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示