[New-bugs-announce] [issue30953] Fatal python error when jumping into except clause

ppperry report at bugs.python.org
Mon Jul 17 17:24:58 EDT 2017


New submission from ppperry:

trying to execute the following code:
import sys
def trace(frame, event, arg):
    if event == "line" and frame.f_lineno > 12:
        frame.f_lineno = 12
        return None
    return trace
sys.settrace(trace)
def error():
    try:
        pass
    except:
        pass
    pass
    pass
error()
Produces a fatal error:
Fatal Python error: XXX block stack underflow

Current thread 0x00000af4 (most recent call first):
  File "jumpintoexception.py", line 12 in error
  File "jumpintoexception.py", line 15 in <module>

----------
components: Interpreter Core, Library (Lib)
messages: 298556
nosy: ppperry
priority: normal
severity: normal
status: open
title: Fatal python error when jumping into except clause
type: crash
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30953>
_______________________________________


More information about the New-bugs-announce mailing list