Bug 29045 - Connect to gdbserver failed glxinfo, assert failed at gdb/value.c
Summary: Connect to gdbserver failed glxinfo, assert failed at gdb/value.c
Status: UNCONFIRMED
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: 12.1
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-11 14:46 UTC by Yonggang Luo
Modified: 2022-04-11 16:48 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yonggang Luo 2022-04-11 14:46:24 UTC
Loaded 'target:/lib/x86_64-linux-gnu/libgcc_s.so.1'. Symbols loaded.
Loaded 'target:/lib/x86_64-linux-gnu/libffi.so.8'. Symbols loaded.
Loaded 'target:/lib/x86_64-linux-gnu/libedit.so.2'. Symbols loaded.
Loaded 'target:/lib/x86_64-linux-gnu/libtinfo.so.6'. Symbols loaded.
Loaded 'target:/lib/x86_64-linux-gnu/libxml2.so.2'. Symbols loaded.
Loaded 'target:/lib/x86_64-linux-gnu/liblzma.so.5'. Symbols loaded.
Loaded 'target:/lib/x86_64-linux-gnu/libicuuc.so.67'. Symbols loaded.
Loaded 'target:/lib/x86_64-linux-gnu/libpthread.so.0'. Symbols loaded.
Loaded 'target:/lib/x86_64-linux-gnu/libicudata.so.67'. Symbols loaded.
Execute debugger commands using "-exec <command>", for example "-exec info registers" will list registers in use (when GDB is the debugger)
/build/gdb-wIRHdd/gdb-12.0.90/gdb/value.c:1731: internal-error: value_copy: Assertion `arg->contents != nullptr' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) [answered Y; input not from terminal]
/build/gdb-wIRHdd/gdb-12.0.90/gdb/value.c:1731: internal-error: value_copy: Assertion `arg->contents != nullptr' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) [answered Y; input not from terminal]
ERROR: GDB exited unexpectedly with exit code 134 (0x86). Debugging will now abort.
The program '/data/xemu-opengl/qemu/glxinfo' has exited with code -1 (0xffffffff).
Comment 1 Simon Marchi 2022-04-11 15:47:02 UTC
I believe this could be a dup of #28980, so fixed by

https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=439385561588f12c1df670aaa92af9babd98f2ac

Do you have this commit in your GDB build? If not, can you try with it?
Comment 2 Yonggang Luo 2022-04-11 16:04:53 UTC
(In reply to Simon Marchi from comment #1)
> I believe this could be a dup of #28980, so fixed by
> 
> https://sourceware.org/git/?p=binutils-gdb.git;a=commit;
> h=439385561588f12c1df670aaa92af9babd98f2ac
> 
> Do you have this commit in your GDB build? If not, can you try with it?

No, I am using stable ubuntu build of GDB, any place to downloading it for ubuntu?
Or I may need build it by myself.
Comment 3 Simon Marchi 2022-04-11 16:48:41 UTC
From your log ("gdb-12.0.90"), it seems like you are using a build that is a preview release of GDB 12, not a stable release build.

If you want to build the latest version of the GDB 12 branch yourself, the easiest way is to get the gdb-12-branch git branch:

https://sourceware.org/git/?p=binutils-gdb.git;a=shortlog;h=refs/heads/gdb-12-branch