diff --git a/test/tap/tap/Makefile b/test/tap/tap/Makefile index a79508ece..39d6986f5 100644 --- a/test/tap/tap/Makefile +++ b/test/tap/tap/Makefile @@ -50,6 +50,9 @@ STDCPP := -std=c++$(shell echo $(CPLUSPLUS) | cut -c3-4) -DCXX$(shell echo $(CPL WASAN := ifeq ($(WITHASAN),1) WASAN := -fsanitize=address + # workaroud ASAN limitation ASLR > 28bits + # https://github.com/google/sanitizers/issues/1716 + DUMMY := $(shell sudo sysctl vm.mmap_rnd_bits=28) endif OPT := $(STDCPP) -O2 -ggdb -Wl,--no-as-needed $(WASAN) diff --git a/test/tap/tests/Makefile b/test/tap/tests/Makefile index ed0de23b3..235c9a854 100644 --- a/test/tap/tests/Makefile +++ b/test/tap/tests/Makefile @@ -148,6 +148,9 @@ endif WASAN := ifeq ($(WITHASAN),1) WASAN := -fsanitize=address -DTEST_WITHASAN + # workaroud ASAN limitation ASLR > 28bits + # https://github.com/google/sanitizers/issues/1716 + DUMMY := $(shell sudo sysctl vm.mmap_rnd_bits=28) endif OPT := $(STDCPP) -O2 -ggdb -Wl,--no-as-needed -Wl,-rpath,$(TAP_LDIR) $(WGCOV) $(WASAN) -DGITVERSION=\"$(GIT_VERSION)\" diff --git a/test/tap/tests_with_deps/deprecate_eof_support/Makefile b/test/tap/tests_with_deps/deprecate_eof_support/Makefile index e80047599..a1d719294 100644 --- a/test/tap/tests_with_deps/deprecate_eof_support/Makefile +++ b/test/tap/tests_with_deps/deprecate_eof_support/Makefile @@ -103,6 +103,9 @@ endif WASAN := ifeq ($(WITHASAN),1) WASAN := -fsanitize=address + # workaroud ASAN limitation ASLR > 28bits + # https://github.com/google/sanitizers/issues/1716 + DUMMY := $(shell sudo sysctl vm.mmap_rnd_bits=28) endif OPT := $(STDCPP) -O2 -ggdb -Wl,--no-as-needed -Wl,-rpath,"../../tap" $(WGCOV) $(WASAN)