Debian Codegraph @

cpython27/Misc/valgrind-python.supp

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