abrtd can be configured to collect application core dumps in /var/spool/abrt, below are quick examples on how to configure and to use the product.
set up to capture application core dumps
stop abrtd if it’s running
systemctl stop abrtd
make sure all the packages are installed
yum install abrt abrt-addon-ccpp abrt-tui
abrt-install-ccpp-hook install
configure the packages:
edit the file /etc/abrt/abrtd.conf to change the line
This will make sure that the data is not automatically deleted DeleteUploaded = yes
toDeleteUploaded = no
Edit the file /etc/abrt/abrt-action-save-package-data.conf to change the line
By default, only executables that come in an RPM package will be processed. This will allow unpackaged executables to be processed alsoProcessUnpackaged = no
ProcessUnpackaged = yes
Start and enable the services
systemctl enable abrtd
systemctl enable abrt-ccpp
systemctl start abrtd
systemctl start abrt-ccpp
Using abrt-cli
check dumps:
use abrt-cli to list previous dumps
root@ny5-pr-jump01:spool# abrt-cli list
id a17714cd19d94b606a9664a649d19296c998f585
reason: grabber.py:550::ImportError: /usr/lib64/python2.7/site-packages/pycurl.so: undefined symbol: CRYPTO_num_locks time: Thu 28 May 2020 02:00:42 PM EDT cmdline: /usr/bin/python -tt /usr/bin/repoquery --show-duplicates --plugins --quiet --disablerepo '' --enablerepo '' --qf %{name}|%{epoch}|%{version}|%{release}|%{arch}|%{repoid} python-virtualenv package: yum-utils-1.1.31-52.el7 uid: 0 (root) count: 3 Directory: /var/spool/abrt/Python-2020-05-28-14:00:42-1042 id 3c289c33b6071aac18a577fc2c49bd3786991af5 reason:
init
.py:925:_open:IOError: [Errno 21] Is a directory: u'/home/mtucker'
time: Sat 18 Apr 2020 09:56:00 AM EDT cmdline: /usr/bin/python2 /usr/bin/ansible-playbook -i ../hosts.yml gather_facts.yml --extra-vars host_group=prod package: ansible-2.8.5-1.el7 uid: 0 (root) count: 1 Directory: /var/spool/abrt/Python-2020-04-18-09:56:00-20162 id a36d37e023b5fee7c220bced71f6dd14de21c05f reason: bno_plot.py:102::IndexError: list index out of range time: Tue 07 Apr 2020 01:40:43 PM EDT cmdline: python /bin/bno_plot.py jp.py lsusb.py mysqlhotcopy objcopy pathfix.py ptpwatch.py sg_xcopy package: blktrace-1.0.5-9.el7 uid: 0 (root) count: 1 Directory: /var/spool/abrt/Python-2020-04-07-13:40:43-23801 id 44cb6bbd2f85924f072d0ca7a6b91fe335004b4a reason: pssh:93:do_pssh:ValueError: min() arg is an empty sequence time: Tue 10 Dec 2019 12:17:15 PM EST cmdline: /usr/bin/python /bin/pssh -h list -o psshout-geneos id geneos package: pssh-2.3.1-5.el7 uid: 0 (root) count: 1 Directory: /var/spool/abrt/Python-2019-12-10-12:17:15-13093
remove a dump file:
use abrt-cli rm <directory>
root@ny5-pr-jump01:abrt# ls -l /var/spool/abrt/
total 20 -rw------- 1 root root 32 Aug 24 07:24 last-via-server drwxr-x--- 2 root abrt 4096 Nov 25 10:39 Python-2019-12-10-12:17:15-13093 drwxr-x--- 2 root abrt 4096 Nov 25 10:39 Python-2020-04-07-13:40:43-23801 drwxr-x--- 2 root abrt 4096 Nov 25 10:39 Python-2020-04-18-09:56:00-20162 drwxr-x--- 2 root abrt 4096 Nov 25 10:39 Python-2020-05-28-14:00:42-1042
root@ny5-pr-jump01:abrt# abrt-cli rm /var/spool/abrt/Python-2019-12-10-12:17:15-13093
root@ny5-pr-jump01:abrt# ls -l /var/spool/abrt/
total 16 -rw------- 1 root root 32 Aug 24 07:24 last-via-server drwxr-x--- 2 root abrt 4096 Nov 25 10:39 Python-2020-04-07-13:40:43-23801 drwxr-x--- 2 root abrt 4096 Nov 25 10:39 Python-2020-04-18-09:56:00-20162 drwxr-x--- 2 root abrt 4096 Nov 25 10:39 Python-2020-05-28-14:00:42-1042