gdb-multiarch 8.1.1-0ubuntu1: assertion failure or internal error when connecting to QEMU aarch64 gdbstub
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdb (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Bionic |
New
|
Undecided
|
Unassigned |
Bug Description
This bug is a regression introduced in 8.1.1-0ubuntu1 for Bionic -- the previous 8.1-0ubuntu3.2 gdb works fine with QEMU's gdbstub.
Reproduce:
Get the sources for QEMU 5.2.0, and build the aarch64-linux-user target. (It looks like Bionic's QEMU is old enough that it doesn't provoke this gdb error.)
Run
qemu-aarch64 -g 1234 path/to/
In another terminal, start gdb-multiarch. At the (gdb) prompt, type "target remote :1234". GDB will dump core:
(gdb) target remote :1234
Remote debugging using :1234
Recursive internal problem.
Aborted (core dumped)
You can see a variant of this also in the QEMU test suite with "make -C your-qemu-build-dir check-tcg", where the error message includes an assertion failure:
[...]
timeout 60 /home/petmay01/
/build/
A problem internal to GDB has been detected,
further debugging may prove unreliable.
This is a bug, please report it. For instructions, see:
<http://
Aborted (core dumped)
/home/petmay01/
Further testing with the old gdb-8.1-0ubuntu3 package shows that this isn't a regression since then, as that version fails too. I must have been misled by the apt history.log somehow; sorry for the confusion there.