You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deep recursion in JIT-compiled code kills the process instead of raising SystemStackError #128
Deep recursion in a JIT-compiled method overflows the CLR stack and the process dies (Stack overflow. from the runtime, exit code 0xC00000FD / 134), where CRuby raises SystemStackError, which a program can rescue.
The crash trace is all DynamicClass.jit$f frames under JitRuntime.SubInt, so the JIT's method bodies do not check the stack the way the interpreter's paths do (e.g. RuntimeHelpers.TryEnsureSufficientExecutionStack, which the Ractor copier uses to raise SystemStackError instead).
Possible fix: a stack check in the prologue of each JIT-compiled method (or every Nth call level) that raises SystemStackError.
Found while running PR #119 on Windows (2026-11-07), on that branch's net10.0 Debug build.
Activity