gst-python: Add option to disable python plugin
[platform/upstream/gstreamer.git] / subprojects / gst-python / testsuite / python.supp
1 #
2 # This is a valgrind suppression file that should be used when using valgrind.
3 #
4 #  Here's an example of running valgrind:
5 #
6 #       cd python/dist/src
7 #       valgrind --tool=memcheck --suppressions=Misc/valgrind-python.supp \
8 #               ./python -E -tt ./Lib/test/regrtest.py -u bsddb,network
9 #
10 # You must edit Objects/obmalloc.c and uncomment Py_USING_MEMORY_DEBUGGER
11 # to use the preferred suppressions with Py_ADDRESS_IN_RANGE.
12 #
13 # If you do not want to recompile Python, you can uncomment
14 # suppressions for PyObject_Free and PyObject_Realloc.
15 #
16 # See Misc/README.valgrind for more information.
17
18 # all tool names: Addrcheck,Memcheck,cachegrind,helgrind,massif
19 {
20    ADDRESS_IN_RANGE/Invalid read of size 4
21    Memcheck:Addr4
22    fun:Py_ADDRESS_IN_RANGE
23 }
24
25 {
26    ADDRESS_IN_RANGE/Invalid read of size 4
27    Memcheck:Value4
28    fun:Py_ADDRESS_IN_RANGE
29 }
30
31 {
32    ADDRESS_IN_RANGE/Invalid read of size 8 (x86_64)
33    Memcheck:Value8
34    fun:Py_ADDRESS_IN_RANGE
35 }
36
37 {
38    ADDRESS_IN_RANGE/Conditional jump or move depends on uninitialised value
39    Memcheck:Cond
40    fun:Py_ADDRESS_IN_RANGE
41 }
42
43 {
44    ADDRESS_IN_RANGE/Invalid read of size 4
45    Memcheck:Addr4
46    fun:PyObject_Free
47 }
48
49 {
50    ADDRESS_IN_RANGE/Invalid read of size 8 (x86_64)
51    Memcheck:Addr8
52    fun:PyObject_Free
53 }
54
55 {
56    ADDRESS_IN_RANGE/Invalid read of size 4
57    Memcheck:Value4
58    fun:PyObject_Free
59 }
60
61 {
62    ADDRESS_IN_RANGE/Invalid read of size 8 (x86_64)
63    Memcheck:Value8
64    fun:PyObject_Free
65 }
66
67 {
68    ADDRESS_IN_RANGE/Conditional jump or move depends on uninitialised value
69    Memcheck:Cond
70    fun:PyObject_Free
71 }
72
73 {
74    ADDRESS_IN_RANGE/Invalid read of size 4
75    Memcheck:Addr4
76    fun:PyObject_Realloc
77 }
78
79 {
80    ADDRESS_IN_RANGE/Invalid read of size 8 (x86_64)
81    Memcheck:Addr8
82    fun:PyObject_Realloc
83 }
84
85 {
86    ADDRESS_IN_RANGE/Invalid read of size 4
87    Memcheck:Value4
88    fun:PyObject_Realloc
89 }
90
91 {
92    ADDRESS_IN_RANGE/Invalid read of size 8 (x86_64)
93    Memcheck:Value8
94    fun:PyObject_Realloc
95 }
96
97 {
98    ADDRESS_IN_RANGE/Conditional jump or move depends on uninitialised value
99    Memcheck:Cond
100    fun:PyObject_Realloc
101 }
102
103 ###
104 ### All the suppressions below are for errors that occur within libraries
105 ### that Python uses.  The problems to not appear to be related to Python's
106 ### use of the libraries.
107 ###
108 {
109    GDBM problems, see test_gdbm
110    Memcheck:Param
111    write(buf)
112    fun:write
113    fun:gdbm_open
114
115 }
116
117 {
118    Avoid problem in libc on gentoo
119    Memcheck:Cond
120    obj:/lib/ld-2.3.4.so
121    obj:/lib/ld-2.3.4.so
122    obj:/lib/ld-2.3.4.so
123    obj:/lib/ld-2.3.4.so
124    obj:/lib/ld-2.3.4.so
125 }
126
127 {
128    Avoid problem in glibc on gentoo
129    Memcheck:Addr8
130    obj:/lib/ld-2.3.4.so
131    obj:/lib/ld-2.3.4.so
132    obj:/lib/ld-2.3.4.so
133    obj:/lib/ld-2.3.4.so
134    obj:/lib/libc-2.3.4.so
135    obj:/lib/ld-2.3.4.so
136    fun:_dl_open
137    obj:/lib/libdl-2.3.4.so
138    obj:/lib/ld-2.3.4.so
139    obj:/lib/libdl-2.3.4.so
140    fun:dlopen
141 }
142
143 {
144    Avoid problem in glibc on gentoo
145    Memcheck:Addr8
146    obj:/lib/ld-2.3.4.so
147    obj:/lib/ld-2.3.4.so
148    obj:/lib/ld-2.3.4.so
149    obj:/lib/ld-2.3.4.so
150    obj:/lib/ld-2.3.4.so
151    obj:/lib/ld-2.3.4.so
152    obj:/lib/ld-2.3.4.so
153    obj:/lib/libc-2.3.4.so
154    obj:/lib/ld-2.3.4.so
155    fun:_dl_open
156    obj:/lib/libdl-2.3.4.so
157    obj:/lib/ld-2.3.4.so
158    obj:/lib/libdl-2.3.4.so
159    fun:dlopen
160 }
161
162 {
163    Avoid problem in glibc on gentoo
164    Memcheck:Cond
165    obj:/lib/ld-2.3.4.so
166    obj:/lib/libc-2.3.4.so
167    obj:/lib/ld-2.3.4.so
168    fun:_dl_open
169    obj:/lib/libdl-2.3.4.so
170    obj:/lib/ld-2.3.4.so
171    obj:/lib/libdl-2.3.4.so
172    fun:dlopen
173 }
174
175 {
176    Avoid problem in glibc on gentoo
177    Memcheck:Cond
178    obj:/lib/ld-2.3.4.so
179    obj:/lib/ld-2.3.4.so
180    obj:/lib/ld-2.3.4.so
181    obj:/lib/libc-2.3.4.so
182    obj:/lib/ld-2.3.4.so
183    fun:_dl_open
184    obj:/lib/libdl-2.3.4.so
185    obj:/lib/ld-2.3.4.so
186    obj:/lib/libdl-2.3.4.so
187    fun:dlopen
188 }
189
190 {
191    Avoid problems w/readline doing a putenv and leaking on exit
192    Memcheck:Leak
193    fun:malloc
194    fun:xmalloc
195    fun:sh_set_lines_and_columns
196    fun:_rl_get_screen_size
197    fun:_rl_init_terminal_io
198    obj:/lib/libreadline.so.4.3
199    fun:rl_initialize
200    fun:setup_readline
201    fun:initreadline
202    fun:_PyImport_LoadDynamicModule
203    fun:load_module
204    fun:import_submodule
205    fun:load_next
206    fun:import_module_ex
207    fun:PyImport_ImportModuleEx
208 }
209
210 {
211    Mysterious leak that seems to deal w/pthreads
212    Memcheck:Leak
213    fun:calloc
214    obj:/lib/ld-2.3.4.so
215    obj:/lib/ld-2.3.4.so
216    fun:_dl_allocate_tls
217    fun:__pthread_initialize_minimal
218 }
219
220 {
221    Mysterious leak that seems to deal w/pthreads
222    Memcheck:Leak
223    fun:memalign
224    obj:/lib/ld-2.3.4.so
225    fun:_dl_allocate_tls
226    fun:__pthread_initialize_minimal
227 }
228
229 ###
230 ### These occur from somewhere within the SSL, when running
231 ###  test_socket_sll.  They are too general to leave on by default.
232 ###
233 ###{
234 ###   somewhere in SSL stuff
235 ###   Memcheck:Cond
236 ###   fun:memset
237 ###}
238 ###{
239 ###   somewhere in SSL stuff
240 ###   Memcheck:Value4
241 ###   fun:memset
242 ###}
243 ###
244 ###{
245 ###   somewhere in SSL stuff
246 ###   Memcheck:Cond
247 ###   fun:MD5_Update
248 ###}
249 ###
250 ###{
251 ###   somewhere in SSL stuff
252 ###   Memcheck:Value4
253 ###   fun:MD5_Update
254 ###}
255
256 #
257 # All of these problems come from using test_socket_ssl
258 #
259 {
260    from test_socket_ssl
261    Memcheck:Cond
262    fun:BN_bin2bn
263 }
264
265 {
266    from test_socket_ssl
267    Memcheck:Cond
268    fun:BN_num_bits_word
269 }
270
271 {
272    from test_socket_ssl
273    Memcheck:Value4
274    fun:BN_num_bits_word
275 }
276
277 {
278    from test_socket_ssl
279    Memcheck:Cond
280    fun:BN_mod_exp_mont_word
281 }
282
283 {
284    from test_socket_ssl
285    Memcheck:Cond
286    fun:BN_mod_exp_mont
287 }
288
289 {
290    from test_socket_ssl
291    Memcheck:Param
292    write(buf)
293    fun:write
294    obj:/usr/lib/libcrypto.so.0.9.7
295 }
296
297 {
298    from test_socket_ssl
299    Memcheck:Cond
300    fun:RSA_verify
301 }
302
303 {
304    from test_socket_ssl
305    Memcheck:Value4
306    fun:RSA_verify
307 }
308
309 {
310    from test_socket_ssl
311    Memcheck:Value4
312    fun:DES_set_key_unchecked
313 }
314
315 {
316    from test_socket_ssl
317    Memcheck:Value4
318    fun:DES_encrypt2
319 }
320
321 {
322    from test_socket_ssl
323    Memcheck:Cond
324    obj:/usr/lib/libssl.so.0.9.7
325 }
326
327 {
328    from test_socket_ssl
329    Memcheck:Value4
330    obj:/usr/lib/libssl.so.0.9.7
331 }
332
333 {
334    from test_socket_ssl
335    Memcheck:Cond
336    fun:BUF_MEM_grow_clean
337 }
338
339 {
340    from test_socket_ssl
341    Memcheck:Cond
342    fun:memcpy
343    fun:ssl3_read_bytes
344 }
345
346 {
347    from test_socket_ssl
348    Memcheck:Cond
349    fun:SHA1_Update
350 }
351
352 {
353    from test_socket_ssl
354    Memcheck:Value4
355    fun:SHA1_Update
356 }
357
358
359 # python init memleak
360 {
361    Py_Main memleak
362    Memcheck:Leak
363    fun:malloc
364    fun:PyObject_Malloc
365    fun:_PyObject_GC_Malloc
366    fun:_PyObject_GC_*
367    fun:*
368    fun:*
369    fun:*
370    fun:*
371    fun:Py_InitializeEx
372 }
373
374 {
375    Py_Main memleak
376    Memcheck:Leak
377    fun:malloc
378    fun:PyObject_Malloc
379    fun:_PyObject_GC_Malloc
380    fun:_PyObject_GC_*
381    fun:*
382    fun:*
383    fun:*
384    fun:*
385    fun:*
386    fun:*
387    fun:*
388    fun:Py_InitializeEx
389 }
390
391 {
392    Py_Main memleak v2
393    Memcheck:Leak
394    fun:malloc
395    fun:_PyObject_GC_Malloc
396    fun:_PyObject_GC_New
397    fun:*
398    fun:*
399    fun:*
400    fun:*
401    fun:*
402    fun:Py_InitializeEx
403 }
404
405 {
406    Read compiled module memleak
407    Memcheck:Leak
408    fun:malloc
409    fun:PyObject_Malloc
410    fun:_PyObject_GC_Malloc
411    fun:_PyObject_GC_NewVar
412    fun:*
413    fun:*
414    fun:*
415    fun:*
416    fun:*
417    fun:*
418    fun:*
419    fun:read_compiled_module
420 }
421
422 {
423    PyRun_SimpleFileExFlags memleak
424    Memcheck:Leak
425    fun:malloc
426    fun:_PyObject_GC_Malloc
427    fun:_PyObject_GC_New*
428    fun:*
429    fun:*
430    fun:*
431    fun:PyRun_SimpleFileExFlags
432 }
433
434 # memleak in update_keyword_args
435 {
436    update_keyword_args
437    Memcheck:Leak
438    fun:malloc
439    fun:_PyObject_GC_Malloc
440    fun:*
441    fun:*
442    fun:update_keyword_args
443 }
444
445 # memleaks/conds in import_submodule
446 {
447    memleak in import_submodule
448    Memcheck:Cond
449    fun:strcpy
450    fun:find_module
451 }
452
453 {
454    wrong jump in  import_submodule
455    Memcheck:Cond
456    fun:find_module
457    fun:import_submodule
458 }
459
460 {
461    wrong jump in  import_submodule
462    Memcheck:Cond
463    fun:find_module
464    fun:load_package
465    fun:load_module
466    fun:import_submodule
467 }
468
469 {
470    Use of uninitialised value of size 4
471    Memcheck:Value4
472    fun:strcpy
473    fun:find_module
474 }
475
476 ## KNOWN MEMORY LEAK in gst_element_state_get_name
477 ## See gstreamer/gst/gstutils.c
478 {
479    Known leak in gst_element_state_get_name
480    Memcheck:Leak
481    fun:*
482    fun:*
483    fun:*
484    fun:*
485    fun:g_strdup_printf
486    fun:gst_element_state_get_name
487 }
488
489 ## Suppressions for FC5 64bit
490
491 {
492    Wrong jump in PyImport_ImportModuleEx
493    Memcheck:Cond
494    fun:__strcpy_chk
495    obj:/usr/lib64/libpython2.4.so.1.0
496    obj:/usr/lib64/libpython2.4.so.1.0
497    obj:/usr/lib64/libpython2.4.so.1.0
498    fun:PyImport_ImportModuleEx
499 }
500
501 {
502    Wrong jump in PyImport_ImportModuleEx
503    Memcheck:Cond
504    fun:__strcpy_chk
505    fun:PyImport_ImportModuleEx
506 }
507
508 {
509    Wrong jump in PyImport_ImportModuleEx
510    Memcheck:Cond
511    fun:__strcpy_chk
512    obj:/usr/lib64/libpython2.4.so.1.0
513    obj:/usr/lib64/libpython2.4.so.1.0
514    fun:PyObject_Call
515    fun:PyObject_CallFunction
516    obj:/usr/lib64/libpython2.4.so.1.0
517    obj:/usr/lib64/libpython2.4.so.1.0
518    obj:/usr/lib64/libpython2.4.so.1.0
519    fun:PyImport_ImportModuleEx
520 }
521
522 {
523    Wrong jump in PyUnicode_Decode
524    Memcheck:Cond
525    fun:PyUnicode_Decode
526 }