[regression] gdb 7.11 breaks rr

Kyle Huey me at kylehuey.com
Mon May 16 22:02:40 UTC 2016

Steps to reproduce:

1. Clone rr from https://github.com/mozilla/rr.git
2. Build rr rev 8566e3038892
3. ./bin/rr record ./bin/reverse_continue_process_signal
4. ./bin/rr replay -d /path/to/gdb-7.11
5. c
6. Once, the program has reached the SIGKILL, b 22
7. rc

Instead of reversing to the fork on line 22, rr will stop again at the

Beginning with [0] gdb seems to forget which direction execution is heading
in when a signal is reported by the gdb server.  When gdb resumes execution
after deciding to ignore the signal it sends a vCont instead of a bc to the
gdb server, causing rr to execute forwards again.

This was fixed after the release of gdb 7.11 by [1]. I verified that
cherry-picking this commit on top of the gdb-7.11-release tag also fixes
rr.  Could we get this commit backported for a 7.11.1?  rr's reverse
execution features are largely unusable with complex programs (e.g.
Firefox) because of this bug.


- Kyle

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rr-dev/attachments/20160516/75e78a0d/attachment.html>

More information about the rr-dev mailing list