Skip to content

Commit

Permalink
fix stack trace skip path for crash reports
Browse files Browse the repository at this point in the history
  • Loading branch information
mariocynicys committed Aug 8, 2024
1 parent 90bdb84 commit 8c3331c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions mm2src/common/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,9 @@ pub fn stack_trace_frame(instr_ptr: *mut c_void, buf: &mut dyn Write, symbol: &b
// Skip common and less than informative frames.

match name {
// FIXME: What mm2 here refers to?
"mm2::crash_reports::rust_seh_handler"
"common::crash_reports::rust_seh_handler"
| "veh_exception_filter"
| "common::stack_trace"
| "common::log_stacktrace"
// Super-main on Windows.
| "__scrt_common_main_seh" => return,
_ => (),
Expand All @@ -397,8 +395,7 @@ pub fn stack_trace_frame(instr_ptr: *mut c_void, buf: &mut dyn Write, symbol: &b
|| name.starts_with("core::ops::")
|| name.starts_with("futures::")
|| name.starts_with("hyper::")
// FIXME: What mm2 here refers to?
|| name.starts_with("mm2::crash_reports::signal_handler")
|| name.starts_with("common::crash_reports::signal_handler")
|| name.starts_with("panic_unwind::")
|| name.starts_with("std::")
|| name.starts_with("scoped_tls::")
Expand Down

0 comments on commit 8c3331c

Please sign in to comment.