From 0337ae41abda59fac6e4c95d6e494457a6deaac4 Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Mon, 23 Oct 2017 10:30:43 +0200 Subject: [PATCH] tools: valgrind: shut up some non relevant memory leaks Fixes #405 Signed-off-by: Benjamin Tissoires --- tools/valgrind-ratbag-command.supp | 54 +++++++++++++++++++++++++++--- 1 file changed, 50 insertions(+), 4 deletions(-) diff --git a/tools/valgrind-ratbag-command.supp b/tools/valgrind-ratbag-command.supp index 6a24e780..ab0747d0 100644 --- a/tools/valgrind-ratbag-command.supp +++ b/tools/valgrind-ratbag-command.supp @@ -9,10 +9,8 @@ Remove dlopens, as libratbag does not do those Memcheck:Leak match-leak-kinds: reachable - fun:calloc - fun:_dl_new_object - fun:_dl_map_object_from_fd - fun:_dl_map_object + fun:*alloc + ... fun:openaux fun:_dl_catch_error fun:_dl_map_object_deps @@ -22,3 +20,51 @@ fun:dlopen_doit fun:_dl_catch_error } + +{ + Remove calloc static allocated glib entries + Memcheck:Leak + match-leak-kinds: reachable + fun:*alloc + ... + obj:/usr/lib64/libglib*.so* + fun:g_key_file_new +} + +{ + Remove any libglib-2 static alloc + Memcheck:Leak + match-leak-kinds: reachable + fun:*alloc + ... + obj:/usr/lib64/libglib*.so* + fun:_dl_init + obj:/usr/lib64/ld*.so* +} + +{ + quarks in glib-2 are staying around + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + ... + obj:/usr/lib64/libglib*.so* + fun:g_quark_from_static_string +} + +{ + Remove pooled allocated memory from systemd + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + fun:mempool_alloc_tile +} + +{ + Remove pooled allocated memory from systemd + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + ... + fun:internal_ordered_hashmap_ensure_allocated +}