]> granicus.if.org Git - python/commitdiff
Issue #13070: Fix a crash when a TextIOWrapper caught in a reference cycle
authorCharles-François Natali <neologix@free.fr>
Wed, 5 Oct 2011 17:55:56 +0000 (19:55 +0200)
committerCharles-François Natali <neologix@free.fr>
Wed, 5 Oct 2011 17:55:56 +0000 (19:55 +0200)
would be finalized after the reference to its underlying BufferedRWPair's
writer got cleared by the GC.

1  2 
Lib/test/test_io.py
Misc/NEWS
Modules/_io/bufferedio.c

Simple merge
diff --cc Misc/NEWS
index 025d42a27076118f620708bd2fe9d90f04f6e451,c4aba0dfea50f9cd455f1abf9b37c550e9c1f379..46e7f1470eaad35a7233613009e34a5235770751
+++ b/Misc/NEWS
@@@ -1314,40 -964,6 +1314,44 @@@ Tools/Demo
  Extension Modules
  -----------------
  
++- Issue #13070: Fix a crash when a TextIOWrapper caught in a reference cycle
++  would be finalized after the reference to its underlying BufferedRWPair's
++  writer got cleared by the GC.
++
 +- Issue #12881: ctypes: Fix segfault with large structure field names.
 +
 +- Issue #13058: ossaudiodev: fix a file descriptor leak on error. Patch by
 +  Thomas Jarosch.
 +
 +- Issue #13013: ctypes: Fix a reference leak in PyCArrayType_from_ctype.
 +  Thanks to Suman Saha for finding the bug and providing a patch.
 +
 +- Issue #13022: Fix: _multiprocessing.recvfd() doesn't check that
 +  file descriptor was actually received.
 +
 +- Issue #1172711: Add 'long long' support to the array module.
 +  Initial patch by Oren Tirosh and Hirokazu Yamamoto.
 +
 +- Issue #12483: ctypes: Fix a crash when the destruction of a callback
 +  object triggers the garbage collector.
 +
 +- Issue #12950: Fix passing file descriptors in multiprocessing, under
 +  OpenIndiana/Illumos.
 +
 +- Issue #12764: Fix a crash in ctypes when the name of a Structure field is not
 +  a string.
 +
 +- Issue #11241: subclasses of ctypes.Array can now be subclassed.
 +
 +- Issue #9651: Fix a crash when ctypes.create_string_buffer(0) was passed to
 +  some functions like file.write().
 +
 +- Issue #10309: Define _GNU_SOURCE so that mremap() gets the proper
 +  signature.  Without this, architectures where sizeof void* != sizeof int are
 +  broken.  Patch given by Hallvard B Furuseth.
 +
 +- Issue #12221: Replace pyexpat.__version__ with the Python version.
 +
  - Issue #12051: Fix segfault in json.dumps() while encoding highly-nested
    objects using the C accelerations.
  
Simple merge