loader(seh), hle(xasync): dispatch out-of-bounds/guard-page RSP faults on a TEB emergency stack and give XTaskQueue workers 8 MiB stacks #565
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS#565
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?
@Sheffy007 on GitHub · 2026-11-28 04:50 UTC · original
Refs #395, #525.
Silent
SIGSEGV(exit code 139) insideseh::signal::on_signalwhen a title thread overflows its stack or faults with an out-of-boundsrsp:on_signal(crates/victory-loader/src/native/seh/signal.rs:457-470) unconditionally writesContextandExceptionRecordbelow the interruptedrsp.TEB[OFF_STACK_LIMIT]or faults afterrspleaves[OFF_STACK_LIMIT, OFF_STACK_BASE),(ctx_at as *mut Context).write(ctx)triggers a nestedSIGSEGVinsideon_signalwhileSIGSEGVis masked by the kernel, terminating the process immediately withexit code 139and no log output or unhandled-exception callback.ctx_at/rec_at/entry_rsponto it wheneverrsp > stack_base || entry_rsp < stack_limit(while keeping the faultingrspinContextand reportingEXCEPTION_STACK_OVERFLOW0xC000_00FDfor guard-zone faults belowstack_limit) letsseh::dispatchlog the fault and run vectored / unhandled exception handlers cleanly.2 MiB stacks on
XTaskQueue/XAsyncRuntitle callback workers andvictory-pipelinesworkers:CreateThreadenforcesMIN_STACK = 8 MiB(crates/victory-hle/src/host_posix.rs:64) because title code and native pipeline builds overflow smaller stacks, yetXTaskQueue(Port::Serialized,Pool, delayedQueue::submit) andXAsyncRun(crates/victory-hle/src/modules/xasync.rs) spawn plain 2 MiBstd::thread::spawnthreads to run title callbacks, andcrates/victory-gpu/src/pipeline/make.rsspawnsvictory-pipelinesworkers with the default 2 MiB stack.@Sheffy007 on GitHub · 2026-11-28 04:50 UTC · original
/claim
@github-actions[bot] on GitHub · 2026-11-28 04:50 UTC · original
Claimed by @Sheffy007. Open a draft pull request with
Refs #561in its description within 24 hours, or the claim expires.