FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.13] gh-116510: Fix a Crash Due to Shared Immortal Interned Strings (gh-124865) by miss-islington · Pull Request #125204 · python/cpython · GitHub

/ cpython Public

[3.13] gh-116510: Fix a Crash Due to Shared Immortal Interned Strings (gh-124865) - #125204

Merged
encukou merged 2 commits into
python:3.13from
miss-islington:backport-f2cb399-3.13
Nov 12, 2024
Merged

[3.13] gh-116510: Fix a Crash Due to Shared Immortal Interned Strings (gh-124865)#125204
encukou merged 2 commits into
python:3.13from
miss-islington:backport-f2cb399-3.13

Conversation

miss-islington commented Oct 9, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

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.

This is an un-revert of gh-124646 that then addresses the Py_TRACE_REFS
failures identified by gh-124785.
(cherry picked from commit f2cb399)

Co-authored-by: Eric Snow ericsnowcurrently@gmail.com

…ythongh-124865)

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.

This is an un-revert of pythongh-124646 that then addresses the Py_TRACE_REFS
failures identified by pythongh-124785.
(cherry picked from commit f2cb399)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>

Copy link
Copy Markdown
Member

Please don't merge until the TraceRefs regression is fixed: #124865 (comment)

Copy link
Copy Markdown
Member

I think this can be merged now with GH-125709 applied on top or squashed into it.

…ers (pythongh-125709)

They used to be shared, before 3.12.  Returning to sharing them resolves a failure on Py_TRACE_REFS builds.
Comment thread Doc/whatsnew/3.13.rst
encukou merged commit 02cd3ce into python:3.13 Nov 12, 2024
encukou added the needs backport to 3.12 only security fixes label Nov 13, 2024

Copy link
Copy Markdown

Thanks @miss-islington for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

Copy link
Copy Markdown

Sorry, @miss-islington and @encukou, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 02cd3ce0f201df98939c65bcba8445bb0b70717b 3.12

encukou removed the needs backport to 3.12 only security fixes label Nov 13, 2024
miss-islington deleted the backport-f2cb399-3.13 branch January 2, 2026 18:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

6 participants


Back | FazBrowse Home | New Git URL