[issue6028] Interpreter crashes when chaining an infinite number of exceptions

Yury report at bugs.python.org
Fri May 15 10:29:41 CEST 2009


New submission from Yury <yury.sobolev at gmail.com>:

def error_handle():
    try:
        print(5/0)
    except:
        error_handle()

error_handle()

Fatal Python error: Cannot recover from stack overflow.
Aborted

The interpreter should not crash. Perhaps a RuntimeError should be
thrown instead.

----------
components: Interpreter Core
messages: 87797
nosy: yury
severity: normal
status: open
title: Interpreter crashes when chaining an infinite number of exceptions
type: crash
versions: Python 3.0

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


More information about the Python-bugs-list mailing list