loader(crash): verify unwind against known caller frames when RtlCaptureStackBackTrace returns empty #1159

Merged
geiyiliyabumo merged 1 commit from upstream-pr/1159 into main 2026-11-25 00:21:35 +00:00
geiyiliyabumo commented 2026-11-24 16:18:16 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-24T16:18:16Z.


Summary

Fixes #742

Full verification details and change notes are documented in #742 (commit 121412b, based on main ffe310e).

 crates/victory-loader/src/crash.rs | 117 ++++++++++++++++++++++++++++++++-----
 1 file changed, 103 insertions(+), 14 deletions(-)

Verification (Windows 11 x64 MSVC)

  • rustfmt --edition 2024 --check on edited files: PASS
  • cargo xtask policy: PASS (zero game files/data)
  • cargo clippy --all-targets --locked -- -D warnings (default + --features diagnostics where applicable): PASS
  • Targeted & crate unit/GPU tests: PASS

AI-assisted; synthetic tests only, no game files.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6586317671 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1159). Originally posted by [geiyiliyabumo](https://github.com/geiyiliyabumo) on 2026-11-24T16:18:16Z. --- ### Summary Fixes #742 Full verification details and change notes are documented in #742 (commit `121412b`, based on `main` `ffe310e`). ```text crates/victory-loader/src/crash.rs | 117 ++++++++++++++++++++++++++++++++----- 1 file changed, 103 insertions(+), 14 deletions(-) ``` ### Verification (Windows 11 x64 MSVC) - `rustfmt --edition 2024 --check` on edited files: **PASS** - `cargo xtask policy`: **PASS** (zero game files/data) - `cargo clippy --all-targets --locked -- -D warnings` (default + `--features diagnostics` where applicable): **PASS** - Targeted & crate unit/GPU tests: **PASS** *AI-assisted; synthetic tests only, no game files.*
Zipettte commented 2026-11-24 18:06:13 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T18:01:06Z.


Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 121412b: cargo test -p victory-loader passes, 25 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).

Tested with AI assistance (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7140036829 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1159#issuecomment-7140036829). Originally posted by [Zipettte](https://github.com/Zipettte) on 2026-11-24T18:01:06Z. --- Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 121412b: `cargo test -p victory-loader` passes, 25 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed). _Tested with AI assistance (Claude)._
Calvix2k commented 2026-11-24 21:28:37 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Calvix2k on 2026-11-24T21:27:53Z.


Strong reproduction and fix verification on the machine where the flake actually happens:

  • Windows 10 x64, Ryzen 7 5800X, Radeon RX 7800 XT, Rust 1.98.1 MSVC.
  • Without the PR (main fe310e): cargo test -q -p victory-loader --locked unwinds_like_the_system_walk -- --test-threads=1 repeated 20 times — failed 13/20 with RtlCaptureStackBackTrace returning fewer than four frames.
  • With this head (121412b): the same 20 runs — 0 failures. Full crate: cargo test -p victory-loader --locked -- --test-threads=1 → 22 + 2 + 1 passed, 0 failed.

So the fallback to known caller frames fixes the Windows 10 case that produced #742/#1605. Looks good to merge from this side.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7144963430 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1159#issuecomment-7144963430). Originally posted by [Calvix2k](https://github.com/Calvix2k) on 2026-11-24T21:27:53Z. --- Strong reproduction and fix verification on the machine where the flake actually happens: - **Windows 10 x64**, Ryzen 7 5800X, Radeon RX 7800 XT, Rust 1.98.1 MSVC. - **Without the PR** (main fe310e): `cargo test -q -p victory-loader --locked unwinds_like_the_system_walk -- --test-threads=1` repeated 20 times — **failed 13/20** with `RtlCaptureStackBackTrace` returning fewer than four frames. - **With this head** (121412b): the same 20 runs — **0 failures**. Full crate: `cargo test -p victory-loader --locked -- --test-threads=1` → 22 + 2 + 1 passed, 0 failed. So the fallback to known caller frames fixes the Windows 10 case that produced #742/#1605. Looks good to merge from this side.
upstream-sync closed this pull request 2026-11-25 01:05:44 +00:00
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
Marvisak/VIctory!1159
No description provided.