I saw this error twice today.
FAIL: test_tlbc_cache_refresh_after_growth (test.test_external_inspection.TestGetStackTrace.test_tlbc_cache_refresh_after_growth)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\a\cpython\cpython\Lib\test\test_external_inspection.py", line 2384, in test_tlbc_cache_refresh_after_growth
self.assertEqual(
~~~~~~~~~~~~~~~~^
result.returncode, 0,
^^^^^^^^^^^^^^^^^^^^^
f"stdout: {result.stdout}\nstderr: {result.stderr}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
AssertionError: 1 != 0 : stdout:
stderr: OSError: [WinError 299] Only part of a ReadProcessMemory or WriteProcessMemory request was completed
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 38, in <module>
wait_for_leaf_frames(u, 2)
~~~~~~~~~~~~~~~~~~~~^^^^^^
File "<string>", line 17, in wait_for_leaf_frames
traces = u.get_stack_trace()
OSError: ReadProcessMemory failed for PID 2764 at address 0x1 (size 80, partial read 0 bytes): Windows error 299
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
cc @pablogsal
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows