Skip to content

Commit 055bd7e

Browse files
jbachorikclaude
andcommitted
fix(ci): lower mmap_rnd_bits to 8 for ASAN runs
28 is the max ASLR entropy and lets the JVM land in ASan's shadow range [0x00007fff7000-0x10007fff7fff], causing random aborts. 8 constrains mmap placement to lower addresses away from that range. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 0f996e8 commit 055bd7e

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/test_workflow.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,10 @@ jobs:
100100
- name: Test
101101
if: steps.set_enabled.outputs.enabled == 'true'
102102
run: |
103-
sudo sysctl vm.mmap_rnd_bits=28
104-
103+
# Reduce ASLR entropy so the JVM doesn't land in ASan's shadow range
104+
# [0x00007fff7000-0x10007fff7fff]; 28 (the default) causes random aborts.
105+
sudo sysctl vm.mmap_rnd_bits=8
106+
105107
set +e
106108
export KEEP_JFRS=true
107109
export TEST_COMMIT=${{ github.sha }}
@@ -373,7 +375,8 @@ jobs:
373375
- name: Test
374376
if: steps.set_enabled.outputs.enabled == 'true'
375377
run: |
376-
sudo sysctl vm.mmap_rnd_bits=28
378+
# Reduce ASLR entropy so the JVM doesn't land in ASan's shadow range; 28 causes random aborts.
379+
sudo sysctl vm.mmap_rnd_bits=8
377380
378381
set +e
379382
export KEEP_JFRS=true

0 commit comments

Comments
 (0)