[Bug 296410] sprintf/vfprintf not thread safe on AArch64 due to localeconv_l using atomic_store_int, with relaxed semantics
[email protected] Wed, 01 Jul 2026 09:18:36 +0000
| Newsgroups | gmane.os.freebsd.devel.threading |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D296410 --- Comment #2 from Tomas Vondra <[email protected]> --- (In reply to Konstantin Belousov from comment #1) I'm not very familiar with how the locales work, but the way I understood localeconv_l is that it rebuilds the cached fields after a change (or on fi= rst access). And I thought maybe it's harmless if two threads rebuilt it concurrently, or something like that. But maybe you're right and after a locale change a thread could see a mix of old and new values for a given locale? I guess that'd mean using atomics for protecting other fields (as implemented here) is not quite sufficient. --=20 You are receiving this mail because: You are the assignee for the bug.=