Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commented Sep 4, 2024

HEAD_LOCK is called from _PyEval_ReInitThreads->_PyThreadState_DeleteExcept before _PyRuntimeState_ReInitThreads reinit runtime->interpreters.mutex which might be locked before fork.

(cherry picked from commit 522799a)

Co-authored-by: ChuBoning [email protected]
Co-authored-by: Łukasz Langa [email protected]

…fork (pythonGH-112336) HEAD_LOCK is called from _PyEval_ReInitThreads->_PyThreadState_DeleteExcept before _PyRuntimeState_ReInitThreads reinit runtime->interpreters.mutex which might be locked before fork. (cherry picked from commit 522799a) Co-authored-by: ChuBoning <[email protected]> Co-authored-by: Łukasz Langa <[email protected]>
@ambvambv changed the title [3.10] [3.11]GH-112275: Fix HEAD_LOCK deadlock in child process after fork (GH-112336)[3.10] gh-112275: Fix HEAD_LOCK deadlock in child process after fork (GH-112336)Sep 4, 2024
@ambvambv merged commit d3f39ce into python:3.10Sep 4, 2024
@miss-islingtonmiss-islington deleted the backport-522799a-3.10 branch January 2, 2026 17:59
Sign up for freeto 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.

3 participants

@miss-islington@ambv@ChuBoning