public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug record/31724] New: GDB fails to restore register r11  on amd64 architecture
@ 2024-05-10 13:07 blarsen at redhat dot com
  0 siblings, 0 replies; only message in thread
From: blarsen at redhat dot com @ 2024-05-10 13:07 UTC (permalink / raw)
  To: gdb-prs

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-10 13:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-10 13:07 [Bug record/31724] New: GDB fails to restore register r11 on amd64 architecture blarsen at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).