From 13fe2e0c79810c882f26a87b861e0b6d8de81333 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 21 Feb 2023 11:49:48 +0000 Subject: [PATCH] ci: Enable JIT debugging on msys2-* CI jobs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Suggested by Christoph Reiter, this is a workaround for random Python crashes in Meson which only appear on this platform. It’s being tracked upstream at https://github.com/msys2/MINGW-packages/issues/11864, but unfortunately it seems hard to fix. Work around the issue the same way that Meson have in their CI, by enabling JIT debugging. See https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3280#note_1678973. Signed-off-by: Philip Withnall --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4af17b1de08..182b9c7a7fb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -325,6 +325,10 @@ msys2-mingw32: CHERE_INVOKING: "yes" CFLAGS: -coverage -ftest-coverage -fprofile-arcs PYTHONUTF8: "1" + # FIXME: For some reason enabling jit debugging "fixes" random python crashes + # see https://github.com/msys2/MINGW-packages/issues/11864 and + # https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3280#note_1678973 + MSYS: "winjitdebug" script: - C:\msys64\usr\bin\pacman --noconfirm -Syyuu --ask 20 - C:\msys64\usr\bin\bash .gitlab-ci/show-execution-environment.sh @@ -351,6 +355,10 @@ msys2-clang64: MSYSTEM: "CLANG64" CHERE_INVOKING: "yes" PYTHONUTF8: "1" + # FIXME: For some reason enabling jit debugging "fixes" random python crashes + # see https://github.com/msys2/MINGW-packages/issues/11864 and + # https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3280#note_1678973 + MSYS: "winjitdebug" script: - C:\msys64\usr\bin\pacman --noconfirm -Syyuu --ask 20 - C:\msys64\usr\bin\bash .gitlab-ci/show-execution-environment.sh