From owner-freebsd-current@FreeBSD.ORG Sat Mar 28 15:41:21 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 521121065676 for ; Sat, 28 Mar 2009 15:41:21 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id E26848FC1C for ; Sat, 28 Mar 2009 15:41:20 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id BFD921CF09; Sat, 28 Mar 2009 16:41:19 +0100 (CET) Date: Sat, 28 Mar 2009 16:41:19 +0100 From: Ed Schouten To: Kostik Belousov Message-ID: <20090328154119.GS73108@hoeg.nl> References: <20090328102552.GR73108@hoeg.nl> <20090328134740.GI31897@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QRtLtq+kfJNLc57H" Content-Disposition: inline In-Reply-To: <20090328134740.GI31897@deviant.kiev.zoral.com.ua> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: FreeBSD Current Subject: Re: LD_PRELOAD broken? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 15:41:21 -0000 --QRtLtq+kfJNLc57H Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Kostik, * Kostik Belousov wrote: > On Sat, Mar 28, 2009 at 11:25:52AM +0100, Ed Schouten wrote: > > Hi all, > >=20 > > 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: > >=20 > > LD_PRELOAD=3D/lib/libc.so.7 ls > >=20 > > This causes a segmentation fault on startup, at least on AMD64. >=20 > Yes. The following fixes the case for me. >=20 > This seems to make LD_PRELOAD work again. I tested the patch using sysutils/hidesvn, which uses LD_PRELOAD. Thanks a lot! --=20 Ed Schouten WWW: http://80386.nl/ --QRtLtq+kfJNLc57H Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAknORR8ACgkQ52SDGA2eCwU88wCeOPbmhfNx3ZNicPoJkKSNVym4 wxUAnRJAwlZnX2Cq/H6iP+GcitfOI4N2 =6UF+ -----END PGP SIGNATURE----- --QRtLtq+kfJNLc57H--