From 6eb3a602893d21cc70047f20597adf594d6a45ea Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Tue, 26 Nov 2024 11:34:12 +0200 Subject: [PATCH] tests: Set vm.mmap_rnd_bits for topotests docker foobar Signed-off-by: Donatas Abraitis --- tests/topotests/docker/inner/entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.5