cpython/Objects
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
..
stringlib Fix: 2008-08-24 05:04:52 +00:00
abstract.c Fix memory leak: Always DECREF obj in PyBuffer_Release. 2008-08-14 20:12:06 +00:00
boolobject.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
bufferobject.c Change the warning emitted for using the buffer() object; memoryview() in 3.0 2008-08-08 04:15:53 +00:00
bytearrayobject.c Silenced compiler warning 2008-08-22 19:47:25 +00:00
bytes_methods.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
cellobject.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
classobject.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
cobject.c PEP 3123: Provide forward compatibility with Python 3.0, while keeping 2007-07-21 06:55:02 +00:00
codeobject.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
complexobject.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
descrobject.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
dictnotes.txt Patch #1397848: add the reasoning behind no-resize-on-shrinkage. 2007-02-15 09:51:35 +00:00
dictobject.c - Issue #3537: Fix an assertion failure when an empty but presized dict 2008-08-11 09:07:59 +00:00
enumobject.c Convert from long to Py_ssize_t. 2008-07-24 07:04:55 +00:00
exceptions.c backport r64751 2008-07-30 17:45:10 +00:00
fileobject.c Issue #3139: Make buffer-interface thread-safe wrt. PyArg_ParseTuple, 2008-08-12 14:49:50 +00:00
floatobject.c issue 3633: Solaris allows fullwidth Unicode digits in isxdigit, so 2008-08-21 21:38:38 +00:00
frameobject.c Issue2378: pdb would delete free variables when stepping into a class statement. 2008-07-21 22:00:38 +00:00
funcobject.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
genobject.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
intobject.c - Issue #2862: Make int and float freelist management consistent with other 2008-07-06 03:35:58 +00:00
iterobject.c PEP 3123: Provide forward compatibility with Python 3.0, while keeping 2007-07-21 06:55:02 +00:00
listobject.c Issue 2235: __hash__ is once again inherited by default, but inheritance can be blocked explicitly so that collections.Hashable remains meaningful 2008-07-15 14:27:37 +00:00
listsort.txt typo fix 2006-08-01 16:24:30 +00:00
longobject.c Issue #1481296: (again!) Make conversion of a float NaN to an int or 2008-08-04 21:30:09 +00:00
methodobject.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
moduleobject.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
object.c Issue 2235: __hash__ is once again inherited by default, but inheritance can be blocked explicitly so that collections.Hashable remains meaningful 2008-07-15 14:27:37 +00:00
obmalloc.c Changed type of numarenas from uint to size_t to silence a GCC warning on 64bit OSes. Reviewed by Benjamin Peterson. 2008-08-22 19:34:15 +00:00
rangeobject.c Added better pickling support to xrange objects. 2008-06-10 04:01:23 +00:00
setobject.c Issue 2235: __hash__ is once again inherited by default, but inheritance can be blocked explicitly so that collections.Hashable remains meaningful 2008-07-15 14:27:37 +00:00
sliceobject.c Issue #3004: Minor fix to slice.indices(). slice(-10).indices(9) now 2008-06-20 14:53:43 +00:00
stringobject.c Issue #3139: Make buffer-interface thread-safe wrt. PyArg_ParseTuple, 2008-08-12 14:49:50 +00:00
structseq.c Fix: 2008-08-24 05:04:52 +00:00
tupleobject.c Security patches from Apple: prevent int overflow when allocating memory 2008-07-31 17:17:14 +00:00
typeobject.c Issue 2235: Py3k warnings are now emitted for classes that will no longer inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings. 2008-08-11 15:45:58 +00:00
unicodectype.c Patch 1494554: Update numeric properties to Unicode 4.1. 2006-05-27 08:36:52 +00:00
unicodeobject.c Correct a crash when two successive unicode allocations fail with a MemoryError: 2008-07-31 23:39:05 +00:00
unicodetype_db.h Update Unicode database to Unicode 4.1. 2006-03-09 23:38:20 +00:00
weakrefobject.c Issue 3110: Crash with weakref subclass, 2008-06-16 19:12:42 +00:00