cpython/Python
Miss Islington (bot) 49da170709
[3.12] gh-116510: Fix a Crash Due to Shared Immortal Interned Strings (gh-125205)
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 (i.e. backporting gh-125709 too).

(cherry picked from commit f2cb399470, AKA gh-124865)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
2024-12-03 10:26:25 -07:00
..
clinic [3.12] gh-113993: Make interned strings mortal (GH-120520, GH-121364, GH-121903, GH-122303) (#123065) 2024-09-27 13:28:48 -07:00
deepfreeze
frozen_modules gh-97669: Create Tools/build/ directory (#97963) 2022-10-17 12:01:00 +02:00
_warnings.c
adaptive.md
asdl.c
asm_trampoline.S
assemble.c
ast.c
ast_opt.c [3.12] gh-113993: Make interned strings mortal (GH-120520, GH-121364, GH-121903, GH-122303) (#123065) 2024-09-27 13:28:48 -07:00
ast_unparse.c [3.12] gh-113993: Make interned strings mortal (GH-120520, GH-121364, GH-121903, GH-122303) (#123065) 2024-09-27 13:28:48 -07:00
bltinmodule.c [3.12] gh-121153: Fix some errors with use of _PyLong_CompactValue() (GH-121154) 2024-07-17 07:58:25 +00:00
bootstrap_hash.c
bytecodes.c [3.12] gh-123083: Fix a potential use-after-free in ``STORE_ATTR_WITH… (#123237) 2024-08-23 01:37:40 +09:00
ceval.c
ceval_gil.c
ceval_macros.h
codecs.c [3.12] gh-113993: Make interned strings mortal (GH-120520, GH-121364, GH-121903, GH-122303) (#123065) 2024-09-27 13:28:48 -07:00
compile.c [3.12] Fix possible null pointer dereference of freevars in _PyCompile_LookupArg (gh-126238) (#126474) 2024-11-06 07:56:12 +00:00
condvar.h
context.c [3.12] gh-120811: Fix reference leak upon _PyContext_Exit failure (GH-120812) (#120844) 2024-06-22 16:44:31 +05:30
dtoa.c
dup2.c
dynamic_annotations.c
dynload_hpux.c
dynload_shlib.c
dynload_stub.c
dynload_win.c
emscripten_signal.c
errors.c [3.12] gh-124188: Fix PyErr_ProgramTextObject() (GH-124189) (GH-124426) 2024-09-24 08:53:54 +00:00
fileutils.c
flowgraph.c
formatter_unicode.c
frame.c [3.12] gh-119897: Revert buggy optimization which was removed in 3.13 (#120467) 2024-06-18 10:45:40 +01:00
frozen.c
frozenmain.c
future.c [3.12] gh-126139: Improve error message location for future statement with unknown feature (GH-126140) (#126160) 2024-10-30 00:54:32 +00:00
generated_cases.c.h [3.12] gh-123083: Fix a potential use-after-free in ``STORE_ATTR_WITH… (#123237) 2024-08-23 01:37:40 +09:00
getargs.c [3.12] gh-113993: Make interned strings mortal (GH-120520, GH-121364, GH-121903, GH-122303) (#123065) 2024-09-27 13:28:48 -07:00
getcompiler.c
getcopyright.c
getopt.c
getplatform.c
getversion.c
hamt.c
hashtable.c
import.c [3.12] gh-127208: Reject null character in _imp.create_dynamic() (#127400) (#127419) 2024-11-29 17:03:24 +01:00
importdl.c
importdl.h
initconfig.c
instrumentation.c
intrinsics.c
legacy_tracing.c [3.12] gh-122029: Log call events in sys.setprofile when it's a method with c function (GH-122072) (GH-122206) 2024-07-23 22:44:43 +00:00
makeopcodetargets.py
marshal.c [3.12] gh-113993: Make interned strings mortal (GH-120520, GH-121364, GH-121903, GH-122303) (#123065) 2024-09-27 13:28:48 -07:00
modsupport.c
mysnprintf.c
mystrtoul.c
opcode_metadata.h
opcode_targets.h
pathconfig.c
perf_trampoline.c
preconfig.c
pyarena.c
pyctype.c
pyfpe.c
pyhash.c
pylifecycle.c [3.12] gh-116510: Fix a Crash Due to Shared Immortal Interned Strings (gh-125205) 2024-12-03 10:26:25 -07:00
pymath.c
pystate.c [3.12] gh-116510: Fix a Crash Due to Shared Immortal Interned Strings (gh-125205) 2024-12-03 10:26:25 -07:00
pystrcmp.c
pystrhex.c
pystrtod.c
Python-ast.c [3.12] gh-126105: Fix crash in ast module, when ._fields is delet… (#126132) 2024-10-29 20:20:40 +02:00
Python-tokenize.c [3.12] gh-120343: Fix column offsets of multiline tokens in tokenize (GH-120391) (#120428) 2024-06-12 19:10:35 +00:00
pythonrun.c
pytime.c
README Issue #18093: Factor out the programs that embed the runtime 2014-07-25 21:52:14 +10:00
specialize.c
stdlib_module_names.h [3.12] gh-123892: Add "_wmi" to sys.stdlib_module_names (GH-123893) (#123897) 2024-09-10 10:11:56 +00:00
structmember.c
suggestions.c
symtable.c [3.12] gh-119666: fix multiple class-scope comprehensions referencing __class__ (GH-120295) (#120300) 2024-06-10 00:37:15 -04:00
sysmodule.c [3.12] gh-113993: Make interned strings mortal (GH-120520, GH-121364, GH-121903, GH-122303) (#123065) 2024-09-27 13:28:48 -07:00
thread.c
thread_nt.h
thread_pthread.h
thread_pthread_stubs.h
traceback.c [3.12] gh-123967: Fix faulthandler for trampoline frames (#127329) (#127363) 2024-11-28 13:57:35 +00:00
tracemalloc.c [3.12] gh-121390: tracemalloc: Fix tracebacks memory leak (GH-121391) (#121393) 2024-07-05 06:59:06 +00:00

Miscellaneous source files for the main Python shared library