Commit Graph

6 Commits

Author SHA1 Message Date
Neal Norwitz 18aa388ca0 Fix:
* crashes on memory allocation failure found with failmalloc
 * memory leaks found with valgrind
 * compiler warnings in opt mode which would lead to invalid memory reads
 * problem using wrong name in decimal module reported by pychecker

Update the valgrind suppressions file with new leaks that are small/one-time
leaks we don't care about (ie, they are too hard to fix).

TBR=barry
TESTED=./python -E -tt ./Lib/test/regrtest.py -uall (both debug and opt modes)
  in opt mode:
  valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \
    ./python -E -tt ./Lib/test/regrtest.py -uall,-bsddb,-compiler \
                        -x test_logging test_ssl test_multiprocessing
  valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \
    ./python -E -tt ./Lib/test/regrtest.py test_multiprocessing
  for i in `seq 1 4000` ; do
    LD_PRELOAD=~/local/lib/libfailmalloc.so FAILMALLOC_INTERVAL=$i \
        ./python -c pass
  done

At least some of these fixes should probably be backported to 2.5.
2008-08-24 05:04:52 +00:00
Neal Norwitz 59953571fb Ignore valgrind problems on Ubuntu from ld 2007-06-11 01:22:03 +00:00
Neal Norwitz 25d4ca3f78 Ignore some more warnings in the dynamic linker on an older gentoo 2006-06-27 04:06:46 +00:00
Neal Norwitz 497b19a8a2 Updated gentoo to 2005.0 2005-11-13 18:58:32 +00:00
Neal Norwitz 76390de83c suppress more errors on my box, most are gentoo specific. Py_ADDRESS_IN_RANGE is x86_64 specific and the readline memory leaks should be generally applicable 2005-10-03 07:46:34 +00:00
Neal Norwitz c3cd9df95a Add some doc about using valgrind 2004-06-06 19:58:40 +00:00