| 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 | Handle PyMalloc confusing valgrind (possibly leaked)
|
|---|
| 51 | Memcheck:Leak
|
|---|
| 52 | fun:realloc
|
|---|
| 53 | fun:_PyObject_GC_Resize
|
|---|
| 54 | fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING
|
|---|
| 55 | }
|
|---|
| 56 |
|
|---|
| 57 | {
|
|---|
| 58 | Handle PyMalloc confusing valgrind (possibly leaked)
|
|---|
| 59 | Memcheck:Leak
|
|---|
| 60 | fun:malloc
|
|---|
| 61 | fun:_PyObject_GC_New
|
|---|
| 62 | fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING
|
|---|
| 63 | }
|
|---|
| 64 |
|
|---|
| 65 | {
|
|---|
| 66 | Handle PyMalloc confusing valgrind (possibly leaked)
|
|---|
| 67 | Memcheck:Leak
|
|---|
| 68 | fun:malloc
|
|---|
| 69 | fun:_PyObject_GC_NewVar
|
|---|
| 70 | fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING
|
|---|
| 71 | }
|
|---|
| 72 |
|
|---|
| 73 | #
|
|---|
| 74 | # Non-python specific leaks
|
|---|
| 75 | #
|
|---|
| 76 |
|
|---|
| 77 | {
|
|---|
| 78 | Handle pthread issue (possibly leaked)
|
|---|
| 79 | Memcheck:Leak
|
|---|
| 80 | fun:calloc
|
|---|
| 81 | fun:allocate_dtv
|
|---|
| 82 | fun:_dl_allocate_tls_storage
|
|---|
| 83 | fun:_dl_allocate_tls
|
|---|
| 84 | }
|
|---|
| 85 |
|
|---|
| 86 | {
|
|---|
| 87 | Handle pthread issue (possibly leaked)
|
|---|
| 88 | Memcheck:Leak
|
|---|
| 89 | fun:memalign
|
|---|
| 90 | fun:_dl_allocate_tls_storage
|
|---|
| 91 | fun:_dl_allocate_tls
|
|---|
| 92 | }
|
|---|
| 93 |
|
|---|
| 94 | ###{
|
|---|
| 95 | ### ADDRESS_IN_RANGE/Invalid read of size 4
|
|---|
| 96 | ### Memcheck:Addr4
|
|---|
| 97 | ### fun:PyObject_Free
|
|---|
| 98 | ###}
|
|---|
| 99 | ###
|
|---|
| 100 | ###{
|
|---|
| 101 | ### ADDRESS_IN_RANGE/Invalid read of size 4
|
|---|
| 102 | ### Memcheck:Value4
|
|---|
| 103 | ### fun:PyObject_Free
|
|---|
| 104 | ###}
|
|---|
| 105 | ###
|
|---|
| 106 | ###{
|
|---|
| 107 | ### ADDRESS_IN_RANGE/Conditional jump or move depends on uninitialised value
|
|---|
| 108 | ### Memcheck:Cond
|
|---|
| 109 | ### fun:PyObject_Free
|
|---|
| 110 | ###}
|
|---|
| 111 |
|
|---|
| 112 | ###{
|
|---|
| 113 | ### ADDRESS_IN_RANGE/Invalid read of size 4
|
|---|
| 114 | ### Memcheck:Addr4
|
|---|
| 115 | ### fun:PyObject_Realloc
|
|---|
| 116 | ###}
|
|---|
| 117 | ###
|
|---|
| 118 | ###{
|
|---|
| 119 | ### ADDRESS_IN_RANGE/Invalid read of size 4
|
|---|
| 120 | ### Memcheck:Value4
|
|---|
| 121 | ### fun:PyObject_Realloc
|
|---|
| 122 | ###}
|
|---|
| 123 | ###
|
|---|
| 124 | ###{
|
|---|
| 125 | ### ADDRESS_IN_RANGE/Conditional jump or move depends on uninitialised value
|
|---|
| 126 | ### Memcheck:Cond
|
|---|
| 127 | ### fun:PyObject_Realloc
|
|---|
| 128 | ###}
|
|---|
| 129 |
|
|---|
| 130 | ###
|
|---|
| 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.
|
|---|
| 134 | ###
|
|---|
| 135 |
|
|---|
| 136 | {
|
|---|
| 137 | Generic gentoo ld problems
|
|---|
| 138 | Memcheck:Cond
|
|---|
| 139 | obj:/lib/ld-2.3.4.so
|
|---|
| 140 | obj:/lib/ld-2.3.4.so
|
|---|
| 141 | obj:/lib/ld-2.3.4.so
|
|---|
| 142 | obj:/lib/ld-2.3.4.so
|
|---|
| 143 | }
|
|---|
| 144 |
|
|---|
| 145 | {
|
|---|
| 146 | DBM problems, see test_dbm
|
|---|
| 147 | Memcheck:Param
|
|---|
| 148 | write(buf)
|
|---|
|
|---|