Frame pacing waits can hang during shutdown
PortBridge matched rizzzz64's Reforge change to two Continued failures. After the report, madhyn opened Continued #1042 and morodirule independently tested the fix on Linux.
Recorded in the catalog
LeonidaReforge
rizzzz64's fix releases the waiter count even on exceptions and wakes a blocked wait on a pacing-mode change. The CPU checks passed and the PR remains open.
Independent verification · Mixed result · Windows 11 build 28000, LLVM-MinGW Clang 23.1.6, CTest
9e9442fc67574d00ede9d70f9a8978d35befc608PortBridge checked the original Reforge test on Windows
Report date
The original test and header at 2ebde81e passed 3/3 runs. The #63 test with that header hit the eight-second limit in 3/3 runs on teardown after a throw. With the throwing block omitted, the separate mode-wakeup control failed 3/3 runs with the unchanged f553e1e7 header. With the 9e9442fc header, the full test and separate control each passed 3/3 runs. The repository's frame_pacer CTest target passed 1/1 in 0.95 seconds.
Leonida Continued
PortBridge reproduced the hang and missed wakeup at 82a2aabc. madhyn opened #1042 using the report. An independent Linux CPU run confirmed the mode-change wakeup. The PR is open.
Independent verification · Passed · Linux, g++, Synthetic CPU tests
5496f79f93c41f1134ce4c9e1d2674aa00c6bb55Report date
The original and new frame_pacer tests passed on Linux. The blocked wait woke when the pacing mode switched to uncapped.
Independent verification · Passed · Windows 11 build 26200, MSVC, CPU
5496f79f93c41f1134ce4c9e1d2674aa00c6bb55Report date
The registered test passed five of five runs. The baseline caught the missed wakeup. The shutdown subcase passed on the control, and the reviewer suggested adding a late-wait check.
Automated test · Passed · Windows 11 build 28000, LLVM-MinGW Clang 23.1.6, CPU
5496f79f93c41f1134ce4c9e1d2674aa00c6bb55PortBridge checked a late wait after shutdown
Report date
In five runs the fix rejected the late wait before reading the clock. The parent and the head with its early guard removed each read the clock once per run. All three variants returned the same status. The object stayed alive throughout the test.
Author report · Observed · Wine 11.22, clang-cl, CPU
79a8f595cb15bb95adcaf248cc2d337e9b025905madhyn added the regression check to Continued #1042
Report date
The PR author added a late-wait check and counted clock reads, crediting fin-github and akimfomin. The author reported the registered test passing 1 of 1 under Wine. The PR is open.
Automated test · Mixed result · Windows 11 build 28000, LLVM-MinGW Clang 23.1.6, CPU
79a8f595cb15bb95adcaf248cc2d337e9b025905PortBridge retested the added regression check
Report date
The exact head passed 5 of 5 runs. With the early guard removed, all five runs detected the failure and hung. After a local test-only cleanup the stock variant passed 5 of 5 again, and the control exited with the expected failure in about 1.3 seconds.
Author report · Observed · Wine 11.22, clang-cl, CPU
0b65330e0efca116777f2fd1b91fb9e4b40df320madhyn applied the Continued test cleanup
Report date
The author moved the result assertions after releasing and joining the blocked threads, as proposed by PortBridge. The registered test passed under Wine at this revision. The PR is open.
Automated test · Mixed result · Windows, Synthetic CPU test
0b65330e0efca116777f2fd1b91fb9e4b40df320PortBridge checked the waiter count after a thrown wait
Report date
The waiter count returned to zero after a normal call. It stayed at one when the synthetic clock threw before releasing the lock. The probe reset the counter before object destruction. This check covered waiter bookkeeping.
Automated test · Mixed result · Windows, LLVM-MinGW Clang 23.1.6, Synthetic CPU test
0b65330e0efca116777f2fd1b91fb9e4b40df320PortBridge tested a waiter cleanup after injected exceptions
Report date
The original passed three ordinary runs. When either of two test clock methods threw, teardown stalled in both runs for each method. The local change passed nine ordinary and exception checks and ten checks with shutdown already underway. The registered test passed three of three on each version. The candidate was shared for review.
Author report · Observed · Linux, Wine, CTest
33195f846863cb4b5532bad5a5cacc034861074amadhyn adopted the PortBridge fix in Continued #1042
Report date
The author applied the waiter-registration guard and both exception checks. The author reported one registered CTest pass each on Linux and Wine. The PR is open.
Automated test · Mixed result · Windows build 28000.3501, LLVM-MinGW Clang 23.1.6, Synthetic CPU test
33195f846863cb4b5532bad5a5cacc034861074aPortBridge checked a deterministic shutdown fixture
Report date
The synthetic test with a live object and explicit shutdown state passed three times at both the PR head and its immediate parent. A guard-omitted control detected an unexpected clock read in all three runs. The candidate was shared for review.
Automated test · Mixed result · Windows 11 build 28000, LLVM-MinGW Clang 23.1.6, CTest
82a2aabcc33bf296b5c2e3e4e7021fa506f8570ePortBridge checked the local Continued adaptation
Report date
The original test passed 3/3 runs. With the added tests and original header, teardown hit the eight-second limit in 3/3 runs. The separate mode-wakeup control failed 3/3 runs. The local adaptation passed 3/3 runs of the full test and 3/3 of the separate control. The repository's frame_pacer CTest target passed 1/1 in 1.03 seconds in a CPU-test-only build.