summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-03-18 07:01:46 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-03-18 07:11:17 (EDT)
commit2487057557ff52e4ff3b3f77e127589ec610d761 (patch)
tree795892876b8c260b9985b90facb2fee4515a1347
parent184c72b79e756a2eeefe56b74dfdb40300701cca (diff)
downloaddodge-balls-2487057557ff52e4ff3b3f77e127589ec610d761.zip
dodge-balls-2487057557ff52e4ff3b3f77e127589ec610d761.tar.gz
dodge-balls-2487057557ff52e4ff3b3f77e127589ec610d761.tar.bz2
dodge-balls.sh, suppr.txt: Ignore leaks in libs
Each pattern is substring-matched against the symbolized stack trace of the leak: https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer
-rwxr-xr-xdodge-balls.sh3
-rw-r--r--suppr.txt1
2 files changed, 4 insertions, 0 deletions
diff --git a/dodge-balls.sh b/dodge-balls.sh
new file mode 100755
index 0000000..b2a05d6
--- /dev/null
+++ b/dodge-balls.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+LSAN_OPTIONS=suppressions=suppr.txt exec "$(dirname "${0}")/dodge-balls" "${@}"
diff --git a/suppr.txt b/suppr.txt
new file mode 100644
index 0000000..ca7d479
--- /dev/null
+++ b/suppr.txt
@@ -0,0 +1 @@
+leak:/lib/