cpython/Modules/_ctypes
Neal Norwitz 2f99b24172 Merged revisions 66006 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

TESTED=./python -E -tt ./Lib/test/regrtest.py -uall (both debug and opt modes)

........
  r66006 | neal.norwitz | 2008-08-23 22:04:52 -0700 (Sat, 23 Aug 2008) | 25 lines

  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:48:10 +00:00
..
darwin Copy ctypes-0.9.9.4 sources from external into the trunk. 2006-03-08 19:35:11 +00:00
libffi Merged revisions 63562,63570,63728,63734,63784,63788,63802,63817,63827,63839,63887,63975,63998 via svnmerge from 2008-06-10 17:40:04 +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 Fix two compiler warnings on Win64. 2007-11-15 20:03:00 +00:00
libffi_osx Merged revisions 63955 via svnmerge from 2008-07-16 02:17:56 +00:00
_ctypes.c Merged revisions 65868,65870 via svnmerge from 2008-08-19 19:49:49 +00:00
_ctypes_test.c Implement PEP 3121: new module initialization and finalization API. 2008-06-11 05:26:20 +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 Merged revisions 63977 via svnmerge from 2008-06-06 09:31:40 +00:00
callproc.c Rename PyUnicode_AsString -> _PyUnicode_AsString and 2008-08-07 18:54:33 +00:00
cfield.c Merged revisions 63955 via svnmerge from 2008-07-16 02:17:56 +00:00
ctypes.h Merged revisions 63977 via svnmerge from 2008-06-06 09:31:40 +00:00
ctypes_dlfcn.h Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
malloc_closure.c Merged revisions 63562,63570,63728,63734,63784,63788,63802,63817,63827,63839,63887,63975,63998 via svnmerge from 2008-06-10 17:40:04 +00:00
stgdict.c Merged revisions 66006 via svnmerge from 2008-08-24 05:48:10 +00:00