Ubuntu打开core dump

输入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

posted @ 2015-04-17 15:26  rldts  阅读(1023)  评论(0编辑  收藏  举报