gst.supp: Some suppressions for the more recent ld.so in ubuntu edgy.
[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(child_tidptr)
19    fun:clone
20    fun:clone
21 }
22
23 {
24    <clone on Wim's Debian>
25    Memcheck:Param
26    clone(tlsinfo)
27    fun:clone
28    fun:clone
29 }
30
31 ### glibc suppressions
32
33 {
34    <conditional jump on wim's debian 2/2/06>
35    Memcheck:Cond
36    obj:/lib/ld-2.3.*.so
37    fun:dl_open_worker
38    obj:/lib/ld-2.3.*.so
39    fun:_dl_open
40    fun:dlopen_doit
41    obj:/lib/ld-2.3.*.so
42    fun:_dlerror_run
43    fun:dlopen@@GLIBC_2.1
44    fun:g_module_open
45    fun:gst_plugin_load_file
46 }
47
48 # glibc does not deallocate thread-local storage
49
50 {
51    <tls>
52    Memcheck:Leak
53    fun:calloc
54    fun:_dl_allocate_tls
55    fun:pthread_create@@*
56 }
57
58 # I get an extra stack entry on x86/dapper
59 {
60    <tls>
61    Memcheck:Leak
62    fun:calloc
63    obj:/lib/ld-2.3.*.so
64    fun:_dl_allocate_tls
65    fun:pthread_create@@*
66 }
67
68
69 {
70    <pthread strstr>
71    Memcheck:Cond
72    fun:strstr
73    fun:__pthread_initialize_minimal
74    obj:/lib/libpthread-*.so
75    obj:/lib/libpthread-*.so
76    fun:call_init
77    fun:_dl_init
78    obj:/lib/ld-*.so
79 }
80
81 # a thread-related free problem in glibc from Edgard
82 {
83    __libc_freeres_rw_acess
84    Memcheck:Addr4
85    obj:*
86    obj:*
87    obj:*
88    obj:*
89    obj:*
90    fun:__libc_freeres
91 }
92
93 {
94    <a conditional jump on wim's debian>
95    Memcheck:Cond
96    obj:/lib/ld-2.3.*.so
97    obj:/lib/ld-2.3.*.so
98    obj:/lib/ld-2.3.*.so
99    obj:/lib/ld-2.3.*.so
100    obj:/lib/ld-2.3.*.so
101 }
102
103 # g_module_open-related problems
104 {
105    <started showing up on fc4-quick>
106    Memcheck:Addr2
107    fun:memcpy
108    fun:_dl_map_object_deps
109    fun:dl_open_worker
110    fun:_dl_catch_error
111    fun:_dl_open
112    fun:dlopen_doit
113    fun:_dl_catch_error
114    fun:_dlerror_run
115    fun:dlopen@@GLIBC_2.1
116    fun:g_module_open
117    fun:gst_plugin_load_file
118    fun:gst_registry_scan_path_level
119    fun:gst_registry_scan_path_level
120    fun:gst_registry_scan_path_level
121    fun:init_post
122    fun:g_option_context_parse
123    fun:gst_init_check
124    fun:gst_init
125    fun:gst_check_init
126    fun:main
127 }
128
129 {
130    <started showing up on fc4-quick>
131    Memcheck:Addr4
132    fun:memcpy
133    fun:_dl_map_object_deps
134    fun:dl_open_worker
135    fun:_dl_catch_error
136    fun:_dl_open
137    fun:dlopen_doit
138    fun:_dl_catch_error
139    fun:_dlerror_run
140    fun:dlopen@@GLIBC_2.1
141    fun:g_module_open
142    fun:gst_plugin_load_file
143    fun:gst_registry_scan_path_level
144    fun:gst_registry_scan_path_level
145    fun:gst_registry_scan_path_level
146    fun:init_post
147    fun:g_option_context_parse
148    fun:gst_init_check
149    fun:gst_init
150    fun:gst_check_init
151    fun:main
152 }
153
154 {
155    <g_module_open on wim's debian>
156    Memcheck:Cond
157    obj:/lib/ld-2.3.*.so
158    obj:/lib/ld-2.3.*.so
159    obj:/lib/ld-2.3.*.so
160    fun:do_sym
161    fun:_dl_sym
162    fun:dlsym_doit
163    obj:/lib/ld-2.3.*.so
164    fun:_dlerror_run
165    fun:dlsym
166    fun:g_module_symbol
167    fun:g_module_open
168    fun:gst_plugin_load_file
169 }
170
171 {
172    <g_module_open on wim's debian>
173    Memcheck:Cond
174    obj:/lib/ld-2.3.*.so
175    obj:/lib/ld-2.3.*.so
176    obj:/lib/ld-2.3.*.so
177    fun:dl_open_worker
178    obj:/lib/ld-2.3.*.so
179    fun:_dl_open
180    fun:dlopen_doit
181    obj:/lib/ld-2.3.*.so
182    fun:_dlerror_run
183    fun:dlopen@@GLIBC_2.1
184    fun:g_module_open
185    fun:gst_plugin_load_file
186 }
187 {
188    <g_module_open on wim's debian>
189    Memcheck:Cond
190    obj:/lib/ld-2.3.*.so
191    fun:dl_open_worker
192    obj:/lib/ld-2.3.*.so
193    fun:_dl_open
194    fun:dlopen_doit
195    obj:/lib/ld-2.3.*.so
196    fun:_dlerror_run
197    fun:dlopen@@GLIBC_2.1
198    fun:g_module_open
199    fun:gst_plugin_load_file
200    fun:gst_plugin_load_by_name
201    fun:gst_plugin_feature_load
202 }
203
204 {
205    <leak on wim's debian in g_module_open>
206    Memcheck:Leak
207    fun:malloc
208    obj:/lib/ld-2.3.*.so
209    fun:dl_open_worker
210    obj:/lib/ld-2.3.*.so
211    fun:_dl_open
212    fun:dlopen_doit
213    obj:/lib/ld-2.3.*.so
214    fun:_dlerror_run
215    fun:dlopen@@GLIBC_2.1
216    fun:g_module_open
217    fun:gst_plugin_load_file
218    fun:gst_plugin_load_by_name
219 }
220
221 {
222    <invalid read on wim's debian>
223    Memcheck:Addr4
224    obj:/lib/ld-2.3.*.so
225    obj:/lib/ld-2.3.*.so
226    obj:/lib/ld-2.3.*.so
227    obj:/lib/ld-2.3.*.so
228    obj:/lib/ld-2.3.*.so
229    obj:/lib/ld-2.3.*.so
230    obj:/lib/ld-2.3.*.so
231    fun:dl_open_worker
232    obj:/lib/ld-2.3.*.so
233    fun:_dl_open
234    fun:dlopen_doit
235    obj:/lib/ld-2.3.*.so
236 }
237
238 {
239    <invalid read on wim's debian>
240    Memcheck:Addr4
241    obj:/lib/ld-2.3.*.so
242    obj:/lib/ld-2.3.*.so
243    obj:/lib/ld-2.3.*.so
244    obj:/lib/ld-2.3.*.so
245    obj:/lib/ld-2.3.*.so
246    obj:/lib/ld-2.3.*.so
247    fun:dl_open_worker
248    obj:/lib/ld-2.3.*.so
249    fun:_dl_open
250    fun:dlopen_doit
251    obj:/lib/ld-2.3.*.so
252    fun:_dlerror_run
253 }
254
255 {
256    <invalid read on wim's debian - 2006-02-02>
257    Memcheck:Addr4
258    obj:/lib/ld-2.3.*.so
259    obj:/lib/ld-2.3.*.so
260    obj:/lib/ld-2.3.*.so
261    fun:dl_open_worker
262    obj:/lib/ld-2.3.*.so
263    fun:_dl_open
264    fun:dlopen_doit
265    obj:/lib/ld-2.3.*.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.*.so
275    obj:/lib/ld-2.3.*.so
276    fun:dl_open_worker
277    obj:/lib/ld-2.3.*.so
278    fun:_dl_open
279    fun:dlopen_doit
280    obj:/lib/ld-2.3.*.so
281    fun:_dlerror_run
282    fun:dlopen@@GLIBC_2.1
283    fun:g_module_open
284 }
285
286 {
287    <invalid read on wim's debian - 2006-02-02>
288    Memcheck:Addr4
289    obj:/lib/ld-2.3.*.so
290    obj:/lib/ld-2.3.*.so
291    obj:/lib/ld-2.3.*.so
292    fun:do_sym
293    fun:_dl_sym
294    fun:dlsym_doit
295    obj:/lib/ld-2.3.*.so
296    fun:_dlerror_run
297    fun:dlsym
298    fun:g_module_symbol
299    fun:g_module_open
300 }
301
302 {
303    <futex on Andy's 64-bit ubuntu>
304    Memcheck:Param
305    futex(uaddr2)
306    fun:pthread_once
307    obj:/lib/libc-2.3.*.so
308    obj:/lib/libc-2.3.*.so
309    fun:mbsnrtowcs
310    fun:vfprintf
311    fun:vsprintf
312    fun:sprintf
313    obj:/lib/libc-2.3.*.so
314    fun:tmpfile
315    fun:setup_pipe
316    fun:setup_messaging_with_key
317    fun:setup_messaging
318 }
319
320 # valgrind doesn't allow me to specify a suppression for Addr1, Addr2, Addr4
321 # as Addr*, so 3 copies for that; and then 2 of each for that pesky memcpy
322 {
323    <Invalid read of size 1, 2, 4 on thomas's FC4>
324    Memcheck:Addr1
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 {
338    <Invalid read of size 1, 2, 4 on thomas's FC4>
339    Memcheck:Addr2
340    fun:_dl_signal_error
341    fun:_dl_map_object_deps
342    fun:dl_open_worker
343    fun:_dl_catch_error
344    fun:_dl_open
345    fun:dlopen_doit
346    fun:_dl_catch_error
347    fun:_dlerror_run
348    fun:dlopen@@GLIBC_2.1
349    fun:g_module_open
350 }
351 {
352    <Invalid read of size 1, 2, 4 on thomas's FC4>
353    Memcheck:Addr4
354    fun:_dl_signal_error
355    fun:_dl_map_object_deps
356    fun:dl_open_worker
357    fun:_dl_catch_error
358    fun:_dl_open
359    fun:dlopen_doit
360    fun:_dl_catch_error
361    fun:_dlerror_run
362    fun:dlopen@@GLIBC_2.1
363    fun:g_module_open
364 }
365
366 {
367    <Invalid read of size 1, 2, 4 on thomas's FC4>
368    Memcheck:Addr1
369    fun:memcpy
370    fun:_dl_signal_error
371    fun:_dl_map_object_deps
372    fun:dl_open_worker
373    fun:_dl_catch_error
374    fun:_dl_open
375    fun:dlopen_doit
376    fun:_dl_catch_error
377    fun:_dlerror_run
378    fun:dlopen@@GLIBC_2.1
379    fun:g_module_open
380 }
381
382 {
383    <Invalid read of size 1, 2, 4 on thomas's FC4>
384    Memcheck:Addr2
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    <Invalid read of size 1, 2, 4 on thomas's FC4>
399    Memcheck:Addr4
400    fun:memcpy
401    fun:_dl_signal_error
402    fun:_dl_map_object_deps
403    fun:dl_open_worker
404    fun:_dl_catch_error
405    fun:_dl_open
406    fun:dlopen_doit
407    fun:_dl_catch_error
408    fun:_dlerror_run
409    fun:dlopen@@GLIBC_2.1
410    fun:g_module_open
411 }
412
413 {
414    <Addr8 on Andy's AMD64 ubuntu in dl_open>
415    Memcheck:Addr8
416    obj:/lib/ld-2.3.*.so
417    obj:/lib/ld-2.3.*.so
418    obj:/lib/ld-2.3.*.so
419    obj:/lib/ld-2.3.*.so
420    obj:/lib/ld-2.3.*.so
421    obj:/lib/ld-2.3.*.so
422    obj:/lib/ld-2.3.*.so
423    obj:/lib/libc-2.3.*.so
424    obj:/lib/ld-2.3.*.so
425    fun:_dl_open
426    obj:/lib/libdl-2.3.*.so
427    obj:/lib/ld-2.3.*.so
428 }
429
430 {
431    <Conditional jump on Andy's AMD64 ubuntu>
432    Memcheck:Cond
433    obj:/lib/ld-2.3.*.so
434    obj:/lib/libc-2.3.*.so
435    obj:/lib/ld-2.3.*.so
436    fun:_dl_open
437    obj:/lib/libdl-2.3.*.so
438    obj:/lib/ld-2.3.*.so
439    obj:/lib/libdl-2.3.*.so
440    fun:dlopen
441    fun:g_module_open
442    fun:gst_plugin_load_file
443    fun:gst_plugin_load_by_name
444    fun:gst_plugin_feature_load
445 }
446
447 {
448    <Mike's x86 dapper>
449    Memcheck:Addr4
450    obj:/lib/ld-2.3.6.so
451    obj:/lib/ld-2.3.6.so
452    obj:/lib/tls/i686/cmov/libc-2.3.6.so
453    obj:/lib/ld-2.3.6.so
454    fun:_dl_open
455    obj:/lib/tls/i686/cmov/libdl-2.3.6.so
456    obj:/lib/ld-2.3.6.so
457    obj:/lib/tls/i686/cmov/libdl-2.3.6.so
458    fun:dlopen
459 }
460
461 {
462    <Mike's x86 dapper>
463    Memcheck:Cond
464    obj:/lib/ld-2.3.6.so
465    obj:/lib/tls/i686/cmov/libc-2.3.6.so
466    obj:/lib/ld-2.3.6.so
467    fun:_dl_open
468    obj:/lib/tls/i686/cmov/libdl-2.3.6.so
469    obj:/lib/ld-2.3.6.so
470    obj:/lib/tls/i686/cmov/libdl-2.3.6.so
471    fun:dlopen
472 }
473
474 {
475    <Another dapper one>
476    Memcheck:Cond
477    obj:/lib/ld-2.3.6.so
478    obj:/lib/ld-2.3.6.so
479    obj:/lib/ld-2.3.6.so
480    obj:/lib/tls/i686/cmov/libc-2.3.6.so
481    obj:/lib/ld-2.3.6.so
482    fun:_dl_open
483    obj:/lib/tls/i686/cmov/libdl-2.3.6.so
484    obj:/lib/ld-2.3.6.so
485    obj:/lib/tls/i686/cmov/libdl-2.3.6.so
486    fun:dlopen
487 }
488
489 ### glib suppressions
490 {
491    <g_parse_debug_string>
492    Memcheck:Cond
493    fun:g_parse_debug_string
494    obj:/usr/lib*/libglib-2.0.so.*
495    fun:g_slice_alloc
496    fun:g_slice_alloc0
497 }
498
499 {
500    <g_type_init malloc>
501    Memcheck:Leak
502    fun:malloc
503    fun:g_malloc
504    fun:g_strdup
505    fun:g_quark_from_string
506    obj:*
507    obj:*
508    fun:g_type_register_fundamental
509    obj:*
510    fun:g_type_init_with_debug_flags
511    fun:g_type_init
512    fun:init_pre
513 }
514
515 {
516    <g_type_init calloc>
517    Memcheck:Leak
518    fun:calloc
519    fun:g_malloc0
520    obj:*
521    obj:*
522    fun:g_type_register_fundamental
523 }
524
525 {
526    <g_type_init calloc 2>
527    Memcheck:Leak
528    fun:calloc
529    fun:g_malloc0
530    obj:*
531    obj:*
532    fun:g_type_init_with_debug_flags
533 }
534
535 {
536    <g_type_init calloc 3, GSlice version>
537    Memcheck:Leak
538    fun:calloc
539    fun:g_malloc0
540    fun:g_slice_alloc
541    obj:*
542    obj:*
543    fun:g_type_init_with_debug_flags
544 }
545
546 #pthread memleaks
547
548 {
549    Thread creation leak
550    Memcheck:Leak
551    fun:calloc
552    fun:allocate_dtv
553    fun:_dl_allocate*
554    fun:_dl_allocate*
555    fun:__pthread_initialize_minimal
556 }
557
558 {
559    Thread management leak
560    Memcheck:Leak
561    fun:calloc
562    fun:allocate_dtv
563    fun:_dl_allocate*
564    fun:_dl_allocate*
565    fun:__pthread_*
566 }
567
568 {
569    Thread management leak 2
570    Memcheck:Leak
571    fun:memalign
572    fun:_dl_allocate*
573    fun:_dl_allocate*
574    fun:__pthread_*
575 }
576
577 {
578    pthread_create Syscall param write(buf) points to uninitialised byte(s)
579    Memcheck:Param
580    write(buf)
581    fun:pthread_create@@GLIBC_2.2.5
582    fun:g_thread_create*
583
584 }
585
586 # nss_parse_* memleak (used by g_option_context_parse)
587 {
588    nss_parse_* memleak
589    Memcheck:Leak
590    fun:malloc
591    fun:nss_parse_service_list
592    fun:__nss_database_lookup
593 }
594
595 # liboil suppressions
596 {
597    <liboil cpu_fault_check_try>
598    Memcheck:Value8
599    obj:/usr/lib/liboil-0.3.so.0.1.0
600    obj:/usr/lib/liboil-0.3.so.0.1.0
601    obj:/usr/lib/liboil-0.3.so.0.1.0
602    fun:oil_cpu_fault_check_try
603    fun:oil_test_check_impl
604    fun:oil_class_optimize
605    fun:oil_optimize_all
606    fun:oil_init
607 }
608
609 {
610    <annoying read error inside dlopen stuff on Ubuntu Dapper x86_64>
611    Memcheck:Addr8
612    obj:/lib/ld-2.3.6.so
613 }
614
615 {
616    <Ubuntu Dapper x86_64>
617    Memcheck:Param
618    futex(uaddr2)
619    fun:pthread_once
620    obj:/lib/libc-2.3.6.so
621    obj:/lib/libc-2.3.6.so
622    fun:setlocale
623    fun:init_pre
624    fun:g_option_context_parse
625    fun:gst_init_check
626    fun:gst_init
627    fun:gst_check_init
628    fun:main
629 }
630
631 {
632    <Ubuntu Dapper x86_64 dlopen stuff again>
633    Memcheck:Cond
634    obj:/lib/ld-2.3.6.so
635    obj:/lib/ld-2.3.6.so
636    fun:_dl_open
637    obj:/lib/libdl-2.3.6.so
638    obj:/lib/ld-2.3.6.so
639    obj:/lib/libdl-2.3.6.so
640    fun:dlopen
641    fun:g_module_open
642    fun:gst_plugin_load_file
643 }
644 # this exists in a bunch of different variations, hence the short tail/trace
645 {
646    <dlopen invalid read of size 4 suppression on tpm's Ubuntu edgy/x86>
647    Memcheck:Addr4
648    obj:/lib/ld-2.4.so
649    obj:/lib/ld-2.4.so
650 }
651 {
652    <and the same for 64bit systems>
653    Memcheck:Addr8
654    obj:/lib/ld-2.4.so
655    obj:/lib/ld-2.4.so
656 }