backtrace-on-stack-overflow
backtrace-on-stack-overflow copied to clipboard
add truncation and exit program
My machine hangs printing the infinite stack in infinite SIGABRT callbacks
- Changing
aborttoexitto kill the program after printing the trace once - Set the default limit for number of frames to print to 10
-
enable_with_limitto change the limit
Testing: cargo run --example main
If someone ever stumbles onto this, you can use @Pistonight's fix using cargo's git feature.
backtrace-on-stack-overflow = { git = "https://github.com/Pistonight/backtrace-on-stack-overflow", branch = "feature/limit_stack_size" }