[New-bugs-announce] [issue2548] Undetected error in exception handling

Thomas Heller report at bugs.python.org
Fri Apr 4 10:16:42 CEST 2008

New submission from Thomas Heller <theller at ctypes.org>:

[Found by Daniel Diniz (ajaksu2), see issue #2542]

The following code triggers an undetected error with a debug build:

import sys
def g():
    return g()
    return sys.exc_info()
print 42

Running the code prints this:

C:\svn\trunk\PCbuild>python_d test2.py
XXX undetected error
Traceback (most recent call last):
  File "test2.py", line 8, in <module>
    print 42
RuntimeError: maximum recursion depth exceeded
[8826 refs]


components: Interpreter Core
messages: 64920
nosy: theller
severity: normal
status: open
title: Undetected error in exception handling
type: crash
versions: Python 2.6

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list