This is the mail archive of the glibc-bugs@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]

[Bug libc/13271] New: getaddrinfo is not thread safe


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.


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