valgrind: add valgrind suppression for Fedora 22
[NetworkManager.git] / valgrind.suppressions
1 # IMPORTANT: these suppressions strongly depend on the used library version.
2 # They probably don't work out-of-the-box on anything but Fedora, where they
3 # are mainly tested.
4 #
5 # Make sure to install debug information, otherwise the suppression trace might
6 # not match. On Fedora, try 'debuginfo-install dbus-glib glib libnl3'.
7 {
8   NSS_NoDB_Init
9   Memcheck:Leak
10   ...
11   fun:NSS_NoDB_Init
12   ...
13 }
14 {
15   g_type_init_with_debug_flags
16   Memcheck:Leak
17   ...
18   fun:g_type_init_with_debug_flags
19   ...
20 }
21 {
22   g_type_register_static
23   Memcheck:Leak
24   ...
25   fun:g_type_register_static
26   ...
27 }
28 {
29   g_param_spec_boxed
30   Memcheck:Leak
31   ...
32   fun:g_param_spec_boxed
33   ...
34 }
35 {
36   g_type_add_interface_static
37   Memcheck:Leak
38   ...
39   fun:g_type_add_interface_static
40   ...
41 }
42 {
43   g_signal_type_cclosure_new
44   Memcheck:Leak
45   ...
46   fun:g_malloc0
47   fun:g_closure_new_simple
48   fun:g_signal_type_cclosure_new
49   fun:g_signal_new
50   ...
51 }
52 {
53    dbus_g_value_types_init
54    Memcheck:Leak
55    fun:realloc
56    fun:g_realloc
57    fun:g_type_set_qdata
58    fun:_dbus_g_value_types_init
59    fun:dbus_g_bus_get
60    ...
61 }
62 {
63    type_iface_vtable_base_init_Wm
64    Memcheck:Leak
65    fun:malloc
66    fun:g_malloc
67    fun:g_memdup
68    fun:type_iface_vtable_base_init_Wm
69    fun:g_type_class_ref
70    ...
71 }
72 {
73    g_type_create_instance
74    Memcheck:Leak
75    fun:malloc
76    fun:g_malloc
77    fun:g_slice_alloc
78    fun:g_slice_alloc0
79    fun:g_type_create_instance
80    fun:g_object_constructor
81    ...
82 }
83 {
84    g_signal_new_class_handler
85    Memcheck:Leak
86    ...
87    fun:g_closure_new_simple
88    fun:g_cclosure_new
89    fun:g_signal_new_class_handler
90    ...
91 }
92 {
93    _dl_init_g_type_register_fundamental
94    Memcheck:Leak
95    ...
96    fun:g_type_register_fundamental
97    ...
98    fun:_dl_init
99    obj:/*/ld-*.so
100 }
101 {
102    _dl_init_g_malloc0
103    Memcheck:Leak
104    fun:calloc
105    fun:g_malloc0
106    ...
107    fun:_dl_init
108    obj:/*/ld-*.so
109 }
110 {
111    # added on Fedora 22
112    _dl_expand_dynamic_string_token
113    Memcheck:Cond
114    fun:index
115    fun:expand_dynamic_string_token
116    ...
117    fun:dl_main
118    fun:_dl_sysdep_start
119    fun:_dl_start_final
120    fun:_dl_start
121    obj:/*/ld-*.so
122    ...
123 }
124 {
125     all_gobject_init_ctor
126     Memcheck:Leak
127     ...
128     fun:gobject_init_ctor
129     ...
130 }
131
132
133 # The following suppressions were needed on fc20.armv7hl
134 {
135    _fun_malloc
136    Memcheck:Leak
137    match-leak-kinds: possible
138    fun:malloc
139 }
140 {
141    _fun_realloc
142    Memcheck:Leak
143    match-leak-kinds: possible
144    fun:realloc
145 }
146 {
147    _fun_calloc
148    Memcheck:Leak
149    match-leak-kinds: possible
150    fun:calloc
151 }
152
153
154 {
155    _glib_sigaction
156    Memcheck:Param
157    rt_sigaction(act->sa_flags)
158    fun:__libc_sigaction
159    fun:unref_unix_signal_handler_unlocked
160    fun:g_child_watch_finalize
161    fun:g_source_unref_internal
162    fun:g_main_context_dispatch
163    ...
164    fun:g_main_loop_run
165    ...
166 }
167
168 {
169    # FIXME: dunny why this is needed. Clean up later.
170    _dispatcher_test
171    Memcheck:Leak
172    match-leak-kinds: definite
173    fun:malloc
174    fun:g_malloc
175    fun:g_slice_alloc
176    fun:g_variant_new_from_bytes
177    fun:g_variant_new_from_trusted
178    fun:parse_dhcp
179    fun:get_dispatcher_file
180    ...
181    fun:g_test_run_suite_internal
182    fun:g_test_run_suite_internal
183    fun:g_test_run_suite
184 }
185
186 {
187    _gdbus_1
188    Memcheck:Leak
189    match-leak-kinds: definite
190    fun:malloc
191    fun:g_malloc
192    fun:g_slice_alloc
193    fun:g_slice_alloc0
194    fun:get_dispatch
195    fun:g_main_context_dispatch
196    ...
197    fun:g_main_loop_run
198    fun:gdbus_shared_thread_func
199    fun:g_thread_proxy
200    fun:start_thread
201    fun:clone
202 }
203
204 {
205    _gdbus_2
206    Memcheck:Leak
207    match-leak-kinds: definite
208    fun:malloc
209    fun:g_malloc
210    fun:g_slice_alloc
211    fun:g_slice_alloc0
212    fun:g_main_context_push_thread_default
213    fun:gdbus_shared_thread_func
214    fun:g_thread_proxy
215    fun:start_thread
216    fun:clone
217 }
218
219 {
220    _gdbus_3
221    Memcheck:Leak
222    match-leak-kinds: definite
223    fun:calloc
224    fun:g_malloc0
225    fun:_g_socket_read_with_control_messages
226    fun:_g_dbus_worker_do_read_unlocked
227    fun:_g_dbus_worker_do_read_cb
228    fun:g_simple_async_result_complete
229    fun:complete_in_idle_cb
230    ...
231    fun:g_main_context_dispatch
232    ...
233    fun:g_main_loop_run
234    fun:gdbus_shared_thread_func
235    fun:g_thread_proxy
236 }
237
238 {
239    _gdbus_4
240    Memcheck:Leak
241    match-leak-kinds: definite
242    fun:calloc
243    fun:g_malloc0
244    ...
245    fun:g_slice_alloc
246    fun:g_slice_alloc0
247    fun:g_main_context_push_thread_default
248    fun:gdbus_shared_thread_func
249    fun:g_thread_proxy
250    fun:start_thread
251    fun:clone
252 }
253
254 {
255    _gdbus_5
256    Memcheck:Leak
257    match-leak-kinds: definite
258    ...
259    fun:g_dbus_message_new_from_blob
260    ...
261 }
262
263 {
264    _gdbus_9
265    Memcheck:Leak
266    match-leak-kinds: definite
267    fun:malloc
268    fun:g_malloc
269    fun:g_slice_alloc
270    fun:g_slice_alloc0
271    fun:get_dispatch
272    fun:g_main_current_source
273    fun:g_task_return
274    fun:g_task_thread_pool_thread
275    fun:g_thread_pool_thread_proxy
276    fun:g_thread_proxy
277    fun:start_thread
278    fun:clone
279 }
280
281 {
282    _gdbus_10
283    Memcheck:Leak
284    match-leak-kinds: definite
285    fun:malloc
286    fun:g_malloc
287    fun:g_slice_alloc
288    fun:g_slice_alloc0
289    fun:g_system_thread_new
290    fun:g_thread_new_internal
291    ...
292    fun:g_thread_pool_push
293    fun:g_task_start_task_thread
294    fun:g_task_run_in_thread
295    fun:g_async_initable_real_init_async
296    fun:g_bus_get
297 }
298
299 {
300    _gdbus_11
301    Memcheck:Leak
302    match-leak-kinds: definite
303    fun:calloc
304    fun:g_malloc0
305    ...
306    fun:g_slice_alloc
307    fun:g_slice_alloc0
308    fun:get_dispatch
309    fun:g_main_current_source
310    fun:g_task_return
311    fun:g_task_thread_pool_thread
312    fun:g_thread_pool_thread_proxy
313    fun:g_thread_proxy
314    fun:start_thread
315 }
316
317 {
318    _gdbus_12
319    Memcheck:Leak
320    match-leak-kinds: definite
321    fun:malloc
322    fun:g_malloc
323    fun:g_slice_alloc
324    fun:g_error_new_valist
325    fun:g_error_new
326    fun:g_dbus_error_new_for_dbus_error
327    fun:g_dbus_error_set_dbus_error
328    fun:g_dbus_message_to_gerror
329    fun:decode_method_reply
330    fun:g_dbus_connection_call_sync_internal
331    fun:g_dbus_proxy_call_sync_internal
332    fun:g_dbus_proxy_call_sync
333 }
334
335 {
336    _gdbus_15
337    Memcheck:Leak
338    match-leak-kinds: definite
339    fun:malloc
340    fun:g_malloc
341    fun:g_slice_alloc
342    fun:g_hash_table_new_full
343    fun:demarshal_map
344    fun:_dbus_gvalue_demarshal
345    fun:dbus_g_proxy_end_call_internal
346    fun:dbus_g_proxy_end_call
347    fun:get_permissions_reply
348    fun:complete_pending_call_and_unlock
349    fun:dbus_connection_dispatch
350    fun:message_queue_dispatch
351 }
352
353 {
354    _gdbus_16
355    Memcheck:Leak
356    match-leak-kinds: definite
357    fun:calloc
358    fun:g_malloc0
359    fun:_g_dbus_worker_send_message
360    fun:g_dbus_connection_send_message_unlocked
361    fun:unsubscribe_id_internal
362    fun:g_dbus_connection_signal_unsubscribe
363    fun:g_dbus_proxy_finalize
364    ...
365 }
366
367 {
368    _gdbus_17
369    Memcheck:Leak
370    match-leak-kinds: definite
371    fun:calloc
372    fun:g_malloc0
373    fun:thread_memory_from_self
374    fun:g_slice_alloc
375    fun:g_slice_alloc0
376    fun:g_main_context_push_thread_default
377    fun:gdbus_shared_thread_func
378    fun:g_thread_proxy
379    fun:start_thread
380    fun:clone
381 }
382
383 {
384    _gdbus_18
385    Memcheck:Leak
386    match-leak-kinds: definite
387    fun:malloc
388    fun:g_malloc
389    fun:g_slice_alloc
390    fun:g_slice_alloc0
391    fun:get_dispatch
392    fun:g_main_dispatch
393    fun:g_main_context_dispatch
394    ...
395    fun:g_main_loop_run
396    fun:gdbus_shared_thread_func
397    fun:g_thread_proxy
398    fun:start_thread
399    fun:clone
400 }
401 {
402    _gdbus_f21_1
403    Memcheck:Leak
404    match-leak-kinds: definite
405    ...
406    fun:_g_dbus_worker_send_message
407    fun:g_dbus_connection_send_message_unlocked
408    ...
409    fun:g_dbus_proxy_finalize
410    ...
411 }
412
413 ###############################################################
414 # libnl3
415 ###############################################################
416
417 {
418    # fixed by https://github.com/thom311/libnl/commit/d65c32a7205e679c7fc13f0e4565b13e698ba906
419    libnl_rtnl_link_set_type_01
420    Memcheck:Leak
421    match-leak-kinds: definite
422    fun:calloc
423    fun:vlan_alloc
424    fun:rtnl_link_set_type
425    fun:link_msg_parser
426    fun:__pickup_answer
427    fun:nl_cb_call
428    fun:recvmsgs
429    fun:nl_recvmsgs_report
430    fun:nl_recvmsgs
431    fun:nl_pickup
432    fun:rtnl_link_get_kernel
433    ...
434 }
435 {
436    # fixed by https://github.com/thom311/libnl/commit/d65c32a7205e679c7fc13f0e4565b13e698ba906
437    # Same issue as libnl_rtnl_link_set_type_01, but different backtrace by calling nl_msg_parse().
438    libnl_rtnl_link_set_type_02
439    Memcheck:Leak
440    match-leak-kinds: definite
441    fun:calloc
442    fun:vlan_alloc
443    fun:rtnl_link_set_type
444    fun:link_msg_parser
445    fun:nl_cache_parse
446    fun:nl_msg_parse
447    ...
448 }
449
450 # disable the following suppression. I cannot remember why it was needed,
451 # maybe it's wrong.
452 #
453 # {
454 #    libnl_02
455 #    libnl_rtnl_link_alloc_cache
456 #    Memcheck:Leak
457 #    match-leak-kinds: definite
458 #    fun:calloc
459 #    fun:nl_object_alloc
460 #    fun:link_msg_parser
461 #    fun:nl_cache_parse
462 #    fun:update_msg_parser
463 #    fun:nl_cb_call
464 #    fun:recvmsgs
465 #    fun:nl_recvmsgs_report
466 #    fun:nl_recvmsgs
467 #    fun:__cache_pickup
468 #    fun:nl_cache_pickup
469 #    fun:nl_cache_refill
470 #    fun:rtnl_link_alloc_cache
471 #    ...
472 # }
473