This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: dlmopen in LD_PRELOAD
- From: Florian Weimer <fweimer at redhat dot com>
- To: Baojun Wang <wangbj at gmail dot com>
- Cc: libc-help at sourceware dot org
- Date: Thu, 04 Jul 2019 15:22:52 +0200
- Subject: Re: dlmopen in LD_PRELOAD
- References: <CAC+a-TYrthU8rBaeX++2TBpcUJTrLOthx+5YfFOMvHwif4wEcw@mail.gmail.com> <871rzsdpj5.fsf@oldenburg2.str.redhat.com> <CAC+a-TZVh9NMjzMLuZ73bSHKhu8gGcpiAJ2HCZoZON3tOJs5Tg@mail.gmail.com> <87sgs8c9x7.fsf@oldenburg2.str.redhat.com> <CAC+a-TYjvBbS78ETG9qS_1VjkS6j2A2FAM5KJM_gmHKVcRPz9Q@mail.gmail.com> <87a7ebxihi.fsf@oldenburg2.str.redhat.com> <CAC+a-TYb_7EF1fZsBx-SNkTk4UEuLutbvG29dZcooxrp4rge6w@mail.gmail.com> <87k1devrz8.fsf@oldenburg2.str.redhat.com> <CAC+a-TbjTuPwuHOugvr56GXROQ4Lw6zvYNvB4-VtEi4VSt_L_g@mail.gmail.com>
* Baojun Wang:
> Yes LD_PRELOAD was set in execvpe. I tried on a newer platform (Debian
> buster) and also couldn't reproduce any crash, will update to you later.
I see. It turns out that Fedora's glibc has a downstream-only fix for
that:
<https://src.fedoraproject.org/rpms/glibc/blob/f30/f/glibc-fedora-__libc_multiple_libcs.patch>
I ended up at this patch for a completely different reason yesterday.
Maybe I can finally upstream a different version of it.
Thanks,
Florian