Settings

Theme

Porting rr to x86-64

blog.mozilla.org

119 points by msiemens 11 years ago · 9 comments

Reader

saidajigumi 11 years ago

Wow, rr's a pretty slick tool. Definitely filed away for future use. Anyone with use experience care to chime in about it?

rr also reminds me of when, ages ago, I first ran into the ocaml debugger's ability to step forward and step backward. To borrow the modern cliché: mind blown.

  • lambda 11 years ago

    I haven't used rr, but I have used GDB's built in record and replay ability.

    GDB's was quite useful, but painfully slow; I had to do a good amount of bisecting down to a small enough input to reproduce the issue without having to wait ages to execute before it was usable. Once I did that, though, it let me find the issue a lot sooner than I would have been able to otherwise.

    rr promises to be substantially faster the GDB's record and replay; if so, I imagine it will be quite useful, though it is only once or twice a year that I actually have to debug a problem that these kinds of tools are relevant for.

    • fijal 11 years ago

      undodb gdb (a commercial product) works a lot faster than gdb (which is so slow it's unusable). We used it with success to debug programs as big as pypy

    • emmelaich 11 years ago

      rr uses/enhances gdb, so I guess you mean faster than gdb alone?

      (It wasn't clear to me until I followed a few links - I hadn't heard of rr.)

      • lambda 11 years ago

        Yes, I meant faster than gdb's native record and replay feature.

        The nice thing about rr is that you can still use it with gdb, so you have the full power of gdb along with close to native speed record and reply. Once the x86-64 support is ready, it'll probably be a common tool for me.

  • nnethercote 11 years ago

    I haven't used it, but Robert O'Callahan -- one of the project leads -- has been working on tools like this for a number of years. In http://robert.ocallahan.org/2014/03/introducing-rr.html he said:

    > it's the first "research" tool I've ever built that I like to use myself.

JD557 11 years ago

This seems like an incredibly useful tool, I can't believe I haven't heard about it before.

Nevertheless, does anyone know if there's something like this for programs compiled to the JVM? I've never used gdb to debug JVM code, but I expect that it will not work well.

Aurel1us 11 years ago

Looks very promising. Did a quick set up but unfortunately some counters couldn't be initialized on my VM.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection