getaddrinfo thread-safe?

Joshua Rogers megamansec@gmail.com
Mon Mar 23 12:01:00 GMT 2015


Hi,

According to http://tools.ietf.org/html/rfc3493#section-6.1: getaddrinfo
needs to be thread-safe:
"   Functions getaddrinfo() and freeaddrinfo() must be thread-safe."

However, it doesn't seem to be.

With the very simple code: http://codepad.org/hRxP9E1J
valgrind (valgrind --tool=drd --read-var-info=yes ./a.out) picks up a
lot of conflicting reads/writes. -- http://pastebin.com/ebQS8MMc

Is this a known bug?



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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://sourceware.org/pipermail/libc-help/attachments/20150323/06681c55/attachment.sig>


More information about the Libc-help mailing list