< Previous | Contents | Next >
1.2. Reporting Application Crashes
The software package that provides the apport-cli utility, apport, can be configured to automatically capture the state of a crashed application. This is enabled by default (in /etc/default/apport).
After an application crashes, if enabled, apport will store a crash report under /var/crash:
-rw-r----- 1 peter whoopsie 150K Jul 24 16:17 _usr_lib_x86_64-linux-gnu_libmenu- cache2_libexec_menu-cached.1000.crash
Use the apport-cli command without arguments to process any pending crash reports. It will offer to report them one by one.
apport-cli
*** Send problem report to the developers?
After the problem report has been sent, please fill out the form in the automatically opened web browser.
What would you like to do? Your options are: S: Send report (153.0 KB)
V: View report
K: Keep report file for sending later or copying to somewhere else I: Cancel and ignore future crashes of this program version
C: Cancel
Please choose (S/V/K/I/C): s
If you send the report, as was done above, the prompt will be returned immediately and the /var/crash
directory will then contain 2 extra files:
-rw-r----- 1 peter whoopsie 150K Jul 24 16:17 _usr_lib_x86_64-linux-gnu_libmenu- cache2_libexec_menu-cached.1000.crash
-rw-rw-r-- 1 peter whoopsie 0 Jul 24 16:37 _usr_lib_x86_64-linux-gnu_libmenu- cache2_libexec_menu-cached.1000.upload
-rw------- 1 whoopsie whoopsie 0 Jul 24 16:37 _usr_lib_x86_64-linux-gnu_libmenu- cache2_libexec_menu-cached.1000.uploaded
Sending in a crash report like this will not immediately result in the creation of a new public bug. The report will be made private on Launchpad, meaning that it will be visible to only a limited set of bug triagers. These triagers will then scan the report for possible private data before creating a public bug.