Title: `test_start_new_thread_failed` flaky: failed on macOS (free threading) · Issue #127421 · python/cpython · GitHub
Open Graph Title: `test_start_new_thread_failed` flaky: failed on macOS (free threading) · Issue #127421 · python/cpython
X Title: `test_start_new_thread_failed` flaky: failed on macOS (free threading) · Issue #127421 · python/cpython
Description: Bug report Seen in https://github.com/python/cpython/actions/runs/12082953758/job/33695120037?pr=127399 ====================================================================== FAIL: test_start_new_thread_failed (test.test_threading.Thread...
Open Graph Description: Bug report Seen in https://github.com/python/cpython/actions/runs/12082953758/job/33695120037?pr=127399 ====================================================================== FAIL: test_start_new_t...
X Description: Bug report Seen in https://github.com/python/cpython/actions/runs/12082953758/job/33695120037?pr=127399 ====================================================================== FAIL: test_start_new_t...
Opengraph URL: https://github.com/python/cpython/issues/127421
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`test_start_new_thread_failed` flaky: failed on macOS (free threading)","articleBody":"# Bug report\n\nSeen in https://github.com/python/cpython/actions/runs/12082953758/job/33695120037?pr=127399\n\n```\n======================================================================\nFAIL: test_start_new_thread_failed (test.test_threading.ThreadTests.test_start_new_thread_failed)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/Users/admin/actions-runner/_work/cpython/cpython/Lib/test/test_threading.py\", line 1201, in test_start_new_thread_failed\n _, out, err = assert_python_ok(\"-u\", \"-c\", code)\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^\n File \"/Users/admin/actions-runner/_work/cpython/cpython/Lib/test/support/script_helper.py\", line 182, in assert_python_ok\n return _assert_python(True, *args, **env_vars)\n File \"/Users/admin/actions-runner/_work/cpython/cpython/Lib/test/support/script_helper.py\", line 167, in _assert_python\n res.fail(cmd_line)\n ~~~~~~~~^^^^^^^^^^\n File \"/Users/admin/actions-runner/_work/cpython/cpython/Lib/test/support/script_helper.py\", line 80, in fail\n raise AssertionError(f\"Process return code is {exitcode}\\n\"\n ...\u003c10 lines\u003e...\n f\"---\")\nAssertionError: Process return code is -6 (SIGABRT)\ncommand line: ['/Users/admin/actions-runner/_work/cpython/cpython/python.exe', '-X', 'faulthandler', '-I', '-u', '-c', 'if 1:\\n import resource\\n import _thread\\n\\n def f():\\n print(\"shouldn\\'t be printed\")\\n\\n limits = resource.getrlimit(resource.RLIMIT_NPROC)\\n [_, hard] = limits\\n resource.setrlimit(resource.RLIMIT_NPROC, (0, hard))\\n\\n try:\\n _thread.start_new_thread(f, ())\\n except RuntimeError:\\n print(\\'ok\\')\\n else:\\n print(\\'!skip!\\')\\n ']\n```\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-127549\n* gh-127574\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/colesbury","@type":"Person","name":"colesbury"},"datePublished":"2024-11-29T16:06:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/127421/cpython/issues/127421"}
| 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:d0a865d5-bacd-c53c-7a28-f7b2211932e6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE86:989DC:1BCEF:22BF8:6A56B9FE |
| html-safe-nonce | a91243c5d48c295cabc5171643964639ad2ac210ddff35c9a1e2fa910f4e2a92 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTg2Ojk4OURDOjFCQ0VGOjIyQkY4OjZBNTZCOUZFIiwidmlzaXRvcl9pZCI6IjYyNDE2MDg1MDM5NzI1MTAyMDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bda75e92586c9d912c76f345b5fdae8b92c8d0ab3dc3c99dd0f48db9d99eb8e4 |
| hovercard-subject-tag | issue:2705551816 |
| 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/127421/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4de80536ff3942eb2c3bd6713ccd8271865832e524b60746c0a8c9b7ec0e6567/python/cpython/issues/127421 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4de80536ff3942eb2c3bd6713ccd8271865832e524b60746c0a8c9b7ec0e6567/python/cpython/issues/127421 |
| og:image:alt | Bug report Seen in https://github.com/python/cpython/actions/runs/12082953758/job/33695120037?pr=127399 ====================================================================== FAIL: test_start_new_t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | colesbury |
| hostname | github.com |
| expected-hostname | github.com |
| None | df99b7164e1d961b639cf5d3cbd6b5ba673edc67bd7e47cdc4746b96099e11ae |
| 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 | c29ba03b1896083dbe1084f6cd1c5367d8a0d67c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width