This test case is designed to confirm that abrt can properly detect and diagnose application crashes from C/C++ programs.
How to test
/etc/abrt/abrt.conf, ensure a reporting mechanism is configured for the CCpp plugin. A sample configuration that uses the Logger reporting plugin is noted below
CCpp = Logger
- Restart the abrtd service
service abrtd restart
- Choose a C or C++ application to crash. For this example, we will use the
sleepcommand which is provided by
- Run the application you wish to capture a crash. If using the
sleepcommand, open a terminal and run the command:
- In another terminal, force an application crash by locating the process id, and using the
killcommand. For example,
pkill -SIGSEGV sleep
- A desktop notification should appear in notification area.
abrt-guiby clicking on it.
- Pick the chras from the list, generate a crash report using "Report" button on the toolbar.
abrtapplication detects the failure by updating the desktop icon
- Clicking the icon, or running the command
abrt-guidisplays the recently failed application
- Selecting the application from
abrt-guiand reporting the failure generates a proper backtrace. (FIXME ... perhaps a link to what a good backtrace is)