rust-lang / rust-lang/backtrace-rs
`p_offset` used as a memory offset for Fuchsia
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 628
- Forks
- 291
- PR merge metrics
- No merged PRs in 30d
Description
In src/print/fuchsia.rs, Phdr::notes computes the in-memory note address as base + p_offset, but ELF Elf_Phdr.p_offset is a file offset.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/print/fuchsia.rs at Phdr::notes and inspect how Fuchsia exposes the loaded ELF program headers and their in-memory addresses. Verify the note address is derived from the mapped address rather than the file offset, then run the repository tests and confirm note-based backtraces still resolve correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100