summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-07-12 19:58:39 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-07-12 19:58:39 (GMT)
commit093c8e4bf053dfe5a9b46945cca2113e80809dfc (patch)
tree10b0b6f5406dc6f603a74444191d5b4504ebb57b /Misc
parent126edb56074371c1751f19770854b2fdf3dd4706 (diff)
parent84f1b1718da7fcbb8b8d255c166ef1ec0e03cd21 (diff)
downloadcpython-093c8e4bf053dfe5a9b46945cca2113e80809dfc.zip
cpython-093c8e4bf053dfe5a9b46945cca2113e80809dfc.tar.gz
cpython-093c8e4bf053dfe5a9b46945cca2113e80809dfc.tar.bz2
Issue #12149: Update the method cache after a type's dictionnary gets
cleared by the garbage collector. This fixes a segfault when an instance and its type get caught in a reference cycle, and the instance's deallocator calls one of the methods on the type (e.g. when subclassing IOBase). Diagnosis and patch by Davide Rizzo.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS6
2 files changed, 7 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index 6879c98..5ad6ead 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -785,6 +785,7 @@ Armin Rigo
Nicholas Riley
Jean-Claude Rimbault
Juan M. Bello Rivas
+Davide Rizzo
Anthony Roach
Mark Roberts
Jim Robinson
diff --git a/Misc/NEWS b/Misc/NEWS
index c4c8430..8a84891 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,12 @@ What's New in Python 3.3 Alpha 1?
Core and Builtins
-----------------
+- Issue #12149: Update the method cache after a type's dictionnary gets
+ cleared by the garbage collector. This fixes a segfault when an instance
+ and its type get caught in a reference cycle, and the instance's
+ deallocator calls one of the methods on the type (e.g. when subclassing
+ IOBase). Diagnosis and patch by Davide Rizzo.
+
- Issue #9611, #9015: FileIO.read() clamps the length to INT_MAX on Windows.
- Issue #9642: Uniformize the tests on the availability of the mbcs codec, add