Skip to content

Commit

Permalink
Github CI/TSan: tune mmap_rnd_bits for TSan
Browse files Browse the repository at this point in the history
  • Loading branch information
fabbing committed Mar 20, 2024
1 parent a6875b7 commit 4a4d28a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/tsan.yml
Expand Up @@ -34,6 +34,12 @@ jobs:
persist-credentials: false
- name: Install libunwind
run: sudo apt install -y libunwind-dev
# This temporary workaround reduces the number of random bits for the base
# address of vma regions for mmap allocation, to avoid the
# "FATAL: ThreadSanitizer: unexpected memory mapping" TSan error.
# See: https://github.com/google/sanitizers/issues/1716
- name: Tune vm.mmap_rnd_bits value for TSan
run: sudo sysctl vm.mmap_rnd_bits=28
- name: Configure tree
run: |
MAKE_ARG=-j CONFIG_ARG='--enable-cmm-invariants --enable-dependency-generation --enable-native-toplevel --enable-tsan --enable-ocamltest CFLAGS=-DTSAN_INSTRUMENT_ALL' OCAMLRUNPARAM=b,v=0 bash -xe tools/ci/actions/runner.sh configure
Expand Down

0 comments on commit 4a4d28a

Please sign in to comment.