Skip to content

Commit 7c36868

Browse files
ci(profiling) fix asan test (#2578)
1 parent 91227e5 commit 7c36868

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/prof_asan.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
container:
1010
image: datadog/dd-trace-ci:php-8.3_bookworm-1
1111
# https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#user
12-
options: --user root
12+
options: --user root --privileged
1313

1414
steps:
1515
- name: Checkout
@@ -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: sysctl vm.mmap_rnd_bits=28
63+
5764
- name: Run phpt tests
5865
run: |
5966
set -eux

0 commit comments

Comments
 (0)