Deep recursive exception breaks traceback printing #118978
Labels
3.12
only security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
I tried to mess with CPython and try to generate the longest possible sequence of tracebacks.
I expected a chain of "During handling ...."
Instead of that I got
This happens around stack size 1000. Python's memory is fine, if I increase the sys.setrecursionlimit, I can safely push the stack into much larger numbers. I don't know what
lost sys.stderr
means, I can doprint("whatever", file=sys.stderr)
if I catch this exception easily.The CPython traceback looks like this
I am unfamiliar with the conventions of CPython, if this exit is not considered a bug, please close this issue.
CPython versions tested on:
3.12
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: