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
25 match-leak-kinds:reachable
34 match-leak-kinds:reachable
41 g-tls-backend-gnutls-init
43 match-leak-kinds:reachable
45 fun:g_tls_backend_gnutls_init
51 match-leak-kinds:reachable
54 fun:create_tokens_inlock
55 fun:initialize_module_inlock_reentrant
58 # One-time allocation from libc for getpwnam() results
62 match-leak-kinds:reachable
66 fun:g_local_vfs_parse_name
72 match-leak-kinds:reachable
81 match-leak-kinds:reachable
90 match-leak-kinds:reachable
99 match-leak-kinds:reachable
102 fun:gobject_init_ctor
108 match-leak-kinds:possible,reachable
111 fun:gobject_init_ctor
115 g-type-register-dynamic
117 match-leak-kinds:reachable
120 fun:g_type_register_dynamic
124 g-type-register-static
126 match-leak-kinds:possible,reachable
129 fun:g_type_register_static
133 g-type-register-static-realloc
135 match-leak-kinds:possible,reachable
138 fun:g_type_register_static
142 g-type-register-static-calloc
144 match-leak-kinds:possible,reachable
147 fun:g_type_register_static
151 g-type-register-fundamental
153 match-leak-kinds:possible,reachable
156 fun:g_type_register_fundamental
160 g-type-register-fundamental-calloc
162 match-leak-kinds:possible,reachable
165 fun:g_type_register_fundamental
169 g-type-add-interface-dynamic
171 match-leak-kinds:reachable
174 fun:g_type_add_interface_dynamic
178 g-type-add-interface-static
180 match-leak-kinds:reachable
183 fun:g_type_add_interface_static
187 g-type-add-interface-static-realloc
189 match-leak-kinds:reachable
192 fun:g_type_add_interface_static
196 g-type-add-interface-static-calloc
198 match-leak-kinds:reachable
201 fun:g_type_add_interface_static
207 match-leak-kinds:reachable
210 fun:g_rand_new_with_seed_array
219 match-leak-kinds:reachable
222 fun:g_rand_new_with_seed_array
224 fun:get_global_random
230 match-leak-kinds:reachable
239 match-leak-kinds:reachable
241 fun:g_hash_table_resize
247 g-type-interface-init
249 match-leak-kinds:reachable
252 fun:type_iface_vtable_base_init_Wm
256 g-type-class-init-calloc
258 match-leak-kinds:reachable
261 fun:type_class_init_Wm
267 match-leak-kinds:reachable
268 fun:g_type_create_instance
270 fun:type_class_init_Wm
274 g-object-do-class-init-signals
276 match-leak-kinds:reachable
280 fun:type_class_init_Wm
286 match-leak-kinds:reachable
289 fun:type_iface_add_prerequisite_W
293 g-type-add-interface-check
295 match-leak-kinds:reachable
298 fun:g_type_add_interface_check
300 fun:type_class_init_Wm
304 g-type-add-interface-check-realloc
306 match-leak-kinds:reachable
309 fun:g_type_add_interface_check
311 fun:type_class_init_Wm
315 g-object-class-install-property
317 match-leak-kinds:reachable
320 fun:validate_and_install_class_property
322 fun:type_class_init_Wm
326 g-param-spec-pool-new
328 match-leak-kinds:reachable
331 fun:g_param_spec_pool_new
333 fun:type_class_init_Wm
336 # weak_locations_lock in gobject.c
340 match-leak-kinds:reachable
343 fun:g_rw_lock_get_impl
349 g-object-base-class-init-construct-pproperties
351 match-leak-kinds:reachable
355 fun:g_object_base_class_init
356 fun:type_class_init_Wm
364 fun:type_class_init_Wm
370 g-io-module-default-singleton-malloc
372 match-leak-kinds:reachable
375 fun:g_type_create_instance
377 fun:_g_io_module_get_default
381 g-io-module-default-singleton-calloc
383 match-leak-kinds:reachable
386 fun:g_type_create_instance
388 fun:_g_io_module_get_default
391 # This one seems to show up sometimes with g_type_create_instance() at the top
392 # of the stack, as well.
394 g-io-module-default-singleton
396 match-leak-kinds:reachable
397 fun:g_type_create_instance
399 fun:_g_io_module_get_default
403 g-io-module-default-singleton-module
405 match-leak-kinds:reachable
410 fun:_g_io_module_get_default
414 g-io-module-default-singleton-name
416 match-leak-kinds:reachable
421 fun:_g_io_module_get_default*
425 g-get-language-names-malloc
427 match-leak-kinds:reachable
430 fun:g_get_language_names
434 g-get-language-names-calloc
436 match-leak-kinds:reachable
439 fun:g_get_language_names
443 g-get-language_names-with-category-malloc
445 match-leak-kinds:reachable
448 fun:g_get_language_names_with_category
452 g-get-language_names-with-category-calloc
454 match-leak-kinds:reachable
457 fun:g_get_language_names_with_category
461 g-get-language_names-with-category-realloc
463 match-leak-kinds:reachable
466 fun:g_get_language_names_with_category
472 match-leak-kinds:reachable
475 fun:g_static_mutex_get_mutex_impl
481 match-leak-kinds:possible,reachable
484 fun:g_system_thread_new
488 g-task-thread-pool-init
490 match-leak-kinds:possible,reachable,definite
495 fun:g_task_thread_pool_init
499 g-io-module-default-proxy-resolver-gnome
501 match-leak-kinds:reachable
504 fun:g_proxy_resolver_gnome_init
506 fun:_g_io_module_get_default
509 # One-time getaddrinfo() configuration loading
511 g-threaded-resolver-getaddrinfo-config
513 match-leak-kinds:reachable,definite
516 fun:__resolv_conf_allocate
519 fun:do_lookup_by_name
522 # memcheck checks that the third argument to ioctl() is a valid pointer, but
523 # some ioctls use that argument as an integer
525 ioctl-with-non-pointer-param
529 fun:btrfs_reflink_with_progress
534 drd:ConflictingAccess
538 g-private-get-helgrind
546 drd:ConflictingAccess
550 g-private-set-helgrind
556 g-type-construct-free
557 drd:ConflictingAccess
558 fun:g_type_free_instance
561 g-type-construct-free-helgrind
563 fun:g_type_free_instance
568 drd:ConflictingAccess
572 g-variant-unref-helgrind
579 drd:ConflictingAccess
580 fun:_g_main_create_unix_signal_watch
583 g-unix-signals-dispatch
584 drd:ConflictingAccess
586 fun:dispatch_unix_signals*
589 g-unix-signals-dispatch-helgrind
592 fun:dispatch_unix_signals*
596 drd:ConflictingAccess
597 fun:g_unix_signal_watch*
600 g-unix-signals-other-helgrind
602 fun:g_unix_signal_watch*
605 g-unix-signals-handler
606 drd:ConflictingAccess
607 fun:g_unix_signal_handler*
610 g-unix-signals-handler-helgrind
612 fun:g_unix_signal_handler*
615 g-unix-signals-worker
616 drd:ConflictingAccess
620 g-unix-signals-worker-helgrind
627 drd:ConflictingAccess
629 fun:g_wakeup_acknowledge
634 drd:ConflictingAccess
635 fun:g_type_fundamental
638 g-type-fundamental-helgrind
640 fun:g_type_fundamental
643 g-type-class-peek-static
644 drd:ConflictingAccess
645 fun:g_type_class_peek_static
648 g-type-class-peek-static-helgrind
650 fun:g_type_class_peek_static
654 drd:ConflictingAccess
666 g-inet-address-get-type
667 drd:ConflictingAccess
668 fun:g_inet_address_get_type
671 g-inet-address-get-type-helgrind
673 fun:g_inet_address_get_type
676 # From: https://github.com/fredericgermain/valgrind/blob/master/glibc-2.X-drd.supp
679 drd:ConflictingAccess
684 drd:ConflictingAccess
689 drd:ConflictingAccess
693 # GSources do an opportunistic ref count check
695 g-source-set-ready-time
696 drd:ConflictingAccess
697 fun:g_source_set_ready_time
700 g-source-set-ready-time-helgrind
702 fun:g_source_set_ready_time
708 fun:g_source_iter_next
710 fun:g_main_context_iterate
714 g-object-instance-private
715 drd:ConflictingAccess
716 fun:*_get_instance_private
719 g-object-instance-private-helgrind
721 fun:*_get_instance_private
724 # GLib legitimately calls pthread_cond_signal without a mutex held
726 g-task-thread-complete
730 fun:g_task_thread_complete
733 g-task-thread-complete
737 fun:g_task_thread_complete
740 # False positive, but I can't explain how (FIXME)
749 # Real race, but is_cancelled() is an opportunistic function anyway
751 g-cancellable-is-cancelled
753 fun:g_cancellable_is_cancelled
762 fun:g_main_context_unref
769 fun:g_source_*_unlocked
774 fun:g_source_*_internal
779 g_object_real_dispose
781 fun:g_object_real_dispose
789 fun:g_object_new_valist
792 # g_set_user_dirs() deliberately leaks the previous cached g_get_user_*() values.
793 # These will not all be reachable on exit.
797 match-leak-kinds:definite,reachable
800 fun:set_str_if_different
804 # g_set_user_dirs() deliberately leaks the previous cached g_get_user_*() values.
805 # These will not all be reachable on exit.
809 match-leak-kinds:definite,reachable
812 fun:set_strv_if_different
816 # g_get_system_data_dirs() caches a one-time allocation
818 g_get_system_data_dirs
820 match-leak-kinds:reachable
823 fun:g_build_system_data_dirs
824 fun:g_get_system_data_dirs
827 # g_get_user_data_dir() caches a one-time allocation
831 match-leak-kinds:reachable
834 fun:g_build_user_data_dir
835 fun:g_get_user_data_dir
838 # gdesktopappinfo.c caches a one-time allocation global table of @desktop_file_dirs.
840 desktop_file_dirs_malloc
842 match-leak-kinds:reachable
845 fun:desktop_file_dirs_lock
848 # gdesktopappinfo.c caches a one-time allocation global table of @desktop_file_dirs.
850 desktop_file_dirs_realloc
852 match-leak-kinds:reachable
855 fun:desktop_file_dirs_lock
858 # gdesktopappinfo.c caches a one-time allocation global table of @desktop_file_dirs.
860 desktop_file_dir_unindexed_setup_search
862 match-leak-kinds:reachable
865 fun:desktop_file_dir_unindexed_setup_search
866 fun:desktop_file_dir_unindexed_setup_search
869 # g_io_extension_point_register() caches a one-time allocation global table of @extension_points.
871 g_io_extension_point_register
873 match-leak-kinds:reachable
876 fun:g_io_extension_point_register
879 # g_strerror() caches a one-time allocation global table of @errors.
883 match-leak-kinds:reachable
890 # g_socket_connection_factory_register_type() caches a one-time allocation global table of @connection_types.
892 g_socket_connection_factory_register_type
894 match-leak-kinds:reachable
897 fun:g_socket_connection_factory_register_type
900 # g_dbus_error_quark() never unregisters itself as a GDBusError domain, as it’s always available
904 match-leak-kinds:reachable
907 fun:g_dbus_error_register_error_domain
908 fun:g_dbus_error_quark
911 # g_win32_registry_get_os_dirs_w*() caches an array of strings that is allocated only once.
913 g_win32_registry_get_os_dirs
915 match-leak-kinds:reachable,definite
918 fun:g_win32_registry_get_os_dirs*
921 # Thread-private data allocated once per thread
925 match-leak-kinds:definite,reachable
928 fun:g_private_set_alloc0
931 g_private_set_alloc0-calloc
933 match-leak-kinds:definite,reachable
936 fun:g_private_set_alloc0
939 # Keys for thread-private data
943 match-leak-kinds:reachable
945 fun:g_private_impl_new
948 # Thread-private GMainContext stack
950 g_main_context_push_thread_default
952 match-leak-kinds:definite,reachable
956 fun:g_main_context_push_thread_default
959 # One-time allocations for #GFileInfo attribute cache
961 g_file_info_attribute_cache
963 match-leak-kinds:reachable
966 fun:ensure_attribute_hash
971 g_file_info_attribute_cache2
973 match-leak-kinds:reachable
976 fun:ensure_attribute_hash
981 g_file_info_attribute_cache3
983 match-leak-kinds:reachable
991 g_file_info_attribute_cache4
993 match-leak-kinds:reachable
1005 match-leak-kinds:reachable
1012 g_get_charset_calloc
1014 match-leak-kinds:reachable
1020 # Global unused thread queue
1022 g_thread_pool_unused_thread_queue
1024 match-leak-kinds:reachable
1027 fun:g_async_queue_new_full
1029 fun:g_thread_pool_new
1032 # One-time program name storage
1036 match-leak-kinds:reachable