public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/13271] New: getaddrinfo is not thread safe
@ 2011-10-07  8:26 mol at astron dot nl
  2011-10-07 12:29 ` [Bug libc/13271] " bugdal at aerifal dot cx
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: mol at astron dot nl @ 2011-10-07  8:26 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2015-07-11 20:51 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-07  8:26 [Bug libc/13271] New: getaddrinfo is not thread safe mol at astron dot nl
2011-10-07 12:29 ` [Bug libc/13271] " bugdal at aerifal dot cx
2011-10-07 14:44 ` drepper.fsp at gmail dot com
2011-10-07 14:58 ` mol at astron dot nl
2011-10-07 16:30 ` bugdal at aerifal dot cx
2011-10-07 17:49 ` mol at astron dot nl
2011-10-07 18:52 ` bugdal at aerifal dot cx
2011-10-12  8:21 ` mol at astron dot nl
2011-10-15 13:58 ` drepper.fsp at gmail dot com
2011-10-15 20:56 ` bugdal at aerifal dot cx
2011-10-15 22:43 ` drepper.fsp at gmail dot com
2011-10-16  3:19 ` bugdal at aerifal dot cx
2014-02-16 17:43 ` jackie.rosen at hushmail dot com
2014-05-28 19:44 ` schwab at sourceware dot org
2014-06-27 11:56 ` fweimer at redhat dot com
2015-03-23 15:25 ` carlos at redhat dot com
2015-03-23 15:26 ` [Bug libc/13271] getaddrinfo is not thread safe against concurrent setenv carlos at redhat dot com
2015-07-11 20:51 ` neleai at seznam dot cz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).