This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug time/19179] gmtime_r internally calls getenv("TZ") which is not thread-safe
- From: "ppluzhnikov at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 29 Oct 2015 21:44:45 +0000
- Subject: [Bug time/19179] gmtime_r internally calls getenv("TZ") which is not thread-safe
- Auto-submitted: auto-generated
- References: <bug-19179-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=19179
--- Comment #2 from Paul Pluzhnikov <ppluzhnikov at google dot com> ---
getenv is thread-safe (so long as other threads aren't modifying the
environment), so if getenv() was the problem, this bug would be invalid.
But tzset_internal writes globals, and is definitely not thread-safe.
--
You are receiving this mail because:
You are on the CC list for the bug.