]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Add lsan.supp
authorJohan Malm <jgm323@gmail.com>
Tue, 12 Nov 2024 17:50:58 +0000 (17:50 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Tue, 26 Nov 2024 21:29:09 +0000 (21:29 +0000)
...so suppress errors from ASAN with EGL renderer.

Also add a script to simplify running with sanitizer and this suppression
file.

Related-to: #2331
scripts/asan_leak_suppressions
scripts/run-with-asan.sh [new file with mode: 0755]

index 6ac2d14a164269801d778bf580f7da82c163df02..383a42da72e8ce7c2cc09d4b1c1cf76583da2500 100644 (file)
@@ -1 +1,2 @@
 leak:libfontconfig.so
+leak:libEGL_mesa.so
diff --git a/scripts/run-with-asan.sh b/scripts/run-with-asan.sh
new file mode 100755 (executable)
index 0000000..93dbd06
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+: ${BUILD_DIR="build"}
+
+[ -d "${BUILD_DIR}" ] || meson setup "${BUILD_DIR}"
+meson configure -Db_sanitize=address,undefined "${BUILD_DIR}"
+ninja -C "${BUILD_DIR}"
+LSAN_OPTIONS=suppressions=scripts/asan_leak_suppressions "${BUILD_DIR}/labwc" -d 2>log.txt
+