Skip to content

Commit

Permalink
ci: Add workaround for ASLR bug in sanitizers
Browse files Browse the repository at this point in the history
  • Loading branch information
real-or-random committed Mar 19, 2024
1 parent d926510 commit 595e28f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/actions/run-in-docker-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@ runs:
cache-from: type=gha

- # Tell Docker to pass environment variables in `env` into the container.
# Set vm.mmap_rnd_bits to work around https://github.com/google/sanitizers/issues/1614 .
run: >
docker run \
$(echo '${{ toJSON(env) }}' | jq -r 'keys[] | "--env \(.) "') \
--volume ${{ github.workspace }}:${{ github.workspace }} \
--workdir ${{ github.workspace }} \
${{ inputs.tag }} bash -c "
git config --global --add safe.directory ${{ github.workspace }}
sysctl -w vm.mmap_rnd_bits=28
${{ inputs.command }}
"
shell: bash

0 comments on commit 595e28f

Please sign in to comment.