From Fedora Project Wiki
Description
This test case tests the functionality of the ABRT vmcore feature.
How to test
- Ensure you have the plugin installed with the following command:
su -c 'yum install abrt-addon-vmcore'
- Ensure you have necessary packages for producing vmcore and its processing:
su -c 'yum install kexec-tools crash system-config-kdump'
- Ensure that the system log watcher service is running -
systemctl status abrt-vmcore.service
- If you have to change anything, restart abrtd:
su -c 'systemctl restart abrtd.service'
- If you have to change anything, restart abrtd:
- Add
crashkernel=128M
to kernel command line.- You can either use system-config-kdump, click "Enable" and then "Apply".
- Or you can manually edit
/etc/default/grub
and then re-generate grub configuration file.
- Reboot.
- Ensure that the kdump service is running -
systemctl status kdump.service
. If it doesn't, no vmcore will be saved on crash. - Crash the machine:
sync; echo 1 >/proc/sys/kernel/sysrq; echo c >/proc/sysrq-trigger
Expected Results
- When rebooting after the crash, ABRT should detect the new vmcore appearing in
/var/crash
, create a crash report and notify you via the notification area.
Test notification only
It is possible that kdump does not currently work on Fedora 19: https://bugzilla.redhat.com/show_bug.cgi?id=959914. In this case you can at least test the notification feature of ABRT.
- As root, create a directory under
/var/crash
with file namedvmcore
in it:mkdir /var/crash/127.0.0.1-test && touch /var/crash/127.0.0.1-test/vmcore
. - Reboot.
- ABRT should present a notification as in the real case.