[issue3100] weakref subclass segfault

Amaury Forgeot d'Arc report at bugs.python.org
Fri Jun 13 13:14:17 CEST 2008


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

A new version of the patch, which tests the case of multiple weakrefs on
the same object, that get deleted together:
tp_dealloc of one weakref calls tp_dealloc of the second weakref, which
calls tp_dealloc of the referenced object. Since the weakrefs are being
deleted, no callback should fire.

Added file: http://bugs.python.org/file10616/weakref_cycle.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3100>
_______________________________________


More information about the Python-bugs-list mailing list