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-io-module-default-singleton-weak-ref
429 fun:_g_io_module_get_default
433 g-get-language-names-malloc
435 match-leak-kinds:reachable
438 fun:g_get_language_names
442 g-get-language-names-calloc
444 match-leak-kinds:reachable
447 fun:g_get_language_names
451 g-get-language_names-with-category-malloc
453 match-leak-kinds:reachable
456 fun:g_get_language_names_with_category
460 g-get-language_names-with-category-calloc
462 match-leak-kinds:reachable
465 fun:g_get_language_names_with_category
469 g-get-language_names-with-category-realloc
471 match-leak-kinds:reachable
474 fun:g_get_language_names_with_category
480 match-leak-kinds:reachable
483 fun:g_static_mutex_get_mutex_impl
489 match-leak-kinds:possible,reachable
492 fun:g_system_thread_new
496 g-task-thread-pool-init
498 match-leak-kinds:possible,reachable,definite
503 fun:g_task_thread_pool_init
507 g-io-module-default-proxy-resolver-gnome
509 match-leak-kinds:reachable
512 fun:g_proxy_resolver_gnome_init
514 fun:_g_io_module_get_default
517 # One-time getaddrinfo() configuration loading
519 g-threaded-resolver-getaddrinfo-config
521 match-leak-kinds:reachable,definite
524 fun:__resolv_conf_allocate
527 fun:do_lookup_by_name
530 # memcheck checks that the third argument to ioctl() is a valid pointer, but
531 # some ioctls use that argument as an integer
533 ioctl-with-non-pointer-param
537 fun:btrfs_reflink_with_progress
542 drd:ConflictingAccess
546 g-private-get-helgrind
554 drd:ConflictingAccess
558 g-private-set-helgrind
564 g-type-construct-free
565 drd:ConflictingAccess
566 fun:g_type_free_instance
569 g-type-construct-free-helgrind
571 fun:g_type_free_instance
576 drd:ConflictingAccess
580 g-variant-unref-helgrind
587 drd:ConflictingAccess
588 fun:_g_main_create_unix_signal_watch
591 g-unix-signals-dispatch
592 drd:ConflictingAccess
594 fun:dispatch_unix_signals*
597 g-unix-signals-dispatch-helgrind
600 fun:dispatch_unix_signals*
604 drd:ConflictingAccess
605 fun:g_unix_signal_watch*
608 g-unix-signals-other-helgrind
610 fun:g_unix_signal_watch*
613 g-unix-signals-handler
614 drd:ConflictingAccess
615 fun:g_unix_signal_handler*
618 g-unix-signals-handler-helgrind
620 fun:g_unix_signal_handler*
623 g-unix-signals-worker
624 drd:ConflictingAccess
628 g-unix-signals-worker-helgrind
635 drd:ConflictingAccess
637 fun:g_wakeup_acknowledge
642 drd:ConflictingAccess
643 fun:g_type_fundamental
646 g-type-fundamental-helgrind
648 fun:g_type_fundamental
651 g-type-class-peek-static
652 drd:ConflictingAccess
653 fun:g_type_class_peek_static
656 g-type-class-peek-static-helgrind
658 fun:g_type_class_peek_static
662 drd:ConflictingAccess
674 g-inet-address-get-type
675 drd:ConflictingAccess
676 fun:g_inet_address_get_type
679 g-inet-address-get-type-helgrind
681 fun:g_inet_address_get_type
684 # From: https://github.com/fredericgermain/valgrind/blob/master/glibc-2.X-drd.supp
687 drd:ConflictingAccess
692 drd:ConflictingAccess
697 drd:ConflictingAccess
701 # GSources do an opportunistic ref count check
703 g-source-set-ready-time
704 drd:ConflictingAccess
705 fun:g_source_set_ready_time
708 g-source-set-ready-time-helgrind
710 fun:g_source_set_ready_time
716 fun:g_source_iter_next
718 fun:g_main_context_iterate
722 g-object-instance-private
723 drd:ConflictingAccess
724 fun:*_get_instance_private
727 g-object-instance-private-helgrind
729 fun:*_get_instance_private
732 # GLib legitimately calls pthread_cond_signal without a mutex held
734 g-task-thread-complete
738 fun:g_task_thread_complete
741 g-task-thread-complete
745 fun:g_task_thread_complete
748 # False positive, but I can't explain how (FIXME)
757 # Real race, but is_cancelled() is an opportunistic function anyway
759 g-cancellable-is-cancelled
761 fun:g_cancellable_is_cancelled
770 fun:g_main_context_unref
777 fun:g_source_*_unlocked
782 fun:g_source_*_internal
787 g_object_real_dispose
789 fun:g_object_real_dispose
797 fun:g_object_new_valist
800 # g_set_user_dirs() deliberately leaks the previous cached g_get_user_*() values.
801 # These will not all be reachable on exit.
805 match-leak-kinds:definite,reachable
808 fun:set_str_if_different
812 # g_set_user_dirs() deliberately leaks the previous cached g_get_user_*() values.
813 # These will not all be reachable on exit.
817 match-leak-kinds:definite,reachable
820 fun:set_strv_if_different
824 # g_get_system_data_dirs() caches a one-time allocation
826 g_get_system_data_dirs
828 match-leak-kinds:reachable
831 fun:g_build_system_data_dirs
832 fun:g_get_system_data_dirs
835 # g_get_user_data_dir() caches a one-time allocation
839 match-leak-kinds:reachable
842 fun:g_build_user_data_dir
843 fun:g_get_user_data_dir
846 # gdesktopappinfo.c caches a one-time allocation global table of @desktop_file_dirs.
848 desktop_file_dirs_malloc
850 match-leak-kinds:reachable
853 fun:desktop_file_dirs_lock
856 # gdesktopappinfo.c caches a one-time allocation global table of @desktop_file_dirs.
858 desktop_file_dirs_realloc
860 match-leak-kinds:reachable
863 fun:desktop_file_dirs_lock
866 # gdesktopappinfo.c caches a one-time allocation global table of @desktop_file_dirs.
868 desktop_file_dir_unindexed_setup_search
870 match-leak-kinds:reachable
873 fun:desktop_file_dir_unindexed_setup_search
874 fun:desktop_file_dir_unindexed_setup_search
877 # g_io_extension_point_register() caches a one-time allocation global table of @extension_points.
879 g_io_extension_point_register
881 match-leak-kinds:reachable
884 fun:g_io_extension_point_register
887 # g_strerror() caches a one-time allocation global table of @errors.
891 match-leak-kinds:reachable
898 # g_socket_connection_factory_register_type() caches a one-time allocation global table of @connection_types.
900 g_socket_connection_factory_register_type
902 match-leak-kinds:reachable
905 fun:g_socket_connection_factory_register_type
908 # g_dbus_error_quark() never unregisters itself as a GDBusError domain, as it’s always available
912 match-leak-kinds:reachable
915 fun:g_dbus_error_register_error_domain
916 fun:g_dbus_error_quark
919 # g_win32_registry_get_os_dirs_w*() caches an array of strings that is allocated only once.
921 g_win32_registry_get_os_dirs
923 match-leak-kinds:reachable,definite
926 fun:g_win32_registry_get_os_dirs*
929 # Thread-private data allocated once per thread
933 match-leak-kinds:definite,reachable
936 fun:g_private_set_alloc0
939 g_private_set_alloc0-calloc
941 match-leak-kinds:definite,reachable
944 fun:g_private_set_alloc0
947 # Keys for thread-private data
951 match-leak-kinds:reachable
953 fun:g_private_impl_new
956 # Thread-private GMainContext stack
958 g_main_context_push_thread_default
960 match-leak-kinds:definite,reachable
964 fun:g_main_context_push_thread_default
967 # One-time allocations for #GFileInfo attribute cache
969 g_file_info_attribute_cache
971 match-leak-kinds:reachable
974 fun:ensure_attribute_hash
979 g_file_info_attribute_cache2
981 match-leak-kinds:reachable
984 fun:ensure_attribute_hash
989 g_file_info_attribute_cache3
991 match-leak-kinds:reachable
999 g_file_info_attribute_cache4
1001 match-leak-kinds:reachable
1004 fun:lookup_namespace
1013 match-leak-kinds:reachable
1020 g_get_charset_calloc
1022 match-leak-kinds:reachable
1028 # Global unused thread queue
1030 g_thread_pool_unused_thread_queue
1032 match-leak-kinds:reachable
1035 fun:g_async_queue_new_full
1037 fun:g_thread_pool_new
1040 # One-time program name storage
1044 match-leak-kinds:reachable
1050 # Error domains hash
1054 match-leak-kinds: reachable
1057 fun:g_hash_table_new_full
1061 # Error domain static registration
1063 g_error_domain_register_static
1065 match-leak-kinds: reachable
1068 fun:g_hash_table_insert
1069 fun:error_domain_register
1070 fun:g_error_domain_register_static
1076 match-leak-kinds:reachable
1079 fun:g_hash_table_insert