Core dump not created on segfault

Issues related to applications and software problems
Post Reply
Posts: 14
Joined: 2012/04/10 08:19:03

Core dump not created on segfault

Post by ed_eyles » 2012/10/18 10:57:17

I have an application that is segfaulting. However, despite a message in the terminal window that a core dump has been created, none is. I have the following in /var/log/messages:

Oct 18 11:25:26 c0558 kernel: get[4386]: segfault at ffffffff ip 00000000ffffffff sp 00000000ffa6497c error 14
Oct 18 11:25:29 c0558 abrtd: Directory 'ccpp-2012-10-18-11:25:26-4386' creation detected
Oct 18 11:25:29 c0558 abrt[10384]: Saved core dump of pid 4386 (/usr/genesis/e99/get/get) to /var/spool/abrt/ccpp-2012-10-18-11:25:26-4386 (120422400 bytes)
Oct 18 11:25:30 c0558 abrtd: Executable '/usr/genesis/e99/get/get' doesn't belong to any package
Oct 18 11:25:30 c0558 abrtd: 'post-create' on '/var/spool/abrt/ccpp-2012-10-18-11:25:26-4386' exited with 1
Oct 18 11:25:30 c0558 abrtd: Corrupted or bad directory /var/spool/abrt/ccpp-2012-10-18-11:25:26-4386, deleting
The spool directory mentioned in these messages did not exist when I looked. Strangely, I had a different application segfault soon afterwards, and the spool directory for this was created with no problem. I am wondering if this problem is specific to the one application, and if so, why? This behaviour is reproducible. How can I get this application's core dump to be saved?


Posts: 14
Joined: 2012/04/10 08:19:03

Re: Core dump not created on segfault

Post by ed_eyles » 2013/05/29 15:40:41

Having been underwhelmed by help and advice, I can now, 7 months on, answer my own question. I post the answer here just in case it is useful to anyone else.

Edit the file /etc/abrt/abrt-action-save-package-data.conf to change the line

ProcessUnpackaged = no


ProcessUnpackaged = yes

This now allows applications not installed via the package manager to create core dumps. This change is necessary, but I am not entirely sure whether it is sufficient: you may also need to issue a command like the following in the shell that will receive the core dump:

limit coredumpsize unlimited

When a core dump is created it appears in the current directory of the process that crashed. A copy of the core dump and quite a few supporting files are placed in /var/spool/abrt/ccpp----::-. These supporting files appear to be very useful, since they provide lists of things like environment variables, libraries loaded, open file descriptors, and even an extract from /var/log/messages.

Posts: 118
Joined: 2008/11/20 20:38:18

Core dump not created on segfault

Post by moonpup » 2013/05/30 00:31:31

Thanks for the information, I learned something from it :-) and remember... it's not that people are ignoring your question, sometimes we just don't know the answer :-/

Posts: 1
Joined: 2013/11/25 10:49:50

Re: Core dump not created on segfault

Post by axlrod » 2013/11/25 10:51:18

I had to register to say THANKYOU!

All the google searches (except this one :)) turn up with people saying edit abrt.conf

Works perfectly with changes in the other file...

Post Reply