New submission from Massimiliano Tomassoli kiuhn...@yahoo.it:
Debugging script.py and jumping to line 3 makes Python crash.
For instance:
python -m pdb script.py
(Pdb) j 3
--
components: Interpreter Core
files: script.py
messages: 158603
nosy: mtomassoli
priority: normal
severity:
Changes by Massimiliano Tomassoli kiuhn...@yahoo.it:
--
type: - crash
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14612
___
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14612
___
___
Python-bugs-list
R. David Murray rdmur...@bitdance.com added the comment:
For reference, here is the crash:
rdmurray@hey:~/python/p33./python -m pdb script.py
/home/rdmurray/python/p33/script.py(1)module()
- with open('test') as f:
(Pdb) j 3
python: Objects/frameobject.c:207: frame_setlineno: Assertion
Changes by Benjamin Peterson benja...@python.org:
--
assignee: - benjamin.peterson
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14612
___
Peter Otten __pete...@web.de added the comment:
frame_setlineno() doesn't keep track of with blocks. Here's a patch.
--
keywords: +patch
nosy: +potten
Added file: http://bugs.python.org/file25258/frame_setlineno.patch
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 6a0a073e8461 by Benjamin Peterson in branch '3.2':
SETUP_WITH acts like SETUP_FINALLY for the purposes of setting f_lineno (closes
#14612)
http://hg.python.org/cpython/rev/6a0a073e8461
New changeset 0695f5d028a7 by