From 8b833649beb7acd90eaceb518e8f2b54654db507 Mon Sep 17 00:00:00 2001 From: Hongli Lai <hongli@phusion.nl> Date: Wed, 9 Oct 2024 21:40:20 +0200 Subject: [PATCH] Turn AddressSanitizer off for macOS Apache test --- .github/workflows/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e8c866beb9..678982ae7e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -146,18 +146,24 @@ jobs: os: ubuntu-24.04 config_file: test/config.json.github-ci-linux extra_cflags: '-fdiagnostics-color' + address_sanitizer: true sccache_arch_and_os: x86_64-unknown-linux-musl sccache_azure_key_prefix: sccache/cxx-ubuntu-24.04-x86_64 - name: macOS os: macos-14 config_file: test/config.json.github-ci-macos extra_cflags: '-I/opt/homebrew/opt/openssl@3/include -fcolor-diagnostics' + # Using AddressSanitizer on dynamically loaded modules (like Apache modules) + # requires loading Apache with the AddressSanitizer runtime using DYLD_INSERT_LIBRARIES. + # That in turn requires disabling SIP, which is not possible on Github Actions. + address_sanitizer: false sccache_arch_and_os: aarch64-apple-darwin sccache_azure_key_prefix: sccache/cxx-macos-14-arm runs-on: ${{ matrix.os }} env: EXTRA_CFLAGS: ${{ matrix.extra_cflags }} EXTRA_CXXFLAGS: ${{ matrix.extra_cflags }} + USE_ASAN: ${{ matrix.address_sanitizer }} SCCACHE_AZURE_BLOB_CONTAINER: ${{ vars.SCCACHE_AZURE_BLOB_CONTAINER }} SCCACHE_AZURE_KEY_PREFIX: ${{ matrix.sccache_azure_key_prefix }} SCCACHE_CACHE_MULTIARCH: true