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