Skip to content

Commit

Permalink
Fix false positives from ThreadSanitizer
Browse files Browse the repository at this point in the history
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.

google/sanitizers#1716
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2056762

closes official-stockfish#5115

No functional change
  • Loading branch information
Disservin authored and linrock committed Mar 27, 2024
1 parent 46fef09 commit 7cd318c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/instrumented.sh
Expand Up @@ -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)
Expand Down

0 comments on commit 7cd318c

Please sign in to comment.