From 386e40c22e99ceca2b9977e1a6147029a55d2aad Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Tue, 15 Sep 2020 16:38:39 +0300 Subject: [PATCH] citemplate: set PYTHONFAULTHANDLER for tests In case python segfaults, which might happen for things with a C-FFI like pygobject, make it so we get a proper backtrace. https://docs.python.org/3/using/cmdline.html#envvar-PYTHONFAULTHANDLER Part-of: --- gitlab/ci_template.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gitlab/ci_template.yml b/gitlab/ci_template.yml index 87d82ed8dd..a150164fe1 100644 --- a/gitlab/ci_template.yml +++ b/gitlab/ci_template.yml @@ -510,6 +510,9 @@ build clang fedora x86_64: GST_VALIDATE_LAUNCHER_FORCE_COLORS: "true" TIMEOUT_FACTOR: "2" CARGO_HOME: "/cache/gstreamer/cargo" + # Enable the fault handler so we get backtraces on segfaults. + # any non-empty string will do + PYTHONFAULTHANDLER: "enabled" rules: - if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-examples|gst-docs)$/' script: