mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-27 02:32:02 -04:00
b3cc33a678
The crash report named the recursing PCs (dirty_block tail) but not the depth, so "this is a stack overflow from unbounded native recursion" had to be inferred by hand. Serialize g_psx_dispatch_depth (generated/SCPH1001_dispatch.c, a global, read-only here) into the report header: a huge value at crash time is the direct fingerprint of runaway recursion overflowing the host C stack (0xC00000FD), since the host stack mirrors the guest call graph. Pairs with the dirty_block tail (which names the recursing function) for a self-evident report. No generated code modified; this is pure serialization of an existing global. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>