Skip to content

Data race in profiler when shutting down the VM while profiler signal handler is still running. #42401

@mkustermann

Description

@mkustermann

From this log:


/===================================================================\
| vm/cc/Profiler_FunctionTicks broke (Pass -> Crash, expected Pass) |
\===================================================================/

--- Command "run_vm_unittest" (took 23.000877s):
DART_CONFIGURATION=ReleaseTSANX64 out/ReleaseTSANX64/run_vm_tests --dfe=/b/s/w/ir/cache/builder/sdk/out/ReleaseTSANX64/gen/kernel-service.dart.snapshot --ignore-unrecognized-flags Profiler_FunctionTicks

exit code:
-6

stdout:
Running test: Profiler_FunctionTicks
Done: Profiler_FunctionTicks

stderr:
/usr/bin/addr2line: '/memfd:dart-codespace (deleted)': No such file
==25954==WARNING: Can't read from symbolizer at fd 9
/usr/bin/addr2line: '/memfd:dart-codespace (deleted)': No such file
==25954==WARNING: Can't read from symbolizer at fd 9
/usr/bin/addr2line: '/memfd:dart-codespace (deleted)': No such file
==25954==WARNING: Can't read from symbolizer at fd 9
/usr/bin/addr2line: '/memfd:dart-codespace (deleted)': No such file
==25954==WARNING: Can't read from symbolizer at fd 9
==25954==WARNING: Failed to use and restart external symbolizer!
/usr/bin/addr2line: '/memfd:dart-codespace (deleted)': No such file
==================
WARNING: ThreadSanitizer: data race (pid=25954)
  Write of size 8 at 0x7b0c00000720 by main thread:
    #0 operator delete(void*) ../recipe_cleanup/clangshYTOG/llvm_build_dir/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/rtl/tsan_new_delete.cpp:126 (run_vm_tests+0x398dc3e)
    #1 ~SampleBuffer ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:218 (run_vm_tests+0x4004868)
    #2 dart::Profiler::Cleanup() ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:110 (run_vm_tests+0x4004430)
    #3 dart::Dart::Cleanup() ../../out/ReleaseTSANX64/../../runtime/vm/dart.cc:485 (run_vm_tests+0x3e540e9)
    #4 dart::Main(int, char const**) ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:398 (run_vm_tests+0x39910ae)
    #5 main ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:424 (run_vm_tests+0x39908fe)

  Previous read of size 8 at 0x7b0c00000720 by thread T8:
    #0 dart::SetupSample(dart::Thread*, dart::SampleBuffer*, unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:1036 (run_vm_tests+0x40079c3)
    #1 dart::Profiler::SampleThreadSingleFrame(dart::Thread*, unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:1314 (run_vm_tests+0x40079c3)
    #2 dart::Profiler::SampleThread(dart::Thread*, dart::InterruptedThreadState const&) ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:1391 (run_vm_tests+0x40079c3)
    #3 dart::ThreadInterrupterLinux::ThreadInterruptSignalHandler(int, siginfo_t*, void*) ../../out/ReleaseTSANX64/../../runtime/vm/thread_interrupter_linux.cc:47 (run_vm_tests+0x40f24b7)
    #4 __tsan::CallUserSignalHandler(__tsan::ThreadState*, bool, bool, bool, int, __sanitizer::__sanitizer_siginfo*, void*) ../recipe_cleanup/clangshYTOG/llvm_build_dir/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1907 (run_vm_tests+0x392682f)
    #5 Instruction ../../out/ReleaseTSANX64/../../runtime/vm/compiler/backend/il.h:781 (run_vm_tests+0x472b8a8)
    #6 BlockEntryInstr ../../out/ReleaseTSANX64/../../runtime/vm/compiler/backend/il.h:1479 (run_vm_tests+0x472b8a8)
    #7 TargetEntryInstr ../../out/ReleaseTSANX64/../../runtime/vm/compiler/backend/il.h:1796 (run_vm_tests+0x472b8a8)
    #8 dart::kernel::BaseFlowGraphBuilder::BuildTargetEntry() ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/base_flow_graph_builder.cc:749 (run_vm_tests+0x472b8a8)
    #9 dart::kernel::BaseFlowGraphBuilder::BranchIfEqual(dart::TargetEntryInstr**, dart::TargetEntryInstr**, bool) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/base_flow_graph_builder.cc:170 (run_vm_tests+0x472d3d0)
    #10 dart::kernel::PrologueBuilder::BuildTypeArgumentsLengthCheck(dart::JoinEntryInstr*, bool) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/prologue_builder.cc:133 (run_vm_tests+0x47c4667)
    #11 dart::kernel::PrologueBuilder::BuildPrologue(dart::BlockEntryInstr*, dart::PrologueInfo*) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/prologue_builder.cc:63 (run_vm_tests+0x47c41a6)
    #12 dart::kernel::FlowGraphBuilder::BuildPrologue(dart::BlockEntryInstr*, dart::PrologueInfo*) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/kernel_to_il.cc:1748 (run_vm_tests+0x479b23c)
    #13 dart::kernel::StreamingFlowGraphBuilder::BuildGraphOfFunction(bool) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/kernel_binary_flowgraph.cc:964 (run_vm_tests+0x477984a)
    #14 dart::kernel::StreamingFlowGraphBuilder::BuildGraph() ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/kernel_binary_flowgraph.cc:1148 (run_vm_tests+0x477a25a)
    #15 dart::kernel::FlowGraphBuilder::BuildGraph() ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/kernel_to_il.cc:744 (run_vm_tests+0x4797da0)
    #16 dart::DartCompilationPipeline::BuildFlowGraph(dart::Zone*, dart::ParsedFunction*, dart::ZoneGrowableArray<dart::ICData const*>*, long, bool) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:139 (run_vm_tests+0x4119d71)
    #17 dart::CompileParsedFunctionHelper::Compile(dart::CompilationPipeline*) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:574 (run_vm_tests+0x411b9ff)
    #18 dart::CompileFunctionHelper(dart::CompilationPipeline*, dart::Function const&, bool, long) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:755 (run_vm_tests+0x411ce3b)
    #19 dart::Compiler::CompileFunction(dart::Thread*, dart::Function const&) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:891 (run_vm_tests+0x411c719)
    #20 dart::DRT_HelperCompileFunction(dart::Isolate*, dart::Thread*, dart::Zone*, dart::NativeArguments) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:232 (run_vm_tests+0x411a44a)
    #21 dart::DRT_CompileFunction(dart::NativeArguments) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:208 (run_vm_tests+0x411a44a)
    #22 <null> <null> (memfd:dart-codespace (deleted)+0x1352)
    #23 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/dart_entry.cc:171 (run_vm_tests+0x3e5fc4a)
    #24 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&) ../../out/ReleaseTSANX64/../../runtime/vm/dart_entry.cc:39 (run_vm_tests+0x3e631df)
    #25 dart::DartLibraryCalls::HandleMessage(dart::Object const&, dart::Instance const&) ../../out/ReleaseTSANX64/../../runtime/vm/dart_entry.cc:712 (run_vm_tests+0x3e631df)
    #26 dart::IsolateMessageHandler::HandleMessage(std::__2::unique_ptr<dart::Message, std::__2::default_delete<dart::Message> >) ../../out/ReleaseTSANX64/../../runtime/vm/isolate.cc:1312 (run_vm_tests+0x3ece5d8)
    #27 dart::MessageHandler::HandleMessages(dart::MonitorLocker*, bool, bool) ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:233 (run_vm_tests+0x3f19920)
    #28 dart::MessageHandler::TaskCallback() ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:443 (run_vm_tests+0x3f1a324)
    #29 dart::MessageHandlerTask::Run() ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:31 (run_vm_tests+0x3f1ad13)
    #30 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:158 (run_vm_tests+0x40f36bc)
    #31 dart::ThreadPool::Worker::Main(unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:323 (run_vm_tests+0x40f40a5)
    #32 dart::ThreadStart(void*) ../../out/ReleaseTSANX64/../../runtime/vm/os_thread_linux.cc:153 (run_vm_tests+0x3ffeb42)

  Thread T8 'DartWorker' (tid=26026, running) created by main thread at:
    #0 pthread_create ../recipe_cleanup/clangshYTOG/llvm_build_dir/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:962 (run_vm_tests+0x392009b)
    #1 dart::OSThread::Start(char const*, void (*)(unsigned long), unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/os_thread_linux.cc:172 (run_vm_tests+0x3ffe9cc)
    #2 dart::ThreadPool::Worker::StartThread() ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:296 (run_vm_tests+0x40f2d79)
    #3 dart::ThreadPool::RunImpl(std::__2::unique_ptr<dart::ThreadPool::Task, std::__2::default_delete<dart::ThreadPool::Task> >) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:94 (run_vm_tests+0x40f2d79)
    #4 bool dart::ThreadPool::Run<dart::MessageHandlerTask, dart::MessageHandler*>(dart::MessageHandler*&&) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.h:46 (run_vm_tests+0x3f1961b)
    #5 dart::MessageHandler::PostMessage(std::__2::unique_ptr<dart::Message, std::__2::default_delete<dart::Message> >, bool) ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:165 (run_vm_tests+0x3f1961b)
    #6 dart::PortMap::PostMessage(std::__2::unique_ptr<dart::Message, std::__2::default_delete<dart::Message> >, bool) ../../out/ReleaseTSANX64/../../runtime/vm/port.cc:197 (run_vm_tests+0x40024aa)
    #7 dart::PostCObjectHelper(long, _Dart_CObject*) ../../out/ReleaseTSANX64/../../runtime/vm/native_api_impl.cc:54 (run_vm_tests+0x48583b2)
    #8 Dart_PostCObject ../../out/ReleaseTSANX64/../../runtime/vm/native_api_impl.cc:58 (run_vm_tests+0x48583b2)
    #9 dart::KernelCompilationRequest::SendAndWaitForResponse(int, long, char const*, unsigned char const*, long, int, Dart_SourceFile*, bool, char const*, char const*, char const*, dart::MallocGrowableArray<char*> const*, char const*) ../../out/ReleaseTSANX64/../../runtime/vm/kernel_isolate.cc:865 (run_vm_tests+0x3f042f2)
    #10 dart::KernelIsolate::AcceptCompilation() ../../out/ReleaseTSANX64/../../runtime/vm/kernel_isolate.cc:1085 (run_vm_tests+0x3f049df)
    #11 dart::TestCase::CompileTestScriptWithDFE(char const*, int, Dart_SourceFile*, unsigned char const**, long*, bool, bool, char const*, char const*) ../../out/ReleaseTSANX64/../../runtime/vm/unit_test.cc:331 (run_vm_tests+0x3b220c1)
    #12 dart::TestCase::LoadTestScriptWithDFE(int, Dart_SourceFile*, void (*(*)(_Dart_Handle*, int, bool*))(_Dart_NativeArguments*), bool, bool, bool, char const*, char const*, char const*) ../../out/ReleaseTSANX64/../../runtime/vm/unit_test.cc:481 (run_vm_tests+0x3b22709)
    #13 dart::TestCase::LoadTestScript(char const*, void (*(*)(_Dart_Handle*, int, bool*))(_Dart_NativeArguments*), char const*, bool, bool) ../../out/ReleaseTSANX64/../../runtime/vm/unit_test.cc:429 (run_vm_tests+0x3b225cb)
    #14 dart::LoadTestScript(char const*) ../../out/ReleaseTSANX64/../../runtime/vm/profiler_test.cc:162 (run_vm_tests+0x3ad1be9)
    #15 dart::Dart_TestHelperProfiler_FunctionTicks(dart::Thread*) ../../out/ReleaseTSANX64/../../runtime/vm/profiler_test.cc:801 (run_vm_tests+0x3ab8a0a)
    #16 dart::Dart_TestProfiler_FunctionTicks() ../../out/ReleaseTSANX64/../../runtime/vm/profiler_test.cc:783 (run_vm_tests+0x3ab8a0a)
    #17 dart::TestCase::Run() ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:52 (run_vm_tests+0x39903ac)
    #18 dart::TestCaseBase::RunTest() ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:64 (run_vm_tests+0x3990581)
    #19 dart::TestCaseBase::RunAll() ../../out/ReleaseTSANX64/../../runtime/vm/unit_test.cc:86 (run_vm_tests+0x3b20f48)
    #20 dart::Main(int, char const**) ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:393 (run_vm_tests+0x3991093)
    #21 main ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:424 (run_vm_tests+0x39908fe)

