[PATCH 1/1] test: add separate valgrind suppressions files per distribution



Rename the file valgrind.suppressions to valgrind.suppressions.fc20,
because the file only really works on Fedora 20.

Add a new file valgrind.suppressions.fc21 which at the moment is just a
copy of the previous valgrind.suppressions file. The tests on Fedora 21
still fail, fix them in a second step.

If the suppressions file is not explicitly specified, try to detect it
based on /etc/os-release and fallback to valgrind.suppressions.fc21.
---
We talked about whether adding separate valgrind-suppression files per distribution.
I am slightly in favor of it, because

 - A suppression file is always only working for a certain set of libraries (glib)
   Having a suppression file per distribution seems good to me because for one
   release the library versions are expected to be stable.

 - We cannot remove suppressions even if we are unsure whether they are still
   needed -- because we don't know why/when they were needed.
   By having a file per distribution, we can prune suppressions when we add
   a new file and start clean.

Parking patch here.

Applies to 4c9a8367742373d594894c6ed7009a505957874d

 configure.ac               |   8 +-
 valgrind.suppressions      | 381 ---------------------------------------------
 valgrind.suppressions.fc20 | 381 +++++++++++++++++++++++++++++++++++++++++++++
 valgrind.suppressions.fc21 | 381 +++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 769 insertions(+), 382 deletions(-)
 delete mode 100644 valgrind.suppressions
 create mode 100644 valgrind.suppressions.fc20
 create mode 100644 valgrind.suppressions.fc21

diff --git a/configure.ac b/configure.ac
index ee58d44..c1987af 100644
--- a/configure.ac
+++ b/configure.ac
@@ -886,7 +886,13 @@ if test "$with_valgrind" == no; then
        with_valgrind_suppressions=
 else
        if test  "$with_valgrind_suppressions" == ""; then
