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
Domain: github.com
{"@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-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:589c6b03-321e-fb35-c02b-40c4e71c383a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82EC:B53AF:366840A:4867105:6B0209C8 |
| html-safe-nonce | 1b48426c0a22e0719f15d3147fc26b844eed2e0e100181b57862927767691d79 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkVDOkI1M0FGOjM2Njg0MEE6NDg2NzEwNTo2QjAyMDlDOCIsInZpc2l0b3JfaWQiOiI4MTE2NTE1NTU4ODc3MDI0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3e74506c6ee5406c02d9eb473b78234cc80e250c93c571787390e2ca521e1d94 |
| hovercard-subject-tag | issue:4623710964 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/151177/issue_layout |
| twitter:image | https://opengraph.githubassets.com/96965e64e6af533bc287b0c2ccf654b4b31c2c72e05a2ef309de53a1c6cb1133/python/cpython/issues/151177 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/96965e64e6af533bc287b0c2ccf654b4b31c2c72e05a2ef309de53a1c6cb1133/python/cpython/issues/151177 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | befeleme |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width