diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-09-22 13:51:13 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-10-21 12:37:46 +0100 |
commit | b78ab1e3f845ae075afe8880c96568506135506c (patch) | |
tree | 79b36a597696baf879f907d3747eb568f2a2c013 | |
parent | 30a03399929cf943449968d537499c63019d36b3 (diff) | |
download | dbus-glib-b78ab1e3f845ae075afe8880c96568506135506c.tar.gz |
Add a list of Valgrind suppressions for false-positives
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41129
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
-rw-r--r-- | tools/dbus-glib-tests.supp | 64 | ||||
-rw-r--r-- | tools/dbus-glib.supp | 297 |
2 files changed, 361 insertions, 0 deletions
diff --git a/tools/dbus-glib-tests.supp b/tools/dbus-glib-tests.supp new file mode 100644 index 0000000..77a4593 --- /dev/null +++ b/tools/dbus-glib-tests.supp @@ -0,0 +1,64 @@ +# Valgrind error suppression file: dbus-glib regression tests + +{ + MyObject properties + Memcheck:Leak + ... + fun:g_param_spec_string + ... + fun:my_object_class_intern_init + fun:g_type_class_ref +} + +{ + MyObject properties + Memcheck:Leak + ... + fun:g_param_spec_internal + ... + fun:my_object_class_intern_init + fun:g_type_class_ref +} + +{ + MyObject signals + Memcheck:Leak + ... + fun:g_signal_new + fun:my_object_class_intern_init + fun:g_type_class_ref +} + +{ + MyObject qdata + Memcheck:Leak + ... + fun:g_type_set_qdata + fun:my_object_class_intern_init + fun:g_type_class_ref +} + +{ + shared-bus test + Memcheck:Leak + ... + fun:dbus_g_bus_get + fun:test_shared_bus +} + +{ + object initialization + Memcheck:Leak + ... + fun:g_signal_new + fun:g_object_do_class_init + fun:g_type_class_ref +} + +{ + object interface initialization + Memcheck:Leak + ... + fun:g_type_add_interface_check + fun:g_type_class_ref +} diff --git a/tools/dbus-glib.supp b/tools/dbus-glib.supp new file mode 100644 index 0000000..6868e81 --- /dev/null +++ b/tools/dbus-glib.supp @@ -0,0 +1,297 @@ +# Valgrind error suppression file + +# ============================= GLib ================================== + +{ + g_set_prgname copies its argument + Memcheck:Leak + ... + fun:g_set_prgname +} + +{ + one g_get_charset per child^Wprocess + Memcheck:Leak + ... + fun:g_get_charset +} + +{ + one g_get_home_dir per process + Memcheck:Leak + ... + fun:g_get_home_dir +} + +{ + GQuarks can't be freed + Memcheck:Leak + ... + fun:g_quark_from_static_string +} + +{ + GQuarks can't be freed + Memcheck:Leak + ... + fun:g_quark_from_string +} + +{ + interned strings can't be freed + Memcheck:Leak + ... + fun:g_intern_string +} + +{ + interned strings can't be freed + Memcheck:Leak + ... + fun:g_intern_static_string +} + +{ + shared global default g_main_context + Memcheck:Leak + ... + fun:g_main_context_new + fun:g_main_context_default +} + +{ + GTest initialization + Memcheck:Leak + ... + fun:g_test_init + fun:main +} + +{ + GTest admin + Memcheck:Leak + ... + fun:g_test_add_vtable +} + +{ + GTest pseudorandomness + Memcheck:Leak + ... + fun:g_rand_new_with_seed_array + fun:test_run_seed + ... + fun:g_test_run +} + +{ + GTest pseudorandomness + Memcheck:Leak + ... + fun:g_rand_new_with_seed_array + fun:test_run_seed + ... + fun:g_test_run_suite +} + +{ + GSLice initialization + Memcheck:Leak + ... + fun:g_malloc0 + fun:g_slice_init_nomessage + fun:g_slice_alloc +} + +{ + GData initialization + Memcheck:Leak + ... + fun:g_data_initialize +} + +{ + GTest strings + Memcheck:Leak + ... + fun:g_strdup + fun:g_test_run_suite_internal +} + +# ============================= GObject =============================== + +{ + g_type_init + Memcheck:Leak + ... + fun:g_type_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_type_add_interface_static + Memcheck:Leak + ... + fun:g_type_add_interface_static +} + +{ + initialization of interfaces + Memcheck:Leak + ... + fun:type_iface_vtable_base_init_Wm + fun:g_type_class_ref +} + +{ + g_param_spec_pool_new in class_init + Memcheck:Leak + ... + fun:g_param_spec_pool_new + ... + fun:g_type_class_ref +} + +{ + class creation + Memcheck:Leak + ... + fun:g_malloc0 + fun:g_type_class_ref +} + +# ============================= GIO =================================== + +{ + GIO init + Memcheck:Leak + ... + fun:g_inet_address_class_intern_init +} + +{ + g_simple_async_result class + Memcheck:Leak + ... + fun:g_type_class_ref + ... + fun:g_simple_async_result_new +} + +# ============================= dbus-glib ============================= + +{ + registering marshallers is permanent + Memcheck:Leak + ... + fun:dbus_g_object_register_marshaller_array + fun:dbus_g_object_register_marshaller +} + +{ + dbus-glib specialized GTypes are permanent + Memcheck:Leak + ... + fun:dbus_g_type_specialized_init +} + +{ + dbus-glib specialized GTypes are permanent (inlined) + Memcheck:Leak + ... + fun:register_container + fun:specialized_init + fun:g_once_impl +} + +{ + dbus-glib specialized GTypes are permanent (inlined) + Memcheck:Leak + ... + fun:g_hash_table_new_full + fun:specialized_init + fun:g_once_impl +} + +{ + error registrations are for life, not just for Christmas + Memcheck:Leak + ... + fun:dbus_g_error_domain_register +} + +{ + DBusGProxy class initialization + Memcheck:Leak + ... + fun:g_type_class_ref + ... + fun:dbus_g_proxy_new +} + +{ + _dbus_g_type_specialized_builtins_init + Memcheck:Leak + ... + fun:_dbus_g_type_specialized_builtins_init +} + +{ + _dbus_g_value_types_init + Memcheck:Leak + ... + fun:_dbus_g_value_types_init +} + +{ + specialized maps are permanent + Memcheck:Leak + ... + fun:lookup_or_register_specialized + fun:dbus_g_type_get_map +} + +{ + specialized collections are permanent + Memcheck:Leak + ... + fun:lookup_or_register_specialized + fun:dbus_g_type_get_collection +} + +{ + specialized structs are permanent + Memcheck:Leak + ... + fun:lookup_or_register_specialized + fun:dbus_g_type_get_struct +} + +{ + specialized structs are permanent (varargs) + Memcheck:Leak + ... + fun:lookup_or_register_specialized + fun:dbus_g_type_get_structv +} + +{ + specialized structs are permanent (inlined) + Memcheck:Leak + ... + fun:lookup_or_register_specialized + fun:dbus_g_value_tuple_parse_variant +} |