输入ulimit -a

如果core file size为0,那就说明没有打开core dump,尽管你的程序crash的时候会显示core dumped,但实际上不会生成core file

输入ulimit -c 1024即可,其中1024是生成的core file的最大大小。这个值可以根据实际情况调整

 

参考资料:

http://blog.csdn.net/scholar_ii/article/details/7716625

http://www.ibm.com/developerworks/cn/linux/sdk/gdb/index.html

相关文章:

  • 2022-12-23
  • 2021-11-11
  • 2022-02-14
猜你喜欢
  • 2022-01-28
  • 2022-12-23
  • 2021-08-09
  • 2021-10-02
  • 2021-11-18
相关资源
相似解决方案