SUMMARY: ThreadSanitizer: data race ../recipe_cleanup/clangshYTOG/llvm_build_dir/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/rtl/tsan_new_delete.cpp:126 in operator delete(void*)
==================
==================
WARNING: ThreadSanitizer: data race (pid=25954)
  Write of size 8 at 0x7b0c00000730 by main thread:
    #0 operator delete(void*) ../recipe_cleanup/clangshYTOG/llvm_build_dir/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/rtl/tsan_new_delete.cpp:126 (run_vm_tests+0x398dc3e)
    #1 ~SampleBuffer ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:218 (run_vm_tests+0x4004868)
    #2 dart::Profiler::Cleanup() ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:110 (run_vm_tests+0x4004430)
    #3 dart::Dart::Cleanup() ../../out/ReleaseTSANX64/../../runtime/vm/dart.cc:485 (run_vm_tests+0x3e540e9)
    #4 dart::Main(int, char const**) ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:398 (run_vm_tests+0x39910ae)
    #5 main ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:424 (run_vm_tests+0x39908fe)

  Previous read of size 8 at 0x7b0c00000730 by thread T8:
    #0 dart::SampleBuffer::At(long) const ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:229 (run_vm_tests+0x4004a89)
    #1 dart::SampleBuffer::ReserveSample() ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:242 (run_vm_tests+0x4004a89)
    #2 dart::SetupSample(dart::Thread*, dart::SampleBuffer*, unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:1036 (run_vm_tests+0x40079cd)
    #3 dart::Profiler::SampleThreadSingleFrame(dart::Thread*, unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:1314 (run_vm_tests+0x40079cd)
    #4 dart::Profiler::SampleThread(dart::Thread*, dart::InterruptedThreadState const&) ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:1391 (run_vm_tests+0x40079cd)
    #5 dart::ThreadInterrupterLinux::ThreadInterruptSignalHandler(int, siginfo_t*, void*) ../../out/ReleaseTSANX64/../../runtime/vm/thread_interrupter_linux.cc:47 (run_vm_tests+0x40f24b7)
    #6 __tsan::CallUserSignalHandler(__tsan::ThreadState*, bool, bool, bool, int, __sanitizer::__sanitizer_siginfo*, void*) ../recipe_cleanup/clangshYTOG/llvm_build_dir/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1907 (run_vm_tests+0x392682f)
    #7 Instruction ../../out/ReleaseTSANX64/../../runtime/vm/compiler/backend/il.h:781 (run_vm_tests+0x472b8a8)
    #8 BlockEntryInstr ../../out/ReleaseTSANX64/../../runtime/vm/compiler/backend/il.h:1479 (run_vm_tests+0x472b8a8)
    #9 TargetEntryInstr ../../out/ReleaseTSANX64/../../runtime/vm/compiler/backend/il.h:1796 (run_vm_tests+0x472b8a8)
    #10 dart::kernel::BaseFlowGraphBuilder::BuildTargetEntry() ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/base_flow_graph_builder.cc:749 (run_vm_tests+0x472b8a8)
    #11 dart::kernel::BaseFlowGraphBuilder::BranchIfEqual(dart::TargetEntryInstr**, dart::TargetEntryInstr**, bool) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/base_flow_graph_builder.cc:170 (run_vm_tests+0x472d3d0)
    #12 dart::kernel::PrologueBuilder::BuildTypeArgumentsLengthCheck(dart::JoinEntryInstr*, bool) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/prologue_builder.cc:133 (run_vm_tests+0x47c4667)
    #13 dart::kernel::PrologueBuilder::BuildPrologue(dart::BlockEntryInstr*, dart::PrologueInfo*) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/prologue_builder.cc:63 (run_vm_tests+0x47c41a6)
    #14 dart::kernel::FlowGraphBuilder::BuildPrologue(dart::BlockEntryInstr*, dart::PrologueInfo*) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/kernel_to_il.cc:1748 (run_vm_tests+0x479b23c)
    #15 dart::kernel::StreamingFlowGraphBuilder::BuildGraphOfFunction(bool) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/kernel_binary_flowgraph.cc:964 (run_vm_tests+0x477984a)
    #16 dart::kernel::StreamingFlowGraphBuilder::BuildGraph() ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/kernel_binary_flowgraph.cc:1148 (run_vm_tests+0x477a25a)
    #17 dart::kernel::FlowGraphBuilder::BuildGraph() ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/kernel_to_il.cc:744 (run_vm_tests+0x4797da0)
    #18 dart::DartCompilationPipeline::BuildFlowGraph(dart::Zone*, dart::ParsedFunction*, dart::ZoneGrowableArray<dart::ICData const*>*, long, bool) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:139 (run_vm_tests+0x4119d71)
    #19 dart::CompileParsedFunctionHelper::Compile(dart::CompilationPipeline*) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:574 (run_vm_tests+0x411b9ff)
    #20 dart::CompileFunctionHelper(dart::CompilationPipeline*, dart::Function const&, bool, long) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:755 (run_vm_tests+0x411ce3b)
    #21 dart::Compiler::CompileFunction(dart::Thread*, dart::Function const&) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:891 (run_vm_tests+0x411c719)
    #22 dart::DRT_HelperCompileFunction(dart::Isolate*, dart::Thread*, dart::Zone*, dart::NativeArguments) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:232 (run_vm_tests+0x411a44a)
    #23 dart::DRT_CompileFunction(dart::NativeArguments) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:208 (run_vm_tests+0x411a44a)
    #24 <null> <null> (memfd:dart-codespace (deleted)+0x1352)
    #25 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/dart_entry.cc:171 (run_vm_tests+0x3e5fc4a)
    #26 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&) ../../out/ReleaseTSANX64/../../runtime/vm/dart_entry.cc:39 (run_vm_tests+0x3e631df)
    #27 dart::DartLibraryCalls::HandleMessage(dart::Object const&, dart::Instance const&) ../../out/ReleaseTSANX64/../../runtime/vm/dart_entry.cc:712 (run_vm_tests+0x3e631df)
    #28 dart::IsolateMessageHandler::HandleMessage(std::__2::unique_ptr<dart::Message, std::__2::default_delete<dart::Message> >) ../../out/ReleaseTSANX64/../../runtime/vm/isolate.cc:1312 (run_vm_tests+0x3ece5d8)
    #29 dart::MessageHandler::HandleMessages(dart::MonitorLocker*, bool, bool) ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:233 (run_vm_tests+0x3f19920)
    #30 dart::MessageHandler::TaskCallback() ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:443 (run_vm_tests+0x3f1a324)
    #31 dart::MessageHandlerTask::Run() ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:31 (run_vm_tests+0x3f1ad13)
    #32 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:158 (run_vm_tests+0x40f36bc)
    #33 dart::ThreadPool::Worker::Main(unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:323 (run_vm_tests+0x40f40a5)
    #34 dart::ThreadStart(void*) ../../out/ReleaseTSANX64/../../runtime/vm/os_thread_linux.cc:153 (run_vm_tests+0x3ffeb42)

  Thread T8 'DartWorker' (tid=26026, running) created by main thread at:
    #0 pthread_create ../recipe_cleanup/clangshYTOG/llvm_build_dir/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:962 (run_vm_tests+0x392009b)
    #1 dart::OSThread::Start(char const*, void (*)(unsigned long), unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/os_thread_linux.cc:172 (run_vm_tests+0x3ffe9cc)
    #2 dart::ThreadPool::Worker::StartThread() ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:296 (run_vm_tests+0x40f2d79)
    #3 dart::ThreadPool::RunImpl(std::__2::unique_ptr<dart::ThreadPool::Task, std::__2::default_delete<dart::ThreadPool::Task> >) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:94 (run_vm_tests+0x40f2d79)
    #4 bool dart::ThreadPool::Run<dart::MessageHandlerTask, dart::MessageHandler*>(dart::MessageHandler*&&) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.h:46 (run_vm_tests+0x3f1961b)
    #5 dart::MessageHandler::PostMessage(std::__2::unique_ptr<dart::Message, std::__2::default_delete<dart::Message> >, bool) ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:165 (run_vm_tests+0x3f1961b)
    #6 dart::PortMap::PostMessage(std::__2::unique_ptr<dart::Message, std::__2::default_delete<dart::Message> >, bool) ../../out/ReleaseTSANX64/../../runtime/vm/port.cc:197 (run_vm_tests+0x40024aa)
    #7 dart::PostCObjectHelper(long, _Dart_CObject*) ../../out/ReleaseTSANX64/../../runtime/vm/native_api_impl.cc:54 (run_vm_tests+0x48583b2)
    #8 Dart_PostCObject ../../out/ReleaseTSANX64/../../runtime/vm/native_api_impl.cc:58 (run_vm_tests+0x48583b2)
    #9 dart::KernelCompilationRequest::SendAndWaitForResponse(int, long, char const*, unsigned char const*, long, int, Dart_SourceFile*, bool, char const*, char const*, char const*, dart::MallocGrowableArray<char*> const*, char const*) ../../out/ReleaseTSANX64/../../runtime/vm/kernel_isolate.cc:865 (run_vm_tests+0x3f042f2)
    #10 dart::KernelIsolate::AcceptCompilation() ../../out/ReleaseTSANX64/../../runtime/vm/kernel_isolate.cc:1085 (run_vm_tests+0x3f049df)
    #11 dart::TestCase::CompileTestScriptWithDFE(char const*, int, Dart_SourceFile*, unsigned char const**, long*, bool, bool, char const*, char const*) ../../out/ReleaseTSANX64/../../runtime/vm/unit_test.cc:331 (run_vm_tests+0x3b220c1)
    #12 dart::TestCase::LoadTestScriptWithDFE(int, Dart_SourceFile*, void (*(*)(_Dart_Handle*, int, bool*))(_Dart_NativeArguments*), bool, bool, bool, char const*, char const*, char const*) ../../out/ReleaseTSANX64/../../runtime/vm/unit_test.cc:481 (run_vm_tests+0x3b22709)
    #13 dart::TestCase::LoadTestScript(char const*, void (*(*)(_Dart_Handle*, int, bool*))(_Dart_NativeArguments*), char const*, bool, bool) ../../out/ReleaseTSANX64/../../runtime/vm/unit_test.cc:429 (run_vm_tests+0x3b225cb)
    #14 dart::LoadTestScript(char const*) ../../out/ReleaseTSANX64/../../runtime/vm/profiler_test.cc:162 (run_vm_tests+0x3ad1be9)
    #15 dart::Dart_TestHelperProfiler_FunctionTicks(dart::Thread*) ../../out/ReleaseTSANX64/../../runtime/vm/profiler_test.cc:801 (run_vm_tests+0x3ab8a0a)
    #16 dart::Dart_TestProfiler_FunctionTicks() ../../out/ReleaseTSANX64/../../runtime/vm/profiler_test.cc:783 (run_vm_tests+0x3ab8a0a)
    #17 dart::TestCase::Run() ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:52 (run_vm_tests+0x39903ac)
    #18 dart::TestCaseBase::RunTest() ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:64 (run_vm_tests+0x3990581)
    #19 dart::TestCaseBase::RunAll() ../../out/ReleaseTSANX64/../../runtime/vm/unit_test.cc:86 (run_vm_tests+0x3b20f48)
    #20 dart::Main(int, char const**) ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:393 (run_vm_tests+0x3991093)
    #21 main ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:424 (run_vm_tests+0x39908fe)

