aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Giessen <charles@lunarg.com>2024-09-09 14:51:55 -0500
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2024-10-15 10:21:29 -0600
commit7e628b0f6f375cfc507909c1d3bd988f60ac6fbc (patch)
treeff286219c21ccd8bb30b9d72032d3b998e8ec977
parenteb9b6043be165f06c7ec78fadbb1ff773c5fc19c (diff)
downloadusermoji-7e628b0f6f375cfc507909c1d3bd988f60ac6fbc.tar.xz
Enable Address Sanitizer in Linux CI
-rw-r--r--.github/workflows/tools.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml
index aae55840..933c9a6d 100644
--- a/.github/workflows/tools.yml
+++ b/.github/workflows/tools.yml
@@ -75,6 +75,9 @@ jobs:
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ runner.os }}-${{ matrix.config }}-${{ matrix.cc }}-${{matrix.cube_wsi}}
+ # This is to combat a bug when using 6.6 linux kernels with thread/address sanitizer
+ # https://github.com/google/sanitizers/issues/1716
+ - run: sudo sysctl vm.mmap_rnd_bits=28
- name: Configure
run: |
cmake -S. -B build -G "Ninja" \
@@ -84,7 +87,7 @@ jobs:
-D BUILD_WERROR=ON \
-D INSTALL_ICD=ON \
-D BUILD_TESTS=ON \
- -D ENABLE_ADDRESS_SANITIZER=OFF # Re-enable when github CI doesn't have fatal issues
+ -D ENABLE_ADDRESS_SANITIZER=ON
env:
CC: ${{matrix.cc}}
CXX: ${{matrix.cxx}}