File tree 2 files changed +4
-1
lines changed
sys/unix/backtrace/tracing
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,9 @@ pub fn unwind_backtrace(frames: &mut [Frame])
53
53
// See libunwind:src/unwind/Backtrace.c for the return values.
54
54
// No, there is no doc.
55
55
match result_unwind {
56
- uw:: _URC_END_OF_STACK | uw:: _URC_FATAL_PHASE1_ERROR => {
56
+ // These return codes seem to be benign and need to be ignored for backtraces
57
+ // to show up properly on all tested platforms.
58
+ uw:: _URC_END_OF_STACK | uw:: _URC_FATAL_PHASE1_ERROR | uw:: _URC_FAILURE => {
57
59
Ok ( ( cx. idx , BacktraceContext ) )
58
60
}
59
61
_ => {
Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ fn filter_frames(frames: &[Frame],
134
134
"__libc_start_main" ,
135
135
"__rust_try" ,
136
136
"_start" ,
137
+ "main" ,
137
138
"BaseThreadInitThunk" ,
138
139
"__scrt_common_main_seh" ,
139
140
"_ZN4drop" ,
You can’t perform that action at this time.
0 commit comments