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 Handle PyMalloc confusing valgrind (possibly leaked)
53 fun:_PyObject_GC_Resize
54 fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING
58 Handle PyMalloc confusing valgrind (possibly leaked)
62 fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING
66 Handle PyMalloc confusing valgrind (possibly leaked)
69 fun:_PyObject_GC_NewVar
70 fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING
74 # Non-python specific leaks
78 Handle pthread issue (possibly leaked)
82 fun:_dl_allocate_tls_storage
87 Handle pthread issue (possibly leaked)
90 fun:_dl_allocate_tls_storage
95 ### ADDRESS_IN_RANGE/Invalid read of size 4
101 ### ADDRESS_IN_RANGE/Invalid read of size 4
103 ### fun:PyObject_Free
107 ### ADDRESS_IN_RANGE/Conditional jump or move depends on uninitialised value
109 ### fun:PyObject_Free
113 ### ADDRESS_IN_RANGE/Invalid read of size 4
115 ### fun:PyObject_Realloc
119 ### ADDRESS_IN_RANGE/Invalid read of size 4
121 ### fun:PyObject_Realloc
125 ### ADDRESS_IN_RANGE/Conditional jump or move depends on uninitialised value
127 ### fun:PyObject_Realloc
131 ### All the suppressions below are for errors that occur within libraries
132 ### that Python uses. The problems to not appear to be related to Python's
133 ### use of the libraries.
137 Generic ubuntu ld problems
146 Generic gentoo ld problems
155 DBM problems, see test_dbm
159 obj:/usr/lib/libdb1.so.2
160 obj:/usr/lib/libdb1.so.2
161 obj:/usr/lib/libdb1.so.2
162 obj:/usr/lib/libdb1.so.2
167 DBM problems, see test_dbm
170 obj:/usr/lib/libdb1.so.2
171 obj:/usr/lib/libdb1.so.2
172 obj:/usr/lib/libdb1.so.2
173 obj:/usr/lib/libdb1.so.2
179 DBM problems, see test_dbm
181 obj:/usr/lib/libdb1.so.2
182 obj:/usr/lib/libdb1.so.2
183 obj:/usr/lib/libdb1.so.2
189 DBM problems, see test_dbm
192 obj:/usr/lib/libdb1.so.2
193 obj:/usr/lib/libdb1.so.2
194 obj:/usr/lib/libdb1.so.2
195 obj:/usr/lib/libdb1.so.2
201 GDBM problems, see test_gdbm
210 ZLIB problems, see test_gzip
212 obj:/lib/libz.so.1.2.3
213 obj:/lib/libz.so.1.2.3
218 Avoid problems w/readline doing a putenv and leaking on exit
222 fun:sh_set_lines_and_columns
223 fun:_rl_get_screen_size
224 fun:_rl_init_terminal_io
225 obj:/lib/libreadline.so.4.3
230 ### These occur from somewhere within the SSL, when running
231 ### test_socket_sll. They are too general to leave on by default.
234 ### somewhere in SSL stuff
239 ### somewhere in SSL stuff
245 ### somewhere in SSL stuff
251 ### somewhere in SSL stuff
257 # All of these problems come from using test_socket_ssl
280 fun:BN_mod_exp_mont_word
294 obj:/usr/lib/libcrypto.so.0.9.7
312 fun:DES_set_key_unchecked
324 obj:/usr/lib/libssl.so.0.9.7
330 obj:/usr/lib/libssl.so.0.9.7
336 fun:BUF_MEM_grow_clean