-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Free arena on _PyCompile_AstOptimize failure in Py_CompileStringObject #127910
Free arena on _PyCompile_AstOptimize failure in Py_CompileStringObject #127910
Conversation
How did you find this? Are you able to write a test? |
I saw the snippet of |
I took some time to think about how to write a test. If this were a refleak, I would probably launch a Python process with Also, it seems that the only way to trigger this issue is by testing |
Thanks @berkerpeksag for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
pythonGH-127910) After commit 10a91d7 introduced arena cleanup, commit 2dfbd4f removed the free call when _PyCompile_AstOptimize fails. (cherry picked from commit cfeaa99) Co-authored-by: Berker Peksag <[email protected]>
GH-128006 is a backport of this pull request to the 3.13 branch. |
…ngObject (GH-128006) Free arena on _PyCompile_AstOptimize failure in Py_CompileStringObject (GH-127910) After commit 10a91d7 introduced arena cleanup, commit 2dfbd4f removed the free call when _PyCompile_AstOptimize fails. (cherry picked from commit cfeaa99) Co-authored-by: Berker Peksag <[email protected]>
pythonGH-127910) After commit 10a91d7 introduced arena cleanup, commit 2dfbd4f removed the free call when _PyCompile_AstOptimize fails.
After commit 10a91d7 introduced arena cleanup, commit 2dfbd4f removed the free call when _PyCompile_AstOptimize fails.