0
0

Finding core-dump file

Robin Dong 发表于 2018年08月31日 11:42 | Hits: 1107
Tag: ops | coredump

In a new server, my program got ‘core dump’. But I haven’t found the core-dump file in the current directory as usual.
First I checked the ‘ulimit’ configuration:

core file size          (blocks, -c) unlimited

Seems ok. The system will generate core-dump file when the program crashed. But where is it?
Eventually, I found out theanswer: core-dump file will be generated by following pattern written in /proc/sys/kernel/core_pattern.

cat /proc/sys/kernel/core_pattern
/var/coredump/core-%u-%e-%p-%t

Therefore all the core-dump files sited in /var/coredump/ directory. The pattern setting of ‘core_pattern’ file is explainedhere.

原文链接: http://donghao.org/2018/08/31/finding-coredump-file/

0     0

我要给这篇文章打分:

可以不填写评论, 而只是打分. 如果发表评论, 你可以给的分值是-5到+5, 否则, 你只能评-1, +1两种分数. 你的评论可能需要审核.

评价列表(0)