code wiki / (root) / nx_probe_crashstk_live.nx

nx_probe_crashstk_live.nx

buildroot/runtime/nx_probe_crashstk_live.nx

763 B17 linesdepth 1pulls 1 transitivereach 0 importersview sourcekind probetopic probe
docsdependenciesstructsconstsfunctions

about

nx_probe_crashstk_live.nx -- WITNESS: a STACK-OVERFLOW crash under the guard must still print the diagnostic (proves the alternate signal stack works -- without sigaltstack the handler frame cannot be pushed and the process dies silently) and still die by the original signal. The recursion is deliberately NOT a tail call (the add uses the recursive result) so the frames genuinely accumulate. The gate asserts: exit 139 AND stderr contains "the program crashed" (fault address is the guard page -- not assertable exactly, unlike the null probe).

dependencies 1 imports · 0 importers

nx_crash.nx nx_probe_crashstk_live.nx

imports: nx_crash.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_crash_guard nxcr_mmap nxcr_install_one nxcr_mmap ↻ crashstk_rec crashstk_rec ↻

structs

none

consts

none

functions

9func crashstk_rec(n: i64) -> i64
called by 2: crashstk_recmain calls 1: crashstk_rec
14func main(argc: i64, argv: *u8) -> i64