Skip to content

Commit 373724b

Browse files
committed
wasm2c: Fix periodic ASLR related crashes in sanitizer builds
1 parent bfcd0a1 commit 373724b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ jobs:
116116
with:
117117
submodules: true
118118
- run: sudo apt-get install ninja-build
119+
- name: workaround for ASLR+ASAN compatibility # See https://github.com/actions/runner/issues/3207
120+
run: sudo sysctl -w vm.mmap_rnd_bits=28
119121
- run: make clang-${{ matrix.type }}-${{ matrix.sanitizer }}
120122
- if: ${{ matrix.sanitizer }} != fuzz
121123
run: make test-clang-${{ matrix.type }}-${{ matrix.sanitizer }}
@@ -134,6 +136,8 @@ jobs:
134136
with:
135137
submodules: true
136138
- run: sudo apt-get install ninja-build
139+
- name: workaround for ASLR+ASAN compatibility # See https://github.com/actions/runner/issues/3207
140+
run: sudo sysctl -w vm.mmap_rnd_bits=28
137141
- run: make clang-debug-asan
138142
- run: make test-clang-debug-asan
139143

0 commit comments

Comments
 (0)