coredump
Red Hat Enterprise Linux 6/7/8 has a service called abrt
, which automatically collects the core dump files on the server and stores them inside the /var/spool/abrt
.
1. Ensure that the system is set up to generate application cores by removing the core limits:
# ulimit -c unlimited
2. 安装 abrt 和abrt-addon-ccpp:
# yum install abrt abrt-addon-ccpp abrt-tui
3. 安装ccpp hooks:
# abrt-install-ccpp-hook install # abrt-install-ccpp-hook is-installed; echo $?;
第二个命令返回0.
4. Ensure that this service is up and the ccpp hook to capture core dumps is enabled:
# service abrtd start
# service abrt-ccpp start