Work around ASLR+ASAN compatibility issues in GHA (#1203)

vm.mmap_rnd_bits has been recently changed to 32 on GHA, which triggers
issues in ASAN builds that spuriously fail on startup. The fix requires
a more recent clang/gcc than the agents have available (clang 17, not
sure what GCC version), so for now we need to work around this by
restricting the ASLR randomness.

See https://github.com/google/sanitizers/issues/1614
This commit is contained in:
Arseny Kapoulkine 2024-03-15 09:32:27 -07:00 committed by GitHub
parent 9aa82c6fb9
commit d2ed2150ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,6 +25,9 @@ jobs:
runs-on: ${{matrix.os.version}}
steps:
- uses: actions/checkout@v1
- name: work around ASLR+ASAN compatibility
run: sudo sysctl -w vm.mmap_rnd_bits=28
if: matrix.os.name == 'ubuntu'
- name: make tests
run: |
make -j2 config=sanitize werror=1 native=1 luau-tests