SUMMARY: ThreadSanitizer: data race ../recipe_cleanup/clangshYTOG/llvm_build_dir/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/rtl/tsan_new_delete.cpp:126 in operator delete(void*)
==================
==================
WARNING: ThreadSanitizer: data race (pid=25954)
  Write of size 8 at 0x7b0c00000738 by main thread:
    #0 operator delete(void*) ../recipe_cleanup/clangshYTOG/llvm_build_dir/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/rtl/tsan_new_delete.cpp:126 (run_vm_tests+0x398dc3e)
    #1 ~SampleBuffer ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:218 (run_vm_tests+0x4004868)
    #2 dart::Profiler::Cleanup() ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:110 (run_vm_tests+0x4004430)
    #3 dart::Dart::Cleanup() ../../out/ReleaseTSANX64/../../runtime/vm/dart.cc:485 (run_vm_tests+0x3e540e9)
    #4 dart::Main(int, char const**) ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:398 (run_vm_tests+0x39910ae)
    #5 main ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:424 (run_vm_tests+0x39908fe)

  Previous read of size 8 at 0x7b0c00000738 by thread T8:
    #0 dart::SampleBuffer::ReserveSampleSlot() ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:237 (run_vm_tests+0x4004a61)
    #1 dart::SampleBuffer::ReserveSample() ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:242 (run_vm_tests+0x4004a61)
    #2 dart::SetupSample(dart::Thread*, dart::SampleBuffer*, unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:1036 (run_vm_tests+0x40079cd)
    #3 dart::Profiler::SampleThreadSingleFrame(dart::Thread*, unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:1314 (run_vm_tests+0x40079cd)
    #4 dart::Profiler::SampleThread(dart::Thread*, dart::InterruptedThreadState const&) ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:1391 (run_vm_tests+0x40079cd)
    #5 dart::ThreadInterrupterLinux::ThreadInterruptSignalHandler(int, siginfo_t*, void*) ../../out/ReleaseTSANX64/../../runtime/vm/thread_interrupter_linux.cc:47 (run_vm_tests+0x40f24b7)
    #6 __tsan::CallUserSignalHandler(__tsan::ThreadState*, bool, bool, bool, int, __sanitizer::__sanitizer_siginfo*, void*) ../recipe_cleanup/clangshYTOG/llvm_build_dir/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1907 (run_vm_tests+0x392682f)
    #7 Instruction ../../out/ReleaseTSANX64/../../runtime/vm/compiler/backend/il.h:781 (run_vm_tests+0x472b8a8)
    #8 BlockEntryInstr ../../out/ReleaseTSANX64/../../runtime/vm/compiler/backend/il.h:1479 (run_vm_tests+0x472b8a8)
    #9 TargetEntryInstr ../../out/ReleaseTSANX64/../../runtime/vm/compiler/backend/il.h:1796 (run_vm_tests+0x472b8a8)
    #10 dart::kernel::BaseFlowGraphBuilder::BuildTargetEntry() ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/base_flow_graph_builder.cc:749 (run_vm_tests+0x472b8a8)
    #11 dart::kernel::BaseFlowGraphBuilder::BranchIfEqual(dart::TargetEntryInstr**, dart::TargetEntryInstr**, bool) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/base_flow_graph_builder.cc:170 (run_vm_tests+0x472d3d0)
    #12 dart::kernel::PrologueBuilder::BuildTypeArgumentsLengthCheck(dart::JoinEntryInstr*, bool) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/prologue_builder.cc:133 (run_vm_tests+0x47c4667)
    #13 dart::kernel::PrologueBuilder::BuildPrologue(dart::BlockEntryInstr*, dart::PrologueInfo*) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/prologue_builder.cc:63 (run_vm_tests+0x47c41a6)
    #14 dart::kernel::FlowGraphBuilder::BuildPrologue(dart::BlockEntryInstr*, dart::PrologueInfo*) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/kernel_to_il.cc:1748 (run_vm_tests+0x479b23c)
    #15 dart::kernel::StreamingFlowGraphBuilder::BuildGraphOfFunction(bool) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/kernel_binary_flowgraph.cc:964 (run_vm_tests+0x477984a)
    #16 dart::kernel::StreamingFlowGraphBuilder::BuildGraph() ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/kernel_binary_flowgraph.cc:1148 (run_vm_tests+0x477a25a)
    #17 dart::kernel::FlowGraphBuilder::BuildGraph() ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/kernel_to_il.cc:744 (run_vm_tests+0x4797da0)
    #18 dart::DartCompilationPipeline::BuildFlowGraph(dart::Zone*, dart::ParsedFunction*, dart::ZoneGrowableArray<dart::ICData const*>*, long, bool) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:139 (run_vm_tests+0x4119d71)
    #19 dart::CompileParsedFunctionHelper::Compile(dart::CompilationPipeline*) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:574 (run_vm_tests+0x411b9ff)
    #20 dart::CompileFunctionHelper(dart::CompilationPipeline*, dart::Function const&, bool, long) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:755 (run_vm_tests+0x411ce3b)
    #21 dart::Compiler::CompileFunction(dart::Thread*, dart::Function const&) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:891 (run_vm_tests+0x411c719)
    #22 dart::DRT_HelperCompileFunction(dart::Isolate*, dart::Thread*, dart::Zone*, dart::NativeArguments) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:232 (run_vm_tests+0x411a44a)
    #23 dart::DRT_CompileFunction(dart::NativeArguments) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:208 (run_vm_tests+0x411a44a)
    #24 <null> <null> (memfd:dart-codespace (deleted)+0x1352)
    #25 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/dart_entry.cc:171 (run_vm_tests+0x3e5fc4a)
    #26 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&) ../../out/ReleaseTSANX64/../../runtime/vm/dart_entry.cc:39 (run_vm_tests+0x3e631df)
    #27 dart::DartLibraryCalls::HandleMessage(dart::Object const&, dart::Instance const&) ../../out/ReleaseTSANX64/../../runtime/vm/dart_entry.cc:712 (run_vm_tests+0x3e631df)
    #28 dart::IsolateMessageHandler::HandleMessage(std::__2::unique_ptr<dart::Message, std::__2::default_delete<dart::Message> >) ../../out/ReleaseTSANX64/../../runtime/vm/isolate.cc:1312 (run_vm_tests+0x3ece5d8)
    #29 dart::MessageHandler::HandleMessages(dart::MonitorLocker*, bool, bool) ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:233 (run_vm_tests+0x3f19920)
    #30 dart::MessageHandler::TaskCallback() ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:443 (run_vm_tests+0x3f1a324)
    #31 dart::MessageHandlerTask::Run() ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:31 (run_vm_tests+0x3f1ad13)
    #32 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:158 (run_vm_tests+0x40f36bc)
    #33 dart::ThreadPool::Worker::Main(unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:323 (run_vm_tests+0x40f40a5)
    #34 dart::ThreadStart(void*) ../../out/ReleaseTSANX64/../../runtime/vm/os_thread_linux.cc:153 (run_vm_tests+0x3ffeb42)

  Thread T8 'DartWorker' (tid=26026, running) created by main thread at:
    #0 pthread_create ../recipe_cleanup/clangshYTOG/llvm_build_dir/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:962 (run_vm_tests+0x392009b)
    #1 dart::OSThread::Start(char const*, void (*)(unsigned long), unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/os_thread_linux.cc:172 (run_vm_tests+0x3ffe9cc)
    #2 dart::ThreadPool::Worker::StartThread() ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:296 (run_vm_tests+0x40f2d79)
    #3 dart::ThreadPool::RunImpl(std::__2::unique_ptr<dart::ThreadPool::Task, std::__2::default_delete<dart::ThreadPool::Task> >) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:94 (run_vm_tests+0x40f2d79)
    #4 bool dart::ThreadPool::Run<dart::MessageHandlerTask, dart::MessageHandler*>(dart::MessageHandler*&&) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.h:46 (run_vm_tests+0x3f1961b)
    #5 dart::MessageHandler::PostMessage(std::__2::unique_ptr<dart::Message, std::__2::default_delete<dart::Message> >, bool) ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:165 (run_vm_tests+0x3f1961b)
    #6 dart::PortMap::PostMessage(std::__2::unique_ptr<dart::Message, std::__2::default_delete<dart::Message> >, bool) ../../out/ReleaseTSANX64/../../runtime/vm/port.cc:197 (run_vm_tests+0x40024aa)
    #7 dart::PostCObjectHelper(long, _Dart_CObject*) ../../out/ReleaseTSANX64/../../runtime/vm/native_api_impl.cc:54 (run_vm_tests+0x48583b2)
    #8 Dart_PostCObject ../../out/ReleaseTSANX64/../../runtime/vm/native_api_impl.cc:58 (run_vm_tests+0x48583b2)
    #9 dart::KernelCompilationRequest::SendAndWaitForResponse(int, long, char const*, unsigned char const*, long, int, Dart_SourceFile*, bool, char const*, char const*, char const*, dart::MallocGrowableArray<char*> const*, char const*) ../../out/ReleaseTSANX64/../../runtime/vm/kernel_isolate.cc:865 (run_vm_tests+0x3f042f2)
    #10 dart::KernelIsolate::AcceptCompilation() ../../out/ReleaseTSANX64/../../runtime/vm/kernel_isolate.cc:1085 (run_vm_tests+0x3f049df)
    #11 dart::TestCase::CompileTestScriptWithDFE(char const*, int, Dart_SourceFile*, unsigned char const**, long*, bool, bool, char const*, char const*) ../../out/ReleaseTSANX64/../../runtime/vm/unit_test.cc:331 (run_vm_tests+0x3b220c1)
    #12 dart::TestCase::LoadTestScriptWithDFE(int, Dart_SourceFile*, void (*(*)(_Dart_Handle*, int, bool*))(_Dart_NativeArguments*), bool, bool, bool, char const*, char const*, char const*) ../../out/ReleaseTSANX64/../../runtime/vm/unit_test.cc:481 (run_vm_tests+0x3b22709)
    #13 dart::TestCase::LoadTestScript(char const*, void (*(*)(_Dart_Handle*, int, bool*))(_Dart_NativeArguments*), char const*, bool, bool) ../../out/ReleaseTSANX64/../../runtime/vm/unit_test.cc:429 (run_vm_tests+0x3b225cb)
    #14 dart::LoadTestScript(char const*) ../../out/ReleaseTSANX64/../../runtime/vm/profiler_test.cc:162 (run_vm_tests+0x3ad1be9)
    #15 dart::Dart_TestHelperProfiler_FunctionTicks(dart::Thread*) ../../out/ReleaseTSANX64/../../runtime/vm/profiler_test.cc:801 (run_vm_tests+0x3ab8a0a)
    #16 dart::Dart_TestProfiler_FunctionTicks() ../../out/ReleaseTSANX64/../../runtime/vm/profiler_test.cc:783 (run_vm_tests+0x3ab8a0a)
    #17 dart::TestCase::Run() ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:52 (run_vm_tests+0x39903ac)
    #18 dart::TestCaseBase::RunTest() ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:64 (run_vm_tests+0x3990581)
    #19 dart::TestCaseBase::RunAll() ../../out/ReleaseTSANX64/../../runtime/vm/unit_test.cc:86 (run_vm_tests+0x3b20f48)
    #20 dart::Main(int, char const**) ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:393 (run_vm_tests+0x3991093)
    #21 main ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:424 (run_vm_tests+0x39908fe)

