This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: getaddrinfo thread-safe?


On 24/03/15 06:49, Joshua Rogers wrote:
> In thread 4, pthread_mutex_lock is called on 'lock', on L127 of
> files-hosts.c. That's all OK:   __libc_lock_lock (lock);
>
> But then, it is unlocked in thread 3? I don't understand that.
Ah, Nevermind. I really am tired!!

'lock' was fired read here:
==30720==    by 0x6030486: _nss_files_gethostbyname3_r (files-hosts.c:127)


It was then subsequently read here:
==30720==    by 0x4C30E75: ??? (in
/usr/lib/valgrind/vgpreload_drd-amd64-linux.so)


This is probably a bug in valgrind.



-- 
-- Joshua Rogers <https://internot.info/>

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]