Loading AI tools
From Wikipedia, the free encyclopedia
In computing, rr is a debugging tool for Linux designed to record and replay program execution. During the replay phase, rr provides an enhanced gdb debugging experience that supports reverse execution.[1]
The topic of this article may not meet Wikipedia's general notability guideline. (January 2023) |
rr was originally developed by Mozilla to debug Mozilla Firefox on commodity hardware and software.[2] rr is now widely used outside Mozilla and capable of debugging software such as Google Chrome, QEMU, and LibreOffice.[3] rr is free software.[4]
During the recording phase, rr records all inputs to a Linux process group from the kernel, as well as nondeterministic CPU effects (such as rdtsc). These inputs are logged to disk and become the "trace". Once the trace is recorded, it can be replayed as many times as desired and all state will be reproduced exactly. During replay rr will act as a gdbserver providing a gdb experience capable of reverse-execution. Because a bug can be replayed over and over again, rr enables new methods of debugging issues that are very difficult to solve with traditional debuggers.[4]
rr's design is documented in the paper Lightweight User-Space Record And Replay, with more details in Engineering Record And Replay For Deployability.
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.