X Tutup
Skip to content

[3.12] gh-109894: Fix initialization of static MemoryError in subinterpreter (gh-110911)#111238

Merged
ericsnowcurrently merged 1 commit intopython:3.12from
miss-islington:backport-47d3e2e-3.12
Nov 28, 2023
Merged

[3.12] gh-109894: Fix initialization of static MemoryError in subinterpreter (gh-110911)#111238
ericsnowcurrently merged 1 commit intopython:3.12from
miss-islington:backport-47d3e2e-3.12

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>
@ericsnowcurrently ericsnowcurrently merged commit 0aceac5 into python:3.12 Nov 28, 2023
@miss-islington miss-islington deleted the backport-47d3e2e-3.12 branch January 2, 2026 17:05
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

X Tutup