From 373724bce78902fc5a4b748d274f04f6d07e212a Mon Sep 17 00:00:00 2001
From: Shravan Narayan <shravanrn@gmail.com>
Date: Sun, 17 Mar 2024 15:35:54 -0500
Subject: wasm2c: Fix periodic ASLR related crashes in sanitizer builds

---
 .github/workflows/build.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index d337630f..331f0108 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -116,6 +116,8 @@ jobs:
       with:
         submodules: true
     - run: sudo apt-get install ninja-build
+    - name: workaround for ASLR+ASAN compatibility # See https://github.com/actions/runner/issues/3207
+      run: sudo sysctl -w vm.mmap_rnd_bits=28
     - run: make clang-${{ matrix.type }}-${{ matrix.sanitizer }}
     - if: ${{ matrix.sanitizer }} != fuzz
       run: make test-clang-${{ matrix.type }}-${{ matrix.sanitizer }}
@@ -134,6 +136,8 @@ jobs:
       with:
         submodules: true
     - run: sudo apt-get install ninja-build
+    - name: workaround for ASLR+ASAN compatibility # See https://github.com/actions/runner/issues/3207
+      run: sudo sysctl -w vm.mmap_rnd_bits=28
     - run: make clang-debug-asan
     - run: make test-clang-debug-asan
 
-- 
cgit v1.2.3