packaging: enable log_exe_name sanitizer option for ASan 70/132070/2 accepted/tizen/base/20170609.215631 submit/tizen_base/20170609.081211
authorChan Lee <chan45.lee@samsung.com>
Thu, 1 Jun 2017 03:28:22 +0000 (12:28 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Thu, 8 Jun 2017 00:16:25 +0000 (00:16 +0000)
This option shoule be 'log_exe_name' not 'log_exe_path'

According to SanitizerCommonFlags,
(https://github.com/google/sanitizers/wiki/SanitizerCommonFlags)
Enabling this option makes ASan mention name of executable when reporting error and append
executable name to logs (as in "log_path.exe_name.pid").

Change-Id: I0a49a2032355b6527ea7522faa1414ec8d567125
Signed-off-by: Chan Lee <chan45.lee@samsung.com>
packaging/gcc-aarch64.spec
packaging/gcc-armv7l.spec
packaging/linaro-gcc.spec

index af6e10c..40d1ae6 100644 (file)
@@ -785,7 +785,7 @@ Asan runtime environment
 echo "%{libdir}/libasan.so" > /etc/ld.so.preload
 [ -f /etc/ld.so.preload.orig ] && cat /etc/ld.so.preload.orig >> /etc/ld.so.preload
 [ -f /etc/ld.so.preload.orig ] && rm -f /etc/ld.so.preload.orig
-echo "halt_on_error=false:start_deactivated=true:print_cmdline=true:quarantine_size_mb=1:detect_leaks=0:log_path=/tmp/asan.log:log_exe_path=1" > /ASAN_OPTIONS
+echo "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" > /ASAN_OPTIONS
 chsmack -a "_" /etc/ld.so.preload /ASAN_OPTIONS
 
 %preun -n asan-runtime-env
index 9b816c1..f3ad3bd 100644 (file)
@@ -785,7 +785,7 @@ Asan runtime environment
 echo "%{libdir}/libasan.so" > /etc/ld.so.preload
 [ -f /etc/ld.so.preload.orig ] && cat /etc/ld.so.preload.orig >> /etc/ld.so.preload
 [ -f /etc/ld.so.preload.orig ] && rm -f /etc/ld.so.preload.orig
-echo "halt_on_error=false:start_deactivated=true:print_cmdline=true:quarantine_size_mb=1:detect_leaks=0:log_path=/tmp/asan.log:log_exe_path=1" > /ASAN_OPTIONS
+echo "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" > /ASAN_OPTIONS
 chsmack -a "_" /etc/ld.so.preload /ASAN_OPTIONS
 
 %preun -n asan-runtime-env
index d0e2220..c6460cf 100644 (file)
@@ -782,7 +782,7 @@ Asan runtime environment
 echo "%{libdir}/libasan.so" > /etc/ld.so.preload
 [ -f /etc/ld.so.preload.orig ] && cat /etc/ld.so.preload.orig >> /etc/ld.so.preload
 [ -f /etc/ld.so.preload.orig ] && rm -f /etc/ld.so.preload.orig
-echo "halt_on_error=false:start_deactivated=true:print_cmdline=true:quarantine_size_mb=1:detect_leaks=0:log_path=/tmp/asan.log:log_exe_path=1" > /ASAN_OPTIONS
+echo "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" > /ASAN_OPTIONS
 chsmack -a "_" /etc/ld.so.preload /ASAN_OPTIONS
 
 %preun -n asan-runtime-env