开始以为是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了

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2021-07-27
  • 2021-10-11
  • 2021-10-12
  • 2021-06-06
  • 2021-07-31
猜你喜欢
  • 2021-06-24
  • 2021-07-22
  • 2021-05-23
  • 2021-04-01
  • 2021-09-13
  • 2021-03-31
  • 2022-12-23
相关资源
相似解决方案