common/gst.supp: Added more suppressions
[platform/upstream/gst-common.git] / gst.supp
1 ### this file contains suppressions for valgrind when running
2 ### the gstreamer unit tests
3 ### it might be useful for wider use as well
4
5 ### syscall suppressions
6
7 {
8    <clone on Wim's Debian>
9    Memcheck:Param
10    clone(parent_tidptr)
11    fun:clone
12    fun:clone
13 }
14
15 {
16    <clone on Wim's Debian>
17    Memcheck:Param
18    clone(tlsinfo)
19    fun:clone
20    fun:clone
21 }
22
23 ### glibc suppressions
24
25 {
26    <conditional jump on wim's debian 2/2/06>
27    Memcheck:Cond
28    obj:/lib/ld-2.3.5.so
29    fun:dl_open_worker
30    obj:/lib/ld-2.3.5.so
31    fun:_dl_open
32    fun:dlopen_doit
33    obj:/lib/ld-2.3.5.so
34    fun:_dlerror_run
35    fun:dlopen@@GLIBC_2.1
36    fun:g_module_open
37    fun:gst_plugin_load_file
38    fun:gst_plugin_load
39    fun:test_load_coreelements
40    fun:srunner_run_all
41    fun:main
42 }
43
44 # glibc does not deallocate thread-local storage
45
46 {
47    <tls>
48    Memcheck:Leak
49    fun:calloc
50    fun:_dl_allocate_tls
51    fun:pthread_create@@*
52 }
53
54 {
55    <pthread strstr>
56    Memcheck:Cond
57    fun:strstr
58    fun:__pthread_initialize_minimal
59    obj:/lib/libpthread-*.so
60    obj:/lib/libpthread-*.so
61    fun:call_init
62    fun:_dl_init
63    obj:/lib/ld-*.so
64 }
65
66 # a thread-related free problem in glibc from Edgard
67 {
68    __libc_freeres_rw_acess
69    Memcheck:Addr4
70    obj:*
71    obj:*
72    obj:*
73    obj:*
74    obj:*
75    fun:__libc_freeres
76 }
77
78 {
79    <a conditional jump on wim's debian>
80    Memcheck:Cond
81    obj:/lib/ld-2.3.5.so
82    obj:/lib/ld-2.3.5.so
83    obj:/lib/ld-2.3.5.so
84    obj:/lib/ld-2.3.5.so
85    obj:/lib/ld-2.3.5.so
86 }
87
88 # g_module_open-related problems
89 {
90    <started showing up on fc4-quick>
91    Memcheck:Addr2
92    fun:memcpy
93    fun:_dl_map_object_deps
94    fun:dl_open_worker
95    fun:_dl_catch_error
96    fun:_dl_open
97    fun:dlopen_doit
98    fun:_dl_catch_error
99    fun:_dlerror_run
100    fun:dlopen@@GLIBC_2.1
101    fun:g_module_open
102    fun:gst_plugin_load_file
103    fun:gst_registry_scan_path_level
104    fun:gst_registry_scan_path_level
105    fun:gst_registry_scan_path_level
106    fun:init_post
107    fun:g_option_context_parse
108    fun:gst_init_check
109    fun:gst_init
110    fun:gst_check_init
111    fun:main
112 }
113
114 {
115    <started showing up on fc4-quick>
116    Memcheck:Addr4
117    fun:memcpy
118    fun:_dl_map_object_deps
119    fun:dl_open_worker
120    fun:_dl_catch_error
121    fun:_dl_open
122    fun:dlopen_doit
123    fun:_dl_catch_error
124    fun:_dlerror_run
125    fun:dlopen@@GLIBC_2.1
126    fun:g_module_open
127    fun:gst_plugin_load_file
128    fun:gst_registry_scan_path_level
129    fun:gst_registry_scan_path_level
130    fun:gst_registry_scan_path_level
131    fun:init_post
132    fun:g_option_context_parse
133    fun:gst_init_check
134    fun:gst_init
135    fun:gst_check_init
136    fun:main
137 }
138
139 {
140    <g_module_open on wim's debian>
141    Memcheck:Cond
142    obj:/lib/ld-2.3.5.so
143    obj:/lib/ld-2.3.5.so
144    obj:/lib/ld-2.3.5.so
145    fun:do_sym
146    fun:_dl_sym
147    fun:dlsym_doit
148    obj:/lib/ld-2.3.5.so
149    fun:_dlerror_run
150    fun:dlsym
151    fun:g_module_symbol
152    fun:g_module_open
153    fun:gst_plugin_load_file
154 }
155
156 {
157    <g_module_open on wim's debian>
158    Memcheck:Cond
159    obj:/lib/ld-2.3.5.so
160    obj:/lib/ld-2.3.5.so
161    obj:/lib/ld-2.3.5.so
162    fun:dl_open_worker
163    obj:/lib/ld-2.3.5.so
164    fun:_dl_open
165    fun:dlopen_doit
166    obj:/lib/ld-2.3.5.so
167    fun:_dlerror_run
168    fun:dlopen@@GLIBC_2.1
169    fun:g_module_open
170    fun:gst_plugin_load_file
171 }
172 {
173    <g_module_open on wim's debian>
174    Memcheck:Cond
175    obj:/lib/ld-2.3.5.so
176    fun:dl_open_worker
177    obj:/lib/ld-2.3.5.so
178    fun:_dl_open
179    fun:dlopen_doit
180    obj:/lib/ld-2.3.5.so
181    fun:_dlerror_run
182    fun:dlopen@@GLIBC_2.1
183    fun:g_module_open
184    fun:gst_plugin_load_file
185    fun:gst_plugin_load_by_name
186    fun:gst_plugin_feature_load
187 }
188
189 {
190    <leak on wim's debian in g_module_open>
191    Memcheck:Leak
192    fun:malloc
193    obj:/lib/ld-2.3.5.so
194    fun:dl_open_worker
195    obj:/lib/ld-2.3.5.so
196    fun:_dl_open
197    fun:dlopen_doit
198    obj:/lib/ld-2.3.5.so
199    fun:_dlerror_run
200    fun:dlopen@@GLIBC_2.1
201    fun:g_module_open
202    fun:gst_plugin_load_file
203    fun:gst_plugin_load_by_name
204 }
205
206 {
207    <invalid read on wim's debian>
208    Memcheck:Addr4
209    obj:/lib/ld-2.3.5.so
210    obj:/lib/ld-2.3.5.so
211    obj:/lib/ld-2.3.5.so
212    obj:/lib/ld-2.3.5.so
213    obj:/lib/ld-2.3.5.so
214    obj:/lib/ld-2.3.5.so
215    obj:/lib/ld-2.3.5.so
216    fun:dl_open_worker
217    obj:/lib/ld-2.3.5.so
218    fun:_dl_open
219    fun:dlopen_doit
220    obj:/lib/ld-2.3.5.so
221 }
222
223 {
224    <invalid read on wim's debian>
225    Memcheck:Addr4
226    obj:/lib/ld-2.3.5.so
227    obj:/lib/ld-2.3.5.so
228    obj:/lib/ld-2.3.5.so
229    obj:/lib/ld-2.3.5.so
230    obj:/lib/ld-2.3.5.so
231    obj:/lib/ld-2.3.5.so
232    fun:dl_open_worker
233    obj:/lib/ld-2.3.5.so
234    fun:_dl_open
235    fun:dlopen_doit
236    obj:/lib/ld-2.3.5.so
237    fun:_dlerror_run
238 }
239
240 {
241    <invalid read on wim's debian - 2006-02-02>
242    Memcheck:Addr4
243    obj:/lib/ld-2.3.5.so
244    obj:/lib/ld-2.3.5.so
245    obj:/lib/ld-2.3.5.so
246    fun:dl_open_worker
247    obj:/lib/ld-2.3.5.so
248    fun:_dl_open
249    fun:dlopen_doit
250    obj:/lib/ld-2.3.5.so
251    fun:_dlerror_run
252    fun:dlopen@@GLIBC_2.1
253    fun:g_module_open
254 }
255
256 {
257    <invalid read on wim's debian - 2006-02-02>
258    Memcheck:Addr4
259    obj:/lib/ld-2.3.5.so
260    obj:/lib/ld-2.3.5.so
261    fun:dl_open_worker
262    obj:/lib/ld-2.3.5.so
263    fun:_dl_open
264    fun:dlopen_doit
265    obj:/lib/ld-2.3.5.so
266    fun:_dlerror_run
267    fun:dlopen@@GLIBC_2.1
268    fun:g_module_open
269 }
270
271 {
272    <invalid read on wim's debian - 2006-02-02>
273    Memcheck:Addr4
274    obj:/lib/ld-2.3.5.so
275    obj:/lib/ld-2.3.5.so
276    obj:/lib/ld-2.3.5.so
277    fun:do_sym
278    fun:_dl_sym
279    fun:dlsym_doit
280    obj:/lib/ld-2.3.5.so
281    fun:_dlerror_run
282    fun:dlsym
283    fun:g_module_symbol
284    fun:g_module_open
285 }
286
287 {
288    <futex on Andy's 64-bit ubuntu>
289    Memcheck:Param
290    futex(uaddr2)
291    fun:pthread_once
292    obj:/lib/libc-2.3.5.so
293    obj:/lib/libc-2.3.5.so
294    fun:mbsnrtowcs
295    fun:vfprintf
296    fun:vsprintf
297    fun:sprintf
298    obj:/lib/libc-2.3.5.so
299    fun:tmpfile
300    fun:setup_pipe
301    fun:setup_messaging_with_key
302    fun:setup_messaging
303 }
304
305 # valgrind doesn't allow me to specify a suppression for Addr1, Addr2, Addr4
306 # as Addr*, so 3 copies for that; and then 2 of each for that pesky memcpy
307 {
308    <Invalid read of size 1, 2, 4 on thomas's FC4>
309    Memcheck:Addr1
310    fun:_dl_signal_error
311    fun:_dl_map_object_deps
312    fun:dl_open_worker
313    fun:_dl_catch_error
314    fun:_dl_open
315    fun:dlopen_doit
316    fun:_dl_catch_error
317    fun:_dlerror_run
318    fun:dlopen@@GLIBC_2.1
319    fun:g_module_open
320 }
321
322 {
323    <Invalid read of size 1, 2, 4 on thomas's FC4>
324    Memcheck:Addr2
325    fun:_dl_signal_error
326    fun:_dl_map_object_deps
327    fun:dl_open_worker
328    fun:_dl_catch_error
329    fun:_dl_open
330    fun:dlopen_doit
331    fun:_dl_catch_error
332    fun:_dlerror_run
333    fun:dlopen@@GLIBC_2.1
334    fun:g_module_open
335 }
336 {
337    <Invalid read of size 1, 2, 4 on thomas's FC4>
338    Memcheck:Addr4
339    fun:_dl_signal_error
340    fun:_dl_map_object_deps
341    fun:dl_open_worker
342    fun:_dl_catch_error
343    fun:_dl_open
344    fun:dlopen_doit
345    fun:_dl_catch_error
346    fun:_dlerror_run
347    fun:dlopen@@GLIBC_2.1
348    fun:g_module_open
349 }
350
351 {
352    <Invalid read of size 1, 2, 4 on thomas's FC4>
353    Memcheck:Addr1
354    fun:memcpy
355    fun:_dl_signal_error
356    fun:_dl_map_object_deps
357    fun:dl_open_worker
358    fun:_dl_catch_error
359    fun:_dl_open
360    fun:dlopen_doit
361    fun:_dl_catch_error
362    fun:_dlerror_run
363    fun:dlopen@@GLIBC_2.1
364    fun:g_module_open
365 }
366
367 {
368    <Invalid read of size 1, 2, 4 on thomas's FC4>
369    Memcheck:Addr2
370    fun:memcpy
371    fun:_dl_signal_error
372    fun:_dl_map_object_deps
373    fun:dl_open_worker
374    fun:_dl_catch_error
375    fun:_dl_open
376    fun:dlopen_doit
377    fun:_dl_catch_error
378    fun:_dlerror_run
379    fun:dlopen@@GLIBC_2.1
380    fun:g_module_open
381 }
382 {
383    <Invalid read of size 1, 2, 4 on thomas's FC4>
384    Memcheck:Addr4
385    fun:memcpy
386    fun:_dl_signal_error
387    fun:_dl_map_object_deps
388    fun:dl_open_worker
389    fun:_dl_catch_error
390    fun:_dl_open
391    fun:dlopen_doit
392    fun:_dl_catch_error
393    fun:_dlerror_run
394    fun:dlopen@@GLIBC_2.1
395    fun:g_module_open
396 }
397
398 {
399    <Addr8 on Andy's AMD64 ubuntu in dl_open>
400    Memcheck:Addr8
401    obj:/lib/ld-2.3.5.so
402    obj:/lib/ld-2.3.5.so
403    obj:/lib/ld-2.3.5.so
404    obj:/lib/ld-2.3.5.so
405    obj:/lib/ld-2.3.5.so
406    obj:/lib/ld-2.3.5.so
407    obj:/lib/ld-2.3.5.so
408    obj:/lib/libc-2.3.5.so
409    obj:/lib/ld-2.3.5.so
410    fun:_dl_open
411    obj:/lib/libdl-2.3.5.so
412    obj:/lib/ld-2.3.5.so
413 }
414
415 {
416    <Conditional jump on Andy's AMD64 ubuntu>
417    Memcheck:Cond
418    obj:/lib/ld-2.3.5.so
419    obj:/lib/libc-2.3.5.so
420    obj:/lib/ld-2.3.5.so
421    fun:_dl_open
422    obj:/lib/libdl-2.3.5.so
423    obj:/lib/ld-2.3.5.so
424    obj:/lib/libdl-2.3.5.so
425    fun:dlopen
426    fun:g_module_open
427    fun:gst_plugin_load_file
428    fun:gst_plugin_load_by_name
429    fun:gst_plugin_feature_load
430 }
431
432
433
434 ### glib suppressions
435
436 {
437    <g_type_init malloc>
438    Memcheck:Leak
439    fun:malloc
440    fun:g_malloc
441    fun:g_strdup
442    fun:g_quark_from_string
443    obj:*
444    obj:*
445    fun:g_type_register_fundamental
446    obj:*
447    fun:g_type_init_with_debug_flags
448    fun:g_type_init
449    fun:init_pre
450 }
451
452 {
453    <g_type_init calloc>
454    Memcheck:Leak
455    fun:calloc
456    fun:g_malloc0
457    obj:*
458    obj:*
459    fun:g_type_register_fundamental
460 }
461
462 {
463    <g_type_init calloc 2>
464    Memcheck:Leak
465    fun:calloc
466    fun:g_malloc0
467    obj:*
468    obj:*
469    fun:g_type_init_with_debug_flags
470 }
471
472 ### GStreamer suppressions
473
474 # ds is saying he's rewriting the registry anyway
475 {
476    <registry>
477    Memcheck:Leak
478    fun:malloc
479    fun:g_malloc
480    fun:g_strdup
481    fun:read_string
482    fun:load_plugin
483    fun:gst_xml_registry_load
484    fun:gst_registry_load
485    fun:_registry_load_func
486    fun:g_list_foreach
487    fun:gst_registry_pool_load_all
488    fun:init_post
489    fun:init_popt_callback
490 }
491
492 #pthread memleaks
493
494 {
495    Thread creation leak
496    Memcheck:Leak
497    fun:calloc
498    fun:allocate_dtv
499    fun:_dl_allocate*
500    fun:_dl_allocate*
501    fun:__pthread_initialize_minimal
502 }
503
504 {
505    Thread management leak
506    Memcheck:Leak
507    fun:calloc
508    fun:allocate_dtv
509    fun:_dl_allocate*
510    fun:_dl_allocate*
511    fun:__pthread_*
512 }
513
514 {
515    Thread management leak 2
516    Memcheck:Leak
517    fun:memalign
518    fun:_dl_allocate*
519    fun:_dl_allocate*
520    fun:__pthread_*
521 }
522
523 {
524    pthread_create Syscall param write(buf) points to uninitialised byte(s)
525    Memcheck:Param
526    write(buf)
527    fun:pthread_create@@GLIBC_2.2.5
528    fun:g_thread_create*
529
530 }
531
532 # nss_parse_* memleak (used by g_option_context_parse)
533 {
534    nss_parse_* memleak
535    Memcheck:Leak
536    fun:malloc
537    fun:nss_parse_service_list
538    fun:__nss_database_lookup
539 }
540
541 # liboil suppressions
542 {
543    <liboil cpu_fault_check_try>
544    Memcheck:Value8
545    obj:/usr/lib/liboil-0.3.so.0.1.0
546    obj:/usr/lib/liboil-0.3.so.0.1.0
547    obj:/usr/lib/liboil-0.3.so.0.1.0
548    fun:oil_cpu_fault_check_try
549    fun:oil_test_check_impl
550    fun:oil_class_optimize
551    fun:oil_optimize_all
552    fun:oil_init
553 }