Date: Fri, 29 Aug 2008 18:40:03 GMT From: Alexander Kabaev <kabaev@gmail.com> To: freebsd-threads@FreeBSD.org Subject: Re: threads/126950: rtld malloc is thread-unsafe Message-ID: <200808291840.m7TIe3in002358@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR threads/126950; it has been noted by GNATS. From: Alexander Kabaev <kabaev@gmail.com> To: Oleg Dolgov <agile@sunbay.com> Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: threads/126950: rtld malloc is thread-unsafe Date: Fri, 29 Aug 2008 14:05:27 -0400 --Sig_/8E=R.f2Foc5pJTzysvE4Zu4 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 1. The locking implementation in this patch is broken. 2. rtld malloc is not supposed to be called from multiple threads and needs to be protected by exclusive bind lock. If there are code sections that call malloc without exclusive lock held, rtld should be fixed to move them under lock protection. --=20 Alexander Kabaev --Sig_/8E=R.f2Foc5pJTzysvE4Zu4 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iD8DBQFIuDpnQ6z1jMm+XZYRAt3lAJ47sMx7yg5cbYu+6lgwiYBuqBFVxQCgtiab ygqiHe8ciE/t+8IzQTvc4bI= =U3O0 -----END PGP SIGNATURE----- --Sig_/8E=R.f2Foc5pJTzysvE4Zu4--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808291840.m7TIe3in002358>