Skip to content

[3.13] gh-125245: Fix race condition when importing collections.abc (GH-125415) #125944

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 1 commit into from
Oct 24, 2024

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Oct 24, 2024

If multiple threads concurrently imported collections.abc, some of the
threads might incorrectly see the "shim" Lib/collections/abc.py module
instead of the correct Lib/_collections_abc.py module. This affected
both the free threading build and the default GIL-enabled build.
(cherry picked from commit fed501d)

Co-authored-by: Sam Gross [email protected]

…ythonGH-125415)

If multiple threads concurrently imported `collections.abc`, some of the
threads might incorrectly see the "shim" `Lib/collections/abc.py` module
instead of the correct `Lib/_collections_abc.py` module.  This affected
both the free threading build and the default GIL-enabled build.
(cherry picked from commit fed501d)

Co-authored-by: Sam Gross <[email protected]>
@colesbury colesbury enabled auto-merge (squash) October 24, 2024 22:14
@colesbury colesbury merged commit d46d291 into python:3.13 Oct 24, 2024
38 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.

2 participants