Listed below are just several notes about core dump on Ubuntu.
The location of core dump files
The following command can print out where will the core dump files be placed.
cat /proc/sys/kernel/core_pattern
If the output start with a |
character, the kernel then will write the core dump to the stdin of the command after the |
character.
Core dump file size
The following command can remove core dump file size limit.
ulimit -c unlimited
Apport
On ubuntu, core dump files are forwarded to Apport by default. So if you can’t find the core file in your current directory, you may want to try /var/crash
. Probably you will see crash report files there.
The command apport-unpack
can be used to extract the core files out of a crash report files.
No comments:
Post a Comment