命令: gdb 二进制文件名 core文件名、
查看core文件位置:sysctl kernel.core_pattern
调试过程中输入bt可以查看调用栈信息
参考资料:
https://blog.csdn.net/K346K346/article/details/48344263