code wiki / _hdl_build / _ar2_minrepro.nx
_ar2_minrepro.nx
buildroot/runtime/_hdl_build/_ar2_minrepro.nx
about
_ar2_minrepro.nx -- REGRESSION REPRO for the argon2id runtime defect (issue filed 2026-06-10).
Isolated: nx_argon2id_hash segfaults (sig11) with the test's EXACT params + identical ctx alloc;
the crash is in STEP 1 `_ar2_h0` (blake2b H0), BEFORE any memory fill. blake2b compiles to valid
.s, so this is a RUNTIME codegen/exec defect (miscompile-class), not a source/integration bug.
When the crypto/toolchain workers fix it, THIS module must print "_ar2_h0 returned rc=0" and
"hash returned rc=0" -> it becomes the argon2id regression gate. NOT my machine_key integration.
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_argon2id.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 _p(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 _pn(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48;k=1}; while m>0{t[k]=48+(m%10);m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(1,bb,k); return 0 } |
| 11 | func mk_ctx(m_kib: i64) -> *NxArgon2idCtx |
| 34 | func main() -> i64 |