From: Donatas Abraitis Date: Tue, 26 Nov 2024 09:34:12 +0000 (+0200) Subject: tests: Set vm.mmap_rnd_bits for topotests docker foobar X-Git-Tag: base_10.3~207^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=6eb3a602893d21cc70047f20597adf594d6a45ea;p=matthieu%2Ffrr.git tests: Set vm.mmap_rnd_bits for topotests docker foobar Signed-off-by: Donatas Abraitis --- diff --git a/tests/topotests/docker/inner/entrypoint.sh b/tests/topotests/docker/inner/entrypoint.sh index 44e16db4b9..b92217440b 100755 --- a/tests/topotests/docker/inner/entrypoint.sh +++ b/tests/topotests/docker/inner/entrypoint.sh @@ -20,6 +20,11 @@ cd "${FRR_BUILD_DIR}/tests/topotests" log_info "Setting permissions on /tmp so we can generate logs" chmod 1777 /tmp +# This is a MUST, otherwise we have: +# AddressSanitizer:DEADLYSIGNAL +# Segmentation fault +sysctl -w vm.mmap_rnd_bits=28 + if [ $# -eq 0 ] || ([[ "$1" != /* ]] && [[ "$1" != ./* ]]); then export TOPOTESTS_CHECK_MEMLEAK=/tmp/memleak_ export TOPOTESTS_CHECK_STDERR=Yes