Skip to content

Commit 1b88c7c

Browse files
ci(profiling) fix asan test
1 parent 91227e5 commit 1b88c7c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/prof_asan.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ jobs:
5454
/tmp/build-cargo/
5555
key: ${{ runner.os }}-cargo-asan-${{ hashFiles('**/Cargo.lock') }}
5656

57+
- name: Fix kernel mmap rnd bits
58+
# Asan in llvm 14 provided in ubuntu 22.04 is incompatible with
59+
# high-entropy ASLR in much newer kernels that GitHub runners are
60+
# using leading to random crashes: https://reviews.llvm.org/D148280
61+
# https://github.com/actions/runner-images/issues/9491#issuecomment-1989718917
62+
run: sudo sysctl vm.mmap_rnd_bits=28
63+
5764
- name: Run phpt tests
5865
run: |
5966
set -eux

0 commit comments

Comments
 (0)