Skip to content

Commit

Permalink
Add workaround for newer GitHub runners (#2505)
Browse files Browse the repository at this point in the history
Asan in llvm 14 provided in ubuntu 22.04 is incompatible with
high-entropy ASLR in much newer kernels that GitHub runners are using
leading to random crashes: https://reviews.llvm.org/D148280

This workaround comes from the discussion in:
actions/runner-images#9491

BUG=#2501
  • Loading branch information
rascani authored Mar 15, 2024
1 parent 74c4632 commit 8f143b5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ jobs:
pip3 install Pillow
pip3 install Wave
pip3 install numpy
- name: Fix kernel mmap rnd bits
# Asan in llvm 14 provided in ubuntu 22.04 is incompatible with
# high-entropy ASLR in much newer kernels that GitHub runners are
# using leading to random crashes: https://reviews.llvm.org/D148280
run: sudo sysctl vm.mmap_rnd_bits=28
- name: Test
run: |
tensorflow/lite/micro/tools/ci_build/test_bazel_msan.sh
Expand All @@ -100,6 +105,11 @@ jobs:
pip3 install Pillow
pip3 install Wave
pip3 install numpy
- name: Fix kernel mmap rnd bits
# Asan in llvm 14 provided in ubuntu 22.04 is incompatible with
# high-entropy ASLR in much newer kernels that GitHub runners are
# using leading to random crashes: https://reviews.llvm.org/D148280
run: sudo sysctl vm.mmap_rnd_bits=28
- name: Test
run: |
tensorflow/lite/micro/tools/ci_build/test_bazel_asan.sh
Expand Down

0 comments on commit 8f143b5

Please sign in to comment.