gdb Process record does not support instruction 0xc5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdb (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
the 'process record' feature of gdb allows reverse debugging. neato. but on Ubuntu-16.04 it fails to work, complaining about an unhandled instruction.
% gdb simple
GNU gdb (Ubuntu 7.11-0ubuntu1) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://
Find the GDB manual and other documentation resources online at:
<http://
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from simple...done.
(gdb) b main
Breakpoint 1 at 0x400db7: file /home/robl/
(gdb) run
Starting program: /home/robl/
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_
Breakpoint 1, main (argc=1, argv=0x7fffffff
at /home/robl/
26 {
(gdb) record
(gdb) continue
Continuing.
Process record does not support instruction 0xc5 at address 0x7ffff7dee6e7.
Process record: failed to record execution log.
Program stopped.
_dl_runtime_
81 ../sysdeps/
If we examine the address we see this:
(gdb) x/i 0x7ffff7dee6e7
=> 0x7ffff7dee6e7 <_dl_runtime_
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: gdb 7.11-0ubuntu1
ProcVersionSign
Uname: Linux 4.4.0-21-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Apr 22 15:34:03 2016
InstallationDate: Installed on 2015-09-10 (225 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
SourcePackage: gdb
UpgradeStatus: Upgraded to xenial on 2016-04-22 (0 days ago)
Changed in gdb (Ubuntu): | |
importance: | Undecided → Medium |
I had the same problem but it disappeared once I compiled the executable statically (by adding -static option to g++ command-line)