Skip to content

Instantly share code, notes, and snippets.

@smj-edison
Last active April 11, 2025 00:09
Show Gist options
  • Save smj-edison/7c3c9f149007c60bd5d552152a2b2e3e to your computer and use it in GitHub Desktop.
Save smj-edison/7c3c9f149007c60bd5d552152a2b2e3e to your computer and use it in GitHub Desktop.
$ alias rr="taskset -c 0-7 /home/user/Downloads/rr-5.9.0-Linux-x86_64/bin/rr"
$ rr record -n -- ../jimsh runall.tcl
rr: Saving execution to trace directory `/home/user/.local/share/rr/jimsh-5'.
# -- program specific logs omitted -- #
$ rr replay
GNU gdb (GDB) 16.2
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
--Type <RET> for more, q to quit, c to continue without paging--
Reading symbols from /home/user/.local/share/rr/jimsh-5/mmap_clone_5_jimsh...
Remote debugging using 127.0.0.1:4468
Reading symbols from /lib64/ld-linux-x86-64.so.2...
Reading symbols from /home/user/.cache/debuginfod_client/5fced0dbad50aee336716c4a6de8bf24e7e1f5d9/debuginfo...
warning: BFD: warning: system-supplied DSO at 0x6fffd000 has a section extending past end of file
warning: Discarding section .replay.text which has an invalid size (27) [in module system-supplied DSO at 0x6fffd000]
0x000076f3e45875c0 in _start () from /lib64/ld-linux-x86-64.so.2
(rr) run
0x000076f3e45875c3 in _start () from /lib64/ld-linux-x86-64.so.2
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/user/.local/share/rr/jimsh-5/mmap_clone_5_jimsh
warning: Discarding section .replay.text which has an invalid size (27) [in module system-supplied DSO at 0x6fffd000]
Program stopped.
0x000076f3e45875c0 in _start () from /lib64/ld-linux-x86-64.so.2
(rr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment