Skip to content

Commit 7e628b0

Browse files
Enable Address Sanitizer in Linux CI
1 parent eb9b604 commit 7e628b0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/tools.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ jobs:
7575
uses: hendrikmuhs/ccache-action@v1.2
7676
with:
7777
key: ${{ runner.os }}-${{ matrix.config }}-${{ matrix.cc }}-${{matrix.cube_wsi}}
78+
# This is to combat a bug when using 6.6 linux kernels with thread/address sanitizer
79+
# https://github.com/google/sanitizers/issues/1716
80+
- run: sudo sysctl vm.mmap_rnd_bits=28
7881
- name: Configure
7982
run: |
8083
cmake -S. -B build -G "Ninja" \
@@ -84,7 +87,7 @@ jobs:
8487
-D BUILD_WERROR=ON \
8588
-D INSTALL_ICD=ON \
8689
-D BUILD_TESTS=ON \
87-
-D ENABLE_ADDRESS_SANITIZER=OFF # Re-enable when github CI doesn't have fatal issues
90+
-D ENABLE_ADDRESS_SANITIZER=ON
8891
env:
8992
CC: ${{matrix.cc}}
9093
CXX: ${{matrix.cxx}}

0 commit comments

Comments
 (0)