Skip to content

Commit

Permalink
Work around ASLR+ASAN incompatibility
Browse files Browse the repository at this point in the history
We need to set rnd_bits to 28 for all ASAN executables to run without
issues now.
  • Loading branch information
zeux committed Mar 19, 2024
1 parent 6af7894 commit b691790
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
runs-on: ${{matrix.os.version}}
steps:
- uses: actions/checkout@v4
- name: work around ASLR+ASAN compatibility
run: sudo sysctl -w vm.mmap_rnd_bits=28
if: matrix.os.name == 'ubuntu'
- name: make test
run: |
make -j2 config=sanitize test
Expand Down Expand Up @@ -74,6 +77,8 @@ jobs:
with:
repository: KhronosGroup/glTF-Sample-Assets
path: glTF-Sample-Assets
- name: work around ASLR+ASAN compatibility
run: sudo sysctl -w vm.mmap_rnd_bits=28
- name: make
run: make -j2 config=sanitize gltfpack
- name: test
Expand Down

0 comments on commit b691790

Please sign in to comment.