Skip to content

Commit

Permalink
github: set kernel.randomize_va_space=0 for asan build
Browse files Browse the repository at this point in the history
Problem: Recent kernel address space layout randomization (ASLR)
appears to confuse some versions of address sanitizers, leading to
random failures in github CI.

Disable kernel.randomize_va_space for the github asan build to avoid
these failures. Thanks to @vchuravy for pointing out the issue.

Since LD_PRELOAD of libasan wasn't the root cause, reinstate preloading
the libasan library to get as full coverage as possible.

Fixes flux-framework#5801.
  • Loading branch information
grondo committed Mar 18, 2024
1 parent 09f809e commit 578b2eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/asan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- run: git fetch --tags || true
- name: disable ASLR
run: |
sudo sysctl -w kernel.randomize_va_space=0
- name: docker-run-checks with ASan
timeout-minutes: 40
env:
PRELOAD: /usr/lib64/libasan.so.8
ASAN_OPTIONS: detect_leaks=0,start_deactivated=true,replace_str=true,verify_asan_link_order=false
FLUX_TEST_TIMEOUT: 300
TAP_DRIVER_QUIET: t
Expand Down

0 comments on commit 578b2eb

Please sign in to comment.