When debugging QEMU with a breakpoint at `cpu_handle_exception` GDB crashes:
```
hit Breakpoint 1, cpu_handle_exception (cpu=0x5555573a2e00, ret=0x7fffffff99a4) at ../qemu-7.1.0/accel/tcg/cpu-exec.c:647
647 if (cpu->exception_index < 0) {
../../gdb/gdbtypes.h:985: internal-error: field: Assertion `idx >= 0 && idx < num_fields ()' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
----- Backtrace -----
0x564124985b0b ???
0x564124d6b4c4 ???
0x564124e55503 ???
0x5641248ffdf1 ???
0x564124d8fc49 ???
0x564124c9498c ???
0x564124d7b633 ???
0x564124c940e7 ???
0x564124c945df ???
0x564124d7b633 ???
0x564124c940e7 ???
0x564124c945df ???
0x564124d7b633 ???
0x564124c940e7 ???
0x564124c945df ???
0x564124d7b633 ???
0x564124c484ee ???
0x7f2db3c1abff ???
0x7f2db3c165fc ???
0x7f2db3c03890 ???
0x7f2db3bf1326 ???
0x7f2db3be3838 ???
0x7f2db3c0955f ???
0x7f2db3be722a ???
0x7f2db3c2b582 ???
0x7f2db3c2aa6d ???
0x7f2db3be722a ???
0x7f2db3c0955f ???
0x7f2db3bf9b55 ???
0x7f2db3c28b36 ???
0x564124c2b39a ???
0x5641249c04a4 ???
0x564124d32ed3 ???
0x5641249ce902 ???
0x5641249ceda1 ???
0x564124c4f7d7 ???
0x7f2db3bf9ea0 ???
0x7f2db3bd953b ???
0x7f2db3be3838 ???
0x7f2db3c0955f ???
0x7f2db3bf9b55 ???
0x7f2db3c9e680 ???
0x564124eb084a ???
0x564124c39162 ???
0x564124ea1b41 ???
0x564124b7fcbd ???
0x564124b690de ???
0x564124e55d7d ???
0x564124e98fee ???
0x564124bb5e24 ???
0x5641248e9694 ???
0x7f2db3445ccf ???
0x7f2db3445d89 ???
0x5641248f08e4 ???
0xffffffffffffffff ???
---------------------
This is a bug, please report it. For instructions, see:
<https://www.gnu.org/software/gdb/bugs/>.
```
Likely unrelated to #29950, as `-gstabs+` is not used.
If you like me to submit bugs using your issue tracker you should make it accessible and allow account registration.
Regards,
Simon Wörner
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.