Skip to content

[3.13] gh-109746: Make _thread.start_new_thread delete state of new thread on its startup failure (GH-109761) - #127171

Merged
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-ca3ea9a-3.13
Nov 22, 2024
Merged

serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-ca3ea9a-3.13

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Nov 22, 2024 •

Copy link
Copy Markdown
Member

If Python fails to start newly created thread
due to failure of underlying PyThread_start_new_thread() call, its state should be removed from interpreter' thread states list to avoid its double cleanup.

(cherry picked from commit ca3ea9a)

… new thread on its startup failure (pythonGH-109761)

If Python fails to start newly created thread
due to failure of underlying PyThread_start_new_thread() call,
its state should be removed from interpreter' thread states list
to avoid its double cleanup.

(cherry picked from commit ca3ea9a)

Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants