You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While writing some code to match a particularly complicated AST, I accidentally wrote a function whose definition causes the Python 3.10.5 interpreter to rapidly consume memory. On my system, it consumed approximately 24 GBs of memory before being killed.
Activity
Fidget-Spinner commentedon Jun 10, 2022
Wow. I can reproduce this on 3.11 and 3.12(main) too.
kumaraditya303 commentedon Jun 10, 2022
This seems like a parser issue.
Linux perf output:
dignissimus commentedon Jun 10, 2022
It might be the related to the depth of the statement, the following also produces a crash
pablogsal commentedon Jun 10, 2022
Thanks, @tom-p-reichel and @dignissimus for the report and thanks a lot @kumaraditya303 for the initial investigation. Great work!
gh-93671: Avoid exponential backtracking in deeply nested sequence pa…
pythongh-93671: Avoid exponential backtracking in deeply nested seque…
gh-93671: Avoid exponential backtracking in deeply nested sequence pa…
[3.10] pythongh-93671: Avoid exponential backtracking in deeply neste…
[3.10] gh-93671: Avoid exponential backtracking in deeply nested sequ…
Revert 30935 defer bpo45162 to 312 (#94285)