-               with_valgrind_suppressions='$(top_srcdir)/valgrind.suppressions'
+               if grep -q -e '^CPE_NAME="cpe:/o:fedoraproject:fedora:20"$' /etc/os-release 2>/dev/null; then
+                       with_valgrind_suppressions='$(top_srcdir)/valgrind.suppressions.fc20'
+               else
+                       # Otherwise, use the suppression file for Fedora 21. Even if not running F21, this 
might
+                       # be the best bet.
+                       with_valgrind_suppressions='$(top_srcdir)/valgrind.suppressions.fc21'
+               fi
        fi
 fi
 AS_IF([test "$with_valgrind" != "no"],
diff --git a/valgrind.suppressions b/valgrind.suppressions
deleted file mode 100644
index 6a101cc..0000000
--- a/valgrind.suppressions
+++ /dev/null
@@ -1,381 +0,0 @@
-{
-  NSS_NoDB_Init
-  Memcheck:Leak
-  ...
-  fun:NSS_NoDB_Init
-  ...
-}
-{
-  g_type_init_with_debug_flags
-  Memcheck:Leak
-  ...
-  fun:g_type_init_with_debug_flags
-  ...
-}
-{
-  g_type_register_static
-  Memcheck:Leak
-  ...
-  fun:g_type_register_static
-  ...
-}
-{
-  g_param_spec_boxed
-  Memcheck:Leak
-  ...
-  fun:g_param_spec_boxed
-  ...
-}
-{
-  g_type_add_interface_static
-  Memcheck:Leak
-  ...
-  fun:g_type_add_interface_static
-  ...
-}
-{
-  g_signal_type_cclosure_new
-  Memcheck:Leak
-  ...
-  fun:g_malloc0
-  fun:g_closure_new_simple
-  fun:g_signal_type_cclosure_new
-  fun:g_signal_new
-  ...
-}
-{
-   dbus_g_value_types_init
-   Memcheck:Leak
-   fun:realloc
-   fun:g_realloc
-   fun:g_type_set_qdata
-   fun:_dbus_g_value_types_init
-   fun:dbus_g_bus_get
-   ...
-}
-{
-   type_iface_vtable_base_init_Wm
-   Memcheck:Leak
-   fun:malloc
-   fun:g_malloc
-   fun:g_memdup
-   fun:type_iface_vtable_base_init_Wm
-   fun:g_type_class_ref
-   ...
-}
-{
-   g_type_create_instance
-   Memcheck:Leak
-   fun:malloc
-   fun:g_malloc
-   fun:g_slice_alloc
-   fun:g_slice_alloc0
-   fun:g_type_create_instance
-   fun:g_object_constructor
-   ...
-}
-{
-   g_signal_new_class_handler
-   Memcheck:Leak
-   ...
-   fun:g_closure_new_simple
-   fun:g_cclosure_new
-   fun:g_signal_new_class_handler
-   ...
-}
-{
-   _dl_init_g_type_register_fundamental
-   Memcheck:Leak
-   ...
-   fun:g_type_register_fundamental
-   ...
-   fun:_dl_init
-   obj:/*/ld-*.so
-}
-{
-   _dl_init_g_malloc0
-   Memcheck:Leak
-   fun:calloc
-   fun:g_malloc0
-   ...
-   fun:_dl_init
-   obj:/*/ld-*.so
-}
-{
-    all_gobject_init_ctor
-    Memcheck:Leak
-    ...
-    fun:gobject_init_ctor
-    ...
-}
-
-
-# The following suppressions were needed on fc20.armv7hl
-{
-   _fun_malloc
-   Memcheck:Leak
-   match-leak-kinds: possible
-   fun:malloc
-}
-{
-   _fun_realloc
-   Memcheck:Leak
-   match-leak-kinds: possible
-   fun:realloc
-}
-{
-   _fun_calloc
-   Memcheck:Leak
-   match-leak-kinds: possible
-   fun:calloc
-}
-
-
-{
-   _glib_sigaction
-   Memcheck:Param
-   rt_sigaction(act->sa_flags)
-   fun:__libc_sigaction
-   fun:unref_unix_signal_handler_unlocked
-   fun:g_child_watch_finalize
-   fun:g_source_unref_internal
-   fun:g_main_context_dispatch
-   ...
-   fun:g_main_loop_run
-   ...
-}
-
-{
-   # FIXME: dunny why this is needed. Clean up later.
-   _dispatcher_test
-   Memcheck:Leak
-   match-leak-kinds: definite
-   fun:malloc
-   fun:g_malloc
-   fun:g_slice_alloc
-   fun:g_variant_new_from_bytes
-   fun:g_variant_new_from_trusted
-   fun:parse_dhcp
-   fun:get_dispatcher_file
-   ...
-   fun:g_test_run_suite_internal
-   fun:g_test_run_suite_internal
-   fun:g_test_run_suite
-}
-
-{
-   _gdbus_1
-   Memcheck:Leak
-   match-leak-kinds: definite
-   fun:malloc
-   fun:g_malloc
-   fun:g_slice_alloc
-   fun:g_slice_alloc0
-   fun:get_dispatch
-   fun:g_main_context_dispatch
-   ...
-   fun:g_main_loop_run
-   fun:gdbus_shared_thread_func
-   fun:g_thread_proxy
-   fun:start_thread
-   fun:clone
-}
-
-{
-   _gdbus_2
-   Memcheck:Leak
-   match-leak-kinds: definite
-   fun:malloc
-   fun:g_malloc
-   fun:g_slice_alloc
-   fun:g_slice_alloc0
-   fun:g_main_context_push_thread_default
-   fun:gdbus_shared_thread_func
-   fun:g_thread_proxy
-   fun:start_thread
-   fun:clone
-}
-
-{
-   _gdbus_3
-   Memcheck:Leak
-   match-leak-kinds: definite
-   fun:calloc
-   fun:g_malloc0
-   fun:_g_socket_read_with_control_messages
-   fun:_g_dbus_worker_do_read_unlocked
-   fun:_g_dbus_worker_do_read_cb
-   fun:g_simple_async_result_complete
-   fun:complete_in_idle_cb
-   ...
-   fun:g_main_context_dispatch
-   ...
-   fun:g_main_loop_run
-   fun:gdbus_shared_thread_func
-   fun:g_thread_proxy
-}
-
-{
-   _gdbus_4
-   Memcheck:Leak
-   match-leak-kinds: definite
-   fun:calloc
-   fun:g_malloc0
-   ...
-   fun:g_slice_alloc
-   fun:g_slice_alloc0
-   fun:g_main_context_push_thread_default
-   fun:gdbus_shared_thread_func
-   fun:g_thread_proxy
-   fun:start_thread
-   fun:clone
-}
-
-{
-   _gdbus_5
-   Memcheck:Leak
-   match-leak-kinds: definite
-   ...
-   fun:g_dbus_message_new_from_blob
-   ...
-}
-
-{
-   _gdbus_9
-   Memcheck:Leak
-   match-leak-kinds: definite
-   fun:malloc
-   fun:g_malloc
-   fun:g_slice_alloc
-   fun:g_slice_alloc0
-   fun:get_dispatch
-   fun:g_main_current_source
-   fun:g_task_return
-   fun:g_task_thread_pool_thread
-   fun:g_thread_pool_thread_proxy
-   fun:g_thread_proxy
-   fun:start_thread
-   fun:clone
-}
-
-{
-   _gdbus_10
-   Memcheck:Leak
-   match-leak-kinds: definite
-   fun:malloc
-   fun:g_malloc
-   fun:g_slice_alloc
-   fun:g_slice_alloc0
-   fun:g_system_thread_new
-   fun:g_thread_new_internal
-   ...
-   fun:g_thread_pool_push
-   fun:g_task_start_task_thread
-   fun:g_task_run_in_thread
-   fun:g_async_initable_real_init_async
-   fun:g_bus_get
-}
-
-{
-   _gdbus_11
-   Memcheck:Leak
-   match-leak-kinds: definite
-   fun:calloc
-   fun:g_malloc0
-   ...
-   fun:g_slice_alloc
-   fun:g_slice_alloc0
-   fun:get_dispatch
-   fun:g_main_current_source
-   fun:g_task_return
-   fun:g_task_thread_pool_thread
-   fun:g_thread_pool_thread_proxy
-   fun:g_thread_proxy
-   fun:start_thread
-}
-
-{
-   _gdbus_12
-   Memcheck:Leak
-   match-leak-kinds: definite
-   fun:malloc
-   fun:g_malloc
-   fun:g_slice_alloc
-   fun:g_error_new_valist
-   fun:g_error_new
-   fun:g_dbus_error_new_for_dbus_error
-   fun:g_dbus_error_set_dbus_error
-   fun:g_dbus_message_to_gerror
-   fun:decode_method_reply
-   fun:g_dbus_connection_call_sync_internal
-   fun:g_dbus_proxy_call_sync_internal
-   fun:g_dbus_proxy_call_sync
-}
-
-{
-   _gdbus_15
-   Memcheck:Leak
-   match-leak-kinds: definite
-   fun:malloc
-   fun:g_malloc
-   fun:g_slice_alloc
-   fun:g_hash_table_new_full
-   fun:demarshal_map
-   fun:_dbus_gvalue_demarshal
-   fun:dbus_g_proxy_end_call_internal
-   fun:dbus_g_proxy_end_call
-   fun:get_permissions_reply
-   fun:complete_pending_call_and_unlock
-   fun:dbus_connection_dispatch
-   fun:message_queue_dispatch
-}
-
-{
-   _gdbus_16
-   Memcheck:Leak
-   match-leak-kinds: definite
-   fun:calloc
-   fun:g_malloc0
-   fun:_g_dbus_worker_send_message
-   fun:g_dbus_connection_send_message_unlocked
-   fun:unsubscribe_id_internal
-   fun:g_dbus_connection_signal_unsubscribe
-   fun:g_dbus_proxy_finalize
-   ...
-}
-
-{
-   _gdbus_17
-   Memcheck:Leak
-   match-leak-kinds: definite
-   fun:calloc
-   fun:g_malloc0
-   fun:thread_memory_from_self
-   fun:g_slice_alloc
-   fun:g_slice_alloc0
-   fun:g_main_context_push_thread_default
-   fun:gdbus_shared_thread_func
-   fun:g_thread_proxy
-   fun:start_thread
-   fun:clone
-}
-
-{
-   _gdbus_18
-   Memcheck:Leak
-   match-leak-kinds: definite
-   fun:malloc
-   fun:g_malloc
-   fun:g_slice_alloc
-   fun:g_slice_alloc0
-   fun:get_dispatch
-   fun:g_main_dispatch
-   fun:g_main_context_dispatch
-   ...
-   fun:g_main_loop_run
-   fun:gdbus_shared_thread_func
-   fun:g_thread_proxy
-   fun:start_thread
-   fun:clone
-}
-
diff --git a/valgrind.suppressions.fc20 b/valgrind.suppressions.fc20
new file mode 100644
index 0000000..6a101cc
--- /dev/null
+++ b/valgrind.suppressions.fc20
@@ -0,0 +1,381 @@
+{
+  NSS_NoDB_Init
+  Memcheck:Leak
+  ...
+  fun:NSS_NoDB_Init
+  ...
+}
+{
+  g_type_init_with_debug_flags
+  Memcheck:Leak
+  ...
+  fun:g_type_init_with_debug_flags
+  ...
+}
+{
+  g_type_register_static
+  Memcheck:Leak
+  ...
+  fun:g_type_register_static
+  ...
+}
+{
+  g_param_spec_boxed
+  Memcheck:Leak
+  ...
+  fun:g_param_spec_boxed
+  ...
+}
+{
+  g_type_add_interface_static
+  Memcheck:Leak
+  ...
+  fun:g_type_add_interface_static
+  ...
+}
+{
+  g_signal_type_cclosure_new
+  Memcheck:Leak
+  ...
+  fun:g_malloc0
+  fun:g_closure_new_simple
+  fun:g_signal_type_cclosure_new
+  fun:g_signal_new
+  ...
+}
+{
+   dbus_g_value_types_init
+   Memcheck:Leak
+   fun:realloc
+   fun:g_realloc
+   fun:g_type_set_qdata
+   fun:_dbus_g_value_types_init
+   fun:dbus_g_bus_get
+   ...
+}
+{
+   type_iface_vtable_base_init_Wm
+   Memcheck:Leak
+   fun:malloc
+   fun:g_malloc
+   fun:g_memdup
+   fun:type_iface_vtable_base_init_Wm
+   fun:g_type_class_ref
+   ...
+}
+{
+   g_type_create_instance
+   Memcheck:Leak
+   fun:malloc
+   fun:g_malloc
+   fun:g_slice_alloc
+   fun:g_slice_alloc0
+   fun:g_type_create_instance
+   fun:g_object_constructor
+   ...
+}
+{
+   g_signal_new_class_handler
+   Memcheck:Leak
+   ...
+   fun:g_closure_new_simple
+   fun:g_cclosure_new
+   fun:g_signal_new_class_handler
+   ...
+}
+{
+   _dl_init_g_type_register_fundamental
+   Memcheck:Leak
+   ...
+   fun:g_type_register_fundamental
+   ...
+   fun:_dl_init
+   obj:/*/ld-*.so
+}
+{
+   _dl_init_g_malloc0
+   Memcheck:Leak
+   fun:calloc
+   fun:g_malloc0
+   ...
+   fun:_dl_init
+   obj:/*/ld-*.so
+}
+{
+    all_gobject_init_ctor
+    Memcheck:Leak
+    ...
+    fun:gobject_init_ctor
+    ...
+}
+
+
+# The following suppressions were needed on fc20.armv7hl
+{
+   _fun_malloc
+   Memcheck:Leak
+   match-leak-kinds: possible
+   fun:malloc
+}
+{
+   _fun_realloc
+   Memcheck:Leak
+   match-leak-kinds: possible
+   fun:realloc
+}
+{
+   _fun_calloc
+   Memcheck:Leak
+   match-leak-kinds: possible
+   fun:calloc
+}
+
+
+{
+   _glib_sigaction
+   Memcheck:Param
+   rt_sigaction(act->sa_flags)
+   fun:__libc_sigaction
+   fun:unref_unix_signal_handler_unlocked
+   fun:g_child_watch_finalize
+   fun:g_source_unref_internal
+   fun:g_main_context_dispatch
+   ...
+   fun:g_main_loop_run
+   ...
+}
+
+{
+   # FIXME: dunny why this is needed. Clean up later.
+   _dispatcher_test
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:malloc
+   fun:g_malloc
+   fun:g_slice_alloc
+   fun:g_variant_new_from_bytes
+   fun:g_variant_new_from_trusted
+   fun:parse_dhcp
+   fun:get_dispatcher_file
+   ...
+   fun:g_test_run_suite_internal
+   fun:g_test_run_suite_internal
+   fun:g_test_run_suite
+}
+
+{
+   _gdbus_1
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:malloc
+   fun:g_malloc
+   fun:g_slice_alloc
+   fun:g_slice_alloc0
+   fun:get_dispatch
+   fun:g_main_context_dispatch
+   ...
+   fun:g_main_loop_run
+   fun:gdbus_shared_thread_func
+   fun:g_thread_proxy
+   fun:start_thread
+   fun:clone
+}
+
+{
+   _gdbus_2
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:malloc
+   fun:g_malloc
+   fun:g_slice_alloc
+   fun:g_slice_alloc0
+   fun:g_main_context_push_thread_default
+   fun:gdbus_shared_thread_func
+   fun:g_thread_proxy
+   fun:start_thread
+   fun:clone
+}
+
+{
+   _gdbus_3
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:calloc
+   fun:g_malloc0
+   fun:_g_socket_read_with_control_messages
+   fun:_g_dbus_worker_do_read_unlocked
+   fun:_g_dbus_worker_do_read_cb
+   fun:g_simple_async_result_complete
+   fun:complete_in_idle_cb
+   ...
+   fun:g_main_context_dispatch
+   ...
+   fun:g_main_loop_run
+   fun:gdbus_shared_thread_func
+   fun:g_thread_proxy
+}
+
+{
+   _gdbus_4
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:calloc
+   fun:g_malloc0
+   ...
+   fun:g_slice_alloc
+   fun:g_slice_alloc0
+   fun:g_main_context_push_thread_default
+   fun:gdbus_shared_thread_func
+   fun:g_thread_proxy
+   fun:start_thread
+   fun:clone
+}
+
+{
+   _gdbus_5
+   Memcheck:Leak
+   match-leak-kinds: definite
+   ...
+   fun:g_dbus_message_new_from_blob
+   ...
+}
+
+{
+   _gdbus_9
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:malloc
+   fun:g_malloc
+   fun:g_slice_alloc
+   fun:g_slice_alloc0
+   fun:get_dispatch
+   fun:g_main_current_source
+   fun:g_task_return
+   fun:g_task_thread_pool_thread
+   fun:g_thread_pool_thread_proxy
+   fun:g_thread_proxy
+   fun:start_thread
+   fun:clone
+}
+
+{
+   _gdbus_10
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:malloc
+   fun:g_malloc
+   fun:g_slice_alloc
+   fun:g_slice_alloc0
+   fun:g_system_thread_new
+   fun:g_thread_new_internal
+   ...
+   fun:g_thread_pool_push
+   fun:g_task_start_task_thread
+   fun:g_task_run_in_thread
+   fun:g_async_initable_real_init_async
+   fun:g_bus_get
+}
+
+{
+   _gdbus_11
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:calloc
+   fun:g_malloc0
+   ...
+   fun:g_slice_alloc
+   fun:g_slice_alloc0
+   fun:get_dispatch
+   fun:g_main_current_source
+   fun:g_task_return
+   fun:g_task_thread_pool_thread
+   fun:g_thread_pool_thread_proxy
+   fun:g_thread_proxy
+   fun:start_thread
+}
+
+{
+   _gdbus_12
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:malloc
+   fun:g_malloc
+   fun:g_slice_alloc
+   fun:g_error_new_valist
+   fun:g_error_new
+   fun:g_dbus_error_new_for_dbus_error
+   fun:g_dbus_error_set_dbus_error
+   fun:g_dbus_message_to_gerror
+   fun:decode_method_reply
+   fun:g_dbus_connection_call_sync_internal
+   fun:g_dbus_proxy_call_sync_internal
+   fun:g_dbus_proxy_call_sync
+}
+
+{
+   _gdbus_15
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:malloc
+   fun:g_malloc
+   fun:g_slice_alloc
+   fun:g_hash_table_new_full
+   fun:demarshal_map
+   fun:_dbus_gvalue_demarshal
+   fun:dbus_g_proxy_end_call_internal
+   fun:dbus_g_proxy_end_call
+   fun:get_permissions_reply
+   fun:complete_pending_call_and_unlock
+   fun:dbus_connection_dispatch
+   fun:message_queue_dispatch
+}
+
+{
+   _gdbus_16
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:calloc
+   fun:g_malloc0
+   fun:_g_dbus_worker_send_message
+   fun:g_dbus_connection_send_message_unlocked
+   fun:unsubscribe_id_internal
+   fun:g_dbus_connection_signal_unsubscribe
+   fun:g_dbus_proxy_finalize
+   ...
+}
+
+{
+   _gdbus_17
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:calloc
+   fun:g_malloc0
+   fun:thread_memory_from_self
+   fun:g_slice_alloc
+   fun:g_slice_alloc0
+   fun:g_main_context_push_thread_default
+   fun:gdbus_shared_thread_func
+   fun:g_thread_proxy
+   fun:start_thread
+   fun:clone
+}
+
+{
+   _gdbus_18
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:malloc
+   fun:g_malloc
+   fun:g_slice_alloc
+   fun:g_slice_alloc0
+   fun:get_dispatch
+   fun:g_main_dispatch
+   fun:g_main_context_dispatch
+   ...
+   fun:g_main_loop_run
+   fun:gdbus_shared_thread_func
+   fun:g_thread_proxy
+   fun:start_thread
+   fun:clone
+}
+
diff --git a/valgrind.suppressions.fc21 b/valgrind.suppressions.fc21
new file mode 100644
index 0000000..6a101cc
--- /dev/null
+++ b/valgrind.suppressions.fc21
@@ -0,0 +1,381 @@
+{
+  NSS_NoDB_Init
+  Memcheck:Leak
+  ...
+  fun:NSS_NoDB_Init
+  ...
+}
+{
+  g_type_init_with_debug_flags
+  Memcheck:Leak
+  ...
+  fun:g_type_init_with_debug_flags
+  ...
+}
+{
+  g_type_register_static
+  Memcheck:Leak
+  ...
+  fun:g_type_register_static
+  ...
+}
+{
+  g_param_spec_boxed
+  Memcheck:Leak
+  ...
+  fun:g_param_spec_boxed
+  ...
+}
+{
+  g_type_add_interface_static
+  Memcheck:Leak
+  ...
+  fun:g_type_add_interface_static
+  ...
+}
+{
+  g_signal_type_cclosure_new
+  Memcheck:Leak
+  ...
+  fun:g_malloc0
+  fun:g_closure_new_simple
+  fun:g_signal_type_cclosure_new
+  fun:g_signal_new
+  ...
+}
+{
+   dbus_g_value_types_init
+   Memcheck:Leak
+   fun:realloc
+   fun:g_realloc
+   fun:g_type_set_qdata
+   fun:_dbus_g_value_types_init
+   fun:dbus_g_bus_get
+   ...
+}
+{
+   type_iface_vtable_base_init_Wm
+   Memcheck:Leak
+   fun:malloc
+   fun:g_malloc
+   fun:g_memdup
+   fun:type_iface_vtable_base_init_Wm
+   fun:g_type_class_ref
+   ...
+}
+{
+   g_type_create_instance
+   Memcheck:Leak
+   fun:malloc
+   fun:g_malloc
+   fun:g_slice_alloc
+   fun:g_slice_alloc0
+   fun:g_type_create_instance
+   fun:g_object_constructor
+   ...
+}
+{
+   g_signal_new_class_handler
+   Memcheck:Leak
+   ...
+   fun:g_closure_new_simple
+   fun:g_cclosure_new
+   fun:g_signal_new_class_handler
+   ...
+}
+{
+   _dl_init_g_type_register_fundamental
+   Memcheck:Leak
+   ...
+   fun:g_type_register_fundamental
+   ...
+   fun:_dl_init
+   obj:/*/ld-*.so
+}
+{
+   _dl_init_g_malloc0
+   Memcheck:Leak
+   fun:calloc
+   fun:g_malloc0
+   ...
+   fun:_dl_init
+   obj:/*/ld-*.so
+}
+{
+    all_gobject_init_ctor
+    Memcheck:Leak
+    ...
+    fun:gobject_init_ctor
+    ...
+}
+
+
+# The following suppressions were needed on fc20.armv7hl
+{
+   _fun_malloc
+   Memcheck:Leak
+   match-leak-kinds: possible
+   fun:malloc
+}
+{
+   _fun_realloc
+   Memcheck:Leak
+   match-leak-kinds: possible
+   fun:realloc
+}
+{
+   _fun_calloc
+   Memcheck:Leak
+   match-leak-kinds: possible
+   fun:calloc
+}
+
+
+{
+   _glib_sigaction
+   Memcheck:Param
+   rt_sigaction(act->sa_flags)
+   fun:__libc_sigaction
+   fun:unref_unix_signal_handler_unlocked
+   fun:g_child_watch_finalize
+   fun:g_source_unref_internal
+   fun:g_main_context_dispatch
+   ...
+   fun:g_main_loop_run
+   ...
+}
+
+{
+   # FIXME: dunny why this is needed. Clean up later.
+   _dispatcher_test
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:malloc
+   fun:g_malloc
+   fun:g_slice_alloc
+   fun:g_variant_new_from_bytes
+   fun:g_variant_new_from_trusted
+   fun:parse_dhcp
+   fun:get_dispatcher_file
+   ...
+   fun:g_test_run_suite_internal
+   fun:g_test_run_suite_internal
+   fun:g_test_run_suite
+}
+
+{
+   _gdbus_1
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:malloc
+   fun:g_malloc
+   fun:g_slice_alloc
+   fun:g_slice_alloc0
+   fun:get_dispatch
+   fun:g_main_context_dispatch
+   ...
+   fun:g_main_loop_run
+   fun:gdbus_shared_thread_func
+   fun:g_thread_proxy
+   fun:start_thread
+   fun:clone
+}
+
+{
+   _gdbus_2
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:malloc
+   fun:g_malloc
+   fun:g_slice_alloc
+   fun:g_slice_alloc0
+   fun:g_main_context_push_thread_default
+   fun:gdbus_shared_thread_func
+   fun:g_thread_proxy
+   fun:start_thread
+   fun:clone
+}
+
+{
+   _gdbus_3
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:calloc
+   fun:g_malloc0
+   fun:_g_socket_read_with_control_messages
+   fun:_g_dbus_worker_do_read_unlocked
+   fun:_g_dbus_worker_do_read_cb
+   fun:g_simple_async_result_complete
+   fun:complete_in_idle_cb
+   ...
+   fun:g_main_context_dispatch
+   ...
+   fun:g_main_loop_run
+   fun:gdbus_shared_thread_func
+   fun:g_thread_proxy
+}
+
+{
+   _gdbus_4
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:calloc
+   fun:g_malloc0
+   ...
+   fun:g_slice_alloc
+   fun:g_slice_alloc0
+   fun:g_main_context_push_thread_default
+   fun:gdbus_shared_thread_func
+   fun:g_thread_proxy
+   fun:start_thread
+   fun:clone
+}
+
+{
+   _gdbus_5
+   Memcheck:Leak
+   match-leak-kinds: definite
+   ...
+   fun:g_dbus_message_new_from_blob
+   ...
+}
+
+{
+   _gdbus_9
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:malloc
+   fun:g_malloc
+   fun:g_slice_alloc
+   fun:g_slice_alloc0
+   fun:get_dispatch
+   fun:g_main_current_source
+   fun:g_task_return
+   fun:g_task_thread_pool_thread
+   fun:g_thread_pool_thread_proxy
+   fun:g_thread_proxy
+   fun:start_thread
+   fun:clone
+}
+
+{
+   _gdbus_10
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:malloc
+   fun:g_malloc
+   fun:g_slice_alloc
+   fun:g_slice_alloc0
+   fun:g_system_thread_new
+   fun:g_thread_new_internal
+   ...
+   fun:g_thread_pool_push
+   fun:g_task_start_task_thread
+   fun:g_task_run_in_thread
+   fun:g_async_initable_real_init_async
+   fun:g_bus_get
+}
+
+{
+   _gdbus_11
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:calloc
+   fun:g_malloc0
+   ...
+   fun:g_slice_alloc
+   fun:g_slice_alloc0
+   fun:get_dispatch
+   fun:g_main_current_source
+   fun:g_task_return
+   fun:g_task_thread_pool_thread
+   fun:g_thread_pool_thread_proxy
+   fun:g_thread_proxy
+   fun:start_thread
+}
+
+{
+   _gdbus_12
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:malloc
+   fun:g_malloc
+   fun:g_slice_alloc
+   fun:g_error_new_valist
+   fun:g_error_new
+   fun:g_dbus_error_new_for_dbus_error
+   fun:g_dbus_error_set_dbus_error
+   fun:g_dbus_message_to_gerror
+   fun:decode_method_reply
+   fun:g_dbus_connection_call_sync_internal
+   fun:g_dbus_proxy_call_sync_internal
+   fun:g_dbus_proxy_call_sync
+}
+
+{
+   _gdbus_15
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:malloc
+   fun:g_malloc
+   fun:g_slice_alloc
+   fun:g_hash_table_new_full
+   fun:demarshal_map
+   fun:_dbus_gvalue_demarshal
+   fun:dbus_g_proxy_end_call_internal
+   fun:dbus_g_proxy_end_call
+   fun:get_permissions_reply
+   fun:complete_pending_call_and_unlock
+   fun:dbus_connection_dispatch
+   fun:message_queue_dispatch
+}
+
+{
+   _gdbus_16
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:calloc
+   fun:g_malloc0
+   fun:_g_dbus_worker_send_message
+   fun:g_dbus_connection_send_message_unlocked
+   fun:unsubscribe_id_internal
+   fun:g_dbus_connection_signal_unsubscribe
+   fun:g_dbus_proxy_finalize
+   ...
+}
+
+{
+   _gdbus_17
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:calloc
+   fun:g_malloc0
+   fun:thread_memory_from_self
+   fun:g_slice_alloc
+   fun:g_slice_alloc0
+   fun:g_main_context_push_thread_default
+   fun:gdbus_shared_thread_func
+   fun:g_thread_proxy
+   fun:start_thread
+   fun:clone
+}
+
+{
+   _gdbus_18
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:malloc
+   fun:g_malloc
+   fun:g_slice_alloc
+   fun:g_slice_alloc0
+   fun:get_dispatch
+   fun:g_main_dispatch
+   fun:g_main_context_dispatch
+   ...
+   fun:g_main_loop_run
+   fun:gdbus_shared_thread_func
+   fun:g_thread_proxy
+   fun:start_thread
+   fun:clone
+}
+
-- 
2.1.0



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]