Instant replay: Debugging C and C++ programs with rr (Red Hat Developer)
Instant replay: Debugging C and C++ programs with rr (Red Hat Developer)
Posted May 4, 2021 17:37 UTC (Tue) by tux3 (subscriber, #101245)In reply to: Instant replay: Debugging C and C++ programs with rr (Red Hat Developer) by SLi
Parent article: Instant replay: Debugging C and C++ programs with rr (Red Hat Developer)
AAIU rr takes a snapshot every second or so, so that reverse-continuing can rust fast. So that _would_ be a lot of data, but they compress it and you gain back about an order of magnitude.
Posted May 4, 2021 17:44 UTC (Tue)
by SLi (subscriber, #53131)
[Link] (2 responses)
I tried running KiCad under it. It at least started fast, but died almost immediately, apparently because it uses shared memory, which is IIUC fundamentally incompatible with rr:
```
Posted May 4, 2021 23:38 UTC (Tue)
by roc (subscriber, #30627)
[Link] (1 responses)
Posted May 5, 2021 13:05 UTC (Wed)
by SLi (subscriber, #53131)
[Link]
Posted May 4, 2021 18:27 UTC (Tue)
by MattBBaker (guest, #28651)
[Link] (2 responses)
Posted May 4, 2021 19:44 UTC (Tue)
by bjacob (guest, #58566)
[Link]
Posted May 4, 2021 23:50 UTC (Tue)
by roc (subscriber, #30627)
[Link]
* There are some very small exceptions in our accelerated syscall interception machinery that are irrelevant in practice.
Posted May 4, 2021 23:39 UTC (Tue)
by roc (subscriber, #30627)
[Link] (1 responses)
Posted May 5, 2021 11:58 UTC (Wed)
by tux3 (subscriber, #101245)
[Link]
Instant replay: Debugging C and C++ programs with rr (Red Hat Developer)
$ rr record kicad spkr_interface.kicad_pro
rr: Saving execution to trace directory `/home/sliedes/.local/share/rr/kicad-0'.
shared memfd open() failed: Function not implemented
[... some kicad messages]
Trace/breakpoint trap
```
Instant replay: Debugging C and C++ programs with rr (Red Hat Developer)
Instant replay: Debugging C and C++ programs with rr (Red Hat Developer)
Instant replay: Debugging C and C++ programs with rr (Red Hat Developer)
Instant replay: Debugging C and C++ programs with rr (Red Hat Developer)
Instant replay: Debugging C and C++ programs with rr (Red Hat Developer)
Instant replay: Debugging C and C++ programs with rr (Red Hat Developer)
Instant replay: Debugging C and C++ programs with rr (Red Hat Developer)
