public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug server/31511] New: gdbserver doesn't work on x32
@ 2024-03-19 15:21 hjl.tools at gmail dot com
  2024-03-20 13:24 ` [Bug server/31511] " tromey at sourceware dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2024-03-19 15:21 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 31511
           Summary: gdbserver doesn't work on x32
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: server
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---
            Target: x86-64

(gdb) r :12345 ../../x32
Starting program:
/export/build/gnu/tools-build/gdb-gitlab/build-x86_64-linux/gdbserver/gdbserver
:12345 ../../x32
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[Detaching after fork from child process 45049]
[Detaching after fork from child process 45050]
[Detaching after vfork from child process 45051]
Process ../../x32 created; pid = 45051
Listening on port 12345
Remote debugging from host ::1, port 59214
/export/gnu/import/git/gitlab/x86-gdb/gdbserver/regcache.cc:273: A problem
internal to GDBserver has been detected.
Unknown register bnd0raw requested

Program received signal SIGABRT, Aborted.
0x00007ffff7aae804 in __pthread_kill_implementation () from /lib64/libc.so.6
Missing separate debuginfos, use: dnf debuginfo-install
glibc-2.38-16.0.fc39.x86_64 libgcc-13.2.1-7.0.fc39.x86_64
libstdc++-13.2.1-7.0.fc39.x86_64
(gdb) bt
#0  0x00007ffff7aae804 in __pthread_kill_implementation ()
   from /lib64/libc.so.6
#1  0x00007ffff7a5c8de in raise () from /lib64/libc.so.6
#2  0x00007ffff7a448bc in abort () from /lib64/libc.so.6
#3  0x00000000004068f7 in abort_or_exit ()
    at /export/gnu/import/git/gitlab/x86-gdb/gdbserver/utils.cc:39
#4  internal_verror (file=<optimized out>, line=<optimized out>, 
    fmt=<optimized out>, args=args@entry=0x7fffffffb4e8)
    at /export/gnu/import/git/gitlab/x86-gdb/gdbserver/utils.cc:86
#5  0x000000000044ec92 in internal_error_loc (
    file=file@entry=0x463b50
"/export/gnu/import/git/gitlab/x86-gdb/gdbserver/regcache.cc",
line=line@entry=273, 
    fmt=fmt@entry=0x45c6ec "Unknown register %s requested")
    at /export/gnu/import/git/gitlab/x86-gdb/gdbsupport/errors.cc:58
#6  0x000000000040fa0d in find_regno (name=name@entry=0x45ff71 "bnd0raw", 
    tdesc=<optimized out>)
    at /export/gnu/import/git/gitlab/x86-gdb/gdbserver/regcache.cc:273
#7  0x000000000041027f in find_regno (tdesc=<optimized out>, 
    name=name@entry=0x45ff71 "bnd0raw")
    at /export/gnu/import/git/gitlab/x86-gdb/gdbserver/regcache.cc:274
#8  0x0000000000443dc1 in i387_xsave_to_cache (regcache=0x4b31e0, 
    buf=<optimized out>)
    at /export/gnu/import/git/gitlab/x86-gdb/gdbserver/i387-fp.cc:814
--Type <RET> for more, q to quit, c to continue without paging--
#9  0x000000000042bce2 in regsets_fetch_inferior_registers (
    regsets_info=0x487a60 <x86_regsets_info>, regcache=regcache@entry=0x4b31e0)
    at /export/gnu/import/git/gitlab/x86-gdb/gdbserver/linux-low.cc:5089
#10 0x000000000043347d in linux_process_target::fetch_registers (
    this=0x487ba0 <the_x86_target>, regcache=0x4b31e0, regno=<optimized out>)
    at /export/gnu/import/git/gitlab/x86-gdb/gdbserver/linux-low.cc:5388
#11 0x000000000040fe83 in get_thread_regcache (thread=0x4af860, 
    fetch=fetch@entry=1)
    at /export/gnu/import/git/gitlab/x86-gdb/gdbserver/regcache.cc:60
#12 0x00000000004124f2 in prepare_resume_reply (buf=0x7ffff7e7b013 "", 
    ptid=..., status=...)
    at /export/gnu/import/git/gitlab/x86-gdb/gdbserver/remote-utils.cc:1175
#13 0x000000000041bfcf in handle_status (own_buf=0x7ffff7e7b010 "T05")
    at /export/gnu/import/git/gitlab/x86-gdb/gdbserver/server.cc:3757
#14 process_serial_event ()
    at /export/gnu/import/git/gitlab/x86-gdb/gdbserver/server.cc:4566
#15 handle_serial_event (err=<optimized out>, client_data=<optimized out>)
    at /export/gnu/import/git/gitlab/x86-gdb/gdbserver/server.cc:4891
#16 0x000000000044f596 in gdb_wait_for_event (block=block@entry=1)
    at /export/gnu/import/git/gitlab/x86-gdb/gdbsupport/event-loop.cc:716
#17 0x0000000000450052 in gdb_do_one_event (mstimeout=mstimeout@entry=-1)
    at /export/gnu/import/git/gitlab/x86-gdb/gdbsupport/event-loop.cc:264
#18 0x0000000000418246 in start_event_loop ()

This happens because MPX isn't available for x32.

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

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

end of thread, other threads:[~2024-05-07 16:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-19 15:21 [Bug server/31511] New: gdbserver doesn't work on x32 hjl.tools at gmail dot com
2024-03-20 13:24 ` [Bug server/31511] " tromey at sourceware dot org
2024-03-21 19:45 ` cvs-commit at gcc dot gnu.org
2024-03-21 20:42 ` tromey at sourceware dot org
2024-03-25 17:19 ` cvs-commit at gcc dot gnu.org
2024-05-07 16:07 ` cvs-commit at gcc dot gnu.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).