René's URL Explorer Experiment


Title: test_thread_state_ensure is flaky on Fedora Linux s390x · Issue #151177 · python/cpython · GitHub

Open Graph Title: test_thread_state_ensure is flaky on Fedora Linux s390x · Issue #151177 · python/cpython

X Title: test_thread_state_ensure is flaky on Fedora Linux s390x · Issue #151177 · python/cpython

Description: Bug report Bug description: test_thread_state_ensure is flaky on Fedora Linux on s390x architecture. Sometimes we see the traceback below: test_thread_state_ensure (test.test_embed.AuditingTests.test_thread_state_ensure) ... --- ['/build...

Open Graph Description: Bug report Bug description: test_thread_state_ensure is flaky on Fedora Linux on s390x architecture. Sometimes we see the traceback below: test_thread_state_ensure (test.test_embed.AuditingTests.te...

X Description: Bug report Bug description: test_thread_state_ensure is flaky on Fedora Linux on s390x architecture. Sometimes we see the traceback below: test_thread_state_ensure (test.test_embed.AuditingTests.te...

Opengraph URL: https://github.com/python/cpython/issues/151177

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_thread_state_ensure is flaky on Fedora Linux s390x","articleBody":"# Bug report\n\n### Bug description:\n\ntest_thread_state_ensure is flaky on Fedora Linux on s390x architecture. Sometimes we see the traceback below:\n\n```console\ntest_thread_state_ensure (test.test_embed.AuditingTests.test_thread_state_ensure) ... --- ['/builddir/build/BUILD/python3.15-3.15.0_b2-build/Python-3.15.0b2/build/freethreading/Programs/_testembed', 'test_thread_state_ensure'] failed ---\nstdout:\nstderr:\n_testembed: /builddir/build/BUILD/python3.15-3.15.0_b2-build/Python-3.15.0b2/Programs/_testembed.c:2736: test_thread_state_ensure: Assertion `_Py_atomic_load_int(&data.done) == 1' failed.\n------\nFAIL\n======================================================================\nFAIL: test_thread_state_ensure (test.test_embed.AuditingTests.test_thread_state_ensure)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n  File \"/builddir/build/BUILD/python3.15-3.15.0_b2-build/Python-3.15.0b2/Lib/test/test_embed.py\", line 2000, in test_thread_state_ensure\n    self.run_embedded_interpreter(\"test_thread_state_ensure\")\n    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/builddir/build/BUILD/python3.15-3.15.0_b2-build/Python-3.15.0b2/Lib/test/test_embed.py\", line 138, in run_embedded_interpreter\n    self.assertEqual(p.returncode, returncode,\n    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^\n                     \"bad returncode %d, stderr is %r\" %\n                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                     (p.returncode, err))\n                     ^^^^^^^^^^^^^^^^^^^^\nAssertionError: -6 != 0 : bad returncode -6, stderr is \"_testembed: /builddir/build/BUILD/python3.15-3.15.0_b2-build/Python-3.15.0b2/Programs/_testembed.c:2736: test_thread_state_ensure: Assertion `_Py_atomic_load_int(&data.done) == 1' failed.\\n\"\n----------------------------------------------------------------------\n```\n\nThis has been added in https://github.com/python/cpython/pull/149116\ncc @encukou \n\n### CPython versions tested on:\n\n3.15\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-151293\n* gh-151312\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/befeleme","@type":"Person","name":"befeleme"},"datePublished":"2026-06-09T16:22:41Z","url":"https://github.com/python/cpython/issues/151177"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:589c6b03-321e-fb35-c02b-40c4e71c383a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id82EC:B53AF:366840A:4867105:6B0209C8
html-safe-nonce1b48426c0a22e0719f15d3147fc26b844eed2e0e100181b57862927767691d79
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkVDOkI1M0FGOjM2Njg0MEE6NDg2NzEwNTo2QjAyMDlDOCIsInZpc2l0b3JfaWQiOiI4MTE2NTE1NTU4ODc3MDI0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3e74506c6ee5406c02d9eb473b78234cc80e250c93c571787390e2ca521e1d94
hovercard-subject-tagissue:4623710964
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/151177/issue_layout
twitter:imagehttps://opengraph.githubassets.com/96965e64e6af533bc287b0c2ccf654b4b31c2c72e05a2ef309de53a1c6cb1133/python/cpython/issues/151177
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/96965e64e6af533bc287b0c2ccf654b4b31c2c72e05a2ef309de53a1c6cb1133/python/cpython/issues/151177
og:image:altBug report Bug description: test_thread_state_ensure is flaky on Fedora Linux on s390x architecture. Sometimes we see the traceback below: test_thread_state_ensure (test.test_embed.AuditingTests.te...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebefeleme
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/151177#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F151177
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F151177
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/151177
Reloadhttps://github.com/python/cpython/issues/151177
Reloadhttps://github.com/python/cpython/issues/151177
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/151177
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/151177
test_thread_state_ensure is flaky on Fedora Linux s390xhttps://github.com/python/cpython/issues/151177#top
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/befeleme
befelemehttps://github.com/befeleme
on Jun 9, 2026https://github.com/python/cpython/issues/151177#issue-4623710964
#149116https://github.com/python/cpython/pull/149116
@encukouhttps://github.com/encukou
gh-151177: Fix race condition in _testembed #151293https://github.com/python/cpython/pull/151293
[3.15] gh-151177: Fix race condition in _testembed (GH-151293) #151312https://github.com/python/cpython/pull/151312
befelemehttps://github.com/befeleme
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Jun 9, 2026https://github.com/python/cpython/issues/151177#event-26532999308
picnixzhttps://github.com/picnixz
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
OS-linuxhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-linux%22
on Jun 10, 2026https://github.com/python/cpython/issues/151177#event-26562735865
https://github.com/encukou
encukouhttps://github.com/encukou
on Jun 10, 2026https://github.com/python/cpython/issues/151177#issuecomment-4668434008
@ZeroIntensityhttps://github.com/ZeroIntensity
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
on Jun 10, 2026https://github.com/python/cpython/issues/151177#issuecomment-4670058311
ZeroIntensityhttps://github.com/ZeroIntensity
OS-linuxhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-linux%22
on Jun 11, 2026https://github.com/python/cpython/issues/151177#event-26604730939
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
on Jun 11, 2026https://github.com/python/cpython/issues/151177#issuecomment-4676682980
#151293https://github.com/python/cpython/pull/151293
encukouhttps://github.com/encukou
on Jun 11, 2026https://github.com/python/cpython/issues/151177#event-26616882107
gh-151177: Fix race condition in `_testembed` (GH-151293)https://github.com/python/cpython/commit/f9ffca39351b77197e4dc2775a0d1e4ad64bf0e5
gh-151177https://github.com/python/cpython/issues/151177
GH-151293https://github.com/python/cpython/pull/151293
f9ffca3https://github.com/python/cpython/commit/f9ffca39351b77197e4dc2775a0d1e4ad64bf0e5
ZeroIntensityhttps://github.com/ZeroIntensity
on Jun 11, 2026https://github.com/python/cpython/issues/151177#event-26619469536
[3.15] gh-151177: Fix race condition in `_testembed` (GH-151293) (GH-…https://github.com/python/cpython/commit/491768da4c7ffcc38809724d4d9c4a67e7131b9d
gh-151177https://github.com/python/cpython/issues/151177
GH-151293https://github.com/python/cpython/pull/151293
GH-…https://github.com/python/cpython/pull/151312
491768dhttps://github.com/python/cpython/commit/491768da4c7ffcc38809724d4d9c4a67e7131b9d
ZeroIntensityhttps://github.com/ZeroIntensity
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 11, 2026https://github.com/python/cpython/issues/151177#event-26619474509
https://github.com/encukou
encukouhttps://github.com/encukou
on Jun 11, 2026https://github.com/python/cpython/issues/151177#issuecomment-4679790194
philthompson10https://github.com/philthompson10
on Jun 17, 2026https://github.com/python/cpython/issues/151177#event-26873461760
pythongh-151177: Fix race condition in `_testembed` (pythonGH-151293)https://github.com/philthompson10/cpython/commit/a406230c7402d47c57a7d8dfbe86d40a9402d9c6
pythongh-151177https://github.com/python/cpython/issues/151177
pythonGH-151293https://github.com/python/cpython/pull/151293
a406230https://github.com/philthompson10/cpython/commit/a406230c7402d47c57a7d8dfbe86d40a9402d9c6
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/151177
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/151177
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.