VICTORY_STACKS can nest Wine's SIGUSR1 exception handler while sampling #62
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/vktory6--VKtory#62
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@TheRifai on GitHub · 2026-12-01 09:09 UTC · original
Finding (AGENTS.md rules 21, 29)
VICTORY_STACKS(crates/victory-loader/src/stacks.rs) suspends each thread withSuspendThreadto read its context. Under Wine,SuspendThreadis delivered with SIGUSR1 and handled inntdll.so'susr1_handler.During the exit-1 investigation, a filtered run with
VICTORY_STACKS=12,15,...produced, immediately before the exit:Mapping the fault PC through Proton's
ntdll.soput it at offset0x4f184, insideusr1_handler(symbol starts at0x4f0b0). A later identical filtered run withoutVICTORY_STACKShad no such exception and survived. So this looks like a diagnostic artifact, not the title fault — but it means the stack sampler can perturb Wine's signal handling, which is exactly when someone would use it to debug a crash.Next
Note the limitation in
docs/tools.mdwhereVICTORY_STACKSis catalogued, and consider a less intrusive sampling method (e.g.,NtGetContextThreadon a thread that is already waiting, or Wine-side thread contexts) so the tool does not need SIGUSR1. No change to the game code is implied.Seen on:
f4dc80f-era builds with GE-Proton11-15.@vktory6 on GitHub · 2026-12-01 09:15 UTC · original
Thanks!
VICTORY_STACKSnow has an entry indocs/tools.mdwith this limit: a fault right after a sample is suspect, so repeat without it before reading it as the title's (github.com/vktory6/VKtory@e6de2b1). A sampler that does not need SIGUSR1 can come when someone needs it.