From 43e09ab2213893d8a77ecf77aae9ad489850720d Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Wed, 30 Sep 2026 15:45:37 +0100 Subject: [PATCH] [3.13] Avoid Clang bug in UBSan CI (GH-157958) (cherry picked from commit c57c8772b0b133c5580e94006e8b084f78753f49) Co-authored-by: Stan Ulbrych Co-authored-by: Victor Stinner --- .github/workflows/reusable-san.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/reusable-san.yml b/.github/workflows/reusable-san.yml index 86a0e65f5258de9..4464e81932447df 100644 --- a/.github/workflows/reusable-san.yml +++ b/.github/workflows/reusable-san.yml @@ -67,10 +67,14 @@ jobs: env: SANITIZER: ${{ inputs.sanitizer }} SAN_LOG_OPTION: log_path=${{ github.workspace }}/san_log + # 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 --config-cache + OPT="-O2 -g" ${{ inputs.sanitizer == 'TSan' && '--with-thread-sanitizer'