[3.12] gh-119213: Fix getargs.c to store state in InterpreterState... by 1st1 · Pull Request #119194 · python/cpython
...as opposed to storing it in PyRuntime. Storing it in PyRuntime is fundametally wrong, as its state contains references to Python objects. Those objects (tuples and strings) can (and will) be picked by various subinterpreter clean up code, leaving PyRuntime with broken pointers.
1st1
mentioned this pull request
Yury Selivanov added 3 commits
ericsnowcurrently
changed the title
Fix getargs.c to store state in InterpreterState...
gh-119213: Fix getargs.c to store state in InterpreterState...
Eclips4
changed the title
gh-119213: Fix getargs.c to store state in InterpreterState...
[3.12] gh-119213: Fix getargs.c to store state in InterpreterState...
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