glib.supp: Allow definite leaks of util dir paths

These are one-time leaks, and happen if the util dir paths are built via
these code paths, and then subsequently overwritten using
`g_set_user_dirs()` (typically as part of a unit test).

The additions to `glib.supp` correspond to the `g_ignore_leak()` calls
in `gutils.c`. Unfortunately `g_ignore_leak()` only affects asan, not
valgrind.

See https://gitlab.gnome.org/GNOME/glib/-/jobs/3294034

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall 2023-11-14 11:01:04 +00:00
parent 1a979ab494
commit 89b0c1b304

View File

@ -867,7 +867,7 @@
{ {
g_get_system_data_dirs g_get_system_data_dirs
Memcheck:Leak Memcheck:Leak
match-leak-kinds:reachable match-leak-kinds:definite,reachable
fun:malloc fun:malloc
... ...
fun:g_build_system_data_dirs fun:g_build_system_data_dirs
@ -878,7 +878,7 @@
{ {
g_get_user_data_dir g_get_user_data_dir
Memcheck:Leak Memcheck:Leak
match-leak-kinds:reachable match-leak-kinds:definite,reachable
fun:realloc fun:realloc
... ...
fun:g_build_user_data_dir fun:g_build_user_data_dir
@ -889,7 +889,7 @@
{ {
g_get_home_dir g_get_home_dir
Memcheck:Leak Memcheck:Leak
match-leak-kinds:reachable match-leak-kinds:definite,reachable
fun:malloc fun:malloc
... ...
fun:g_build_home_dir fun:g_build_home_dir