Skip to content

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-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 102216855+ChuBoning@users.noreply.github.com
Co-authored-by: Łukasz Langa lukasz@langa.pl

…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 <102216855+ChuBoning@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
@ambv ambv 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
@ambv ambv merged commit d3f39ce into python:3.10 Sep 4, 2024
14 of 15 checks passed
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.

3 participants