loader: ensure stack headroom before RtlCaptureStackBackTrace on Windows 10 #411

Closed
HAL9000RELOADED wants to merge 1 commit from upstream-pr/411 into main
HAL9000RELOADED commented 2026-11-25 00:26:07 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by HAL9000RELOADED on 2026-11-25T00:26:07Z.


On Windows 10 10.0.19045, fresh test threads often start with Rsp - TEB.StackLimit in 0x260..0x6c0, causing RtlWalkFrameChain inside RtlCaptureStackBackTrace to hit the stack PAGE_GUARD mid-walk and abort returning 0 frames. Touching one stack page in ensure_stack_headroom() before the walk keeps the full system-walk parity assertion intact without skipping it on Windows 10.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6594266578 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/411). Originally posted by [HAL9000RELOADED](https://github.com/HAL9000RELOADED) on 2026-11-25T00:26:07Z. --- On Windows 10 10.0.19045, fresh test threads often start with Rsp - TEB.StackLimit in 0x260..0x6c0, causing RtlWalkFrameChain inside RtlCaptureStackBackTrace to hit the stack PAGE_GUARD mid-walk and abort returning 0 frames. Touching one stack page in ensure_stack_headroom() before the walk keeps the full system-walk parity assertion intact without skipping it on Windows 10.
upstream-sync closed this pull request 2026-11-25 02:09:32 +00:00
HAL9000RELOADED commented 2026-11-25 02:10:14 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by HAL9000RELOADED on 2026-11-25T02:00:54Z.


Closing, and sorry for the noise. After checking more carefully against the other pull requests, I found this problem was already reported and fixed upstream:

This fork will get that fix with the next upstream sync. This PR was only DrTardis1963's 559756c from that discussion, submitted again without adding anything.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7150218272 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/411#issuecomment-7150218272). Originally posted by [HAL9000RELOADED](https://github.com/HAL9000RELOADED) on 2026-11-25T02:00:54Z. --- Closing, and sorry for the noise. After checking more carefully against the other pull requests, I found this problem was already reported and fixed upstream: - **Report:** Marvisak/VIctory#742. - **Fix:** Marvisak/VIctory#1159, merged, with a different approach (it checks the unwind against known caller frames). This fork will get that fix with the next upstream sync. This PR was only DrTardis1963's `559756c` from that discussion, submitted again without adding anything.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork!411
No description provided.