Files
qemu/scripts/lsan_suppressions.txt
Marc-André Lureau 73ae0be3f1 ui/spice: add cleanup on shutdown
SPICE resources were never freed on shutdown. Add per-subsystem
cleanup (display, input, core) and call it from qemu_cleanup().

Move spice-module.c into libui so the qemu_spice ops table links
with the rest of the UI code. Add an LSan suppression for a known
spice-server leak.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20260623-b4-ui-v4-14-4656aec3398d@redhat.com>
2026-06-24 15:41:14 +04:00

28 lines
1.0 KiB
Plaintext

# SPDX-License-Identifier: GPL-2.0-or-later
# This is a set of suppressions for LeakSanitizer; you can use it by setting
# LSAN_OPTIONS="suppressions=/path/to/scripts/lsan_suppressions.txt"
# when running a QEMU built with the leak-sanitizer.
# The tcmalloc on Fedora37 confuses things
leak:/lib64/libtcmalloc_minimal.so.4
# libxkbcommon also leaks in qemu-keymap
leak:/lib64/libxkbcommon.so.0
# libfontconfig leaks are notorious, for ex
# https://gitlab.freedesktop.org/fontconfig/fontconfig/-/work_items/519
leak:libfontconfig.so
# g_set_user_dirs() deliberately leaks the previous cached g_get_user_*
# values. This is documented in upstream glib's valgrind-format
# suppression file:
# https://github.com/GNOME/glib/blob/main/tools/glib.supp
# This avoids false positive leak reports for the qga-ssh-test.
leak:g_set_user_dirs
# spice_server_add_interface allocates internal channel data that
# spice_server_destroy does not free
# https://gitlab.freedesktop.org/spice/spice/-/merge_requests/246
leak:spice_server_add_interface