Array out of bounds

Simon Marchi simon.marchi@polymtl.ca
Tue Sep 7 14:27:03 GMT 2021



On 2021-09-06 2:03 a.m., Jan-Benedict Glaw wrote:
> Hi!
> 
> On Sun, 2021-09-05 21:48:22 -0400, Simon Marchi <simon.marchi@polymtl.ca> wrote:
>> On 2021-09-05 2:06 p.m., Jan-Benedict Glaw wrote:
>>> On Sun, 2021-09-05 08:40:35 +0200, Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
>>>> Hi!
>>>>
>>>> As I started with automated building/testing the GNU Toolchain again,
>>>> I found this when building GDB (make all-gdb) with a fairly recent GCC
>>>> on a Linux system (PC) when GDB is configured for
>>>> --target=aarch64-linux:
>>>
>>> Just to add: Seems to be independent of a target. Produces the same
>>> warning/error for all tested targets using a current GCC.
>>
>> I just built gcc at 66bba4dc263d ("Daily bump."), and I don't see it.
> 
> For which target did you build? I actually don't see it for a small
> number, ie:
>   * xtensa-linux
>   * fr30-elf
>   * hppa2.0-hpux11.9
>   * hppa64-hpux
>   * hppa64-hpux11.0
>   * hppa64-hpux11.3
>   * ia64-elf
>   * ia64-hpux
>   * mmix-knuth-mmixware
>   * powerpc-darwin7
>   * pdp11-aout
>   * powerpc-darwin8
>   * s390x-ibm-tpf
>   * x86_64-apple-darwin
> 
> Maybe you had a lucky pick? Only IPv6 connectivity at the moment, but
> here are a few (failed) build logs for more common targets:
> 
> http://wolf.lug-owl.de:8080/jobs/gdb-alpha-netbsd/6
> http://wolf.lug-owl.de:8080/jobs/gdb-m68k-linux/6
> http://wolf.lug-owl.de:8080/jobs/gdb-mips-linux/6
> http://wolf.lug-owl.de:8080/jobs/gdb-powerpc-linux/6
> http://wolf.lug-owl.de:8080/jobs/gdb-x86_64-linux/6
> 
> MfG, JBG

Since the failure is in language.c, the target should not matter, as
language.c is compiled the same way whatever the target.  Anyway, seems
like Tom managed to reproduce it and filed a gcc bug, thanks Tom!

Simon


More information about the Gdb mailing list