This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Regression for gdb.stabs/gdb11479.exp [Re: [patch 1/2] Use custom hash function with bcache]
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: sami wagiaalla <swagiaal at redhat dot com>, gdb-patches at sourceware dot org
- Date: Wed, 1 Sep 2010 09:47:16 -0700
- Subject: Re: Regression for gdb.stabs/gdb11479.exp [Re: [patch 1/2] Use custom hash function with bcache]
- References: <4C6946E1.6000709@redhat.com> <AANLkTikH1rBzysO-nNT-w3a0me7zMcGfSpn7+7oJQdWk@mail.gmail.com> <AANLkTikbMcvP-+2iqZB3gP-gLcWY7B7r4t+HWtHK-a6f@mail.gmail.com> <4C6D5C83.3050602@redhat.com> <m3eidu2vt7.fsf@fleche.redhat.com> <4C756132.5050301@redhat.com> <20100901082539.GA24609@host1.dyn.jankratochvil.net> <20100901161952.GX2986@adacore.com>
> Just so we don't duplicate efforts, I've have been looking into this.
> I'm not completely done, yet, but I've found something suspicious.
Unfortunately, it turned out to be nothing (those damn macros).
> For me, it causes a crash in gdb.ada/complete.exp:
>
> (gdb) b 7
> Breakpoint 1 at 0x401f96: file /[...]/foo.adb, line 7.
> (gdb) run
> Starting program: /[...]/foo
>
> Breakpoint 1, foo () at /[...]/foo.adb:7
> 7 My_Global_Variable := Some_Local_Variable + 1; -- START
> (gdb) complete p my_glob
> [1] 22302 segmentation fault ../../../gdb foo
As far as I can tell, it looks like there is either a memory
corruption somewhere, or we fail to set a field in the psymbol
ginfo. We iterate over all psymbols, and the associated gsym
has an invalid obj_section.
Unfortunately, that's as much time as I have for today. I will look
at it again tomorrow if no one else can. I does looks like a pretty
scary issue, so I think we should try to fix it ASAP.
--
Joel