This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
Re: gdb/2009: Segmentation faults on AMD64
- From: Jeroen Dekkers <jeroen at vrijschrift dot org>
- To: jimb at redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 16 Oct 2005 21:28:01 -0000
- Subject: Re: gdb/2009: Segmentation faults on AMD64
- Reply-to: Jeroen Dekkers <jeroen at vrijschrift dot org>
The following reply was made to PR gdb/2009; it has been noted by GNATS.
From: Jeroen Dekkers <jeroen@vrijschrift.org>
To: Jim Blandy <jimb@redhat.com>
Cc: gdb-gnats@sources.redhat.com,
alvaro@alobbs.com,
gdb-patches@sources.redhat.com
Subject: Re: gdb/2009: Segmentation faults on AMD64
Date: Sun, 16 Oct 2005 23:21:59 +0200
At Sun, 16 Oct 2005 12:51:12 -0700,
Jim Blandy wrote:
>
>
> Jeroen Dekkers <jeroen@dekkers.cx> writes:
> > I debugged this segfault and it is caused by incorrect debug
> > information generated by GCC on AMD64, see http://gcc.gnu.org/PR24400.
> > The problem is that the filenumbers in the .debug_macinfo arex
> > wrong. They jump from 0xf to 0x11, skipping 0x10, so the last filename
> > has a number which isn't in the filename table.
> >
> > GDB blindly uses the number as index into the filename table,
> > resulting in a segfault. The following patch adds a check whether the
> > index isn't bigger than the size of the table.
>
> Please try this patch:
>
> http://sourceware.org/ml/gdb-patches/2005-09/msg00236.html
It works fine here. Thanks!
Jeroen Dekkers