New submission from Matthias Klose: 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 ---------- components: Interpreter Core messages: 231069 nosy: doko priority: normal severity: normal status: open title: core crashes versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22851> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com