This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13271] New: getaddrinfo is not thread safe
- From: "mol at astron dot nl" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 07 Oct 2011 08:26:00 +0000
- Subject: [Bug libc/13271] New: getaddrinfo is not thread safe
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13271
Bug #: 13271
Summary: getaddrinfo is not thread safe
Product: glibc
Version: 2.14
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper.fsp@gmail.com
ReportedBy: mol@astron.nl
Classification: Unclassified
The getaddrinfo() can trigger the following sequence of function calls:
getaddrinfo()
gaih_inet()
__gethostbyname2_r()
_nss_dns_gethostbyname2_r()
_nss_dns_gethostbyname3_r()
__res_hostalias()
getenv("HOSTALIASES")
The getenv() function is not thread-safe however, so getaddrinfo() should not
call it. I suspect other getenv() functions can be reached as well, but I lack
enough glibc knowledge to provide a good list so I won't try.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.