[glib: 1/2] glib.supp: Add some missing suppressions for one-time allocations
- From: Nirbheek Chauhan <nirbheekc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] glib.supp: Add some missing suppressions for one-time allocations
- Date: Mon, 26 Aug 2019 12:04:50 +0000 (UTC)
commit 26934c63059e7504385a0191f94f38042380076f
Author: Philip Withnall <withnall endlessm com>
Date: Sun Aug 25 14:35:27 2019 +0300
glib.supp: Add some missing suppressions for one-time allocations
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 <withnall endlessm com>
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]