From Fedora Project Wiki
m (Initial draft) |
(Change to service abrtd) |
||
Line 4: | Line 4: | ||
# Inspect {{filename|/etc/abrt/abrt.conf}} and ensure that ''abrt'' is configured to detect C program crashes. A sample configuration will include the ''CCpp'' plugin, as seen below: <pre>EnabledPlugins = CCpp</pre> | # Inspect {{filename|/etc/abrt/abrt.conf}} and ensure that ''abrt'' is configured to detect C program crashes. A sample configuration will include the ''CCpp'' plugin, as seen below: <pre>EnabledPlugins = CCpp</pre> | ||
# Also in {{filename|/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 <pre>CCpp = Logger</pre> | # Also in {{filename|/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 <pre>CCpp = Logger</pre> | ||
# Restart the ''abrt'' service <pre>service | # Restart the ''abrt'' service <pre>service abrtd restart</pre> | ||
# Choose a C or C++ application to crash. For this example, we will use the {{command|sleep}} command which is provided by {{package|coreutils}}. | # Choose a C or C++ application to crash. For this example, we will use the {{command|sleep}} command which is provided by {{package|coreutils}}. | ||
# Run the application you wish to capture a crash. If using the {{command|sleep}} command, open a terminal and run the command: <pre>sleep 5m</pre> | # Run the application you wish to capture a crash. If using the {{command|sleep}} command, open a terminal and run the command: <pre>sleep 5m</pre> |
Revision as of 00:34, 3 November 2009
Description
This test case is designed to confirm that abrt can properly detect and diagnose application crashes from C/C++ programs.
How to test
- Inspect
/etc/abrt/abrt.conf
and ensure that abrt is configured to detect C program crashes. A sample configuration will include the CCpp plugin, as seen below:EnabledPlugins = CCpp
- Also in
/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 belowCCpp = Logger
- Restart the abrt service
service abrtd restart
- Choose a C or C++ application to crash. For this example, we will use the
sleep
command which is provided bycoreutils
. - Run the application you wish to capture a crash. If using the
sleep
command, open a terminal and run the command:sleep 5m
- In another terminal, force an application crash by locating the process id, and using the
kill
command. For example,pkill -SIGSEGV sleep
- Open
abrt-gui
by clicking the desktop notification icon and generate a crash report.
Expected Results
- The
abrt
application detects the failure by updating the desktop icon - Clicking the icon, or running the command
abrt-gui
displays the recently failed application - Selecting the application from
abrt-gui
and reporting the failure generates a proper backtrace. (FIXME ... perhaps a link to what a good backtrace is)