[issue42714] Segmentation fault in running compile() with large expression size.

2020-12-25 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Segmentation fault in running ast.literal_eval() with large expression size. ___ Python tracker

[issue42714] Segmentation fault in running compile() with large expression size.

2020-12-22 Thread Steve Stagg
Steve Stagg added the comment: As with the other ones, PR: https://github.com/python/cpython/pull/23744 stops this from segfaulting. It does however raise a RecursionError: RecursionError: maximum recursion depth exceeded during compilation As per

[issue42714] Segmentation fault in running compile() with large expression size.

2020-12-22 Thread Xinmeng Xia
New submission from Xinmeng Xia : Calling function compile() with large size can cause a segmentation fault in Python 3.7 -3.10. Please check the following two examples. The example 1 works as expected, while the second one triggers segmentation fault on Python 3.7,3.8,3.9,3.10. The primary