From 18737869759eec34a0a96bc46d972ba088299a47 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Tue, 22 Sep 2026 18:33:53 +0100 Subject: [PATCH 1/3] Avoid Clang bug in UBSan CI --- .github/workflows/reusable-san.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/reusable-san.yml b/.github/workflows/reusable-san.yml index 449bddadf8b2c7..dd6528db0c7f52 100644 --- a/.github/workflows/reusable-san.yml +++ b/.github/workflows/reusable-san.yml @@ -90,10 +90,13 @@ jobs: --openssl="${OPENSSL_VER}" --system=Linux --tsan + # -O0 instead of the pydebug default -Og to avoid a clang 21 compile-time + # blowup on some interpreter files (https://github.com/llvm/llvm-project/issues/179695) - name: Configure CPython run: >- ./configure --config-cache + OPT="-O0 -g" ${{ inputs.sanitizer == 'TSan' && '--with-thread-sanitizer' From 7604ba71c30c15dcd8a5fe73badf9bb25bb79072 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Wed, 23 Sep 2026 10:40:07 +0100 Subject: [PATCH 2/3] Switch to `-02` Co-authored-by: Victor Stinner --- .github/workflows/reusable-san.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-san.yml b/.github/workflows/reusable-san.yml index dd6528db0c7f52..556c544bcd2612 100644 --- a/.github/workflows/reusable-san.yml +++ b/.github/workflows/reusable-san.yml @@ -96,7 +96,7 @@ jobs: run: >- ./configure --config-cache - OPT="-O0 -g" + OPT="-O2 -g" ${{ inputs.sanitizer == 'TSan' && '--with-thread-sanitizer' From c165dee0fb3d395e07cc5998a27e909fabc9a90a Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Wed, 23 Sep 2026 12:17:58 +0100 Subject: [PATCH 3/3] Fix up comment Co-authored-by: Victor Stinner --- .github/workflows/reusable-san.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable-san.yml b/.github/workflows/reusable-san.yml index 556c544bcd2612..c518887f2aac37 100644 --- a/.github/workflows/reusable-san.yml +++ b/.github/workflows/reusable-san.yml @@ -90,8 +90,9 @@ jobs: --openssl="${OPENSSL_VER}" --system=Linux --tsan - # -O0 instead of the pydebug default -Og to avoid a clang 21 compile-time - # blowup on some interpreter files (https://github.com/llvm/llvm-project/issues/179695) + # gh-157958: -O2 instead of the pydebug default -Og to avoid a clang 21 + # compile-time blowup on some interpreter files. + # (https://github.com/llvm/llvm-project/issues/179695) - name: Configure CPython run: >- ./configure