Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Sep 2012 15:40:11 GMT
From:      Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
To:        freebsd-bugs@FreeBSD.org
Subject:   bin/171604: [patch] LD_PRELOAD set to not absolute path crashes rtld
Message-ID:  <201209171540.q8HFeB1B051620@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/171604; it has been noted by GNATS.

From: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
To: bug-followup@FreeBSD.org
Cc: Mark Johnston <markjdb@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209171540.q8HFeB1B051620>