[Bug record/31724] New: GDB fails to restore register r11 on amd64 architecture

blarsen at redhat dot com sourceware-bugzilla@sourceware.org
Fri May 10 13:07:51 GMT 2024


https://sourceware.org/bugzilla/show_bug.cgi?id=31724

            Bug ID: 31724
           Summary: GDB fails to restore register r11  on amd64
                    architecture
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: record
          Assignee: unassigned at sourceware dot org
          Reporter: blarsen at redhat dot com
  Target Milestone: ---

When recording the "clone" call from glibc on Fedora 39, the r11 register fails
to be properly recorded and restored. It is changed by the instruction:

<do_lookup_x+44>:       mov    %rdi,%r11

and using `x/x` on this address (in case its required to reproduce the bug)
gives:

0x4cfb8949

using the command `maint print record-instruction` to show what was recorded
for that specific instruction gives:

Register rbx changed: 140737354118928
Register rip changed: (void (*)()) 0x7ffff7fd292f <do_lookup_x+47>

So it seems we are mis-reading the destination address from r11 to rbx.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list