This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Regression for gdb.stabs/gdb11479.exp [Re: [patch 1/2] Use custom hash function with bcache]


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]