[issue14612] Crash after modifying f_lineno

2012-04-18 Thread Roundup Robot

Roundup Robot  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 Benjamin Peterson in branch 'default':
merge 3.2 (#14612)
http://hg.python.org/cpython/rev/0695f5d028a7

New changeset 67be12ab8948 by Benjamin Peterson in branch '2.7':
SETUP_WITH acts like SETUP_FINALLY for the purposes of setting f_lineno (closes 
#14612)
http://hg.python.org/cpython/rev/67be12ab8948

--
nosy: +python-dev
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14612] Crash after modifying f_lineno

2012-04-18 Thread Peter Otten

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14612] Crash after modifying f_lineno

2012-04-18 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
assignee:  -> benjamin.peterson
nosy: +benjamin.peterson

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14612] Crash after modifying f_lineno

2012-04-18 Thread R. David Murray

R. David Murray  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)()
-> with open('test') as f:
(Pdb) j 3
python: Objects/frameobject.c:207: frame_setlineno: Assertion `blockstack_top > 
0' failed.
zsh: abort  ./python -m pdb script.py

--
nosy: +r.david.murray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14612] Crash after modifying f_lineno

2012-04-18 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +georg.brandl

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14612] Crash after modifying f_lineno

2012-04-18 Thread Massimiliano Tomassoli

Changes by Massimiliano Tomassoli :


--
type:  -> crash

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14612] Crash after modifying f_lineno

2012-04-18 Thread Massimiliano Tomassoli

New submission from Massimiliano Tomassoli :

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: normal
status: open
title: Crash after modifying f_lineno
versions: Python 2.7, Python 3.3
Added file: http://bugs.python.org/file25256/script.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com