GeezerVison is showing github.com — test_profiling.test_sampling_profiler: test_generator_not_under_consumer_arithmetic() failed on the Windows CI · Issue #150429 · python/cpython
test_profiling.test_sampling_profiler: test_generator_not_under_consumer_arithmetic() failed on the Windows CI #150429
Description
"Windows / Build and test (x64, tail-call)" GHA CI: https://github.com/python/cpython/actions/runs/26413033443/job/77751481935?pr=150417
FAIL: test_generator_not_under_consumer_arithmetic (test.test_profiling.test_sampling_profiler.test_blocking.TestBlockingModeStackAccuracy.test_generator_not_under_consumer_arithmetic)
Test that fibonacci_generator doesn't appear when consume_generator does arithmetic.
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\a\cpython\cpython\Lib\test\test_profiling\test_sampling_profiler\test_blocking.py", line 137, in test_generator_not_under_consumer_arithmetic
self.assertEqual(invalid_stacks, 0,
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
f"Found {invalid_stacks}/{arithmetic_samples} invalid stacks where "
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
f"fibonacci_generator appears in the stack when consume_generator "
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
f"is on an arithmetic line. This indicates torn/inconsistent stack "
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
f"traces are being captured.")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 303 != 0 : Found 303/6238 invalid stacks where fibonacci_generator appears in the stack when consume_generator is on an arithmetic line. This indicates torn/inconsistent stack traces are being captured.
Linked PRs
Activity
vstinner commented on May 25, 2026
pablogsal commented on May 25, 2026
Reacted by Victor Stinner
vstinner commented on Jun 1, 2026
pablogsal commented on Jun 1, 2026
Landing the fix after checking the buildbots on the PR
Reacted by Victor Stinner
Metadata
Metadata
Development
No branches or pull requestsIssue actions