[issue21435] Segfault with cyclic reference and asyncio.Future

Tim Peters report at bugs.python.org
Wed May 7 05:29:00 CEST 2014


Tim Peters added the comment:

Attaching a marginally cleaner version of the patch, with comments.

I think it's clear this addresses _some_ real fatal problems, but they're rare:  for a problem to show up, it has to be the case that finalize() reduces the refcount of the current object to 0, and that this also causes "the immediately previous" object in the gc list to become free'd, or at least untracked from gc.  Then the next "current object" will be taken from an insane gc_next member, and all bets are off.

----------
Added file: http://bugs.python.org/file35166/finalize2.patch

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


More information about the Python-bugs-list mailing list