From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 297343858D1E; Tue, 19 Mar 2024 15:21:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 297343858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1710861693; bh=SAF/qBlYf1jRn6BV2iqkMbu06owjpouQ6xkc/GYG6Ew=; h=From:To:Subject:Date:From; b=Gok8VvZWKXEJgubVZRxFLZAvF+GXGzC6qCqowOg24OfNH3P2duHD4wiN2OqgBFRWU OhVkse0ERfJjnxElnXI42TV14VfZBzluhx3gWc4c32mP0Xi+oGsdH4tiLM+BtiKocZ clTSw8IANeLGcpx9MnHKw6SqW2QHnHaPAWGaViKs= From: "hjl.tools at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug server/31511] New: gdbserver doesn't work on x32 Date: Tue, 19 Mar 2024 15:21:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: server X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31511 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/gdbse= rver :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 =3D 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=3D, line=3D,=20 fmt=3D, args=3Dargs@entry=3D0x7fffffffb4e8) at /export/gnu/import/git/gitlab/x86-gdb/gdbserver/utils.cc:86 #5 0x000000000044ec92 in internal_error_loc ( file=3Dfile@entry=3D0x463b50 "/export/gnu/import/git/gitlab/x86-gdb/gdbserver/regcache.cc", line=3Dline@entry=3D273,=20 fmt=3Dfmt@entry=3D0x45c6ec "Unknown register %s requested") at /export/gnu/import/git/gitlab/x86-gdb/gdbsupport/errors.cc:58 #6 0x000000000040fa0d in find_regno (name=3Dname@entry=3D0x45ff71 "bnd0raw= ",=20 tdesc=3D) at /export/gnu/import/git/gitlab/x86-gdb/gdbserver/regcache.cc:273 #7 0x000000000041027f in find_regno (tdesc=3D,=20 name=3Dname@entry=3D0x45ff71 "bnd0raw") at /export/gnu/import/git/gitlab/x86-gdb/gdbserver/regcache.cc:274 #8 0x0000000000443dc1 in i387_xsave_to_cache (regcache=3D0x4b31e0,=20 buf=3D) at /export/gnu/import/git/gitlab/x86-gdb/gdbserver/i387-fp.cc:814 --Type for more, q to quit, c to continue without paging-- #9 0x000000000042bce2 in regsets_fetch_inferior_registers ( regsets_info=3D0x487a60 , regcache=3Dregcache@entry= =3D0x4b31e0) at /export/gnu/import/git/gitlab/x86-gdb/gdbserver/linux-low.cc:5089 #10 0x000000000043347d in linux_process_target::fetch_registers ( this=3D0x487ba0 , regcache=3D0x4b31e0, regno=3D) at /export/gnu/import/git/gitlab/x86-gdb/gdbserver/linux-low.cc:5388 #11 0x000000000040fe83 in get_thread_regcache (thread=3D0x4af860,=20 fetch=3Dfetch@entry=3D1) at /export/gnu/import/git/gitlab/x86-gdb/gdbserver/regcache.cc:60 #12 0x00000000004124f2 in prepare_resume_reply (buf=3D0x7ffff7e7b013 "",=20 ptid=3D..., status=3D...) at /export/gnu/import/git/gitlab/x86-gdb/gdbserver/remote-utils.cc:1175 #13 0x000000000041bfcf in handle_status (own_buf=3D0x7ffff7e7b010 "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=3D, client_data=3D) at /export/gnu/import/git/gitlab/x86-gdb/gdbserver/server.cc:4891 #16 0x000000000044f596 in gdb_wait_for_event (block=3Dblock@entry=3D1) at /export/gnu/import/git/gitlab/x86-gdb/gdbsupport/event-loop.cc:716 #17 0x0000000000450052 in gdb_do_one_event (mstimeout=3Dmstimeout@entry=3D-= 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. --=20 You are receiving this mail because: You are on the CC list for the bug.=