Salome HOME
Synchronize adm files
[modules/yacs.git] / Misc / valgrind-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 aka amd64)
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 # Leaks (including possible leaks)
45 #    Hmmm, I wonder if this masks some real leaks.  I think it does.
46 #    Will need to fix that.
47 #
48
49 {
50    Handle PyMalloc confusing valgrind (possibly leaked)
51    Memcheck:Leak
52    fun:realloc
53    fun:_PyObject_GC_Resize
54    fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING
55 }
56
57 {
58    Handle PyMalloc confusing valgrind (possibly leaked)
59    Memcheck:Leak
60    fun:malloc
61    fun:_PyObject_GC_New
62    fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING
63 }
64
65 {
66    Handle PyMalloc confusing valgrind (possibly leaked)
67    Memcheck:Leak
68    fun:malloc
69    fun:_PyObject_GC_NewVar
70    fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING
71 }
72
73 #
74 # Non-python specific leaks
75 #
76
77 {
78    Handle pthread issue (possibly leaked)
79    Memcheck:Leak
80    fun:calloc
81    fun:allocate_dtv
82    fun:_dl_allocate_tls_storage
83    fun:_dl_allocate_tls
84 }
85
86 {
87    Handle pthread issue (possibly leaked)
88    Memcheck:Leak
89    fun:memalign
90    fun:_dl_allocate_tls_storage
91    fun:_dl_allocate_tls
92 }
93
94 {
95    OCC allocator/Invalid read of size 4
96    Memcheck:Addr4
97    fun:_ZN23TCollection_AsciiStringC1EPKc
98 }
99 {
100    OCC allocator/Invalid read of size 4
101    Memcheck:Addr4
102    fun:_ZN23TCollection_AsciiStringC1ERKS_PKc
103 }
104 {
105    OCC allocator/Invalid read of size 4
106    Memcheck:Addr4
107    fun:_ZN26TCollection_ExtendedStringC1EPKcj
108 }
109 {
110    OCC allocator/Invalid read of size 4
111    Memcheck:Addr4
112    fun:_ZN23TCollection_AsciiString9AssignCatEPKc
113 }
114
115 {
116    omniORB send uninitialized
117    Memcheck:Param
118    socketcall.sendto(msg)
119    fun:send
120    fun:_ZN4omni13tcpConnection4SendEPvmmm
121 }
122
123 {
124    ADDRESS_IN_RANGE/Invalid read of size 4
125    Memcheck:Addr4
126    fun:PyObject_Free
127 }
128 {
129    ADDRESS_IN_RANGE/Invalid read of size 8
130    Memcheck:Addr8
131    fun:PyObject_Free
132 }
133
134 {
135    ADDRESS_IN_RANGE/Invalid read of size 4
136    Memcheck:Value4
137    fun:PyObject_Free
138 }
139 {
140    ADDRESS_IN_RANGE/Invalid read of size 8
141    Memcheck:Value8
142    fun:PyObject_Free
143 }
144
145 {
146    ADDRESS_IN_RANGE/Conditional jump or move depends on uninitialised value
147    Memcheck:Cond
148    fun:PyObject_Free
149 }
150
151 {
152    ADDRESS_IN_RANGE/Invalid read of size 4
153    Memcheck:Addr4
154    fun:PyObject_Realloc
155 }
156 {
157    ADDRESS_IN_RANGE/Invalid read of size 8
158    Memcheck:Addr8
159    fun:PyObject_Realloc
160 }
161
162 {
163    ADDRESS_IN_RANGE/Invalid read of size 4
164    Memcheck:Value4
165    fun:PyObject_Realloc
166 }
167 {
168    ADDRESS_IN_RANGE/Invalid read of size 8
169    Memcheck:Value8
170    fun:PyObject_Realloc
171 }
172
173 {
174    ADDRESS_IN_RANGE/Conditional jump or move depends on uninitialised value
175    Memcheck:Cond
176    fun:PyObject_Realloc
177 }
178
179 ###
180 ### All the suppressions below are for errors that occur within libraries
181 ### that Python uses.  The problems to not appear to be related to Python's
182 ### use of the libraries.
183 ###
184
185 {
186    Generic gentoo ld problems
187    Memcheck:Cond
188    obj:/lib/ld-2.3.4.so
189    obj:/lib/ld-2.3.4.so
190    obj:/lib/ld-2.3.4.so
191    obj:/lib/ld-2.3.4.so
192 }
193
194 {
195    DBM problems, see test_dbm
196    Memcheck:Param
197    write(buf)
198    fun:write
199    obj:/usr/lib/libdb1.so.2
200    obj:/usr/lib/libdb1.so.2
201    obj:/usr/lib/libdb1.so.2
202    obj:/usr/lib/libdb1.so.2
203    fun:dbm_close
204 }
205
206 {
207    DBM problems, see test_dbm
208    Memcheck:Value8
209    fun:memmove
210    obj:/usr/lib/libdb1.so.2
211    obj:/usr/lib/libdb1.so.2
212    obj:/usr/lib/libdb1.so.2
213    obj:/usr/lib/libdb1.so.2
214    fun:dbm_store
215    fun:dbm_ass_sub
216 }
217
218 {
219    DBM problems, see test_dbm
220    Memcheck:Cond
221    obj:/usr/lib/libdb1.so.2
222    obj:/usr/lib/libdb1.so.2
223    obj:/usr/lib/libdb1.so.2
224    fun:dbm_store
225    fun:dbm_ass_sub
226 }
227
228 {
229    DBM problems, see test_dbm
230    Memcheck:Cond
231    fun:memmove
232    obj:/usr/lib/libdb1.so.2
233    obj:/usr/lib/libdb1.so.2
234    obj:/usr/lib/libdb1.so.2
235    obj:/usr/lib/libdb1.so.2
236    fun:dbm_store
237    fun:dbm_ass_sub
238 }
239
240 {
241    GDBM problems, see test_gdbm
242    Memcheck:Param
243    write(buf)
244    fun:write
245    fun:gdbm_open
246
247 }
248
249 {
250    ZLIB problems, see test_gzip
251    Memcheck:Cond
252    obj:/lib/libz.so.1.2.3
253    obj:/lib/libz.so.1.2.3
254    fun:deflate
255 }
256
257 {
258    Avoid problems w/readline doing a putenv and leaking on exit
259    Memcheck:Leak
260    fun:malloc
261    fun:xmalloc
262    fun:sh_set_lines_and_columns
263    fun:_rl_get_screen_size
264    fun:_rl_init_terminal_io
265    obj:/lib/libreadline.so.4.3
266    fun:rl_initialize
267 }
268
269 ###
270 ### These occur from somewhere within the SSL, when running
271 ###  test_socket_sll.  They are too general to leave on by default.
272 ###
273 ###{
274 ###   somewhere in SSL stuff
275 ###   Memcheck:Cond
276 ###   fun:memset
277 ###}
278 ###{
279 ###   somewhere in SSL stuff
280 ###   Memcheck:Value4
281 ###   fun:memset
282 ###}
283 ###
284 ###{
285 ###   somewhere in SSL stuff
286 ###   Memcheck:Cond
287 ###   fun:MD5_Update
288 ###}
289 ###
290 ###{
291 ###   somewhere in SSL stuff
292 ###   Memcheck:Value4
293 ###   fun:MD5_Update
294 ###}
295
296 #
297 # All of these problems come from using test_socket_ssl
298 #
299 {
300    from test_socket_ssl
301    Memcheck:Cond
302    fun:BN_bin2bn
303 }
304
305 {
306    from test_socket_ssl
307    Memcheck:Cond
308    fun:BN_num_bits_word
309 }
310
311 {
312    from test_socket_ssl
313    Memcheck:Value4
314    fun:BN_num_bits_word
315 }
316
317 {
318    from test_socket_ssl
319    Memcheck:Cond
320    fun:BN_mod_exp_mont_word
321 }
322
323 {
324    from test_socket_ssl
325    Memcheck:Cond
326    fun:BN_mod_exp_mont
327 }
328
329 {
330    from test_socket_ssl
331    Memcheck:Param
332    write(buf)
333    fun:write
334    obj:/usr/lib/libcrypto.so.0.9.7
335 }
336
337 {
338    from test_socket_ssl
339    Memcheck:Cond
340    fun:RSA_verify
341 }
342
343 {
344    from test_socket_ssl
345    Memcheck:Value4
346    fun:RSA_verify
347 }
348
349 {
350    from test_socket_ssl
351    Memcheck:Value4
352    fun:DES_set_key_unchecked
353 }
354
355 {
356    from test_socket_ssl
357    Memcheck:Value4
358    fun:DES_encrypt2
359 }
360
361 {
362    from test_socket_ssl
363    Memcheck:Cond
364    obj:/usr/lib/libssl.so.0.9.7
365 }
366
367 {
368    from test_socket_ssl
369    Memcheck:Value4
370    obj:/usr/lib/libssl.so.0.9.7
371 }
372
373 {
374    from test_socket_ssl
375    Memcheck:Cond
376    fun:BUF_MEM_grow_clean
377 }
378
379 {
380    from test_socket_ssl
381    Memcheck:Cond
382    fun:memcpy
383    fun:ssl3_read_bytes
384 }
385
386 {
387    from test_socket_ssl
388    Memcheck:Cond
389    fun:SHA1_Update
390 }
391
392 {
393    from test_socket_ssl
394    Memcheck:Value4
395    fun:SHA1_Update
396 }
397
398