How to save the core file to disk?

Unga unga888 at yahoo.com
Tue Nov 26 14:44:45 UTC 2013





----- Original Message -----
> From: Liam Proven <lproven at gmail.com>
> To: Unga <unga888 at yahoo.com>; "Ubuntu user technical support, not for general discussions" <ubuntu-users at lists.ubuntu.com>
> Cc: 
> Sent: Tuesday, November 26, 2013 2:21 PM
> Subject: Re: How to save the core file to disk?
> 
> On 26 November 2013 14:07, Unga <unga888 at yahoo.com> wrote:
>>  Hi all
>> 
>>  I'm running Ubuntu 13.10 on i386.
>> 
>>  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
>> 
>>  I want to debug and see where it is crashing. Appreciate if someone could 
> help to generate the core file disk.
> 
> 
> Um. This may be naïve, but what's wrong with:
> 
> `sudo find / -name core*`
> 

The core_pattern defaults to in Ubuntu 13.10:

cat /proc/sys/kernel/core_pattern
|/usr/share/apport/apport %p %s %c


And the /var/log/apport.log say:
executable does not belong to a package, ignoring

I'm writing my own program :)

It seems Ubuntu did not expect people may write their own programs :)

Regards
Unga





More information about the ubuntu-users mailing list