valgrind-python.supp 3.7 KB

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