You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
backtrace::Backtrace 0: bt::show_backtrace
at /path/to/reproduce/src/bin/bt.rs:2:21
bt::f4
at /path/to/reproduce/src/bin/bt.rs:7:5
bt::f3
at /path/to/reproduce/src/bin/bt.rs:11:5
bt::f2
at /path/to/reproduce/src/bin/bt.rs:15:5
bt::f1
at /path/to/reproduce/src/bin/bt.rs:19:5
bt::main
at /path/to/reproduce/src/bin/bt.rs:23:5
1: core::ops::function::FnOnce::call_once
at /rustc/9b72238eb813e9d06e9e9d270168512fbffd7ee7/library/core/src/ops/function.rs:250:5
std::sys::backtrace::__rust_begin_short_backtrace
at /rustc/9b72238eb813e9d06e9e9d270168512fbffd7ee7/library/std/src/sys/backtrace.rs:154:18
2: main
3: <unknown>
4: __libc_start_main
5: _start
5.4M bt
expected
Should document on how to find a balance like something like below.
backtrace::Backtrace 0: bt::show_backtrace
at /path/to/reproduce/src/bin/bt.rs:2:21
bt::f4
at /path/to/reproduce/src/bin/bt.rs:7:5
bt::f3
at /path/to/reproduce/src/bin/bt.rs:11:5
bt::f2
at /path/to/reproduce/src/bin/bt.rs:15:5
bt::f1
at /path/to/reproduce/src/bin/bt.rs:19:5
bt::main
at /path/to/reproduce/src/bin/bt.rs:23:5
**/rustc/xxx are not kept **
**main, <unknown>, __libc_start_main, _start are not kept**
544K bt
The text was updated successfully, but these errors were encountered:
You can use strip = "debuginfo" to strip all debuginfo, but keep the symbols used for backtraces. In fact this is the default for release mode nowadays. Symbols are a lot smaller than debuginfo, so unless you really need every last kb of space, you should probably use strip = "debuginfo".
They probably got inlined. Full debuginfo also keeps information about inlined functions, but most of the time backtraces are legible without this information anyway and even with full debuginfo the compiler may replace tail calls with jumps, which would irrecoverably lose the stack frame for the caller.
feat
should document on how to support backtrace when size optimize
reproduce
actual
When use size optimize config, backtrace is not working.
When use backtrace working config, size is much larger than size optimize config.
expected
Should document on how to find a balance like something like below.
The text was updated successfully, but these errors were encountered: