KEMBAR78
[3.12] gh-109894: Fix initialization of static `MemoryError` in subinterpreter (gh-110911) by miss-islington · Pull Request #111238 · python/cpython · GitHub
Skip to content

Conversation

@miss-islington
Copy link
Contributor

Fixes GH-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 commit 47d3e2e)

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)

Fixes pythonGH-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 commit 47d3e2e)

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants