[issue3100] weakref subclass segfault
Adam Olsen
report at bugs.python.org
Fri Jun 13 06:55:26 CEST 2008
Adam Olsen <rhamph at gmail.com> added the comment:
Specific enough yet? Seems the WeakValueDictionary and the module
clearing aren't necessary.
A subclass of weakref is created. The target of this weakref is added
as an attribute of the weakref. So long as a callback is present there
will be a crash on shutdown. However, if the callback prints the
attribute, you get a crash right then. The weakref claims to be dead,
which shouldn't be possible when the weakref's attributes have a strong
reference to the target.
----------
title: segfault with WeakValueDictionary and module clearing -> weakref subclass segfault
Added file: http://bugs.python.org/file10613/weakref_subclass_cycle.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3100>
_______________________________________
More information about the Python-bugs-list
mailing list