Skip to content
  • Georgios Bitzes's avatar
    COMMON: Fix data-race on RWMutex::mTransientDeadlockCheck, make atomic · 0448d1ce
    Georgios Bitzes authored
    WARNING: ThreadSanitizer: data race (pid=15845)
      Read of size 1 at 0x7fe91502ce11 by thread T182:
        #0 eos::common::RWMutex::LockRead() /afs/cern.ch/user/g/gbitzes/dev/eos-dev/common/RWMutex.cc:259 (libeosCommon.so.4+0x000000043a5c)
        #1 eos::common::RWMutexReadLock::RWMutexReadLock(eos::common::RWMutex&) /afs/cern.ch/user/g/gbitzes/dev/eos-dev/common/RWMutex.cc:1309 (libeosCommon.so.4+0x000000043cc9)
        ....
    
      Previous write of size 1 at 0x7fe91502ce11 by thread T7:
        #0 eos::common::RWMutex::UnLockRead() /afs/cern.ch/user/g/gbitzes/dev/eos-dev/common/RWMutex.cc:300 (libeosCommon.so.4+0x000000044913)
        #1 eos::common::RWMutexReadLock::~RWMutexReadLock() /afs/cern.ch/user/g/gbitzes/dev/eos-dev/common/RWMutex.cc:1341 (libeosCommon.so.4+0x000000044a12)
        ....
    0448d1ce