rr-debugger / rr-debugger/rr

Add support for cross-OS replay

Open
#1,287 2 comments 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

This is a mostly-crazy idea but I wanted to jot it down while it's fresh.

rr traces are actually quite OS-independent (modulo lack of filesystem independence from not using reflink), because rr essentially records the OS "semantics". It sounds a little crazy, but it wouldn't be conceptually hard to replay rr traces on OS X or even win32 as long as (i) can set up syscall insns to trap to tracer; (ii) can program perf counter interrupts for tracees.

Not conceptually hard, but it'd be a lot of work. Also unclear how debugging would work.

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

The issue describes cross-OS replay for rr traces, including syscall trapping and perf counter interrupts on OS X or win32. Start by investigating whether those mechanisms are available on the target operating systems; done would include replaying traces across operating systems and determining how debugging should work.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.