]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-116510: Fix a crash due to shared immortal interned strings. (gh-124541)
authorNeil Schemenauer <nas-github@arctrix.com>
Fri, 27 Sep 2024 01:04:03 +0000 (18:04 -0700)
committerGitHub <noreply@github.com>
Fri, 27 Sep 2024 01:04:03 +0000 (18:04 -0700)
commit5dd07ebc0c27e2fffdfd041401c8cc7f0cda0dfc
tree7fe30c29c93af36a2aafbd19616d4be5128cc2af
parent69fd1f218c8b26f75aa230c9459f24fe05fdd784
[3.12] gh-116510: Fix a crash due to shared immortal interned strings. (gh-124541)

Fix a crash caused by immortal interned strings being shared between
sub-interpreters that use basic single-phase init.  In that case, the string
can be used by an interpreter that outlives the interpreter that created and
interned it.  For interpreters that share obmalloc state, also share the
interned dict with the main interpreter.
Misc/NEWS.d/next/Core_and_Builtins/2024-09-25-12-37-58.gh-issue-116510.WeBAx1.rst [new file with mode: 0644]
Objects/unicodeobject.c