Debugging ld.so in gdb

Florian Weimer fweimer@redhat.com
Mon Feb 7 14:07:25 GMT 2022


* Jacob Kroon:

> I managed to build glibc master, and yes it also crashes. Reverting the
> suspicious commit:
>
> commit 15a0c5730d1d5aeb95f50c9ec7470640084feae8
> Author: Chung-Lin Tang <cltang@codesourcery.com>
> Date:   Thu Oct 21 21:41:22 2021 +0800
>
>     elf: Fix slow DSO sorting behavior in dynamic loader (BZ #17645)
>
> fixes the crash. Adding a couple of more people.

Sorry, that is completely expected because this is where the faulty code
was added.

I plan to stare at _dl_map_object_deps a bit, to figure out where the
discrepancy between l_initfini for the main program and the loaded
objects comes from.

Thanks,
Florian



More information about the Gdb mailing list