-
Notifications
You must be signed in to change notification settings - Fork 13k
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
[experimental] shorten backtraces using debuginfo #134831
Draft
jyn514
wants to merge
18
commits into
rust-lang:master
Choose a base branch
from
jyn514:backtrace-debuginfo
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rustbot
added
A-testsuite
Area: The testsuite used to check the correctness of rustc
S-waiting-on-review
Status: Awaiting review from the assignee but also interested parties.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
S-experimental
Status: Ongoing experiment that does not require reviewing and won't be merged in its current state.
labels
Dec 27, 2024
@bors try |
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Dec 27, 2024
[experimental] shorten backtraces using debuginfo cc rust-lang/compiler-team#818 r? `@ghost` `@rustbot` label S-experimental try-job: aarch64-apple
@bors delegate+ (for try jobs) |
This comment has been minimized.
This comment has been minimized.
i think rustc_middle is going to fail to compile, so @bors cancel try |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@bors try |
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Dec 29, 2024
[experimental] shorten backtraces using debuginfo cc rust-lang/compiler-team#818 r? `@ghost` `@rustbot` label S-experimental try-job: aarch64-apple
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
bors
added
S-waiting-on-author
Status: This is awaiting some action (such as code changes or more information) from the author.
and removed
S-waiting-on-review
Status: Awaiting review from the assignee but also interested parties.
labels
Dec 29, 2024
@bors try |
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Dec 29, 2024
[experimental] shorten backtraces using debuginfo cc rust-lang/compiler-team#818 r? `@ghost` `@rustbot` label S-experimental try-job: aarch64-apple
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
☔ The latest upstream changes (presumably #135053) made this pull request unmergeable. Please resolve the merge conflicts. |
- give an error when `#[rustc_start/end_short_backtrace]` is used with `#[inline]` - update `short_ice-remove-middle-frames` to use the new attribute so that it's tested - don't ICE when debug logging
jyn514
added a commit
to jyn514/gimli
that referenced
this pull request
Jan 21, 2025
Often, consumers of a DWARF file will want to know if a given function has an attribute, either directly or indirectly. Currently, finding that information is tedious and prone to error. Add a helper function in gimli to make this easier. This does not attempt to have the maximum possible performance; consumers who care about that can still implement the logic themselves. In particular, the caches are recalculated each time `shared_attrs` is called, introducing an allocation. The logic works roughly as follows (inspired by [addr2line::Function::parse_children](https://github.com/gimli-rs/addr2line/blob/28ba2d45f2d22134915f55b46ddd6a039559366b/src/function.rs#L278)): - Create a cache of all DWARF units known to the `UnitRef` - Given an entry offset, iterate over all its attributes and pass them to a callback chosen by the caller. - For each indirect attribute, such as `DW_AT_abstract_origin`, follow the pointer to the abstract source and do the same thing again there. I have tested this downstream (see [rust-lang/rust#134831](rust-lang/rust#134831)), but I have not yet added unit tests. Let me know how you would like this to be tested.
rustbot
added
A-compiletest
Area: The compiletest test runner
A-tidy
Area: The tidy tool
labels
Jan 21, 2025
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-compiletest
Area: The compiletest test runner
A-run-make
Area: port run-make Makefiles to rmake.rs
A-testsuite
Area: The testsuite used to check the correctness of rustc
A-tidy
Area: The tidy tool
S-experimental
Status: Ongoing experiment that does not require reviewing and won't be merged in its current state.
S-waiting-on-author
Status: This is awaiting some action (such as code changes or more information) from the author.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
cc rust-lang/compiler-team#818
r? @ghost
@rustbot label S-experimental
try-job: aarch64-apple