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

Closed
github-bot wants to merge 1 commit from gh-pr/411/head into gh-pr/411/base
Owner

@⁠HAL9000RELOADED on GitHub · 2026-11-25 00:26 UTC · original
HAL9000RELOADED:fix/win10-unwind-test → main · +10 −0 · 1 files · 1 commits · closed without merging

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.

**@⁠HAL9000RELOADED** on GitHub · 2026-11-25 00:26 UTC · [original](https://github.com/fxceless/victory-fork/pull/411) `HAL9000RELOADED:fix/win10-unwind-test` → `main` · +10 −0 · 1 files · 1 commits · closed without merging 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.
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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:42:52 +00:00
github-bot closed this pull request 2026-11-26 03:42:52 +00:00
Author
Owner

@⁠HAL9000RELOADED on GitHub · 2026-11-25 02:00 UTC · original

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.

**@⁠HAL9000RELOADED** on GitHub · 2026-11-25 02:00 UTC · [original](https://github.com/fxceless/victory-fork/pull/411#issuecomment-7150218272) 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

This discussion has been locked. Commenting is limited to contributors.
No description provided.