Skip to content

Tracking Issue for short backtraces in the default panic hook #136129

Open
@jyn514

Description

@jyn514

This is a tracking issue for short backtraces in the default panic hook (#124586, rust-lang/compiler-team#818). See previous Zulip discussion.

About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Discussion comments will get marked as off-topic or deleted.
Repeated discussions on the tracking issue may lead to the tracking issue getting locked.

Steps

Compile-time

Runtime

Unresolved Questions

  • How should we represent the debuginfo at runtime? The current three-state enum doesn't allow both marking a frame as the end of a push/pop pair while also omitting it in the backtrace. NOTE: please leave comments about this on LLVM discourse, not on this issue.
  • How can we extend this to PDB? Right now it only works for DWARF. Possibly we can use llvm.codeview.annotation?

Implementation history

See above.

@rustbot label T-compiler T-libs A-runtime A-backtrace A-debuginfo

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-backtraceArea: BacktracesA-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions