Kotte
Kotte

Reputation: 831

How to get a coredump from `abrt`

I'm running Fedora 23, and just recently discovered that abrt handles the coredumps from my crashed application, and places all kind of stuff in /var/spool/abrt/ccpp-date-pid. Is there a command to fetch a coredump from abrt, without manually copying it from the indicated folder? Or could I have abrt feed the coredump to gdb, and also load the binary?

I would prefer not to change /proc/sys/kernel/core_pattern.

I'm thinking somehting along the lines of:

$ cc -g -o foo main.c
$ ./foo
segmentation fault (core dumped)
$ abrt-magic d55ba08dd0535a223d4a7...
(gdb) # time to do post mortem debugging...

Where of course abrt-magic would be replaced with some command

Upvotes: 3

Views: 3645

Answers (1)

meuh
meuh

Reputation: 12255

Not quite what you want, but you can use abrt-cli list to list the ids and abrt-cli info -d on a given id to get the backtrace. You need to configure abrtd to save info for non-package dumps with:

sed -i 's/ProcessUnpackaged = no/ProcessUnpackaged = yes/' /etc/abrt/abrt-action-save-package-data.conf

You can also get an "old-fashioned" core dump in the usual current directory of the process, if the ulimit -c value allows it, by setting

MakeCompatCore = yes

in config file /etc/abrt/plugins/CCpp.conf.

Upvotes: 3

Related Questions