In opening a bug report for a program just now, a core dump from coredumpctl
was requested. Running that command produced a message that the command wasn't available, but could be made available by installing systemd-coredump
.
When I installed systemd-coredump
, I saw that installing it REMOVED the packages apport
and apport-kde
. (I'm using Kubuntu 18.04.)
I completed the filing of that bug report, using a coredump provided from coredumpctl
as requested.
Now, is there a reason to prefer coredumpctl
to apport
? I see from the package descriptions that apport-kde
is the GUI; probably that's what I've been seeing pop up after a program crash. But it doesn't seem provide a "get coredump" button in the UI when it pops up, just a "relaunch" or "leave closed" option. Does systemd-coredump
have any analogous UI tool?
Perhaps more to the point, is there a way to provide the same coredump from apport
as I provided from coredumpctl
(or better yet to provide it from the apport-kde
GUI), or are the results qualitatively different?
Really what I'm trying to establish is whether I should leave systemd-coredump
installed, or remove it by reinstalling apport-kde
just to have my system closer to the "normal" setup for Kubuntu 18.04. I'd like to understand the implications of the decision.
To be able to answer your question I need to explain a bit of context around how all this works.
The
systemd-coredump
package and thecoredumpctl
programThe
systemd-coredump
package, when installed, will configure your system to use systemd for coredump files management. By default, it willcoredumpctl
utility.I like running this package on my servers. When something really bad happens, coredump files this package records are readily available for me to analyze. For the rest of the time, these files are automatically rotated and I don't need to worry about them.
The
apport
andapport-kde
packagesThose packages do similar function as
systemd-coredump
, but with some additional (K)Ubuntu stuff. It will:I usually leave this with its defaults on my Kubuntu laptop, except that I disable crash reports uploading in Settings->Applications->Diagnostics.
Now, to answer your questions:
apport
will use your favorite GUI to notify you about crashes and allow you to chose if you want to upload crash report to Ubuntu error tracking servers.coredumpctl
will do neither of this, it will only record coredump file.AFAIK, no. But,
coredumpctl
is IMHO really cool command line utility.Resulting coredump files should be exactly the same: coredump data is actually provided by kernel when program crashes, and both utilities discussed here take what kernel provided and dump it onto disk.
Thus said and AFAIK: there is no GUI way of exporting these files.
If you want to be "closer to original", install
apport-kde
. Most visible implications of choosing one over another:Note that Ubuntu Wiki - Apport says that
apport
is disabled by default for various reasons, meaning you might not see any difference on your system.