[New-bugs-announce] [issue40021] Throwing an Exception results in stack overflow
ThePokestarFan
report at bugs.python.org
Thu Mar 19 22:25:19 EDT 2020
New submission from ThePokestarFan <sarkaraoyan at gmail.com>:
If I set up a simple recursion exception function, that calls itself every time an error is raised, Python throws a SIGABRT and crashes due to a "Stack Overflow".
def x():
try:
raise Exception()
except Exception:
x()
Oddly enough, my system installation of Python 2.7 threw a RuntimeError instead of aborting, which is what I expected.
----------
components: Interpreter Core, macOS
files: error.log
messages: 364646
nosy: ThePokestarFan, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Throwing an Exception results in stack overflow
type: crash
versions: Python 3.7
Added file: https://bugs.python.org/file48984/error.log
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40021>
_______________________________________
More information about the New-bugs-announce
mailing list