How to save the core file to disk?

Nils Kassube kassube at gmx.net
Tue Nov 26 14:37:09 UTC 2013


Unga wrote:
> My program Seg faults but cannot find where Ubuntu saves the core
> file.
> 
> I have changed the core_pattern as follows but still no core file:
> echo "core.%e.%p" > /proc/sys/kernel/core_pattern

First you should enable writing a core file with a command like

ulimit -c 10000

where the number indicates the max. core size in 1kb blocks. Then you 
find the core file in your current directory.


Nils





More information about the ubuntu-users mailing list