diff options
author | Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com> | 2023-10-23 23:06:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-23 23:06:59 (GMT) |
commit | 47d3e2ed930a9f3d228aed4f62133737dae74cf7 (patch) | |
tree | 3d2097e5361f2185add54f89d9a96ab14978861b /Misc/NEWS.d/next/Core and Builtins | |
parent | 96cbd1e1db3447a33e5cc5cc2886ce79b61cc6eb (diff) | |
download | cpython-47d3e2ed930a9f3d228aed4f62133737dae74cf7.zip cpython-47d3e2ed930a9f3d228aed4f62133737dae74cf7.tar.gz cpython-47d3e2ed930a9f3d228aed4f62133737dae74cf7.tar.bz2 |
gh-109894: Fix initialization of static `MemoryError` in subinterpreter (gh-110911)
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
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Diffstat (limited to 'Misc/NEWS.d/next/Core and Builtins')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2023-10-15-22-18-45.gh-issue-109894.UAmo06.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-10-15-22-18-45.gh-issue-109894.UAmo06.rst b/Misc/NEWS.d/next/Core and Builtins/2023-10-15-22-18-45.gh-issue-109894.UAmo06.rst new file mode 100644 index 0000000..2148536 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2023-10-15-22-18-45.gh-issue-109894.UAmo06.rst @@ -0,0 +1 @@ +Fixed crash due to improperly initialized static :exc:`MemoryError` in subinterpreter. |