[Python-Dev] valgrind and python?

Marcelo Matus mmatus@dinha.acms.arizona.edu
Tue, 27 Aug 2002 12:37:55 -0700


Did somebody already test python 2.2.1 using valgrind 1.0.1?

    http://developer.kde.org/~sewardj/

because testing one of my own modules, I get the following
recurrent error report whenever I import something:


==19951== Conditional jump or move depends on uninitialised value(s)
==19951==    at 0x8094B85: find_module (in 
/home/mmatus/oss2/gcc3/bin/python)
==19951==    by 0x8095DE2: import_submodule (Python/import.c:1887)
==19951==    by 0x80959B8: load_next (Python/import.c:1752)
==19951==    by 0x8097608: import_module_ex (Python/import.c:1603)

and  I don't know if I can ignore it or if this is a real python error.


Marcelo

PS: the error appears whenever you import a module, so,
after installing valgrind, try doing:

    echo import math > test.py
    valgrind /usr/local/bin/python test.py


if you have python installed in the /usr/local/bin directory, of course.