Skip to content

GH-100892: Fix race in clearing threading.local #100922

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 11, 2023

Conversation

kumaraditya303
Copy link
Contributor

@kumaraditya303 kumaraditya303 commented Jan 10, 2023

@kumaraditya303 kumaraditya303 added needs backport to 3.10 only security fixes type-crash A hard crash of the interpreter, possibly with a core dump needs backport to 3.11 only security fixes labels Jan 10, 2023
@kumaraditya303
Copy link
Contributor Author

This race exists in security only branches too, @ambv how about backporting this to those?

@kumaraditya303 kumaraditya303 requested a review from ambv January 10, 2023 14:14
@pablogsal
Copy link
Member

pablogsal commented Jan 10, 2023

Excellent job @kumaraditya303 👌

@kumaraditya303
Copy link
Contributor Author

Excellent job👌

Thanks for the review, I have added a test and verified it, will merge once CI passes.

@kumaraditya303 kumaraditya303 merged commit 762745a into python:main Jan 11, 2023
@miss-islington
Copy link
Contributor

Thanks @kumaraditya303 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry @kumaraditya303, I had trouble checking out the 3.11 backport branch.
Please retry by removing and re-adding the "needs backport to 3.11" label.
Alternatively, you can backport using cherry_picker on the command line.
cherry_picker 762745a124cbc297cf2fe6f3ec9ca1840bb2e873 3.11

@miss-islington
Copy link
Contributor

Sorry, @kumaraditya303, I could not cleanly backport this to 3.10 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 762745a124cbc297cf2fe6f3ec9ca1840bb2e873 3.10

@kumaraditya303 kumaraditya303 added needs backport to 3.10 only security fixes and removed needs backport to 3.10 only security fixes needs backport to 3.11 only security fixes labels Jan 11, 2023
@kumaraditya303 kumaraditya303 added the needs backport to 3.11 only security fixes label Jan 11, 2023
@miss-islington
Copy link
Contributor

Thanks @kumaraditya303 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Thanks @kumaraditya303 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry @kumaraditya303, I had trouble checking out the 3.10 backport branch.
Please retry by removing and re-adding the "needs backport to 3.10" label.
Alternatively, you can backport using cherry_picker on the command line.
cherry_picker 762745a124cbc297cf2fe6f3ec9ca1840bb2e873 3.10

@miss-islington
Copy link
Contributor

Sorry, @kumaraditya303, I could not cleanly backport this to 3.11 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 762745a124cbc297cf2fe6f3ec9ca1840bb2e873 3.11

@bedevere-bot
Copy link

GH-100937 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Jan 11, 2023
kumaraditya303 added a commit to kumaraditya303/cpython that referenced this pull request Jan 11, 2023
@bedevere-bot
Copy link

GH-100938 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Jan 11, 2023
kumaraditya303 added a commit to kumaraditya303/cpython that referenced this pull request Jan 11, 2023
@bedevere-bot
Copy link

GH-100939 is a backport of this pull request to the 3.9 branch.

1 similar comment
@bedevere-bot
Copy link

GH-100939 is a backport of this pull request to the 3.9 branch.

kumaraditya303 added a commit to kumaraditya303/cpython that referenced this pull request Jan 11, 2023
…ythonGH-100922).

(cherry picked from commit 762745a)

Co-authored-by: Kumar Aditya <[email protected]>.
(cherry picked from commit 683e9fe)

Co-authored-by: Kumar Aditya <[email protected]>
kumaraditya303 added a commit to kumaraditya303/cpython that referenced this pull request Jan 11, 2023
…ythonGH-100922).

(cherry picked from commit 762745a)

Co-authored-by: Kumar Aditya <[email protected]>.
(cherry picked from commit 683e9fe)

Co-authored-by: Kumar Aditya <[email protected]>
kumaraditya303 added a commit that referenced this pull request Jan 11, 2023
kumaraditya303 added a commit that referenced this pull request Jan 11, 2023
ambv pushed a commit that referenced this pull request Jan 20, 2023
…100939)

[3.9] [3.10] GH-100892: Fix race in clearing `threading.local` (GH-100922).
(cherry picked from commit 762745a)

Co-authored-by: Kumar Aditya <[email protected]>.
(cherry picked from commit 683e9fe)

Co-authored-by: Kumar Aditya <[email protected]>
gentoo-bot pushed a commit to gentoo/cpython that referenced this pull request May 21, 2024
…GH-100922) (python#100939)

[3.9] [3.10] pythonGH-100892: Fix race in clearing `threading.local` (pythonGH-100922).
(cherry picked from commit 762745a)

Co-authored-by: Kumar Aditya <[email protected]>.
(cherry picked from commit 683e9fe)

Co-authored-by: Kumar Aditya <[email protected]>

[adjusted for 3.8 by Michał Górny]
gentoo-bot pushed a commit to gentoo/cpython that referenced this pull request Sep 19, 2024
…GH-100922) (python#100939)

[3.9] [3.10] pythonGH-100892: Fix race in clearing `threading.local` (pythonGH-100922).
(cherry picked from commit 762745a)

Co-authored-by: Kumar Aditya <[email protected]>.
(cherry picked from commit 683e9fe)

Co-authored-by: Kumar Aditya <[email protected]>

[adjusted for 3.8 by Michał Górny]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants