From 368ec7adc8e239f9906a0454674106e826a1e30d Mon Sep 17 00:00:00 2001 From: Denis Khalikov Date: Tue, 27 Feb 2018 14:24:58 +0300 Subject: [PATCH] [ASan] Disable asan's alternative stack. Disable asan's alternative stack for the signal handlers. I have faced the situation when asan tries to unmap altenative stack's memory, which was already unmaped, perhaps by updated python. Change-Id: I48d92e128b850fa28879c6908924c773398456c2 --- packaging/python3-base.spec | 2 ++ packaging/python3.spec | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packaging/python3-base.spec b/packaging/python3-base.spec index 4532ba0c..5b96b033 100644 --- a/packaging/python3-base.spec +++ b/packaging/python3-base.spec @@ -265,6 +265,8 @@ autoreconf -fi sed -e 's/-fprofile-correction//' -i Makefile.pre.in %endif +%{?asan: export ASAN_OPTIONS=use_sigaltstack=false:`cat /ASAN_OPTIONS` } + %configure \ --prefix=%{_prefix} \ --libdir=%{_libdir} \ diff --git a/packaging/python3.spec b/packaging/python3.spec index 4579f3ad..948162c8 100644 --- a/packaging/python3.spec +++ b/packaging/python3.spec @@ -188,6 +188,8 @@ autoreconf -fi sed -e 's/-fprofile-correction//' -i Makefile.pre.in %endif +%{?asan: export ASAN_OPTIONS=use_sigaltstack=false:`cat /ASAN_OPTIONS` } + %configure \ --prefix=%{_prefix} \ --libdir=%{_libdir} \ -- 2.34.1