-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
gh-122334: Fix crash when importing ssl after re-initialization #122481
Conversation
The current METH_FASTCALL|METH_KEYWORDS functions in a non-builtin module can cause segfaults after restarting the main interpreter, invoking _PyArg_UnpackKeywords() with an insufficiently cleared _PyArg_Parser struct. This patch fixes the invalidation of the static argument parsers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
GH-122495 is a backport of this pull request to the 3.12 branch. |
This can be backported to 3.13. #122495 is a manual backport to 3.12. |
Thanks @neonene for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
…pythonGH-122481) * Fix crash when importing ssl after re-initialization (cherry picked from commit 9fc1c99) Co-authored-by: neonene <[email protected]>
GH-122614 is a backport of this pull request to the 3.13 branch. |
GH-122481) (#122495) Fix crash when importing ssl after re-initialization The current METH_FASTCALL|METH_KEYWORDS functions in a non-builtin module can cause segfaults after restarting the main interpreter, invoking _PyArg_UnpackKeywords() with an insufficiently cleared _PyArg_Parser struct. This patch fixes the invalidation of the static argument parsers.
Thanks. |
…python#122481) * Fix crash when importing ssl after re-initialization
…python#122481) * Fix crash when importing ssl after re-initialization
The current
METH_FASTCALL|METH_KEYWORDS
functions in a non-builtin module can cause segfaults after restarting the main interpreter, invoking_PyArg_UnpackKeywords()
with an insufficiently cleared_PyArg_Parser
struct.This patch fixes the invalidation of the static argument parsers.