2 # This is a valgrind suppression file that should be used when using valgrind.
4 # Here's an example of running valgrind:
7 # valgrind --tool=memcheck --suppressions=Misc/valgrind-python.supp \
8 # ./python -E -tt ./Lib/test/regrtest.py -u bsddb,network
10 # You must edit Objects/obmalloc.c and uncomment Py_USING_MEMORY_DEBUGGER
11 # to use the preferred suppressions with Py_ADDRESS_IN_RANGE.
13 # If you do not want to recompile Python, you can uncomment
14 # suppressions for PyObject_Free and PyObject_Realloc.
16 # See Misc/README.valgrind for more information.
18 # all tool names: Addrcheck,Memcheck,cachegrind,helgrind,massif
20 ADDRESS_IN_RANGE/Invalid read of size 4
22 fun:Py_ADDRESS_IN_RANGE
26 ADDRESS_IN_RANGE/Invalid read of size 4
28 fun:Py_ADDRESS_IN_RANGE
32 ADDRESS_IN_RANGE/Invalid read of size 8 (x86_64 aka amd64)
34 fun:Py_ADDRESS_IN_RANGE
38 ADDRESS_IN_RANGE/Conditional jump or move depends on uninitialised value
40 fun:Py_ADDRESS_IN_RANGE
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.
50 Suppress leaking the GIL. Happens once per process, see comment in ceval.c.
53 fun:PyThread_allocate_lock
54 fun:PyEval_InitThreads
58 Suppress leaking the GIL after a fork.
61 fun:PyThread_allocate_lock
62 fun:PyEval_ReInitThreads
66 Suppress leaking the autoTLSkey. This looks like it shouldn't leak though.
69 fun:PyThread_create_key
76 Hmmm, is this a real leak or like the GIL?
79 fun:PyThread_ReInitTLS
83 Handle PyMalloc confusing valgrind (possibly leaked)
86 fun:_PyObject_GC_Resize
87 fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING
91 Handle PyMalloc confusing valgrind (possibly leaked)
95 fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING
99 Handle PyMalloc confusing valgrind (possibly leaked)
102 fun:_PyObject_GC_NewVar
103 fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING
107 # Non-python specific leaks
111 Handle pthread issue (possibly leaked)
115 fun:_dl_allocate_tls_storage
120 Handle pthread issue (possibly leaked)
123 fun:_dl_allocate_tls_storage
128 ADDRESS_IN_RANGE/Invalid read of size 4
134 ADDRESS_IN_RANGE/Invalid read of size 4
140 ADDRESS_IN_RANGE/Conditional jump or move depends on uninitialised value
146 ADDRESS_IN_RANGE/Invalid read of size 4
152 ADDRESS_IN_RANGE/Invalid read of size 4
158 ADDRESS_IN_RANGE/Conditional jump or move depends on uninitialised value
164 Generic ubuntu ld problems
173 Generic gentoo ld problems
182 DBM problems, see test_dbm
186 obj:/usr/lib/libdb1.so.2
187 obj:/usr/lib/libdb1.so.2
188 obj:/usr/lib/libdb1.so.2
189 obj:/usr/lib/libdb1.so.2
194 DBM problems, see test_dbm
197 obj:/usr/lib/libdb1.so.2
198 obj:/usr/lib/libdb1.so.2
199 obj:/usr/lib/libdb1.so.2
200 obj:/usr/lib/libdb1.so.2
206 DBM problems, see test_dbm
208 obj:/usr/lib/libdb1.so.2
209 obj:/usr/lib/libdb1.so.2
210 obj:/usr/lib/libdb1.so.2
216 DBM problems, see test_dbm
219 obj:/usr/lib/libdb1.so.2
220 obj:/usr/lib/libdb1.so.2
221 obj:/usr/lib/libdb1.so.2
222 obj:/usr/lib/libdb1.so.2
228 GDBM problems, see test_gdbm
237 ZLIB problems, see test_gzip
239 obj:/lib/libz.so.1.2.3
240 obj:/lib/libz.so.1.2.3
245 Avoid problems w/readline doing a putenv and leaking on exit
249 fun:sh_set_lines_and_columns
250 fun:_rl_get_screen_size
251 fun:_rl_init_terminal_io
252 obj:/lib/libreadline.so.4.3
258 somewhere in SSL stuff
263 somewhere in SSL stuff
269 somewhere in SSL stuff
275 somewhere in SSL stuff
281 # All of these problems come from using test_socket_ssl
304 fun:BN_mod_exp_mont_word
318 obj:/usr/lib/libcrypto.so.0.9.7
336 fun:DES_set_key_unchecked
348 obj:/usr/lib/libssl.so.0.9.7
354 obj:/usr/lib/libssl.so.0.9.7
360 fun:BUF_MEM_grow_clean