cpython/Programs
Miss Islington (bot) ff58c3cb48
[3.13] gh-123022: Fix crash with `Py_Initialize` in background thread (GH-123052) (#123114)
Check that the current default heap is initialized in
`_mi_os_get_aligned_hint` and `mi_os_claim_huge_pages`.

The mimalloc function `_mi_os_get_aligned_hint` assumes that there is an
initialized default heap. This is true for our main thread, but not for
background threads. The problematic code path is usually called during
initialization (i.e., `Py_Initialize`), but it may also be called if the
program allocates large amounts of memory in total.

The crash only affected the free-threaded build.
(cherry picked from commit d061ffea7b)

Co-authored-by: Sam Gross <colesbury@gmail.com>
2024-08-17 20:38:02 +00:00
..
README
_bootstrap_python.c Remove more remnants of deepfreeze (#118159) 2024-04-22 12:17:57 -07:00
_freeze_module.c Remove more remnants of deepfreeze (#118159) 2024-04-22 12:17:57 -07:00
_freeze_module.py bpo-45949: Pure Python freeze module for cross builds (GH-29899) 2021-12-13 20:48:46 +01:00
_testembed.c [3.13] gh-123022: Fix crash with `Py_Initialize` in background thread (GH-123052) (#123114) 2024-08-17 20:38:02 +00:00
freeze_test_frozenmain.py bpo-44131: Test Py_FrozenMain() (GH-26126) 2021-05-17 23:48:35 +02:00
python.c bpo-40268: Remove unused imports in pylifecycle.c (GH-19533) 2020-04-15 04:01:58 +02:00
test_frozenmain.h [3.13] gh-93691: fix too broad source locations of for statement iterators (GH-120330) (#120399) 2024-06-12 12:18:43 +00:00
test_frozenmain.py bpo-44131: Py_FrozenMain() uses PyConfig_SetBytesArgv() (GH-26201) 2021-05-20 12:08:05 +02:00

README

Source files for binary executables (as opposed to shared modules)