檢視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