Oracle Linux 6.4 の core dump の出力先

  • シグナルを送ってコアダンプを吐かせる。
[yazekats@yazekats-linux ~]$ cat /proc/sys/kernel/core_pattern
|/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e
[yazekats@yazekats-linux ~]$ ulimit -c unlimited
[yazekats@yazekats-linux ~]$ ulimit -c
unlimited
[yazekats@yazekats-linux ~]$ cat loop
#!/bin/bash

while :
do
   sleep 1
done
[yazekats@yazekats-linux ~]$ ./loop &
[2] 4996
[yazekats@yazekats-linux ~]$ kill -SIGSEGV 4996
[yazekats@yazekats-linux ~]$
[2]-  Segmentation fault      (core dumped) ./loop
  • 出力されたコアダンプを確認する
[root@yazekats-linux ~]# tail -10 /var/log/messages

...

Oct 15 23:10:17 yazekats-linux abrtd: Directory 'ccpp-2013-10-15-23:10:17-4415' creation detected
Oct 15 23:10:17 yazekats-linux abrt[4436]: Saved core dump of pid 4415 (/bin/bash) to /var/spool/abrt/ccpp-2013-10-15-23:10:17-4415 (462848 bytes)
[root@yazekats-linux ~]# cd /var/spool/abrt/ccpp-2013-10-15-23\:10\:17-4415/
total 1580
-rw-r----- 1 abrt yazekats       5 Oct 15 23:10 abrt_version
-rw-r----- 1 abrt yazekats       4 Oct 15 23:10 analyzer
-rw-r----- 1 abrt yazekats       6 Oct 15 23:10 architecture
-rw-r----- 1 abrt yazekats       0 Oct 15 23:10 cgroup
-rw-r----- 1 abrt yazekats      16 Oct 15 23:10 cmdline
-rw-r----- 1 abrt yazekats       4 Oct 15 23:10 component
-rw-r----- 1 abrt yazekats  462848 Oct 15 23:10 coredump
-rw-r----- 1 abrt yazekats       1 Oct 15 23:10 count
-rw-r----- 1 abrt yazekats     567 Oct 15 23:10 dso_list
-rw-r----- 1 abrt yazekats    2765 Oct 15 23:10 environ
-rw-r----- 1 abrt yazekats       9 Oct 15 23:10 executable
-rw-r----- 1 abrt yazekats      14 Oct 15 23:10 hostname
-rw-r----- 1 abrt yazekats      29 Oct 15 23:10 kernel
-rw-r----- 1 abrt yazekats    1323 Oct 15 23:10 limits
-rw-r----- 1 abrt yazekats    2375 Oct 15 23:10 maps
-rw-r----- 1 abrt yazekats     105 Oct 15 23:10 open_fds
-rw-r----- 1 abrt yazekats      31 Oct 15 23:10 os_release
-rw-r----- 1 abrt yazekats      17 Oct 15 23:10 package
-rw-r----- 1 abrt yazekats       4 Oct 15 23:10 pid
-rw-r----- 1 abrt yazekats      14 Oct 15 23:10 pwd
-rw-r----- 1 abrt yazekats      51 Oct 15 23:10 reason
-rw-r----- 1 abrt yazekats 1210684 Oct 15 23:10 sosreport.tar.xz
-rw-r----- 1 abrt yazekats      10 Oct 15 23:10 time
-rw-r----- 1 abrt yazekats       3 Oct 15 23:10 uid
-rw-r----- 1 abrt yazekats       9 Oct 15 23:10 username
-rw-r----- 1 abrt yazekats      40 Oct 15 23:10 uuid
-rw-r----- 1 abrt yazekats     147 Oct 15 23:10 var_log_messages