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

Antoine Pitrou report at bugs.python.org
Fri May 15 22:40:05 CEST 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

Amaury, your patch might make some individual cases better, but it won't
prevent a FatalError from occurring in all cases.

Also, it makes things worse in the following case:

def recurse():
    try:
        recurse()
    except:
        recurse()
        
recurse()

(the script goes into an uninterruptible infinite loop, rather than
raising an explicit Fatal error)

More useful, IMHO, would be to patch Py_FatalError() so that a traceback
is printed.

----------

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


More information about the Python-bugs-list mailing list