packaging: do not registers the SEGV handler in ASan runtime. 50/176950/1 accepted/tizen/base/20180427.142226 submit/tizen_base/20180427.075312
authorDongkyun Son <dongkyun.s@samsung.com>
Tue, 24 Apr 2018 08:29:52 +0000 (17:29 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Tue, 24 Apr 2018 09:26:45 +0000 (18:26 +0900)
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 <dongkyun.s@samsung.com>
packaging/ASAN_OPTIONS
packaging/gcc-contrib.spec

index 50d644e..405d307 100644 (file)
@@ -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
index 6ebd173..52166a5 100644 (file)
@@ -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