Skip to content

Commit

Permalink
build: Add a Valgrind suppressions file
Browse files Browse the repository at this point in the history
This can be used with --suppressions=janus.supp with Valgrind to
suppress common GLib initialisation leaks, plus a couple of
Janus-specific leaks.
  • Loading branch information
Philip Withnall authored and Jack Leigh committed Sep 19, 2014
1 parent ac97afe commit a82a2dd
Showing 1 changed file with 242 additions and 0 deletions.
242 changes: 242 additions & 0 deletions janus.supp
Original file line number Diff line number Diff line change
@@ -0,0 +1,242 @@
{
gnutls-init-calloc
Memcheck:Leak
fun:calloc
...
fun:gtls_gnutls_init
}

{
gnutls-init-realloc
Memcheck:Leak
fun:realloc
...
fun:gtls_gnutls_init
}

{
g-tls-backend-gnutls-init
Memcheck:Leak
fun:g_once_impl
fun:g_tls_backend_gnutls_init
}

{
p11-tokens-init
Memcheck:Leak
fun:calloc
...
fun:create_tokens_inlock
fun:initialize_module_inlock_reentrant
}

{
gobject-init-malloc
Memcheck:Leak
fun:malloc
...
fun:gobject_init_ctor
}

{
gobject-init-realloc
Memcheck:Leak
fun:realloc
...
fun:gobject_init_ctor
}

{
gobject-init-calloc
Memcheck:Leak
fun:calloc
...
fun:gobject_init_ctor
}

{
g-type-register-dynamic
Memcheck:Leak
fun:malloc
...
fun:g_type_register_dynamic
}

{
g-type-register-static
Memcheck:Leak
fun:malloc
...
fun:g_type_register_static
}

{
g-type-register-static-realloc
Memcheck:Leak
fun:realloc
...
fun:g_type_register_static
}

{
g-type-register-static-calloc
Memcheck:Leak
fun:calloc
...
fun:g_type_register_static
}

{
g-type-add-interface-dynamic
Memcheck:Leak
fun:malloc
...
fun:g_type_add_interface_dynamic
}

{
g-type-add-interface-static
Memcheck:Leak
fun:malloc
...
fun:g_type_add_interface_static
}

{
g-test-rand-init
Memcheck:Leak
fun:calloc
...
fun:g_rand_new_with_seed_array
fun:test_run_seed
...
fun:g_test_run
}

{
g-test-rand-init2
Memcheck:Leak
fun:calloc
...
fun:g_rand_new_with_seed_array
...
fun:get_global_random
...
fun:g_test_init
}

{
g-quark-table-new
Memcheck:Leak
fun:g_hash_table_new
...
fun:quark_new
}

{
g-quark-table-resize
Memcheck:Leak
fun:g_hash_table_resize
...
fun:quark_new
}

{
g-type-interface-init
Memcheck:Leak
fun:malloc
...
fun:type_iface_vtable_base_init_Wm
}

{
g-type-class-init
Memcheck:Leak
fun:calloc
...
fun:type_class_init_Wm
}

{
g-io-module-default-singleton-malloc
Memcheck:Leak
fun:malloc
...
fun:g_type_create_instance
...
fun:_g_io_module_get_default
}

{
g-io-module-default-singleton-module
Memcheck:Leak
fun:calloc
...
fun:g_module_open
...
fun:_g_io_module_get_default
}

{
g-get-language-names
Memcheck:Leak
fun:malloc
...
fun:g_get_language_names
}

{
g-static-mutex
Memcheck:Leak
fun:malloc
...
fun:g_static_mutex_get_mutex_impl
}

{
g-system-thread-init
Memcheck:Leak
fun:calloc
...
fun:g_system_thread_new
}

{
g-io-module-default-proxy-resolver-gnome
Memcheck:Leak
fun:calloc
...
fun:g_proxy_resolver_gnome_init
...
fun:_g_io_module_get_default
}

{
gnutls-pkcs11-init
Memcheck:Leak
fun:calloc
...
fun:p11_kit_initialize_registered
fun:gnutls_pkcs11_init
}

# Actually a leak, but dlclose() is normally commented out so that debug
# symbols are available for the plugins.
{
janus-plugins
Memcheck:Leak
fun:malloc
fun:dl_open_worker
...
fun:main
}

# Probably a leak, but hard to trace. FIXME.
{
janus-sdp
Memcheck:Leak
fun:calloc
fun:su_home_new
fun:janus_sdp_init
fun:main
}

0 comments on commit a82a2dd

Please sign in to comment.