Skip to content

[3.8] gh-112275: Fix HEAD_LOCK deadlock in child process after fork (GH-112336) (GH-123688) - #123713

Merged
ambv merged 1 commit into
python:3.8from
miss-islington:backport-0152431-3.8
Sep 5, 2024
Merged

ambv merged 1 commit into
python:3.8from
miss-islington:backport-0152431-3.8

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 4, 2024 •

Copy link
Copy Markdown
Contributor

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)

(cherry picked from commit 0152431)

Co-authored-by: Łukasz Langa lukasz@langa.pl
Co-authored-by: ChuBoning 102216855+ChuBoning@users.noreply.github.com

…fork (pythonGH-112336) (pythonGH-123688)

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)

(cherry picked from commit 0152431)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: ChuBoning <102216855+ChuBoning@users.noreply.github.com>
@ambv ambv changed the title [3.8] [3.9] gh-112275: Fix HEAD_LOCK deadlock in child process after fork (GH-112336) (GH-123688) [3.8] gh-112275: Fix HEAD_LOCK deadlock in child process after fork (GH-112336) (GH-123688) Sep 5, 2024
@ambv
ambv merged commit e742f99 into python:3.8 Sep 5, 2024
@miss-islington
miss-islington deleted the backport-0152431-3.8 branch January 2, 2026 17:58
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.

2 participants