Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-109894: Fix initialization of staticMemoryError in subinterpreter#110911
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
gh-109894: Fix initialization of staticMemoryError in subinterpreter#110911
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Fixes#109894* set `interp.static_objects.last_resort_memory_error.args` to empty tuple to avoid crash on `PyErr_Display()` call* allow `_PyExc_InitGlobalObjects()` to be called on subinterpreter init
This comment was marked as outdated.
This comment was marked as outdated.
ericsnowcurrently left a comment
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
ericsnowcurrently commentedOct 23, 2023
Thanks,@chgnrdv! |
Thanks@chgnrdv for the PR, and@ericsnowcurrently for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
…erpreter (pythongh-110911)FixespythonGH-109894* set `interp.static_objects.last_resort_memory_error.args` to empty tuple to avoid crash on `PyErr_Display()` call* allow `_PyExc_InitGlobalObjects()` to be called on subinterpreter init---------(cherry picked from commit47d3e2e)Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
GH-111238 is a backport of this pull request to the3.12 branch. |
chgnrdv commentedOct 24, 2023
@ericsnowcurrently thanks for review :) |
…terpreter (gh-110911) (gh-111238)FixesGH-109894* set `interp.static_objects.last_resort_memory_error.args` to empty tuple to avoid crash on `PyErr_Display()` call* allow `_PyExc_InitGlobalObjects()` to be called on subinterpreter init---------(cherry picked from commit47d3e2e)Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
…erpreter (pythongh-110911)Fixespython#109894* set `interp.static_objects.last_resort_memory_error.args` to empty tuple to avoid crash on `PyErr_Display()` call* allow `_PyExc_InitGlobalObjects()` to be called on subinterpreter init---------Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
…erpreter (pythongh-110911)Fixespython#109894* set `interp.static_objects.last_resort_memory_error.args` to empty tuple to avoid crash on `PyErr_Display()` call* allow `_PyExc_InitGlobalObjects()` to be called on subinterpreter init---------Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Uh oh!
There was an error while loading.Please reload this page.
Fixes#109894
interp.static_objects.last_resort_memory_error.argsto empty tuple to avoid crash onPyErr_Display()call_PyExc_InitGlobalObjects()to be called on subinterpreter initMemoryErrorraised throughPyErr_NoMemory()from subinterpreter #109894