From: Dongkyun Son Date: Tue, 24 Apr 2018 08:29:52 +0000 (+0900) Subject: packaging: do not registers the SEGV handler in ASan runtime. X-Git-Tag: submit/tizen_base/20180427.075312 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Fsubmit%2Ftizen_base%2F20180427.075312;p=platform%2Fupstream%2Fgcc-contrib.git packaging: do not registers the SEGV handler in ASan runtime. There is "ASAN:DEADLYSIGNAL" report which is not necessary information in Tizen. Basially, signal handler is registered and managed by crash-manager in Tizen. handle_segv: Controls custom tool's SEGV handler 0 - do not registers the handler, 1 - register the handler and allow user to set own, 2 - registers the handler and block user from changing it). Change-Id: I84449c3e65a8bd7cbec82432dcbce1c749dbde3c Signed-off-by: Dongkyun Son --- diff --git a/packaging/ASAN_OPTIONS b/packaging/ASAN_OPTIONS index 50d644e..405d307 100644 --- a/packaging/ASAN_OPTIONS +++ b/packaging/ASAN_OPTIONS @@ -1 +1 @@ -halt_on_error=false:start_deactivated=true:print_cmdline=true:quarantine_size_mb=1:detect_leaks=0:full_address_space=true +halt_on_error=false:start_deactivated=true:print_cmdline=true:quarantine_size_mb=1:detect_leaks=0:full_address_space=true:handle_segv=0 diff --git a/packaging/gcc-contrib.spec b/packaging/gcc-contrib.spec index 6ebd173..52166a5 100644 --- a/packaging/gcc-contrib.spec +++ b/packaging/gcc-contrib.spec @@ -42,7 +42,7 @@ %define lsan_force_options -fsanitize=leak -marm -Wa,-mimplicit-it=arm -fno-omit-frame-pointer -Wp,-U_FORTIFY_SOURCE -Wl,--as-needed -ldl -lpthread %define isan_force_options -fsanitize=unsigned-integer-overflow %define tsan_force_options -fsanitize=thread -fno-omit-frame-pointer -Wp,-U_FORTIFY_SOURCE -Wl,--as-needed -ldl -lpthread -%define asan_runtime_options halt_on_error=false:start_deactivated=true:print_cmdline=true:quarantine_size_mb=1:detect_leaks=0:log_path=/tmp/asan.log:log_exe_name=1 +%define asan_runtime_options halt_on_error=false:start_deactivated=true:print_cmdline=true:quarantine_size_mb=1:detect_leaks=0:handle_segv=0:log_path=/tmp/asan.log:log_exe_name=1 %define ubsan_runtime_options print_cmdline=true:log_path=/tmp/ubsan.log %define lsan_runtime_options print_cmdline=true:detect_leaks=1:log_path=/tmp/lsan.log:log_exe_name=1:fast_unwind_on_malloc=false:malloc_context_size=5:suppressions=/lsan.supp:print_suppressions=false %define tsan_runtime_options print_cmdline=true:log_path=/tmp/tsan.log:detect_deadlocks=1:second_deadlock_stack=1