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 15:59 UTC (Tue) by SLi (subscriber, #53131)Parent article: Instant replay: Debugging C and C++ programs with rr (Red Hat Developer)
Posted May 4, 2021 17:37 UTC (Tue)
by tux3 (subscriber, #101245)
[Link] (8 responses)
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]
Posted May 4, 2021 20:13 UTC (Tue)
by acolin (guest, #61859)
[Link] (2 responses)
I must be an lite user then -- never hit a single crash over months of laying out and schematic editing in KiCad. Though, that was all on macOS with some Windows, none of that work happened on Linux. Incidentally, with Altium, grew accustomed to a couple deterministic crashes. Maybe I just remember Altium crashes more because of the $$$ that were paid for it.
Posted May 4, 2021 20:20 UTC (Tue)
by SLi (subscriber, #53131)
[Link] (1 responses)
Well, and a large part of it is because I moved it to the nightlies (5.99), though I did generate lots of bug reports when I used the stable, too. At this late point in the release cycle, and given how fast the amazing team fixes bugs, I'd say that's been a good deal even if I didn't want to put my talent into use by testing it :-)
Posted May 4, 2021 20:22 UTC (Tue)
by SLi (subscriber, #53131)
[Link]
Posted May 4, 2021 23:41 UTC (Tue)
by roc (subscriber, #30627)
[Link]
Posted May 5, 2021 12:37 UTC (Wed)
by daenzer (subscriber, #7050)
[Link]
Posted May 6, 2021 13:35 UTC (Thu)
by gabrielesvelto (guest, #83884)
[Link]
Instant replay: Debugging C and C++ programs with rr (Red Hat Developer)
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)
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)
