code wiki / _hdl_build / nx_engineer_crash_test.nx

nx_engineer_crash_test.nx

buildroot/runtime/_hdl_build/nx_engineer_crash_test.nx

2971 B52 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic engineer
docsdependenciesstructsconstsfunctions

about

nx_engineer_crash_test.nx -- the Engineer catches a crash vs a clean exit. Runs a known crasher (null write -> SIGSEGV) and a clean control, and proves it distinguishes a SIGNAL DEATH from a normal exit -- the thing the gate runner's exit-code-only check misses. Build lane provides /tmp/eng_crasher.elf and /tmp/eng_clean.elf. Known answer: crasher = CRASH signal 11, clean = exit 0.

dependencies 1 imports · 0 importers

nx_engineer_crash.nx nx_engineer_crash_test.nx

imports: nx_engineer_crash.nx

imported by: nobody (leaf or entry point)

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

main ec_puts eng_compile sys_mmap sys_fork sys_openat_wr sys_dup3 sys_close sys_execve sys_exit sys_wait4 sys_openat_rd sys_read eng_run sys_mmap ↻ sys_fork ↻ sys_openat_wr ↻ sys_dup3 ↻ sys_close ↻ sys_execve ↻ sys_exit ↻ sys_wait4 ↻ ec_report ec_puts ↻ eng_crashed ec_num eng_signal eng_sig_name eng_crashed ↻ eng_signal ↻

structs

none

consts

none

functions

9func ec_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 2: ec_reportmain
10func ec_num(v: i64) -> i64
called by 1: ec_report
18func ec_report(label: *u8, rc: i64) -> i64
25func main() -> i64