This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author doko
Recipients doko
Date 2014-11-12.10:20:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1415787631.95.0.914662505329.issue22851@psf.upfronthosting.co.za>
In-reply-to
Content
seen with the current 2.7 branch:

$ cat > x.py
def foo(): yield
gen = foo()
print gen.gi_frame.f_restricted
for i in gen: pass
print gen.gi_frame
gen = foo()
print gen.next()
print gen.gi_frame.f_restricted

$ python x.py 
False
None
None
Segmentation fault

Program received signal SIGSEGV, Segmentation fault.
0x0000000000462b44 in frame_getrestricted (
    f=Frame 0x7ffff7f58410, for file x.py, line 1, in foo (), closure=0x0)
    at ../Objects/frameobject.c:383
383     ../Objects/frameobject.c: No such file or directory.
(gdb) bt
#0  0x0000000000462b44 in frame_getrestricted (
    f=Frame 0x7ffff7f58410, for file x.py, line 1, in foo (), closure=0x0)
    at ../Objects/frameobject.c:383
History
Date User Action Args
2014-11-12 10:20:31dokosetrecipients: + doko
2014-11-12 10:20:31dokosetmessageid: <1415787631.95.0.914662505329.issue22851@psf.upfronthosting.co.za>
2014-11-12 10:20:31dokolinkissue22851 messages
2014-11-12 10:20:31dokocreate