Neal Norwitz | c3cd9df | 2004-06-06 19:58:40 +0000 | [diff] [blame] | 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/Conditional jump or move depends on uninitialised value |
| 33 | Memcheck:Cond |
| 34 | fun:Py_ADDRESS_IN_RANGE |
| 35 | } |
| 36 | |
| 37 | ###{ |
| 38 | ### ADDRESS_IN_RANGE/Invalid read of size 4 |
| 39 | ### Memcheck:Addr4 |
| 40 | ### fun:PyObject_Free |
| 41 | ###} |
| 42 | ### |
| 43 | ###{ |
| 44 | ### ADDRESS_IN_RANGE/Invalid read of size 4 |
| 45 | ### Memcheck:Value4 |
| 46 | ### fun:PyObject_Free |
| 47 | ###} |
| 48 | ### |
| 49 | ###{ |
| 50 | ### ADDRESS_IN_RANGE/Conditional jump or move depends on uninitialised value |
| 51 | ### Memcheck:Cond |
| 52 | ### fun:PyObject_Free |
| 53 | ###} |
| 54 | |
| 55 | ###{ |
| 56 | ### ADDRESS_IN_RANGE/Invalid read of size 4 |
| 57 | ### Memcheck:Addr4 |
| 58 | ### fun:PyObject_Realloc |
| 59 | ###} |
| 60 | ### |
| 61 | ###{ |
| 62 | ### ADDRESS_IN_RANGE/Invalid read of size 4 |
| 63 | ### Memcheck:Value4 |
| 64 | ### fun:PyObject_Realloc |
| 65 | ###} |
| 66 | ### |
| 67 | ###{ |
| 68 | ### ADDRESS_IN_RANGE/Conditional jump or move depends on uninitialised value |
| 69 | ### Memcheck:Cond |
| 70 | ### fun:PyObject_Realloc |
| 71 | ###} |
| 72 | |
| 73 | ### |
| 74 | ### All the suppressions below are for errors that occur within libraries |
| 75 | ### that Python uses. The problems to not appear to be related to Python's |
| 76 | ### use of the libraries. |
| 77 | ### |
| 78 | { |
| 79 | GDBM problems, see test_gdbm |
| 80 | Memcheck:Param |
| 81 | write(buf) |
| 82 | fun:write |
| 83 | fun:gdbm_open |
| 84 | |
| 85 | } |
| 86 | |
| 87 | ### |
| 88 | ### These occur from somewhere within the SSL, when running |
| 89 | ### test_socket_sll. They are too general to leave on by default. |
| 90 | ### |
| 91 | ###{ |
| 92 | ### somewhere in SSL stuff |
| 93 | ### Memcheck:Cond |
| 94 | ### fun:memset |
| 95 | ###} |
| 96 | ###{ |
| 97 | ### somewhere in SSL stuff |
| 98 | ### Memcheck:Value4 |
| 99 | ### fun:memset |
| 100 | ###} |
| 101 | ### |
| 102 | ###{ |
| 103 | ### somewhere in SSL stuff |
| 104 | ### Memcheck:Cond |
| 105 | ### fun:MD5_Update |
| 106 | ###} |
| 107 | ### |
| 108 | ###{ |
| 109 | ### somewhere in SSL stuff |
| 110 | ### Memcheck:Value4 |
| 111 | ### fun:MD5_Update |
| 112 | ###} |
| 113 | |
| 114 | # |
| 115 | # All of these problems come from using test_socket_ssl |
| 116 | # |
| 117 | { |
| 118 | from test_socket_ssl |
| 119 | Memcheck:Cond |
| 120 | fun:BN_bin2bn |
| 121 | } |
| 122 | |
| 123 | { |
| 124 | from test_socket_ssl |
| 125 | Memcheck:Cond |
| 126 | fun:BN_num_bits_word |
| 127 | } |
| 128 | |
| 129 | { |
| 130 | from test_socket_ssl |
| 131 | Memcheck:Value4 |
| 132 | fun:BN_num_bits_word |
| 133 | } |
| 134 | |
| 135 | { |
| 136 | from test_socket_ssl |
| 137 | Memcheck:Cond |
| 138 | fun:BN_mod_exp_mont_word |
| 139 | } |
| 140 | |
| 141 | { |
| 142 | from test_socket_ssl |
| 143 | Memcheck:Cond |
| 144 | fun:BN_mod_exp_mont |
| 145 | } |
| 146 | |
| 147 | { |
| 148 | from test_socket_ssl |
| 149 | Memcheck:Param |
| 150 | write(buf) |
| 151 | fun:write |
| 152 | obj:/usr/lib/libcrypto.so.0.9.7 |
| 153 | } |
| 154 | |
| 155 | { |
| 156 | from test_socket_ssl |
| 157 | Memcheck:Cond |
| 158 | fun:RSA_verify |
| 159 | } |
| 160 | |
| 161 | { |
| 162 | from test_socket_ssl |
| 163 | Memcheck:Value4 |
| 164 | fun:RSA_verify |
| 165 | } |
| 166 | |
| 167 | { |
| 168 | from test_socket_ssl |
| 169 | Memcheck:Value4 |
| 170 | fun:DES_set_key_unchecked |
| 171 | } |
| 172 | |
| 173 | { |
| 174 | from test_socket_ssl |
| 175 | Memcheck:Value4 |
| 176 | fun:DES_encrypt2 |
| 177 | } |
| 178 | |
| 179 | { |
| 180 | from test_socket_ssl |
| 181 | Memcheck:Cond |
| 182 | obj:/usr/lib/libssl.so.0.9.7 |
| 183 | } |
| 184 | |
| 185 | { |
| 186 | from test_socket_ssl |
| 187 | Memcheck:Value4 |
| 188 | obj:/usr/lib/libssl.so.0.9.7 |
| 189 | } |
| 190 | |
| 191 | { |
| 192 | from test_socket_ssl |
| 193 | Memcheck:Cond |
| 194 | fun:BUF_MEM_grow_clean |
| 195 | } |
| 196 | |
| 197 | { |
| 198 | from test_socket_ssl |
| 199 | Memcheck:Cond |
| 200 | fun:memcpy |
| 201 | fun:ssl3_read_bytes |
| 202 | } |
| 203 | |
| 204 | { |
| 205 | from test_socket_ssl |
| 206 | Memcheck:Cond |
| 207 | fun:SHA1_Update |
| 208 | } |
| 209 | |
| 210 | { |
| 211 | from test_socket_ssl |
| 212 | Memcheck:Value4 |
| 213 | fun:SHA1_Update |
| 214 | } |
| 215 | |
| 216 | |