Skip to content

Add N frames omitted in backtrace frames #111730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
chenyukang opened this issue May 18, 2023 · 0 comments · Fixed by #112843
Closed

Add N frames omitted in backtrace frames #111730

chenyukang opened this issue May 18, 2023 · 0 comments · Fixed by #112843
Labels
A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows T-libs Relevant to the library team, which will review and decide on the PR/issue.

Comments

@chenyukang
Copy link
Member

Original from #108938 (comment)

#108938 is merged, an follow-up action is adding "N frames omitted" line for avoiding confusion.
Maybe something like:

   1: short_ice_remove_middle_frames::seven
   2: short_ice_remove_middle_frames::sixth
   3: short_ice_remove_middle_frames::fifth::{{closure}}
   4: short_ice_remove_middle_frames::second
      [ 2 frames omitted]
   5: short_ice_remove_middle_frames::first

Need to make an PR for backtrace-rs first.

@jyn514 jyn514 added A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows T-libs Relevant to the library team, which will review and decide on the PR/issue. labels May 19, 2023
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Jul 26, 2023
…e, r=workingjubilee

Print omitted frames count for short backtrace mode

Fixes rust-lang#111730
@bors bors closed this as completed in d4145ee Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants