Skip to content

Instantly share code, notes, and snippets.

@yuyichao
Created March 23, 2016 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuyichao/6b77277e9d21b0cc9e97 to your computer and use it in GitHub Desktop.
Save yuyichao/6b77277e9d21b0cc9e97 to your computer and use it in GitHub Desktop.
(gdb) run
Starting program: /usr/bin/rr replay
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
rr: Warning: Your CPU frequency governor is 'powersave'. rr strongly
recommends that you use the 'performance' governor. Not using the
'performance' governor can cause rr to be at least 2x slower
on laptops.
On Fedora-based systems, you can enable the 'performance' governor
by running the following commands:
$ sudo dnf install kernel-tools
$ sudo cpupower frequency-set -g performance
process 21491 is executing new program: /home/yuyichao/projects/mirrors/binutils-gdb/gdb/gdb
warning: File "/home/yuyichao/projects/mirrors/binutils-gdb/gdb/gdb-gdb.gdb" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
add-auto-load-safe-path /home/yuyichao/projects/mirrors/binutils-gdb/gdb/gdb-gdb.gdb
line to your configuration file "/home/yuyichao/.gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "/home/yuyichao/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
info "(gdb)Auto-loading safe path"
warning: File "/home/yuyichao/projects/mirrors/binutils-gdb/gdb/gdb-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff41a6700 (LWP 21508)]
[New Thread 0x7ffff39a5700 (LWP 21509)]
[New Thread 0x7ffff31a4700 (LWP 21510)]
[New Thread 0x7ffff29a3700 (LWP 21511)]
[New Thread 0x7ffff21a2700 (LWP 21512)]
[New Thread 0x7ffff19a1700 (LWP 21513)]
[New Thread 0x7ffff11a0700 (LWP 21514)]
GNU gdb (GDB) 7.11.50.20160322-git
Copyright (C) 2016 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:
<http://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"...
Reading symbols from /usr/bin/rr...(no debugging symbols found)...done.
Really redefine built-in command "restart"? (y or n) [answered Y; input not from terminal]
Remote debugging using 127.0.0.1:21496
warning: remote target does not support file transfer, attempting to access files from local filesystem.
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
0x00007f77a3594d90 in _start () from /lib64/ld-linux-x86-64.so.2
Thread 1 "gdb" hit Breakpoint 1, gdb_rl_callback_handler_remove () at event-top.c:221
221 {
#0 gdb_rl_callback_handler_remove () at event-top.c:221
#1 0x00000000005c74b3 in display_gdb_prompt (new_prompt=new_prompt@entry=0x0) at event-top.c:323
#2 0x00000000005c74f9 in cli_command_loop (data=<optimized out>) at event-top.c:165
#3 0x00000000005c0425 in current_interp_command_loop () at interps.c:317
#4 0x00000000005c0e6a in captured_command_loop (data=data@entry=0x0) at main.c:318
#5 0x00000000005be4a0 in catch_errors (func=func@entry=0x5c0e57 <captured_command_loop>, func_args=func_args@entry=0x0, errstring=errstring@entry=0x7827ba "",
mask=mask@entry=RETURN_MASK_ALL) at exceptions.c:240
#6 0x00000000005c21ce in captured_main (data=data@entry=0x7fffffffdda0) at main.c:1156
#7 0x00000000005be4a0 in catch_errors (func=func@entry=0x5c14bb <captured_main>, func_args=func_args@entry=0x7fffffffdda0, errstring=errstring@entry=0x7827ba "",
mask=mask@entry=RETURN_MASK_ALL) at exceptions.c:240
#8 0x00000000005c21eb in gdb_main (args=args@entry=0x7fffffffdda0) at main.c:1164
#9 0x0000000000462e1e in main (argc=<optimized out>, argv=<optimized out>) at gdb.c:32
Thread 1 "gdb" hit Breakpoint 2, gdb_rl_callback_handler_install (prompt=0xcc6140 "(rr) ") at event-top.c:232
232 {
#0 gdb_rl_callback_handler_install (prompt=0xcc6140 "(rr) ") at event-top.c:232
#1 0x00000000005c74bc in display_gdb_prompt (new_prompt=new_prompt@entry=0x0) at event-top.c:324
#2 0x00000000005c74f9 in cli_command_loop (data=<optimized out>) at event-top.c:165
#3 0x00000000005c0425 in current_interp_command_loop () at interps.c:317
#4 0x00000000005c0e6a in captured_command_loop (data=data@entry=0x0) at main.c:318
#5 0x00000000005be4a0 in catch_errors (func=func@entry=0x5c0e57 <captured_command_loop>, func_args=func_args@entry=0x0, errstring=errstring@entry=0x7827ba "",
mask=mask@entry=RETURN_MASK_ALL) at exceptions.c:240
#6 0x00000000005c21ce in captured_main (data=data@entry=0x7fffffffdda0) at main.c:1156
#7 0x00000000005be4a0 in catch_errors (func=func@entry=0x5c14bb <captured_main>, func_args=func_args@entry=0x7fffffffdda0, errstring=errstring@entry=0x7827ba "",
mask=mask@entry=RETURN_MASK_ALL) at exceptions.c:240
#8 0x00000000005c21eb in gdb_main (args=args@entry=0x7fffffffdda0) at main.c:1164
#9 0x0000000000462e1e in main (argc=<optimized out>, argv=<optimized out>) at gdb.c:32
(rr) c
Continuing.
Thread 1 "gdb" hit Breakpoint 1, gdb_rl_callback_handler_remove () at event-top.c:221
221 {
#0 gdb_rl_callback_handler_remove () at event-top.c:221
#1 0x00000000005c7484 in display_gdb_prompt (new_prompt=new_prompt@entry=0x0) at event-top.c:308
#2 0x00000000005c77fd in command_line_handler (rl=0xcc6140 "") at event-top.c:652
#3 0x00007ffff7bbcc35 in rl_callback_read_char () from /usr/lib/libreadline.so.6
#4 0x00000000005c7377 in rl_callback_read_char_wrapper (client_data=<optimized out>) at event-top.c:153
#5 0x00000000005c6f49 in stdin_event_handler (error=<optimized out>, client_data=0x0) at event-top.c:409
#6 0x00000000005c5eed in handle_file_event (file_ptr=0x14604c0, ready_mask=<optimized out>) at event-loop.c:708
#7 0x00000000005c6382 in gdb_wait_for_event (block=block@entry=1) at event-loop.c:834
#8 0x00000000005c673e in gdb_do_one_event () at event-loop.c:323
#9 0x00000000005c678b in start_event_loop () at event-loop.c:347
#10 0x00000000005c74fe in cli_command_loop (data=<optimized out>) at event-top.c:168
#11 0x00000000005c0425 in current_interp_command_loop () at interps.c:317
#12 0x00000000005c0e6a in captured_command_loop (data=data@entry=0x0) at main.c:318
#13 0x00000000005be4a0 in catch_errors (func=func@entry=0x5c0e57 <captured_command_loop>, func_args=func_args@entry=0x0, errstring=errstring@entry=0x7827ba "",
mask=mask@entry=RETURN_MASK_ALL) at exceptions.c:240
#14 0x00000000005c21ce in captured_main (data=data@entry=0x7fffffffdda0) at main.c:1156
#15 0x00000000005be4a0 in catch_errors (func=func@entry=0x5c14bb <captured_main>, func_args=func_args@entry=0x7fffffffdda0, errstring=errstring@entry=0x7827ba "",
mask=mask@entry=RETURN_MASK_ALL) at exceptions.c:240
#16 0x00000000005c21eb in gdb_main (args=args@entry=0x7fffffffdda0) at main.c:1164
#17 0x0000000000462e1e in main (argc=<optimized out>, argv=<optimized out>) at gdb.c:32
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
readline: readline_callback_read_char() called with no handler!
Thread 1 "gdb" received signal SIGABRT, Aborted.
0x00007ffff61de2a8 in raise () from /usr/lib/libc.so.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment