rust-lang / rust-lang/backtrace-rs

`p_offset` used as a memory offset for Fuchsia

Open
#754 2 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.