code wiki / _hdl_build / nx_engineer_crash_test.nx
nx_engineer_crash_test.nx
buildroot/runtime/_hdl_build/nx_engineer_crash_test.nx
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
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
structs
| none |
consts
| none |
functions
| 9 | func 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 } |
| 10 | func ec_num(v: i64) -> i64 called by 1: ec_report |
| 18 | func ec_report(label: *u8, rc: i64) -> i64 |
| 25 | func main() -> i64 |