Open
Description
Bugzilla Link | 50365 |
Version | unspecified |
OS | All |
CC | @dwblaikie,@mclow |
Extended Description
There are two lines in unique_lock::unlock
that should appear in reverse order:
llvm-project/libcxx/include/__mutex_base
Line 255 in d480f96
llvm-project/libcxx/include/__mutex_base
Line 256 in d480f96
MRE would require a thread pool with fibers running over it (that's how TSan detected the race condition in the first place) so that one thread has unlocked __m_
but not written false yet, and another thread is destroying the lock already.