threads/126950: rtld malloc is thread-unsafe

Alexander Kabaev kabaev at
Fri Aug 29 18:40:03 UTC 2008

The following reply was made to PR threads/126950; it has been noted by GNATS.

From: Alexander Kabaev <kabaev at>
To: Oleg Dolgov <agile at>
Cc: freebsd-gnats-submit at
Subject: Re: threads/126950: rtld malloc is thread-unsafe
Date: Fri, 29 Aug 2008 14:05:27 -0400

 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.
 Alexander Kabaev
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Disposition: attachment; filename=signature.asc
 Version: GnuPG v1.4.9 (FreeBSD)

More information about the freebsd-threads mailing list