Skip to content

Commit

Permalink
ci: reduce ASLR entropy (deepmodeling#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]>
(cherry picked from commit 487f85c)
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Apr 6, 2024
1 parent f8a73c1 commit 18d311f
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 @@ -21,6 +21,10 @@ jobs:
mpi: mpich
- uses: lukka/get-cmake@latest
- run: python -m pip install tensorflow
# 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: source/install/test_cc_local.sh
env:
OMP_NUM_THREADS: 1
Expand Down

0 comments on commit 18d311f

Please sign in to comment.