rr-debugger / rr-debugger/rr

Strace Output via rr

Open
#2,197 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.7k
Forks
662
Avg merge
2d 3h
Merged PRs (30d)
2

Description

Hey everyone,

As part of another project I needed to modify rr to provide strace output during replay. To accomplish this I hacked up strace a bit to get it compiling as a static library, linked it to rr, and modified rr to set the necessary state and call the required functions at the right spots during replay. My solution is a hack and pretty specific to solving my problem but a better implementation should be possible. Is this something in which rr's users would be interested? I likely wouldn't have time to do a general implementation by myself but would be glad to help out with the steps that I've already figured out.

I've published my modified version of strace as well as some docs about what I had to do to make it work here. Once again, this is a very hacky solution that shouldn't be used for anything important. My modified version of rr is here (specifically the strace_output) branch.

Thanks!

Contributor guide

Open the contributing guide

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 by reading the linked strace_output_lib documentation and comparing the rr strace_output branch with the main project. The issue does not define acceptance criteria; completion would require agreeing on a general rr implementation for producing strace output during replay.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux
Domain
devtools, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.