[issue12149] Segfault in _PyObject_GenericGetAttrWithDict
Mark Shannon
report at bugs.python.org
Thu Dec 15 12:36:20 CET 2011
Mark Shannon <mark at hotpy.org> added the comment:
What's happening is that the cycle GC calls type_clear to clear the type, but the method-cache is not invalidated.
I have added a call to PyType_Modified in type_clear (as well as type_set_name and type_set_qualname, which also modify the type).
Patch is attached.
----------
Added file: http://bugs.python.org/file23964/patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12149>
_______________________________________
More information about the Python-bugs-list
mailing list