bin/171604: [patch] LD_PRELOAD set to not absolute path crashes rtld
Andrey Simonenko
simon at comsys.ntu-kpi.kiev.ua
Mon Sep 17 15:40:11 UTC 2012
The following reply was made to PR bin/171604; it has been noted by GNATS.
From: Andrey Simonenko <simon at comsys.ntu-kpi.kiev.ua>
To: bug-followup at FreeBSD.org
Cc: Mark Johnston <markjdb at gmail.com>
Subject: bin/171604: [patch] LD_PRELOAD set to not absolute path crashes rtld
Date: Mon, 17 Sep 2012 18:30:53 +0300
> Ok, so that fixed the segfault at least. I think the LD_PRELOAD handling
> is still incorrect. According to rtld(1), if LD_PRELOAD isn't an
> absolute path, then LD_LIBRARY_PATH and the standard library path
> (/lib:/usr/lib) should be searched. However, we're only searching
> LD_LIBRARY_PATH in this case at the moment:
That manual page references to "built-in standard directories", but
does not define what they are. Previously LD_PRELOAD set to not absolute
path worked even for /usr/local/lib (as I understand because of ldconfig
called for that directory). I notice that net/proxychains that worked
before on RELENG_9 did not work now (it calls any program with
LD_PRELOAD=libproxychains.so, just install it and check shell script
at bin/proxychains).
> The attached patch addresses this problem as well.
Yes, it works for /lib at least.
More information about the freebsd-bugs
mailing list