[issue27812] PyFrameObject.f_gen can be left pointing to a dangling generator

2016-09-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3e4452424f9b by Benjamin Peterson in branch '3.5': clear out f_gen during generator finalization (closes #27812) https://hg.python.org/cpython/rev/3e4452424f9b New changeset 1d7a938b1e47 by Benjamin Peterson in branch 'default': merge 3.5 (#27812) h

[issue27812] PyFrameObject.f_gen can be left pointing to a dangling generator

2016-08-20 Thread Armin Rigo
New submission from Armin Rigo: PyFrameObject.f_gen is a pointer (not a reference) to a generator/coroutine object. But the latter doesn't always correctly clean it up when it dies. This pointer is used by frame.clear(). Here is an example I made, which ends in a segfault. This example assu