[Python-Dev] Python under valgrind

Victor Stinner victor.stinner at haypocalc.com
Fri Nov 28 14:09:12 CET 2008


Le Friday 28 November 2008 13:56:34 Amaury Forgeot d'Arc, vous avez écrit :
> Hrvoje Niksic wrote:
> > A friend pointed out that running python under valgrind (simply "valgrind
> > python") produces a lot of "invalid read" errors. (...) PyFree (...)
>
> Did you use the suppressions file as suggested in Misc/README.valgrind?
>
>    --suppressions=Misc/valgrind-python.supp

To be able to use the suppressions, Python have to be compiled with 
Py_USING_MEMORY_DEBUGGER. Edit Object/obmalloc.c near line 680.

-- 
Victor Stinner aka haypo
http://www.haypocalc.com/blog/


More information about the Python-Dev mailing list