随笔-调试-asan编译选项
centos7 gcc 4.8.5
服务器安装libasan libasan-static
+# C_FLAGS += -fsanitize=address -fno-omit-frame-pointer
+# LDFLAGS += -lasan
+
+# self.asan_cflags = " -fsanitize=address -fno-sanitize=alignment -fsanitize=undefined -fsanitize=leak -fsanitize-recover=all "
+# self.asan_ldflags = " -fsanitize=address -fsanitize=undefined -fsanitize=leak -fsanitize-recover=all "
+# self.asan_shared_lib = "libdl libasan_preload"
+# self.asan_static_lib = "libasan"
本文来自博客园,作者:LiYanbin,转载请注明原文链接:https://www.cnblogs.com/stellar-liyanbin/p/17619880.html