]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #12149: Update the method cache after a type's dictionnary gets
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 12 Jul 2011 20:04:20 +0000 (22:04 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 12 Jul 2011 20:04:20 +0000 (22:04 +0200)
commit1616645a0032b45c935ec6bdbb1d46b3febf0827
tree402f294b56e32dbc6066a176d5f609a18bc125dc
parent0504532c39ffdf6cb8e4b7b283da60027473a4a5
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.
Lib/test/test_io.py
Misc/ACKS
Misc/NEWS
Objects/typeobject.c