summaryrefslogtreecommitdiff
path: root/glib.supp
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2019-08-25 14:35:27 +0300
committerPhilip Withnall <withnall@endlessm.com>2019-08-25 14:35:27 +0300
commit26934c63059e7504385a0191f94f38042380076f (patch)
treed20b7cf8ed84dc76741a159029372931ca9b6694 /glib.supp
parentd4857047b34472fb55c9f9317fe7a7c64a336ce1 (diff)
downloadglib-26934c63059e7504385a0191f94f38042380076f.tar.gz
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
Diffstat (limited to 'glib.supp')
-rw-r--r--glib.supp108
1 files changed, 106 insertions, 2 deletions
diff --git a/glib.supp b/glib.supp
index 288d846e1..2c20b1238 100644
--- a/glib.supp
+++ b/glib.supp
@@ -154,6 +154,24 @@
}
{
+ 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
fun:calloc
@@ -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
}
@@ -219,6 +237,92 @@
}
{
+ 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
fun:malloc