[Bug 2036420] Re: tzset generates ThreadSanitizer warnings if TZ not set
Simon Chopin
2036420 at bugs.launchpad.net
Wed Sep 20 16:02:23 UTC 2023
Might be a false positive. AFAICT this warns about writing to old_tz,
which AFAICT is always dealt with under the tzset_lock except in
__libc_tzset_freemem which I'm guessing is only ran when the main thread
exits.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/2036420
Title:
tzset generates ThreadSanitizer warnings if TZ not set
Status in glibc package in Ubuntu:
New
Bug description:
A program that calls tzset (e.g. via mktime) from multiple threads
will generate ThreadSanitizer warnings, but only if the environment
variable TZ is not set. Please see attached example.
Not sure if it is a glibc bug or a limitation in ThreadSanitizer.
$ lsb_release -rd
Description: Ubuntu 22.04.3 LTS
Release: 22.04
$ apt-cache policy libc6
libc6:
Installed: 2.35-0ubuntu3.1
Candidate: 2.35-0ubuntu3.1
Version table:
*** 2.35-0ubuntu3.1 500
500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
100 /var/lib/dpkg/status
2.35-0ubuntu3 500
500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2036420/+subscriptions
More information about the foundations-bugs
mailing list