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: [patch] Speed up find_pc_section


For those following the issue on the list ...

I was able to reproduce the failed assert on F11/i586, but only after the
system ran for a while.

On Fri, Aug 7, 2009 at 12:30 AM, Paul Pluzhnikov<ppluzhnikov@google.com> wrote:

> It looks like lack of prelink (freshly-installed system) is what
> prevented me from observing the crash:
>
> $ readelf -S /usr/lib/debug/usr/lib/libgcj.so.10.0.0.debug | grep .rel.dyn
>  [ 7] .rel.dyn NOBITS   005e1c84 000138 4ee290 08   A  3   0  4
>
> $ readelf -S /usr/lib/libgcj.so.10.0.0  | grep rel.dyn
>  [ 7] .rel.dyn  RELA    415e1c84 5e1c84 7653d8 0c   A  3   0  4
>
> My libgcj has been prelinked, and I now see the crash.
>
> Prelink changes .rel.dyn from REL to RELA, and that changes the section size!
>
> Running 'prelink -u /usr/lib/libgcj.so.10.0.0' makes the crash
> disappear, and re-prelinking makes it appear again.
> Here is what non-prelinked /usr/lib/libgcj.so.10.0.0 looks like:
>  [ 7] .rel.dyn  REL  005e1c84 5e1c84 4ee290 08   A  3   0  4
>
> I'll send a patch to fix this soon.


-- 
Paul Pluzhnikov


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