1 # GLib Valgrind suppressions file
3 # This provides a list of suppressions for all of GLib (including GIO), for all
4 # Valgrind tools (memcheck, drd, helgrind, etc.) for the false positives and
5 # deliberate one-time leaks which GLib causes to be reported when running under
8 # When running an application which links to GLib under Valgrind, you can pass
9 # this suppression file to Valgrind using --suppressions=/path/to/glib-2.0.supp.
11 # http://valgrind.org/docs/manual/manual-core.html#manual-core.suppress
13 # Note that there is currently no way for Valgrind to load this automatically
14 # (https://bugs.kde.org/show_bug.cgi?id=160905), so the best GLib can currently
15 # do is to install this file as part of its development package.
17 # This file should be updated if GLib introduces a new deliberate one-time leak,
18 # or another false race positive in Valgrind: please file bugs at:
20 # https://gitlab.gnome.org/GNOME/glib/issues/new
39 g-tls-backend-gnutls-init
42 fun:g_tls_backend_gnutls_init
50 fun:create_tokens_inlock
51 fun:initialize_module_inlock_reentrant
54 # One-time allocation from libc for getpwnam() results
61 fun:g_local_vfs_parse_name
89 g-type-register-dynamic
93 fun:g_type_register_dynamic
97 g-type-register-static
101 fun:g_type_register_static
105 g-type-register-static-realloc
109 fun:g_type_register_static
113 g-type-register-static-calloc
117 fun:g_type_register_static
121 g-type-add-interface-dynamic
125 fun:g_type_add_interface_dynamic
129 g-type-add-interface-static
133 fun:g_type_add_interface_static
141 fun:g_rand_new_with_seed_array
152 fun:g_rand_new_with_seed_array
154 fun:get_global_random
170 fun:g_hash_table_resize
176 g-type-interface-init
180 fun:type_iface_vtable_base_init_Wm
188 fun:type_class_init_Wm
192 g-io-module-default-singleton-malloc
196 fun:g_type_create_instance
198 fun:_g_io_module_get_default
202 g-io-module-default-singleton-module
208 fun:_g_io_module_get_default
216 fun:g_get_language_names
224 fun:g_static_mutex_get_mutex_impl
232 fun:g_system_thread_new
236 g-io-module-default-proxy-resolver-gnome
240 fun:g_proxy_resolver_gnome_init
242 fun:_g_io_module_get_default
245 # One-time getaddrinfo() configuration loading
247 g-threaded-resolver-getaddrinfo-config
251 fun:__resolv_conf_allocate
254 fun:do_lookup_by_name
257 # memcheck checks that the third argument to ioctl() is a valid pointer, but
258 # some ioctls use that argument as an integer
260 ioctl-with-non-pointer-param
264 fun:btrfs_reflink_with_progress
269 drd:ConflictingAccess
273 g-private-get-helgrind
281 drd:ConflictingAccess
285 g-private-set-helgrind
291 g-type-construct-free
292 drd:ConflictingAccess
293 fun:g_type_free_instance
296 g-type-construct-free-helgrind
298 fun:g_type_free_instance
303 drd:ConflictingAccess
307 g-variant-unref-helgrind
314 drd:ConflictingAccess
315 fun:_g_main_create_unix_signal_watch
318 g-unix-signals-dispatch
319 drd:ConflictingAccess
321 fun:dispatch_unix_signals*
324 g-unix-signals-dispatch-helgrind
327 fun:dispatch_unix_signals*
331 drd:ConflictingAccess
332 fun:g_unix_signal_watch*
335 g-unix-signals-other-helgrind
337 fun:g_unix_signal_watch*
340 g-unix-signals-handler
341 drd:ConflictingAccess
342 fun:g_unix_signal_handler*
345 g-unix-signals-handler-helgrind
347 fun:g_unix_signal_handler*
350 g-unix-signals-worker
351 drd:ConflictingAccess
355 g-unix-signals-worker-helgrind
362 drd:ConflictingAccess
364 fun:g_wakeup_acknowledge
369 drd:ConflictingAccess
370 fun:g_type_fundamental
373 g-type-fundamental-helgrind
375 fun:g_type_fundamental
378 g-type-class-peek-static
379 drd:ConflictingAccess
380 fun:g_type_class_peek_static
383 g-type-class-peek-static-helgrind
385 fun:g_type_class_peek_static
389 drd:ConflictingAccess
401 g-inet-address-get-type
402 drd:ConflictingAccess
403 fun:g_inet_address_get_type
406 g-inet-address-get-type-helgrind
408 fun:g_inet_address_get_type
411 # From: https://github.com/fredericgermain/valgrind/blob/master/glibc-2.X-drd.supp
414 drd:ConflictingAccess
419 drd:ConflictingAccess
424 drd:ConflictingAccess
428 # GSources do an opportunistic ref count check
430 g-source-set-ready-time
431 drd:ConflictingAccess
432 fun:g_source_set_ready_time
435 g-source-set-ready-time-helgrind
437 fun:g_source_set_ready_time
443 fun:g_source_iter_next
445 fun:g_main_context_iterate
449 g-object-instance-private
450 drd:ConflictingAccess
451 fun:*_get_instance_private
454 g-object-instance-private-helgrind
456 fun:*_get_instance_private
459 # GLib legitimately calls pthread_cond_signal without a mutex held
461 g-task-thread-complete
465 fun:g_task_thread_complete
468 g-task-thread-complete
472 fun:g_task_thread_complete
475 # False positive, but I can't explain how (FIXME)
484 # Real race, but is_cancelled() is an opportunistic function anyway
486 g-cancellable-is-cancelled
488 fun:g_cancellable_is_cancelled
497 fun:g_main_context_unref
504 fun:g_source_*_unlocked
509 fun:g_source_*_internal
514 g_object_real_dispose
516 fun:g_object_real_dispose
524 fun:g_object_new_valist