Hacker News new | ask | show | jobs
by Kranar 842 days ago
Panics are not quite the same as an abort in Rust. Most notably a panic can be caught and execution can resume so as to gracefully terminate the application, but an abort is an immediate termination, a go to jail do not pass go kind of situation.

An out of bounds access in Rust will result in a panic but a stack overflow is an abort.

2 comments

A segfault would imply it's not an abort either although it seems like it has been converted to a proper abort in newer versions of Rust.
Panics can be aborts if set in cargo.toml.