Skip to content

Commit 6ae3fb0

Browse files
authored
ci: skip ASan for GraalVM (shadow memory conflict) (#590)
1 parent 6828873 commit 6ae3fb0

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/test_workflow.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ jobs:
117117
fi
118118
fi
119119
120+
# GraalVM pre-allocates fixed memory that conflicts with ASan's shadow range
121+
# [0x00007fff7000-0x10007fff7fff]; vm.mmap_rnd_bits tuning does not help (google/sanitizers#856).
122+
if [[ "${{ matrix.config }}" == "asan" && "${{ matrix.java_version }}" =~ graal ]]; then
123+
echo "::notice::Skipping ASan for GraalVM (incompatible shadow memory ranges — google/sanitizers#856)"
124+
exit 0
125+
fi
126+
120127
MAX_ATTEMPTS=1
121128
if [[ "${{ matrix.config }}" == "asan" && "${{ matrix.java_version }}" =~ (j9|ibm) ]]; then
122129
MAX_ATTEMPTS=2
@@ -409,6 +416,13 @@ jobs:
409416
GDB_WATCHDOG_PID=$!
410417
fi
411418
419+
# GraalVM pre-allocates fixed memory that conflicts with ASan's shadow range
420+
# [0x00007fff7000-0x10007fff7fff]; vm.mmap_rnd_bits tuning does not help (google/sanitizers#856).
421+
if [[ "${{ matrix.config }}" == "asan" && "${{ matrix.java_version }}" =~ graal ]]; then
422+
echo "::notice::Skipping ASan for GraalVM (incompatible shadow memory ranges — google/sanitizers#856)"
423+
exit 0
424+
fi
425+
412426
MAX_ATTEMPTS=1
413427
if [[ "${{ matrix.config }}" == "asan" && "${{ matrix.java_version }}" =~ (j9|ibm) ]]; then
414428
MAX_ATTEMPTS=2

0 commit comments

Comments
 (0)