How to save the core file to disk? [SOLVED]
Unga
unga888 at yahoo.com
Tue Nov 26 15:01:25 UTC 2013
----- Original Message -----
> From: Nils Kassube <kassube at gmx.net>
> To: ubuntu-users at lists.ubuntu.com
> Cc:
> Sent: Tuesday, November 26, 2013 2:37 PM
> Subject: Re: How to save the core file to disk?
>
> 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.
>
Yes, "ulimit -c 10000" worked. I in fact ran ulimit earlier, it just showed "unlimted", that's why did not change it.
Thank you very much for your reply.
Unga
More information about the ubuntu-users
mailing list