Fix CI sanitizer failures
authorCharles Giessen <charles@lunarg.com>
Wed, 20 Mar 2024 18:50:13 +0000 (13:50 -0500)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Wed, 20 Mar 2024 19:33:54 +0000 (14:33 -0500)
.github/workflows/build.yml

index df9146bbcc9bbf62bbf6fc3eee5ed01bc052175c..df4e244ae9027c5a01868ad7a49a75d718b98e90 100644 (file)
@@ -58,6 +58,9 @@ jobs:
                 cmakeVersion: 3.17.2
             - run: sudo apt update
             - run: sudo apt install --yes --no-install-recommends libwayland-dev libxrandr-dev
+            # 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
             - run: |
                 cmake -S. -B build \
                 -D CMAKE_BUILD_TYPE=${{ matrix.config }} \