Add a suppressions file for leak sanitizer.
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 23 Jan 2014 18:42:31 +0000 (18:42 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 23 Jan 2014 18:42:31 +0000 (18:42 +0000)
LeakSanitizer is built into AddressSanitizer, and runs with no extra speed
penalty.  Most interestingly, it's got a lock-free allocator, so it doesn't
bottleneck threaded code.

This file is enough to supress all leak warnings except from the Nvidia driver
on my desktop for tests and dm.  Looks like lsan doesn't or can't pay attention
to leaked globals (-fno-common doesn't affect this).

BUG=skia:
R=robertphillips@google.com

Author: mtklein@google.com

Review URL: https://codereview.chromium.org/145033010

git-svn-id: http://skia.googlecode.com/svn/trunk@13153 2bbb7eff-a529-9590-31e7-b0007b416f81

tools/lsan.supp [new file with mode: 0644]

diff --git a/tools/lsan.supp b/tools/lsan.supp
new file mode 100644 (file)
index 0000000..6a274c0
--- /dev/null
@@ -0,0 +1,16 @@
+# Supressions for LSAN.
+#   tools/xsan_build address -C out/Debug
+#   ASAN_OPTIONS=detect_leaks=1 LSAN_OPTIONS=suppressions=tools/lsan.supp out/Debug/$FOO
+
+# Ignore fontconfig leaks.
+leak:FcFontSet
+leak:FcPatternObject
+
+# It'd be really nice to supress these leaks in the Nvidia driver, but I can't figure it out.
+# Direct leak of 18072 byte(s) in 3 object(s) allocated from:
+#   #0 0x5ebb59 in calloc ~/llvm-3.4/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:90
+#   #1 0x7f66af293b1e (/usr/lib/nvidia-current/libGL.so.1+0xbcb1e)
+
+# Skia leaks
+leak:SkRTConf
+leak:SkFontMgr