[3.12] gh-116510: Fix a crash due to shared immortal interned strings… · python/cpython@5dd07eb · GitHub
Skip to content

Commit 5dd07eb

Browse files
authored
[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.
1 parent 69fd1f2 commit 5dd07eb

2 files changed

Lines changed: 47 additions & 6 deletions

File tree

Lines changed: 5 additions & 0 deletions

Objects/unicodeobject.c

Lines changed: 42 additions & 6 deletions

0 commit comments

Comments
 (0)