From owner-freebsd-threads@FreeBSD.ORG Sat Aug 30 08:30:31 2008 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD0931065671; Sat, 30 Aug 2008 08:30:31 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.terabit.net.ua (mail.terabit.net.ua [195.137.202.147]) by mx1.freebsd.org (Postfix) with ESMTP id 52DDB8FC1F; Sat, 30 Aug 2008 08:30:31 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from skuns.zoral.com.ua ([91.193.166.194] helo=mail.zoral.com.ua) by mail.terabit.net.ua with esmtp (Exim 4.63 (FreeBSD)) (envelope-from ) id 1KZLqo-0008hG-F9; Sat, 30 Aug 2008 11:30:30 +0300 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m7U8UREo063315 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 30 Aug 2008 11:30:28 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m7U8URB0057442; Sat, 30 Aug 2008 11:30:27 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m7U8URaB057441; Sat, 30 Aug 2008 11:30:27 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 30 Aug 2008 11:30:27 +0300 From: Kostik Belousov To: Kip Macy Message-ID: <20080830083027.GD2038@deviant.kiev.zoral.com.ua> References: <200808292210.m7TMA53f019709@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cUq9BFDytUJq8bQY" Content-Disposition: inline In-Reply-To: <200808292210.m7TMA53f019709@freefall.freebsd.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.93.3, clamav-milter version 0.93.3 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua X-Virus-Scanned: mail.terabit.net.ua 1KZLqo-0008hG-F9 f7fd9ab91494beb240798a0e23833fa5 X-Terabit: YES Cc: freebsd-threads@freebsd.org Subject: Re: threads/126950: rtld malloc is thread-unsafe X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Aug 2008 08:30:31 -0000 --cUq9BFDytUJq8bQY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 29, 2008 at 10:10:05PM +0000, Kip Macy wrote: > The following reply was made to PR threads/126950; it has been noted by G= NATS. >=20 > From: "Kip Macy" > To: "Oleg Dolgov" > Cc: freebsd-gnats-submit@freebsd.org > Subject: Re: threads/126950: rtld malloc is thread-unsafe > Date: Fri, 29 Aug 2008 14:41:59 -0700 >=20 > I think the real solution is to serialize calls to dlopen. Please > consider submitting a patch for that. dlopen()/dlclose() need to call initializers/finalizers for dso and its dependencies. These code may recurse into the rtld, either by symbol resolution, or by calling dl*(). I tried to somewhat work around this in the patch, referenced as a prerequisite. --cUq9BFDytUJq8bQY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAki5BSIACgkQC3+MBN1Mb4iiPACgz0sJ//6a5RwGE7XB2BM9E/qO Xn0AnRmf/imd6n2rQjshNrDJq0WOTUY6 =6F0o -----END PGP SIGNATURE----- --cUq9BFDytUJq8bQY--