From: Antoine Pitrou Date: Tue, 12 Jul 2011 19:58:39 +0000 (+0200) Subject: Issue #12149: Update the method cache after a type's dictionnary gets X-Git-Tag: v3.3.0a1~1923 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=093c8e4bf053dfe5a9b46945cca2113e80809dfc;p=thirdparty%2FPython%2Fcpython.git 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. --- 093c8e4bf053dfe5a9b46945cca2113e80809dfc diff --cc Misc/NEWS index c4c8430d4fb3,3df8e953870f..8a848916c1e9 --- a/Misc/NEWS +++ b/Misc/NEWS @@@ -10,16 -10,14 +10,22 @@@ 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 + a new HAVE_MBCS define. + +- Issue #9642: Fix filesystem encoding initialization: use the ANSI code page + on Windows if the mbcs codec is not available, and fail with a fatal error if + we cannot get the locale encoding (if nl_langinfo(CODESET) is not available) + instead of using UTF-8. + - When a generator yields, do not retain the caller's exception state on the generator.