https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66756
Thomas Koenig <tkoenig at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID |--- Severity|normal |enhancement --- Comment #9 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Well, if it is indeed a serious problem, we can re-open as an enhancement request. Unfortunately, I don't know if it is possible to shut up the thread sanitizer somehow. A possiblity would be to lock the unit only after the global lock has been released, and possibly keep around the global lock for longer. If we still are in the process of opening the file in the original thread, then there should be no problem (at least I hope so...)