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