[issue42715] Segmentation fault in running exec() 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

[issue42715] Segmentation fault in running exec() with large expression size.

2020-12-22 Thread Steve Stagg
Steve Stagg added the comment: As with the other issues, the underlying segfault is fixed in PR: https://github.com/python/cpython/pull/23744. It does however raise a RecursionError: RecursionError: maximum recursion depth exceeded during compilation As per

[issue42715] Segmentation fault in running exec() with large expression size.

2020-12-22 Thread Xinmeng Xia
New submission from Xinmeng Xia : Calling function exec() 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