It seems that rust knows when stack overflows https://github.com/rust-lang/rust/issues/109533#issuecomment-1481840346 If so, then it would be better for it to report the stack overflow, instead of seg faulting.