Skip to content

gh-151177: Fix race condition in _testembed#151293

Open
ZeroIntensity wants to merge 1 commit into
python:mainfrom
ZeroIntensity:fix-testembed
Open

gh-151177: Fix race condition in _testembed#151293
ZeroIntensity wants to merge 1 commit into
python:mainfrom
ZeroIntensity:fix-testembed

Conversation

@ZeroIntensity

@ZeroIntensity ZeroIntensity commented Jun 11, 2026

Copy link
Copy Markdown
Member

The interpreter guard needs to be released after the flag has been set, not before. Otherwise, the main thread will be unblocked and can potentially read the done flag before the thread has a chance to set it.

@ZeroIntensity ZeroIntensity added tests Tests in the Lib/test dir skip news needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Jun 11, 2026
@ZeroIntensity ZeroIntensity requested a review from encukou June 11, 2026 02:36
@ZeroIntensity

Copy link
Copy Markdown
Member Author

!buildbot s390x

@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @ZeroIntensity for commit 891a74e 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F151293%2Fmerge

The command will test the builders whose names match following regular expression: s390x

The builders matched are:

  • s390x RHEL8 LTO + PGO PR
  • s390x Fedora Stable Clang PR
  • s390x Fedora Rawhide PR
  • s390x Fedora Stable Refleaks PR
  • s390x Fedora Rawhide LTO + PGO PR
  • s390x Fedora Rawhide NoGIL PR
  • s390x Fedora Stable Clang Installed PR
  • s390x RHEL8 Refleaks PR
  • s390x Fedora Stable LTO + PGO PR
  • s390x Fedora Stable LTO PR
  • s390x RHEL9 Refleaks PR
  • s390x Fedora Rawhide Refleaks PR
  • s390x RHEL9 PR
  • s390x Fedora Rawhide Clang Installed PR
  • s390x RHEL9 LTO + PGO PR
  • s390x Fedora Rawhide NoGIL refleaks PR
  • s390x RHEL9 LTO PR
  • s390x Fedora Rawhide Clang PR
  • s390x RHEL8 PR
  • s390x RHEL8 LTO PR
  • s390x Fedora Rawhide LTO PR
  • s390x Fedora Stable PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review needs backport to 3.15 pre-release feature fixes, bugs and security fixes skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants