Skip to content

Commit

Permalink
Fix asan build issue (#2108)
Browse files Browse the repository at this point in the history
Seems the image itself has a bug:
actions/runner-images#9491.

Apply this patch from
https://github.com/actions/runner-images/issues/9491\#issuecomment-1989718917
to fix the issue while we wait for a new version of the image to roll
out.

Fixes #2106
  • Loading branch information
mlevesquedion authored Mar 18, 2024
1 parent dc4bc72 commit 538b1e1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/buildAndTestCMake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ jobs:
CMAKE_BUILD_TYPE: Release
MLIR_ENABLE_BINDINGS_PYTHON: ON

- 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
# TODO: remove this once https://github.com/actions/runner-images/issues/9491 is fixed
run: sudo sysctl vm.mmap_rnd_bits=28

- name: Build and Test StableHLO (with AddressSanitizer)
shell: bash
run: |
Expand All @@ -89,4 +96,4 @@ jobs:
./build_tools/github_actions/ci_build_cmake.sh "$LLVM_BUILD_DIR" "$STABLEHLO_BUILD_DIR"
env:
CMAKE_BUILD_TYPE: Release
STABLEHLO_ENABLE_BINDINGS_PYTHON: ON
STABLEHLO_ENABLE_BINDINGS_PYTHON: ON

0 comments on commit 538b1e1

Please sign in to comment.