From 26934c63059e7504385a0191f94f38042380076f Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Sun, 25 Aug 2019 14:35:27 +0300 Subject: [PATCH] glib.supp: Add some missing suppressions for one-time allocations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Various memory allocations are still reachable when a process exits, as they contain type system information which can’t be unloaded. Suppress those using `glib.supp`. Signed-off-by: Philip Withnall Closes: #1879 --- glib.supp | 108 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 106 insertions(+), 2 deletions(-) diff --git a/glib.supp b/glib.supp index 288d846e1..2c20b1238 100644 --- a/glib.supp +++ b/glib.supp @@ -153,6 +153,24 @@ fun:g_type_add_interface_static } +{ + g-type-add-interface-static-realloc + Memcheck:Leak + match-leak-kinds:reachable + fun:realloc + ... + fun:g_type_add_interface_static +} + +{ + g-type-add-interface-static-calloc + Memcheck:Leak + match-leak-kinds:reachable + fun:calloc + ... + fun:g_type_add_interface_static +} + { g-test-rand-init Memcheck:Leak @@ -187,6 +205,7 @@ { g-quark-table-resize Memcheck:Leak + ... fun:g_hash_table_resize ... fun:quark_new @@ -203,10 +222,9 @@ { g-type-class-init-calloc Memcheck:Leak + match-leak-kinds:reachable fun:calloc ... - fun:g_type_create_instance - ... fun:type_class_init_Wm } @@ -218,6 +236,92 @@ fun:type_class_init_Wm } +{ + g-object-do-class-init-signals + Memcheck:Leak + match-leak-kinds:reachable + ... + fun:g_signal_new + ... + fun:type_class_init_Wm +} + +{ + g-type-prerequisites + Memcheck:Leak + match-leak-kinds:reachable + fun:realloc + ... + fun:type_iface_add_prerequisite_W +} + +{ + g-type-add-interface-check + Memcheck:Leak + match-leak-kinds:reachable + fun:malloc + ... + fun:g_type_add_interface_check + ... + fun:type_class_init_Wm +} + +{ + g-type-add-interface-check-realloc + Memcheck:Leak + match-leak-kinds:reachable + fun:realloc + ... + fun:g_type_add_interface_check + ... + fun:type_class_init_Wm +} + +{ + g-object-class-install-property + Memcheck:Leak + match-leak-kinds:reachable + fun:malloc + ... + fun:validate_and_install_class_property + ... + fun:type_class_init_Wm +} + +{ + g-param-spec-pool-new + Memcheck:Leak + match-leak-kinds:reachable + fun:malloc + ... + fun:g_param_spec_pool_new + ... + fun:type_class_init_Wm +} + +# weak_locations_lock in gobject.c +{ + g-weak-ref-lock + Memcheck:Leak + match-leak-kinds:reachable + fun:malloc + ... + fun:g_rw_lock_get_impl + ... + fun:g_weak_ref_set +} + +{ + g-object-base-class-init-construct-pproperties + Memcheck:Leak + match-leak-kinds:reachable + fun:malloc + ... + fun:g_slist_copy + fun:g_object_base_class_init + fun:type_class_init_Wm +} + { g-io-module-default-singleton-malloc Memcheck:Leak