[Bug libc/13271] getaddrinfo is not thread safe

mol at astron dot nl sourceware-bugzilla@sourceware.org
Wed Oct 12 08:21:00 GMT 2011


http://sourceware.org/bugzilla/show_bug.cgi?id=13271

Jan David Mol <mol at astron dot nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |

--- Comment #7 from Jan David Mol <mol at astron dot nl> 2011-10-12 08:21:10 UTC ---
Reopened; this ticket cannot be regarded as 'invalid', nor 'resolved', because,
as mentioned earlier, POSIX and glibc docs do allow setenv and getaddrinfo to
run concurrently.

Rich Felker's idea of wrapping all getenv calls inside glibc is good, assuming
the number of functions needing access to that global lock is limited. Getenv
itself needs only very weak (in fact, insanely weak) guarantees by POSIX, so
indeed that doesn't need change.

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



More information about the Glibc-bugs mailing list