cpython/Modules/_ctypes
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
..
darwin Copy ctypes-0.9.9.4 sources from external into the trunk. 2006-03-08 19:35:11 +00:00
libffi Fix misspelled sys.platform name and misspelled filename. 2008-06-02 18:41:30 +00:00
libffi_arm_wince Copy ctypes-0.9.9.4 sources from external into the trunk. 2006-03-08 19:35:11 +00:00
libffi_msvc On 64-bit Windows, ffi_arg must be 8 bytes long. This fixes the 2007-05-04 08:20:41 +00:00
libffi_osx MacOS X: Enable 4-way universal builds 2008-06-05 12:58:24 +00:00
_ctypes.c COM method code is windows specific 2008-08-19 19:40:23 +00:00
_ctypes_test.c Issue 1872: Changed the struct module typecode from 't' to '?', for 2008-03-05 15:34:29 +00:00
_ctypes_test.h Copy ctypes-0.9.9.4 sources from external into the trunk. 2006-03-08 19:35:11 +00:00
callbacks.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
callproc.c Issue #3313: Contrary to the man page, a failed dlopen() call does not 2008-07-15 19:39:38 +00:00
cfield.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
ctypes.h Make ctypes compatible with Python 2.3, 2.4, and 2.5 again. 2008-07-24 11:16:45 +00:00
ctypes_dlfcn.h Add pep-291 compatibility markers. 2006-06-12 20:56:48 +00:00
malloc_closure.c Patch #1722225: Support QNX 6. 2008-05-23 15:06:50 +00:00
stgdict.c Fix: 2008-08-24 05:04:52 +00:00