How to use valgrind with python?
问题 I am trying to memcheck a C python extension I am writing, but I\'m having trouble setting up valgrind to work with python. I would really appreciate some advice. Just for context, this is Ubuntu 13.10, python 2.7.5+, and valgrind 3.8.1. As per recommendation from Readme.valgrind I did the following. 1) Downloaded the python source with sudo apt-get build-dep python2.7 apt-get source python2.7 2) Applied the code patch, i.e. \"Uncomment Py_USING_MEMORY_DEBUGGER in Objects/obmalloc.c\". 3)