core文件找不到了

开始以为是core文件太大,设置ulimit -c unlimited  以后,再次访问,显示

./a.out
Segmentation fault (core dumped)

但是却找不到这个文件的地方,最后

 

sysctl kernel.core_pattern
kernel.core_pattern = /apsara/tubo/corefile/core-%e-%p-%t-%h

这里设置了core文件所在的目录,最后果然在这个下面

ls /apsara/tubo/corefile/core-a.out-*
/apsara/tubo/corefile/core-a.out-10105-1403693584-r12f13056.dg.aliyun.com

/apsara/tubo/corefile/core-a.out-24520-1403693738-r12f13056.dg.aliyun.com

/apsara/tubo/corefile/core-a.out-15609-1403693600-r12f13056.dg.aliyun.com

 

看来是为了防止core文件把磁盘写满采取的措施,这样挂接在远程磁盘就ok了

转载于:https://www.cnblogs.com/laodageblog/p/3808704.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值