[issue17288] cannot jump from a return after setting f_lineno

2018-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Example in msg183254 doesn't crash Python 3.8. -- ___ Python tracker ___

[issue17288] cannot jump from a return after setting f_lineno

2018-02-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you mind to create a PR from your patch Xavier? The code of the f_lineno setter was changed in the master branch, so that it is better to create a PR for the 3.7 branch and later port it to master. --

[issue17288] cannot jump from a return after setting f_lineno

2016-06-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka stage: -> patch review ___ Python tracker ___

[issue17288] cannot jump from a return after setting f_lineno

2014-07-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: Python 3.5 is still crashing with this test: $ python jump.py jump.py(7)module() - for i in gen(): (Pdb) break 3 Breakpoint 1 at jump.py:3 (Pdb) continue jump.py(3)gen() - yield i (Pdb) step --Return-- jump.py(3)gen()-0 - yield i (Pdb) jump 2

[issue17288] cannot jump from a return after setting f_lineno

2014-07-08 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17288 ___ ___ Python-bugs-list

[issue17288] cannot jump from a return after setting f_lineno

2013-03-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: Nosying Benjamin Peterson who knows frame_setlineno (issue 14612) and nosying Jesús Cea Avión. Hoping they don't mind. This problem occurs also when setting f_lineno from an exception debug event. One may crash the interpreter (or get a SystemError: unknown

[issue17288] cannot jump from a return after setting f_lineno

2013-03-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: The proposed patch fixes the problem: * f_lineno cannot be set now from an exception trace function or from a return trace function. * The broken arithmetic involving a null pointer (f-f_stacktop, at the end of frame_setlineno when popping blocks that are

[issue17288] cannot jump from a return after setting f_lineno

2013-03-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17288 ___ ___ Python-bugs-list

[issue17288] cannot jump from a return after setting f_lineno

2013-03-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: Must add for completeness that f_lineno must be valid within a return trace function for the reasons explained in the last paragraph of Objects/lnotab_notes.txt. -- ___ Python tracker rep...@bugs.python.org

[issue17288] cannot jump from a return after setting f_lineno

2013-02-24 Thread Xavier de Gaye
New submission from Xavier de Gaye: On python 3.3 and the default branch, the jump from a 'return' fails although the change to f_lineno is validated, see below. This problem does not occur with python 2.7. $ python return.py /tmp/return.py(8)module() - foo() (Pdb) break 5 Breakpoint 1 at

[issue17288] cannot jump from a return after setting f_lineno

2013-02-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: Oops, it occurs too with python 2.7. -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17288 ___