SUMMARY: ThreadSanitizer: data race ../recipe_cleanup/clangshYTOG/llvm_build_dir/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/rtl/tsan_new_delete.cpp:126 in operator delete(void*)
==================
==================
WARNING: ThreadSanitizer: data race (pid=25954)
  Write of size 8 at 0x7b0c00000740 by main thread:
    #0 operator delete(void*) ../recipe_cleanup/clangshYTOG/llvm_build_dir/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/rtl/tsan_new_delete.cpp:126 (run_vm_tests+0x398dc3e)
    #1 ~SampleBuffer ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:218 (run_vm_tests+0x4004868)
    #2 dart::Profiler::Cleanup() ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:110 (run_vm_tests+0x4004430)
    #3 dart::Dart::Cleanup() ../../out/ReleaseTSANX64/../../runtime/vm/dart.cc:485 (run_vm_tests+0x3e540e9)
    #4 dart::Main(int, char const**) ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:398 (run_vm_tests+0x39910ae)
    #5 main ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:424 (run_vm_tests+0x39908fe)

  Previous atomic write of size 8 at 0x7b0c00000740 by thread T8:
    #0 __tsan_atomic64_fetch_add ../recipe_cleanup/clangshYTOG/llvm_build_dir/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cpp:620 (run_vm_tests+0x396ae75)
    #1 unsigned long std::__2::__cxx_atomic_fetch_add<unsigned long>(std::__2::__cxx_atomic_base_impl<unsigned long>*, unsigned long, std::__2::memory_order) ../../out/ReleaseTSANX64/../../buildtools/linux-x64/clang/bin/../include/c++/v1/atomic:1021 (run_vm_tests+0x4004a55)
    #2 std::__2::__atomic_base<unsigned long, true>::fetch_add(unsigned long, std::__2::memory_order) ../../out/ReleaseTSANX64/../../buildtools/linux-x64/clang/bin/../include/c++/v1/atomic:1682 (run_vm_tests+0x4004a55)
    #3 dart::RelaxedAtomic<unsigned long>::fetch_add(unsigned long, std::__2::memory_order) ../../out/ReleaseTSANX64/../../runtime/platform/atomic.h:29 (run_vm_tests+0x4004a55)
    #4 dart::SampleBuffer::ReserveSampleSlot() ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:235 (run_vm_tests+0x4004a55)
    #5 dart::SampleBuffer::ReserveSample() ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:242 (run_vm_tests+0x4004a55)
    #6 dart::SetupSample(dart::Thread*, dart::SampleBuffer*, unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:1036 (run_vm_tests+0x40079cd)
    #7 dart::Profiler::SampleThreadSingleFrame(dart::Thread*, unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:1314 (run_vm_tests+0x40079cd)
    #8 dart::Profiler::SampleThread(dart::Thread*, dart::InterruptedThreadState const&) ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:1391 (run_vm_tests+0x40079cd)
    #9 dart::ThreadInterrupterLinux::ThreadInterruptSignalHandler(int, siginfo_t*, void*) ../../out/ReleaseTSANX64/../../runtime/vm/thread_interrupter_linux.cc:47 (run_vm_tests+0x40f24b7)
    #10 __tsan::CallUserSignalHandler(__tsan::ThreadState*, bool, bool, bool, int, __sanitizer::__sanitizer_siginfo*, void*) ../recipe_cleanup/clangshYTOG/llvm_build_dir/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1907 (run_vm_tests+0x392682f)
    #11 Instruction ../../out/ReleaseTSANX64/../../runtime/vm/compiler/backend/il.h:781 (run_vm_tests+0x472b8a8)
    #12 BlockEntryInstr ../../out/ReleaseTSANX64/../../runtime/vm/compiler/backend/il.h:1479 (run_vm_tests+0x472b8a8)
    #13 TargetEntryInstr ../../out/ReleaseTSANX64/../../runtime/vm/compiler/backend/il.h:1796 (run_vm_tests+0x472b8a8)
    #14 dart::kernel::BaseFlowGraphBuilder::BuildTargetEntry() ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/base_flow_graph_builder.cc:749 (run_vm_tests+0x472b8a8)
    #15 dart::kernel::BaseFlowGraphBuilder::BranchIfEqual(dart::TargetEntryInstr**, dart::TargetEntryInstr**, bool) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/base_flow_graph_builder.cc:170 (run_vm_tests+0x472d3d0)
    #16 dart::kernel::PrologueBuilder::BuildTypeArgumentsLengthCheck(dart::JoinEntryInstr*, bool) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/prologue_builder.cc:133 (run_vm_tests+0x47c4667)
    #17 dart::kernel::PrologueBuilder::BuildPrologue(dart::BlockEntryInstr*, dart::PrologueInfo*) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/prologue_builder.cc:63 (run_vm_tests+0x47c41a6)
    #18 dart::kernel::FlowGraphBuilder::BuildPrologue(dart::BlockEntryInstr*, dart::PrologueInfo*) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/kernel_to_il.cc:1748 (run_vm_tests+0x479b23c)
    #19 dart::kernel::StreamingFlowGraphBuilder::BuildGraphOfFunction(bool) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/kernel_binary_flowgraph.cc:964 (run_vm_tests+0x477984a)
    #20 dart::kernel::StreamingFlowGraphBuilder::BuildGraph() ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/kernel_binary_flowgraph.cc:1148 (run_vm_tests+0x477a25a)
    #21 dart::kernel::FlowGraphBuilder::BuildGraph() ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/kernel_to_il.cc:744 (run_vm_tests+0x4797da0)
    #22 dart::DartCompilationPipeline::BuildFlowGraph(dart::Zone*, dart::ParsedFunction*, dart::ZoneGrowableArray<dart::ICData const*>*, long, bool) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:139 (run_vm_tests+0x4119d71)
    #23 dart::CompileParsedFunctionHelper::Compile(dart::CompilationPipeline*) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:574 (run_vm_tests+0x411b9ff)
    #24 dart::CompileFunctionHelper(dart::CompilationPipeline*, dart::Function const&, bool, long) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:755 (run_vm_tests+0x411ce3b)
    #25 dart::Compiler::CompileFunction(dart::Thread*, dart::Function const&) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:891 (run_vm_tests+0x411c719)
    #26 dart::DRT_HelperCompileFunction(dart::Isolate*, dart::Thread*, dart::Zone*, dart::NativeArguments) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:232 (run_vm_tests+0x411a44a)
    #27 dart::DRT_CompileFunction(dart::NativeArguments) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:208 (run_vm_tests+0x411a44a)
    #28 <null> <null> (memfd:dart-codespace (deleted)+0x1352)
    #29 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/dart_entry.cc:171 (run_vm_tests+0x3e5fc4a)
    #30 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&) ../../out/ReleaseTSANX64/../../runtime/vm/dart_entry.cc:39 (run_vm_tests+0x3e631df)
    #31 dart::DartLibraryCalls::HandleMessage(dart::Object const&, dart::Instance const&) ../../out/ReleaseTSANX64/../../runtime/vm/dart_entry.cc:712 (run_vm_tests+0x3e631df)
    #32 dart::IsolateMessageHandler::HandleMessage(std::__2::unique_ptr<dart::Message, std::__2::default_delete<dart::Message> >) ../../out/ReleaseTSANX64/../../runtime/vm/isolate.cc:1312 (run_vm_tests+0x3ece5d8)
    #33 dart::MessageHandler::HandleMessages(dart::MonitorLocker*, bool, bool) ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:233 (run_vm_tests+0x3f19920)
    #34 dart::MessageHandler::TaskCallback() ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:443 (run_vm_tests+0x3f1a324)
    #35 dart::MessageHandlerTask::Run() ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:31 (run_vm_tests+0x3f1ad13)
    #36 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:158 (run_vm_tests+0x40f36bc)
    #37 dart::ThreadPool::Worker::Main(unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:323 (run_vm_tests+0x40f40a5)
    #38 dart::ThreadStart(void*) ../../out/ReleaseTSANX64/../../runtime/vm/os_thread_linux.cc:153 (run_vm_tests+0x3ffeb42)

  Thread T8 'DartWorker' (tid=26026, running) created by main thread at:
    #0 pthread_create ../recipe_cleanup/clangshYTOG/llvm_build_dir/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:962 (run_vm_tests+0x392009b)
    #1 dart::OSThread::Start(char const*, void (*)(unsigned long), unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/os_thread_linux.cc:172 (run_vm_tests+0x3ffe9cc)
    #2 dart::ThreadPool::Worker::StartThread() ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:296 (run_vm_tests+0x40f2d79)
    #3 dart::ThreadPool::RunImpl(std::__2::unique_ptr<dart::ThreadPool::Task, std::__2::default_delete<dart::ThreadPool::Task> >) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:94 (run_vm_tests+0x40f2d79)
    #4 bool dart::ThreadPool::Run<dart::MessageHandlerTask, dart::MessageHandler*>(dart::MessageHandler*&&) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.h:46 (run_vm_tests+0x3f1961b)
    #5 dart::MessageHandler::PostMessage(std::__2::unique_ptr<dart::Message, std::__2::default_delete<dart::Message> >, bool) ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:165 (run_vm_tests+0x3f1961b)
    #6 dart::PortMap::PostMessage(std::__2::unique_ptr<dart::Message, std::__2::default_delete<dart::Message> >, bool) ../../out/ReleaseTSANX64/../../runtime/vm/port.cc:197 (run_vm_tests+0x40024aa)
    #7 dart::PostCObjectHelper(long, _Dart_CObject*) ../../out/ReleaseTSANX64/../../runtime/vm/native_api_impl.cc:54 (run_vm_tests+0x48583b2)
    #8 Dart_PostCObject ../../out/ReleaseTSANX64/../../runtime/vm/native_api_impl.cc:58 (run_vm_tests+0x48583b2)
    #9 dart::KernelCompilationRequest::SendAndWaitForResponse(int, long, char const*, unsigned char const*, long, int, Dart_SourceFile*, bool, char const*, char const*, char const*, dart::MallocGrowableArray<char*> const*, char const*) ../../out/ReleaseTSANX64/../../runtime/vm/kernel_isolate.cc:865 (run_vm_tests+0x3f042f2)
    #10 dart::KernelIsolate::AcceptCompilation() ../../out/ReleaseTSANX64/../../runtime/vm/kernel_isolate.cc:1085 (run_vm_tests+0x3f049df)
    #11 dart::TestCase::CompileTestScriptWithDFE(char const*, int, Dart_SourceFile*, unsigned char const**, long*, bool, bool, char const*, char const*) ../../out/ReleaseTSANX64/../../runtime/vm/unit_test.cc:331 (run_vm_tests+0x3b220c1)
    #12 dart::TestCase::LoadTestScriptWithDFE(int, Dart_SourceFile*, void (*(*)(_Dart_Handle*, int, bool*))(_Dart_NativeArguments*), bool, bool, bool, char const*, char const*, char const*) ../../out/ReleaseTSANX64/../../runtime/vm/unit_test.cc:481 (run_vm_tests+0x3b22709)
    #13 dart::TestCase::LoadTestScript(char const*, void (*(*)(_Dart_Handle*, int, bool*))(_Dart_NativeArguments*), char const*, bool, bool) ../../out/ReleaseTSANX64/../../runtime/vm/unit_test.cc:429 (run_vm_tests+0x3b225cb)
    #14 dart::LoadTestScript(char const*) ../../out/ReleaseTSANX64/../../runtime/vm/profiler_test.cc:162 (run_vm_tests+0x3ad1be9)
    #15 dart::Dart_TestHelperProfiler_FunctionTicks(dart::Thread*) ../../out/ReleaseTSANX64/../../runtime/vm/profiler_test.cc:801 (run_vm_tests+0x3ab8a0a)
    #16 dart::Dart_TestProfiler_FunctionTicks() ../../out/ReleaseTSANX64/../../runtime/vm/profiler_test.cc:783 (run_vm_tests+0x3ab8a0a)
    #17 dart::TestCase::Run() ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:52 (run_vm_tests+0x39903ac)
    #18 dart::TestCaseBase::RunTest() ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:64 (run_vm_tests+0x3990581)
    #19 dart::TestCaseBase::RunAll() ../../out/ReleaseTSANX64/../../runtime/vm/unit_test.cc:86 (run_vm_tests+0x3b20f48)
    #20 dart::Main(int, char const**) ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:393 (run_vm_tests+0x3991093)
    #21 main ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:424 (run_vm_tests+0x39908fe)

