From 33dd97b6a08de5891f2463fd25138dc20c01fe1b Mon Sep 17 00:00:00 2001 From: Sylvie <35663410+Rangi42@users.noreply.github.com> Date: Tue, 19 Mar 2024 01:05:10 -0400 Subject: [PATCH] Fix CI builds for Ubuntu 22.04 (#1361) Ubuntu 22.04 provides LLVM 14, which links an ASan version incompatible with high-entropy ASLR in newer Linux kernels that GitHub Actions runners use. --- .github/workflows/testing.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index af958d85..2da617d6 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -24,9 +24,15 @@ jobs: shell: bash run: | ./.github/scripts/install_deps.sh ${{ matrix.os }} + # Ubuntu 22.04 provides LLVM 14, which links an ASan version incompatible with + # high-entropy ASLR in newer Linux kernels that GitHub Actions runners use. + # https://github.com/actions/runner-images/issues/9491 + - name: Fix Ubuntu 22.04 ASLR for LLVM 14 + if: matrix.os == 'ubuntu-22.04' + run: | + sudo sysctl vm.mmap_rnd_bits=28 # Export `bison` to allow using the version we install from Homebrew, - # instead of the outdated one preinstalled on macOS (which doesn't - # even support `-Wall`...). + # instead of the outdated 2.3 one preinstalled on macOS. - name: Build & install using Make if: matrix.buildsys == 'make' run: |