summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@qt.io>2022-03-08 18:51:58 +0100
committerRobert Griebl <robert.griebl@qt.io>2022-03-21 16:42:12 +0000
commitddb643bf859e29fd825ad8166c49b66a69ba7e39 (patch)
treedd0d18698cb654f84076e8ade860e98f0f998a6d /util
parent4178fd06ebf3af17019b29d7010a2b81571bec91 (diff)
downloadqtapplicationmanager-ddb643bf859e29fd825ad8166c49b66a69ba7e39.tar.gz
Document the ASAN/LSAN options for leak checking
Change-Id: Ied2ace0e9fbbe0ccf850861d6e75a69bc59d627f Pick-to: 6.3 6.3.0 Reviewed-by: Bernd Weimer <bernd.weimer@qt.io>
Diffstat (limited to 'util')
-rw-r--r--util/README.lsan9
-rw-r--r--util/lsan.suppressions4
2 files changed, 13 insertions, 0 deletions
diff --git a/util/README.lsan b/util/README.lsan
new file mode 100644
index 00000000..c35965b8
--- /dev/null
+++ b/util/README.lsan
@@ -0,0 +1,9 @@
+You need these suppressions when running with Wayland, as QtWaylandCompositor
+does not delete anything on shutdown:
+
+export LSAN_OPTIONS="suppressions=<path/to/appman>/util/lsan.suppressions"
+
+
+Please note: the qml/resources auto-test will report leaks, but these
+are deliberate: we cannot unload resource files once they are loaded in
+single-process mode.
diff --git a/util/lsan.suppressions b/util/lsan.suppressions
new file mode 100644
index 00000000..7360da54
--- /dev/null
+++ b/util/lsan.suppressions
@@ -0,0 +1,4 @@
+leak:*QWayland*
+leak:libxkbcommon.so
+leak:libwayland-client.so
+leak:*QQuickPointerDevice*