Avoid native stack exhaustion in BDD analysis #4863
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4863
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4862"
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?
@VazirAPI on GitHub · 2026-12-01 11:59 UTC · original
VazirAPI:fix/bdd-traversal-stack→main· +235 −82 · 1 files · 1 commits · openWhat it changes
Bools::forget,Bools::restrictand themeetsearch recurse once per decision-diagram level. A synthetic, valid 16,384-variable conjunction exhausts a 256 KiB worker stack in each operation and terminates its process with0xc00000fd. All three now use explicit heap work stacks, following the iterativeitealready in this module. Low-before-high traversal, early returns, memoization and resulting boolean nodes are preserved; the search also retains its conservative budget semantics and negative-answer memo accounting.Adds isolated child-process regressions for all three deep traversals (including satisfiable and unsatisfiable searches), plus exhaustive six-variable truth-table checks for quantification and restriction, terminals, absent variables, shared subgraphs and memo reuse. Children must emit completion markers so an exact filter matching no tests cannot falsely pass. The existing randomized search oracle compares both results and remaining budgets.
This fixes a reproduced compiler failure; it does not attribute or claim to close any gameplay crash without a matching stack trace. The translator's source fingerprint changes normally with this source change.
How it was tested
286ca92f7ea376159f81c495e4e6dd63f9531e12(same tree as the final local checks).x86_64-pc-windows-gnuwith MinGW. MSVC and upstream CI are not claimed here.0xc00000fd.cargo test -p victory-shader --lib --locked --offline structure::tests: 19 passed, 0 failed.main5fabb46ein an isolated target directory:emit::rayquery_tests::a_ray_query_program_validates_and_makes_a_pipeline_on_warpandemit::bitcode::opt::tests::hw_tests::split_lds_wave32_read_after_read_barrier_coalescing_and_parity. This host's WARP reports only SM 6.2. The final change was checked with the focused tests above; no full-suite pass is claimed.cargo testpassed for the crates it touches: focused structurizer tests yes; full crate suite no, as described above.cargo clippy -p victory-shader --all-targets --all-features --locked --offline -- -D warnings: passed.5fabb46e: all-feature workspace Clippy stops at five findings inhost/font.rs,host/menu.rsandhost/panel.rs, tracked by existing repair #4680. The focused package check above passes for this change.cargo xtask policy --staged: 1 file OK.git diff --cached --check: passed.Checked for overlap
Bools,forget,restrict, and inspected the open-PR file listing. Related PRs touching this file: #4788, #4481, #4171, #3501, #3402, #2993 and #831. #4788 bounds theiteanswer table; #3501 optimizes support traversal. Neither replaces the recursive operations changed here. The other changes concern different analysis paths. This extends the iterative traversal approach already adopted foritefrom #1103.AI-assisted implementation and review with OpenAI Codex.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.