[issue44917] interpreter hangs on recursion in both body and handler of a try block

2021-08-15 Thread Irit Katriel
Irit Katriel added the comment: Right, this is a duplicate of issue42951. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Random and infinite loop in dealing with recursion error for "try-except " ___ Python

[issue44917] interpreter hangs on recursion in both body and handler of a try block

2021-08-15 Thread Mark Shannon
Mark Shannon added the comment: A recursion limit of 30 is effectively infinite. With a debug build of 3.11, the time to execute grows very fast indeed, probably super-exponentially. mark@nero:~/repos/cpython$ time ./python ~/test/test.py 15 real0m1.107s user0m1.099s sys

[issue44917] interpreter hangs on recursion in both body and handler of a try block

2021-08-15 Thread Irit Katriel
Irit Katriel added the comment: Not sure. Here we do set the recursion limit. -- ___ Python tracker ___ ___ Python-bugs-list

[issue44917] interpreter hangs on recursion in both body and handler of a try block

2021-08-15 Thread Mark Shannon
Mark Shannon added the comment: This looks like a duplicate of https://bugs.python.org/issue42951 -- nosy: +Mark.Shannon ___ Python tracker ___

[issue44917] interpreter hangs on recursion in both body and handler of a try block

2021-08-14 Thread Irit Katriel
Irit Katriel added the comment: Perhaps the interpreter should detect that it is about to raise a RecusionError whose context is another RecursionError, and raise a FatalError instead? -- ___ Python tracker

[issue44917] interpreter hangs on recursion in both body and handler of a try block

2021-08-14 Thread Irit Katriel
New submission from Irit Katriel : This was found while investigating issue44895. It may or may not be the cause of that issue. The script below hangs on a mac (it's an extract from test_exceptions.test_recursion_in_except_handler). --- import sys count = 0 def main(): def f():