Skip to content

Commit

Permalink
gh actions: fix msan error if memory layout is incompatible on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilledheart committed Mar 18, 2024
1 parent d1b5949 commit 7f9e4dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ commands:
steps:
- run:
command: |
# TODO remove this once upstream fix is available
# msan fix is here https://github.com/llvm/llvm-project/pull/85142
sudo sysctl -w vm.mmap_rnd_bits=28
./build/yass_test -logtostderr -v 1 --gtest_shuffle --gtest_repeat=5 --gtest_throw_on_failure
# somehow inside the container DNS hosts file resolves localhost to 127.0.0.1 only not ::1
# due to the incompleteness
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ jobs:
${{ matrix.sanitizer.cmake_options }} ..
ninja yass_test
cd ..
- name: Memory layout fix for old clang
run: |
# TODO remove this once upstream fix is available
# msan fix is here https://github.com/llvm/llvm-project/pull/85142
sudo sysctl -w vm.mmap_rnd_bits=28
- name: Run tests
run: |
cd build
Expand Down

0 comments on commit 7f9e4dc

Please sign in to comment.