SUMMARY: ThreadSanitizer: data race ../recipe_cleanup/clangshYTOG/llvm_build_dir/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/rtl/tsan_new_delete.cpp:126 in operator delete(void*)
==================
==================
WARNING: ThreadSanitizer: data race (pid=25954)
  Write of size 8 at 0x55974b022ed8 by main thread:
    #0 dart::Profiler::Cleanup() ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:111 (run_vm_tests+0x4004438)
    #1 dart::Dart::Cleanup() ../../out/ReleaseTSANX64/../../runtime/vm/dart.cc:485 (run_vm_tests+0x3e540e9)
    #2 dart::Main(int, char const**) ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:398 (run_vm_tests+0x39910ae)
    #3 main ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:424 (run_vm_tests+0x39908fe)

  Previous read of size 8 at 0x55974b022ed8 by thread T8:
    #0 dart::Profiler::sample_buffer() ../../out/ReleaseTSANX64/../../runtime/vm/profiler.h:72 (run_vm_tests+0x4007993)
    #1 dart::Profiler::SampleThreadSingleFrame(dart::Thread*, unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:1307 (run_vm_tests+0x4007993)
    #2 dart::Profiler::SampleThread(dart::Thread*, dart::InterruptedThreadState const&) ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:1391 (run_vm_tests+0x4007993)
    #3 dart::ThreadInterrupterLinux::ThreadInterruptSignalHandler(int, siginfo_t*, void*) ../../out/ReleaseTSANX64/../../runtime/vm/thread_interrupter_linux.cc:47 (run_vm_tests+0x40f24b7)
    #4 __tsan::CallUserSignalHandler(__tsan::ThreadState*, bool, bool, bool, int, __sanitizer::__sanitizer_siginfo*, void*) ../recipe_cleanup/clangshYTOG/llvm_build_dir/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1907 (run_vm_tests+0x392682f)
    #5 Instruction ../../out/ReleaseTSANX64/../../runtime/vm/compiler/backend/il.h:781 (run_vm_tests+0x472b8a8)
    #6 BlockEntryInstr ../../out/ReleaseTSANX64/../../runtime/vm/compiler/backend/il.h:1479 (run_vm_tests+0x472b8a8)
    #7 TargetEntryInstr ../../out/ReleaseTSANX64/../../runtime/vm/compiler/backend/il.h:1796 (run_vm_tests+0x472b8a8)
    #8 dart::kernel::BaseFlowGraphBuilder::BuildTargetEntry() ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/base_flow_graph_builder.cc:749 (run_vm_tests+0x472b8a8)
    #9 dart::kernel::BaseFlowGraphBuilder::BranchIfEqual(dart::TargetEntryInstr**, dart::TargetEntryInstr**, bool) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/base_flow_graph_builder.cc:170 (run_vm_tests+0x472d3d0)
    #10 dart::kernel::PrologueBuilder::BuildTypeArgumentsLengthCheck(dart::JoinEntryInstr*, bool) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/prologue_builder.cc:133 (run_vm_tests+0x47c4667)
    #11 dart::kernel::PrologueBuilder::BuildPrologue(dart::BlockEntryInstr*, dart::PrologueInfo*) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/prologue_builder.cc:63 (run_vm_tests+0x47c41a6)
    #12 dart::kernel::FlowGraphBuilder::BuildPrologue(dart::BlockEntryInstr*, dart::PrologueInfo*) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/kernel_to_il.cc:1748 (run_vm_tests+0x479b23c)
    #13 dart::kernel::StreamingFlowGraphBuilder::BuildGraphOfFunction(bool) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/kernel_binary_flowgraph.cc:964 (run_vm_tests+0x477984a)
    #14 dart::kernel::StreamingFlowGraphBuilder::BuildGraph() ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/kernel_binary_flowgraph.cc:1148 (run_vm_tests+0x477a25a)
    #15 dart::kernel::FlowGraphBuilder::BuildGraph() ../../out/ReleaseTSANX64/../../runtime/vm/compiler/frontend/kernel_to_il.cc:744 (run_vm_tests+0x4797da0)
    #16 dart::DartCompilationPipeline::BuildFlowGraph(dart::Zone*, dart::ParsedFunction*, dart::ZoneGrowableArray<dart::ICData const*>*, long, bool) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:139 (run_vm_tests+0x4119d71)
    #17 dart::CompileParsedFunctionHelper::Compile(dart::CompilationPipeline*) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:574 (run_vm_tests+0x411b9ff)
    #18 dart::CompileFunctionHelper(dart::CompilationPipeline*, dart::Function const&, bool, long) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:755 (run_vm_tests+0x411ce3b)
    #19 dart::Compiler::CompileFunction(dart::Thread*, dart::Function const&) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:891 (run_vm_tests+0x411c719)
    #20 dart::DRT_HelperCompileFunction(dart::Isolate*, dart::Thread*, dart::Zone*, dart::NativeArguments) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:232 (run_vm_tests+0x411a44a)
    #21 dart::DRT_CompileFunction(dart::NativeArguments) ../../out/ReleaseTSANX64/../../runtime/vm/compiler/jit/compiler.cc:208 (run_vm_tests+0x411a44a)
    #22 <null> <null> (memfd:dart-codespace (deleted)+0x1352)
    #23 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/dart_entry.cc:171 (run_vm_tests+0x3e5fc4a)
    #24 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&) ../../out/ReleaseTSANX64/../../runtime/vm/dart_entry.cc:39 (run_vm_tests+0x3e631df)
    #25 dart::DartLibraryCalls::HandleMessage(dart::Object const&, dart::Instance const&) ../../out/ReleaseTSANX64/../../runtime/vm/dart_entry.cc:712 (run_vm_tests+0x3e631df)
    #26 dart::IsolateMessageHandler::HandleMessage(std::__2::unique_ptr<dart::Message, std::__2::default_delete<dart::Message> >) ../../out/ReleaseTSANX64/../../runtime/vm/isolate.cc:1312 (run_vm_tests+0x3ece5d8)
    #27 dart::MessageHandler::HandleMessages(dart::MonitorLocker*, bool, bool) ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:233 (run_vm_tests+0x3f19920)
    #28 dart::MessageHandler::TaskCallback() ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:443 (run_vm_tests+0x3f1a324)
    #29 dart::MessageHandlerTask::Run() ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:31 (run_vm_tests+0x3f1ad13)
    #30 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:158 (run_vm_tests+0x40f36bc)
    #31 dart::ThreadPool::Worker::Main(unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:323 (run_vm_tests+0x40f40a5)
    #32 dart::ThreadStart(void*) ../../out/ReleaseTSANX64/../../runtime/vm/os_thread_linux.cc:153 (run_vm_tests+0x3ffeb42)

  Location is global '<null>' at 0x000000000000 (run_vm_tests+0x000005430ed8)

  Thread T8 'DartWorker' (tid=26026, running) created by main thread at:
    #0 pthread_create ../recipe_cleanup/clangshYTOG/llvm_build_dir/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:962 (run_vm_tests+0x392009b)
    #1 dart::OSThread::Start(char const*, void (*)(unsigned long), unsigned long) ../../out/ReleaseTSANX64/../../runtime/vm/os_thread_linux.cc:172 (run_vm_tests+0x3ffe9cc)
    #2 dart::ThreadPool::Worker::StartThread() ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:296 (run_vm_tests+0x40f2d79)
    #3 dart::ThreadPool::RunImpl(std::__2::unique_ptr<dart::ThreadPool::Task, std::__2::default_delete<dart::ThreadPool::Task> >) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.cc:94 (run_vm_tests+0x40f2d79)
    #4 bool dart::ThreadPool::Run<dart::MessageHandlerTask, dart::MessageHandler*>(dart::MessageHandler*&&) ../../out/ReleaseTSANX64/../../runtime/vm/thread_pool.h:46 (run_vm_tests+0x3f1961b)
    #5 dart::MessageHandler::PostMessage(std::__2::unique_ptr<dart::Message, std::__2::default_delete<dart::Message> >, bool) ../../out/ReleaseTSANX64/../../runtime/vm/message_handler.cc:165 (run_vm_tests+0x3f1961b)
    #6 dart::PortMap::PostMessage(std::__2::unique_ptr<dart::Message, std::__2::default_delete<dart::Message> >, bool) ../../out/ReleaseTSANX64/../../runtime/vm/port.cc:197 (run_vm_tests+0x40024aa)
    #7 dart::PostCObjectHelper(long, _Dart_CObject*) ../../out/ReleaseTSANX64/../../runtime/vm/native_api_impl.cc:54 (run_vm_tests+0x48583b2)
    #8 Dart_PostCObject ../../out/ReleaseTSANX64/../../runtime/vm/native_api_impl.cc:58 (run_vm_tests+0x48583b2)
    #9 dart::KernelCompilationRequest::SendAndWaitForResponse(int, long, char const*, unsigned char const*, long, int, Dart_SourceFile*, bool, char const*, char const*, char const*, dart::MallocGrowableArray<char*> const*, char const*) ../../out/ReleaseTSANX64/../../runtime/vm/kernel_isolate.cc:865 (run_vm_tests+0x3f042f2)
    #10 dart::KernelIsolate::AcceptCompilation() ../../out/ReleaseTSANX64/../../runtime/vm/kernel_isolate.cc:1085 (run_vm_tests+0x3f049df)
    #11 dart::TestCase::CompileTestScriptWithDFE(char const*, int, Dart_SourceFile*, unsigned char const**, long*, bool, bool, char const*, char const*) ../../out/ReleaseTSANX64/../../runtime/vm/unit_test.cc:331 (run_vm_tests+0x3b220c1)
    #12 dart::TestCase::LoadTestScriptWithDFE(int, Dart_SourceFile*, void (*(*)(_Dart_Handle*, int, bool*))(_Dart_NativeArguments*), bool, bool, bool, char const*, char const*, char const*) ../../out/ReleaseTSANX64/../../runtime/vm/unit_test.cc:481 (run_vm_tests+0x3b22709)
    #13 dart::TestCase::LoadTestScript(char const*, void (*(*)(_Dart_Handle*, int, bool*))(_Dart_NativeArguments*), char const*, bool, bool) ../../out/ReleaseTSANX64/../../runtime/vm/unit_test.cc:429 (run_vm_tests+0x3b225cb)
    #14 dart::LoadTestScript(char const*) ../../out/ReleaseTSANX64/../../runtime/vm/profiler_test.cc:162 (run_vm_tests+0x3ad1be9)
    #15 dart::Dart_TestHelperProfiler_FunctionTicks(dart::Thread*) ../../out/ReleaseTSANX64/../../runtime/vm/profiler_test.cc:801 (run_vm_tests+0x3ab8a0a)
    #16 dart::Dart_TestProfiler_FunctionTicks() ../../out/ReleaseTSANX64/../../runtime/vm/profiler_test.cc:783 (run_vm_tests+0x3ab8a0a)
    #17 dart::TestCase::Run() ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:52 (run_vm_tests+0x39903ac)
    #18 dart::TestCaseBase::RunTest() ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:64 (run_vm_tests+0x3990581)
    #19 dart::TestCaseBase::RunAll() ../../out/ReleaseTSANX64/../../runtime/vm/unit_test.cc:86 (run_vm_tests+0x3b20f48)
    #20 dart::Main(int, char const**) ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:393 (run_vm_tests+0x3991093)
    #21 main ../../out/ReleaseTSANX64/../../runtime/bin/run_vm_tests.cc:424 (run_vm_tests+0x39908fe)

SUMMARY: ThreadSanitizer: data race ../../out/ReleaseTSANX64/../../runtime/vm/profiler.cc:111 in dart::Profiler::Cleanup()
==================
ThreadSanitizer: reported 5 warnings

--- Re-run this test:
python tools/test.py -n dartk-tsan-linux-release-x64 vm/cc/Profiler_FunctionTicks

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.gardening

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions