[Python-Dev] Valgrinding Python

Oren Tirosh oren-py-d@hishome.net
Tue, 30 Jul 2002 23:15:11 +0300


I ran some tests with Julian Seward's amazing Valgrind memory debugger.
Python is remarkably clean.  Much cleaner than any other program of 
non-trivial size that I tested.

Objects/obmalloc.c:
  
   The ADDRESS_IN_RANGE macro makes references to uninitialized memory.

This produced tons of warnings so I ran the rest of the tests without 
pymalloc.

The following tests produced invalid accesses inside the external
library:

test_anydbm.py
test_bsddb.py
test_dbm.py
test_gdbm.py
test_curses.py
test_pwd.py
test_socket_ssl.py

I also got some invalid accesses in Modules/arraymodule.c:array_ass_subscr 
while running test_array and in Objects/Listobject.c:list_ass_subscript 
running test_types. For some reason I couldn't reproduce them later. 

	Oren