public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug server/31526] New: GDBServer crashes with an internal error cannot find "ymm0h"
@ 2024-03-21 23:31 wmessmer at microsoft dot com
  2024-04-02  1:53 ` [Bug server/31526] " tromey at sourceware dot org
  0 siblings, 1 reply; 2+ messages in thread
From: wmessmer at microsoft dot com @ 2024-03-21 23:31 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 31526
           Summary: GDBServer crashes with an internal error cannot find
                    "ymm0h"
           Product: gdb
           Version: 14.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: server
          Assignee: unassigned at sourceware dot org
          Reporter: wmessmer at microsoft dot com
  Target Milestone: ---

WinDbg recently added support for connecting to and debugging Linux processes
via gdbserver.  On gdbserver 12.1, the connection works fine.  On gdbserver
14.x, the initial connection results in an immediate internal error in
gdbserver claiming that it cannot find "ymm0h"

Looking through things, it appears that this is caused by the WinDbg plug-in
which provides this functionality inadvertently sending a "qSupported:" packet
without "xmlRegisters=..." after having sent one with
"xmlRegisters=aarch64,i386".

On 12.1, this clears x86_xcr0 of the AVX flag and causes utilization of a
target description without AVX registers (which largely works fine).  On 14.x,
this does NOT clear x86_xcr0 of the AVX flag but still causes utilization of a
target description without AVX registers.  The next time the plug-in sends a
packet across the RSP which involves register state read, gdbserver attempts to
read AVX registers and faults with the internal error because the target
description does not contain them.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug server/31526] GDBServer crashes with an internal error cannot find "ymm0h"
  2024-03-21 23:31 [Bug server/31526] New: GDBServer crashes with an internal error cannot find "ymm0h" wmessmer at microsoft dot com
@ 2024-04-02  1:53 ` tromey at sourceware dot org
  0 siblings, 0 replies; 2+ messages in thread
From: tromey at sourceware dot org @ 2024-04-02  1:53 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
While I think it would be fine to fix this in gdbserver,
I tend to think that a session should only involve
a single qSupported, and that this is a bug in the client.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-02  1:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-21 23:31 [Bug server/31526] New: GDBServer crashes with an internal error cannot find "ymm0h" wmessmer at microsoft dot com
2024-04-02  1:53 ` [Bug server/31526] " tromey at sourceware dot org

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).