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]

getaddrinfo thread-safe?


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/>

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]