From 7cd318caca9dc284cfb9d7eebcd1e6fce2caecf5 Mon Sep 17 00:00:00 2001 From: Disservin Date: Thu, 14 Mar 2024 10:38:20 +0100 Subject: [PATCH] Fix false positives from ThreadSanitizer Since Linux Kernel 6.5 we are getting false positives from the ci, lower the ALSR entropy to disable ALSR, which works as a temporary workaround. https://github.com/google/sanitizers/issues/1716 https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2056762 closes https://github.com/official-stockfish/Stockfish/pull/5115 No functional change --- tests/instrumented.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/instrumented.sh b/tests/instrumented.sh index 2a3eadc074e..525c7e04085 100755 --- a/tests/instrumented.sh +++ b/tests/instrumented.sh @@ -8,6 +8,13 @@ error() } trap 'error ${LINENO}' ERR +# Since Linux Kernel 6.5 we are getting false positives from the ci, +# lower the ALSR entropy to disable ALSR, which works as a temporary workaround. +# https://github.com/google/sanitizers/issues/1716 +# https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2056762 +sudo sysctl -w vm.mmap_rnd_bits=28 + + # define suitable post and prefixes for testing options case $1 in --valgrind)