From 659367c31b831276e58846352eec43f56e6c6b67 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 9 Dec 2015 08:44:52 -0800 Subject: [PATCH] upload anaconda core dump if it appears Summary: When anaconda manages to actually crash the python interpreter, there should be a /tmp/anaconda.core containing the core dump (per clumens, see calls to 'gcore' in isys.c). Let's upload it. This might help us track down the mysterious occasional crashes openQA seems to trigger (RHBZ #1289704) Test Plan: Try and trigger a python crash and see if the file got uploaded. Of course, I did an entire freaking run on staging and for *ONCE* not one test hit the mysterious crash, thanks Murphy. I did at least check that this doesn't break a 'normal' failure, if the file isn't there things don't explode. Reviewers: jskladan, garretraziel Reviewed By: garretraziel Subscribers: tflink Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D686 --- lib/anacondatest.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/anacondatest.pm b/lib/anacondatest.pm index 4bc40a79..7f923497 100644 --- a/lib/anacondatest.pm +++ b/lib/anacondatest.pm @@ -42,6 +42,9 @@ sub post_fail_hook { # Upload /var/log script_run "tar czf /tmp/var_log.tar.gz /var/log"; upload_logs "/tmp/var_log.tar.gz"; + + # Upload anaconda core dump, if there is one + upload_logs "/tmp/anaconda.core"; } else { save_screenshot;