Skip to content

Commit

Permalink
ci: reduce ASLR entropy (#3461)
Browse files Browse the repository at this point in the history
This week, a random segfault occurred in GHA when using
`-fsanitize=leak`. It seems related to
actions/runner-images#9491. Workaround:
actions/runner-images#9491 (comment)
See also:
https://stackoverflow.com/questions/77894856/possible-bug-in-gcc-sanitizers

Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz authored Mar 14, 2024
1 parent 571ddec commit 487f85c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test_cc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ jobs:
run: |
wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.1.2%2Bcpu.zip -O libtorch.zip
unzip libtorch.zip
# https://github.com/actions/runner-images/issues/9491
- name: Fix kernel mmap rnd bits
run: sudo sysctl vm.mmap_rnd_bits=28
if: ${{ matrix.check_memleak }}
- run: |
export CMAKE_PREFIX_PATH=$GITHUB_WORKSPACE/libtorch
source/install/test_cc_local.sh
Expand Down

0 comments on commit 487f85c

Please sign in to comment.