From cdf33cc2ae8e9a579bfc523cf9ee841133e3711f Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 4 Apr 2018 12:08:34 -0700 Subject: [PATCH] Catch and upload coredumps in post-fail hook We were doing this in a post-install test, but not on failures. We need it to figure out why Firefox is crashing on aarch64... Signed-off-by: Adam Williamson --- lib/installedtest.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/installedtest.pm b/lib/installedtest.pm index b9773a16..7f7e3cb5 100644 --- a/lib/installedtest.pm +++ b/lib/installedtest.pm @@ -49,6 +49,11 @@ sub post_fail_hook { upload_logs "/var/spool/abrt/spoolabrt.tar.gz"; } + # upload any core dump files caught by coredumpctl + unless (script_run "tar czvf /var/tmp/coredumps.tar.gz /var/lib/systemd/coredump/") { + upload_logs "/var/tmp/coredumps.tar.gz"; + } + # Upload /var/log # lastlog can mess up tar sometimes and it's not much use unless (script_run "tar czvf /tmp/var_log.tar.gz --exclude='lastlog' /var/log") {