LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 737|回复: 5

请问在linux中如何保存应用程序的core file

[复制链接]
发表于 2003-4-25 09:15:44 | 显示全部楼层 |阅读模式
在sun OS下应用程序崩溃后会产生一个core文件,请问在linux下有吗?如果有,要怎么样才能把它保存下来
发表于 2003-4-25 10:39:54 | 显示全部楼层
run this command:
ulimit -c XXXX
XXXX is a number.
发表于 2003-4-25 10:47:21 | 显示全部楼层
如果编译内核时选择了debug之类的选项,应用程序崩溃后就会生成core文件。
 楼主| 发表于 2003-4-25 10:57:26 | 显示全部楼层
我装的是Red Hat 7.3,我没有重新编译过内核,我产生core文件是给开发人员调试的。
请问一楼的number是指什么?我不懂,你能不能解释一下?
 楼主| 发表于 2003-4-25 11:19:42 | 显示全部楼层
谢谢各位,我搞定了!!!
发表于 2003-4-25 11:58:21 | 显示全部楼层
it is not so difficult, right? that number is the maximum size of the core file you allow system to dump.
Just dont' want to type too much English.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表