Closed
Description
Today, when you overflow the stack, Rust traps the SIGSEGV and prints an error message, then the program exits with a segfault, exit code 135 on linux, and dumps core.
When we used segstacks for stack overflow the runtime just abort!
ed, exiting with an illegal instruction.
That stack overflow protection is implemented by handling a segfault is an implementation detail. Rust should not be exposing it. Instead, when it detects a segfault because of stack overflow it should abort like any other fatal error.
Metadata
Metadata
Assignees
Labels
No labels