Skip to content

Commit

Permalink
Fix tests on ARM Linux (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov authored and Yamakaky committed Feb 25, 2017
1 parent 0982a28 commit 53a5d56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libstd/sys/unix/backtrace/tracing/gcc_s.rs
Expand Up @@ -53,7 +53,9 @@ pub fn unwind_backtrace(frames: &mut [Frame])
// See libunwind:src/unwind/Backtrace.c for the return values.
// No, there is no doc.
match result_unwind {
uw::_URC_END_OF_STACK | uw::_URC_FATAL_PHASE1_ERROR => {
// These return codes seem to be benign and need to be ignored for backtraces
// to show up properly on all tested platforms.
uw::_URC_END_OF_STACK | uw::_URC_FATAL_PHASE1_ERROR | uw::_URC_FAILURE => {
Ok((cx.idx, BacktraceContext))
}
_ => {
Expand Down
1 change: 1 addition & 0 deletions src/libstd/sys_common/backtrace.rs
Expand Up @@ -134,6 +134,7 @@ fn filter_frames(frames: &[Frame],
"__libc_start_main",
"__rust_try",
"_start",
"main",
"BaseThreadInitThunk",
"__scrt_common_main_seh",
"_ZN4drop",
Expand Down

0 comments on commit 53a5d56

Please sign in to comment.