LD_PRELOAD broken?

Ed Schouten ed at 80386.nl
Sat Mar 28 08:41:21 PDT 2009


Hi Kostik,

* Kostik Belousov <kostikbel at gmail.com> wrote:
> On Sat, Mar 28, 2009 at 11:25:52AM +0100, Ed Schouten wrote:
> > Hi all,
> > 
> > Is it possible that the changes to rtld-elf the last couple of weeks
> > cause LD_PRELOAD to crash applications on startup? Very simple way to
> > reproduce:
> > 
> > 	LD_PRELOAD=/lib/libc.so.7 ls
> > 
> > This causes a segmentation fault on startup, at least on AMD64.
> 
> Yes. The following fixes the case for me.
> 
> <snip>

This seems to make LD_PRELOAD work again. I tested the patch using
sysutils/hidesvn, which uses LD_PRELOAD. Thanks a lot!

-- 
 Ed Schouten <ed at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20090328/37b04545/attachment.pgp


More information about the freebsd-current mailing list