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