When libthr and rtld start up, there are a number of magic spells cast

in order to get the symbol binding state "just so".  This is to allow
locking to be activated and not run into recursion problems later.

However, one of the magic bits involves an explicit call to _umtx_op()
to force symbol resolution.  It does a wakeup operation on a fake,
uninitialized (ie: random contents) umtx.  Since libthr isn't active, this
is harmless.  Nothing can match the random wakeup.

However, valgrind finds this and is not amused.  Normally I'd just
write a suppression record for it, but the idea of passing random
args to syscalls (on purpose) just doesn't feel right.
This commit is contained in:
Peter Wemm 2008-12-07 02:32:49 +00:00
parent 1af2e19172
commit 70ba1e8fc1

View File

@ -180,7 +180,7 @@ _thr_rtld_init(void)
{
struct RtldLockInfo li;
struct pthread *curthread;
long dummy;
long dummy = -1;
curthread = _get_curthread();