[all-commits] [llvm/llvm-project] 61da95: tsan: prevent insertion of memset into BenignRaceImpl

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Sat Jul 31 00:17:28 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 61da95e8a16a71b58661af6d4c33975cb6aa9568
      https://github.com/llvm/llvm-project/commit/61da95e8a16a71b58661af6d4c33975cb6aa9568
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2021-07-31 (Sat, 31 Jul 2021)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_interface_ann.cpp

  Log Message:
  -----------
  tsan: prevent insertion of memset into BenignRaceImpl

Some bots started failing with the following error
after changing Alloc to New. Change it back.

ThreadSanitizer: CHECK failed: ((locked[i].recursion)) == ((0))
 4 __sanitizer::CheckedMutex::CheckNoLocks()
 5 __tsan::ScopedInterceptor::~ScopedInterceptor()
 6 memset
 7 __tsan::New<__tsan::ExpectRace>()
 8 __tsan::AddExpectRace()
 9 BenignRaceImpl()

Differential Revision: https://reviews.llvm.org/D107212




More information about the All-commits mailing list