|
|
Subscribe / Log in / New account

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:44 UTC (Tue) by SLi (subscriber, #53131)
In reply to: Instant replay: Debugging C and C++ programs with rr (Red Hat Developer) by tux3
Parent article: Instant replay: Debugging C and C++ programs with rr (Red Hat Developer)

Ok. Probably a bit unmanageable for me then data amount wise (GDB already slows things down; I guess rr might not be that much worse?); I tend to work with KiCad for hours.

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:

```
$ 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
```


to post comments

Instant replay: Debugging C and C++ programs with rr (Red Hat Developer)

Posted May 4, 2021 23:38 UTC (Tue) by roc (subscriber, #30627) [Link] (1 responses)

Can you file an rr issue and paste the entire console log? It might not be related to the "shared memfd open" message.

Instant replay: Debugging C and C++ programs with rr (Red Hat Developer)

Posted May 5, 2021 13:05 UTC (Wed) by SLi (subscriber, #53131) [Link]


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds