Title: [Free Threading] test_external_inspection: flaky "[WinError 299] Only part of a ReadProcessMemory or WriteProcessMemory request was completed" error on GHA Windows CI · Issue #158574 · python/cpython · GitHub
Open Graph Title: [Free Threading] test_external_inspection: flaky "[WinError 299] Only part of a ReadProcessMemory or WriteProcessMemory request was completed" error on GHA Windows CI · Issue #158574 · python/cpython
X Title: [Free Threading] test_external_inspection: flaky "[WinError 299] Only part of a ReadProcessMemory or WriteProcessMemory request was completed" error on GHA Windows CI · Issue #158574 · python/cpython
Description: Bug report I saw this error twice today. Windows (free-threading) / Build and test (x64, tail-call): https://github.com/python/cpython/actions/runs/36895107589/job/110480146055?pr=158040 FAIL: test_tlbc_cache_refresh_after_growth (test.t...
Open Graph Description: Bug report I saw this error twice today. Windows (free-threading) / Build and test (x64, tail-call): https://github.com/python/cpython/actions/runs/36895107589/job/110480146055?pr=158040 FAIL: test...
X Description: Bug report I saw this error twice today. Windows (free-threading) / Build and test (x64, tail-call): https://github.com/python/cpython/actions/runs/36895107589/job/110480146055?pr=158040 FAIL: test...
Opengraph URL: https://github.com/python/cpython/issues/158574
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Free Threading] test_external_inspection: flaky \"[WinError 299] Only part of a ReadProcessMemory or WriteProcessMemory request was completed\" error on GHA Windows CI","articleBody":"### Bug report\n\nI saw this error twice today.\n\nWindows (free-threading) / Build and test (x64, tail-call): https://github.com/python/cpython/actions/runs/36895107589/job/110480146055?pr=158040\n\n```\nFAIL: test_tlbc_cache_refresh_after_growth (test.test_external_inspection.TestGetStackTrace.test_tlbc_cache_refresh_after_growth)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"D:\\a\\cpython\\cpython\\Lib\\test\\test_external_inspection.py\", line 2384, in test_tlbc_cache_refresh_after_growth\n self.assertEqual(\n ~~~~~~~~~~~~~~~~^\n result.returncode, 0,\n ^^^^^^^^^^^^^^^^^^^^^\n f\"stdout: {result.stdout}\\nstderr: {result.stderr}\",\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n )\n ^\nAssertionError: 1 != 0 : stdout: \nstderr: OSError: [WinError 299] Only part of a ReadProcessMemory or WriteProcessMemory request was completed\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"\u003cstring>\", line 38, in \u003cmodule>\n wait_for_leaf_frames(u, 2)\n ~~~~~~~~~~~~~~~~~~~~^^^^^^\n File \"\u003cstring>\", line 17, in wait_for_leaf_frames\n traces = u.get_stack_trace()\nOSError: ReadProcessMemory failed for PID 2764 at address 0x1 (size 80, partial read 0 bytes): Windows error 299\n```\n\ncc @pablogsal \n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nWindows\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-158801\n* gh-158817\n* gh-158818\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2026-10-01T18:10:15Z","url":"https://github.com/python/cpython/issues/158574"}
| 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:55820051-3fbc-2e40-3fee-cb1a322d1e44 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8134:38E318:37B3855:4676576:6B0222E0 |
| html-safe-nonce | bff77c5fa3ea899b3417ce2232d1e3a2d932881a1de4ac557272606f65a15637 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTM0OjM4RTMxODozN0IzODU1OjQ2NzY1NzY6NkIwMjIyRTAiLCJ2aXNpdG9yX2lkIjoiNDEwMDY1OTAxNzM2NDQxNTIwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b57f25f0d054869b29da597eb786f36ea807a7688abceb72ea001499642315c4 |
| hovercard-subject-tag | issue:5666872202 |
| 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/158574/issue_layout |
| twitter:image | https://opengraph.githubassets.com/66534f5d29de9da1abe5203b03f8554f936388b79011e17bb577ee6acca0bb19/python/cpython/issues/158574 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/66534f5d29de9da1abe5203b03f8554f936388b79011e17bb577ee6acca0bb19/python/cpython/issues/158574 |
| og:image:alt | Bug report I saw this error twice today. Windows (free-threading) / Build and test (x64, tail-call): https://github.com/python/cpython/actions/runs/36895107589/job/110480146055?pr=158040 FAIL: test... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| 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