[Bug remote/23514] New: target.c: default_thread_architecture: Assertion failed, while trying to record remote x86_64

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug remote/23514] New: target.c: default_thread_architecture: Assertion failed, while trying to record remote x86_64

glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=23514

            Bug ID: 23514
           Summary: target.c: default_thread_architecture: Assertion
                    failed, while trying to record remote x86_64
           Product: gdb
           Version: 8.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: remote
          Assignee: unassigned at sourceware dot org
          Reporter: emil.gedda at emilgedda dot se
  Target Milestone: ---

Created attachment 11180
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11180&action=edit
gdb coredump

By setting `record-full` on a remote qemu-system-x86_64 target and then
continuing, gdb crashes with:

    target.c:3132: internal-error: gdbarch*
default_thread_architecture(target_ops*, ptid_t): Assertion `inf != NULL'
failed.
    A problem internal to GDB has been detected,
    further debugging may prove unreliable.
    Quit this debugging session? (y or n) y

    This is a bug, please report it.  For instructions, see:
    <http://www.gnu.org/software/gdb/bugs/>.

    target.c:3132: internal-error: gdbarch*
default_thread_architecture(target_ops*, ptid_t): Assertion `inf != NULL'
failed.
    A problem internal to GDB has been detected,
    further debugging may prove unreliable.


How to reproduce:

   $ qemu-system-x86_64 -S -s &
   $ gdb -q
   (gdb) target remote :1234
   ...
   (gdb) target record-full
   (gdb) c


Which will crash gdb 8.1.1. This happens regardless of what disk image is given
to qemy-system-x86_64
Attached is a lz4 compressed coredump of gdb.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug remote/23514] target.c: default_thread_architecture: Assertion failed, while trying to record remote x86_64

glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=23514

Emil Gedda <emil.gedda at emilgedda dot se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |emil.gedda at emilgedda dot se

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug remote/23514] target.c: default_thread_architecture: Assertion failed, while trying to record remote x86_64

Sourceware - gdb-prs mailing list
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=23514

Emil Gedda <emil.gedda at emilgedda dot se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Emil Gedda <emil.gedda at emilgedda dot se> ---
This seems to be fixed when testing with gdb 9.1
The fix seems to have been disallowing `target record-full` on a remote qemu
target.

...
(gdb) target remote :1234
Remote debugging using :1234
(gdb) target record-full
Process record: the current architecture doesn't support record function.

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