[ASan] Disable asan's alternative stack. 11/171211/2 accepted/tizen/base/20180309.233439 submit/tizen_base/20180305.062245
authorDenis Khalikov <d.khalikov@partner.samsung.com>
Tue, 27 Feb 2018 11:24:58 +0000 (14:24 +0300)
committerDenis Khalikov <d.khalikov@partner.samsung.com>
Tue, 27 Feb 2018 12:51:19 +0000 (15:51 +0300)
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
packaging/python3.spec

index 4532ba0c2ea48d028f1c5384aca12d8f496e5211..5b96b033703f95aa7e0baaf58258be789b3b25b9 100644 (file)
@@ -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} \
index 4579f3adffec17d2dc35c6c752d64c7a411d471d..948162c84bd71534abd32f548ca13589faa8ffa2 100644 (file)
@@ -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} \