Issue 17191: pdb list shows unexpected code when stack frame includes a try / finally block (original) (raw)

Issue17191

Created on 2013-02-12 10:47 by AbramClark, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
pdb_list_bug_reproduce.py AbramClark,2013-02-12 10:47 program to reproduce unexpected pdb behavior
Messages (3)
msg181951 - (view) Author: Abram Clark (AbramClark) Date: 2013-02-12 10:47
The list command in pdb shows an unexpected portion of code after an up command enters a try / finally block in the call stack. To reproduce: pdb pdb_list_bug_reproduce.py c up list Expected behavior: Show 11 lines around line 8, "throw_something()", which was the entry point to the lower stack frame. Actual behavior: Shows code centered around line 10, in the finally block, which is likely cleanup code that has nothing to do with the exception thrown.
msg182270 - (view) Author: Xavier de Gaye (xdegaye) * (Python triager) Date: 2013-02-17 14:03
This is fixed in python 3.2 by changeset 670d4cbf1464, and indeed the '>>' marker is shown at line 8 of pdb_list_bug_reproduce.py when debugging this (modified for py3) script with python 3.2.
msg370431 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2020-05-31 12:51
Python 2.7 is no longer supported.
History
Date User Action Args
2022-04-11 14:57:41 admin set github: 61393
2020-05-31 12:51:09 serhiy.storchaka set status: open -> closednosy: + serhiy.storchakamessages: + resolution: out of datestage: resolved
2013-02-17 14:03:00 xdegaye set nosy: + xdegayemessages: +
2013-02-12 10:47:37 AbramClark create