> If a Rust program segfaults, you can be sure it’s somewhere in the sections marked unsafe. https://doc.rust-lang.org/nightly/book/unsafe.html But as far as I understand it, an unsafe block can instead break an invariant that causes a segfault further down the line in safe code. Also, stack overflows can cause a segfault.