Is there any standard methodology for debugging a stack overflow in Rust?

Viewed 4242

Getting a backtrace would be nice.

$ cargo test
    Running target/debug/partition_ops-b31bcf7b82e2e8d5

running 1 test

thread 'create_small' has overflowed its stack
Process didn't exit successfully: `/home/dhardy/other/pippin/target/debug/partition_ops-b31bcf7b82e2e8d5` (signal: 11)

To learn more, run the command again with --verbose.
2 Answers

Using LLDB:

$ rust-lldb -- target/debug/partition_ops-b31bcf7b82e2e8d5  # append test args here
...
(lldb) run
...
(lldb) bt
Related