Assertion `idx >= 0 && idx < num_fields ()' failed.

mail@simon-woerner.de mail@simon-woerner.de
Thu Nov 23 12:11:15 GMT 2023


> Which gdb are you using? I wonder if the problem has already been
> fixed.

I'm using the latest version:

```
$ gdb --version
GNU gdb (GDB) 13.2
[...]
```

The only commit mentioning the assert is from two years ago:
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=af5300fe24bf2f4e032d639a5396a16c1762b77b


> I think if you try to make an account, it will give you instructions on
> where to send email to get one made for you.

If I have to jump so many hops to make a simple bug report I might as well not do it.
The ancient project management of GDB is already hard enough.


Regards,
Simon Wörner

November 22, 2023 at 17:29, "Tom Tromey" <tom@tromey.com> wrote:

> 
> > 
> > sourceware org <sourceware.org@brn.li> writes:
> > 
> >  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.
> > 
> 
> Which gdb are you using? I wonder if the problem has already been
> fixed.
> 
> > 
> > If you like me to submit bugs using your issue tracker you should make
> >  it accessible and allow account registration.
> > 
> 
> I think if you try to make an account, it will give you instructions on
> where to send email to get one made for you.
> 
> Direct account creation had to be disabled due to spam.
> 
> Tom
>


More information about the Gdb mailing list