Start the service for saving crash coredump
sudo service apport start
Configuration
By default, the crash dump of non-deb package programs is not saved. Modify the following configuration file to save the crash dump of all programs.
vi ~/.config/apport/settings
Adding following lines to the file.
[main]
unpackaged=true
crash dump files
The crash dump file is saved in /var/crash by default.
crash log decompression
apport-unpack xxx.crash output_dir
Debugging coredump file
gdb your_exe CoreDump