◐ Shell
clean mode source ↗

Issue 40021: Throwing an Exception results in stack overflow

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.