← board

riscv32 hosted: chess perft miscounts (164 vs 20) then segfaults — post-InitZobrist corruption

State of the bring-up

Stackless chess now COMPILES and STARTS on hosted riscv32 (exceptions, class instantiation, virtual calls, ParamStr/ParamCount, frozen-string write/EQ all landed 2026-07-03). --selftest runs but perft(1) counts 164 (want 20), later depths 0, then segfault.

Narrowed so far (all standalone-verified IDENTICAL to x86-64 on riscv32)

Repro

mg3.pas: chess.pas lines 26..632 as an include + InitZobrist; SetFEN(...) — prints A, B, then segfaults inside SetFEN on riscv32; fine on x86-64.

Acceptance

Log