Back to build
Raw log | Switch to full mode | Login

Test 'NetworkServiceTest.CreateAndDestroyContext' completed with the following status(es): 'FAILURE_ON_EXIT','SUCCESS' Test 'NetworkServiceTest.CreateAndDestroyContext' had the following logs when run: ================================================================================ [ RUN ] NetworkServiceTest.CreateAndDestroyContext ================== WARNING: ThreadSanitizer: data race (pid=2212) Write of size 8 at 0x7b18000071d8 by main thread: #0 reset buildtools/third_party/libc++/trunk/include/memory:2649:20 (services_unittests+0x4eaf400) #1 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4eaf400) #2 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4eaf400) #3 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6904) #4 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6939) #5 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f09218) #6 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f09218) #7 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f09218) #8 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5f09218) #9 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5f09279) #10 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f44681) #11 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f44681) #12 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f44681) #13 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f44681) #14 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f44a99) #15 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1d5e71b) #16 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1d5e71b) #17 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1d5e71b) #18 ~NetworkServiceTest services/network/network_service_unittest.cc:87 (services_unittests+0x1d5e71b) #19 network::(anonymous namespace)::NetworkServiceTest_CreateAndDestroyContext_Test::~NetworkServiceTest_CreateAndDestroyContext_Test() services/network/network_service_unittest.cc:100 (services_unittests+0x1d5e71b) #20 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2decfee) #21 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2decfee) #22 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dedb36) #23 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2dfffb6) #24 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dff419) #25 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2dff419) #26 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5df42e2) #27 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5df42e2) #28 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1ff7708) #29 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1ff7708) #30 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1ff7708) #31 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1ff7708) #32 Run base/callback.h:97:12 (services_unittests+0x5dfd8ab) #33 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5dfd8ab) #34 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5dfd710) #35 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1ff733f) Previous read of size 8 at 0x7b18000071d8 by thread T10: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (services_unittests+0x4eae69b) #1 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4eae69b) #2 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4eb6aa4) #3 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4eb6aa4) #4 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4eb6aa4) #5 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (services_unittests+0x4eb6aa4) #6 Run base/callback.h:136:12 (services_unittests+0x29e03c3) #7 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29e03c3) #8 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29e03c3) #9 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x2a1425c) #10 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x2a11f2b) #11 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x2a121da) #12 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x2a121da) #13 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x2a121da) #14 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x2a121da) #15 Run base/callback.h:97:12 (services_unittests+0x4498598) #16 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4498598) #17 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4498687) #18 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4498687) #19 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4498687) #20 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x4498687) #21 Run base/callback.h:97:12 (services_unittests+0x4458c2a) #22 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x4458c2a) #23 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x447b1d1) #24 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x447ae17) #25 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x447ae17) #26 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44eed9f) #27 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5def988) #28 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x447a5d7) #29 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x4488010) #30 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #31 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #32 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) Location is heap block of size 96 at 0x7b18000071a0 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (services_unittests+0x1b5fb88) #1 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:10 (services_unittests+0x4eac37f) #2 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:108:29 (services_unittests+0x5f43e93) #3 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:285 (services_unittests+0x5f43e93) #4 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>, bool) services/network/network_service.cc:245:5 (services_unittests+0x5f43843) #5 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x5f44e64) #6 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:370:10 (services_unittests+0x5f44d75) #7 network::NetworkService::CreateForTesting() services/network/network_service.cc:365:10 (services_unittests+0x5f44cc4) #8 NetworkServiceTest services/network/network_service_unittest.cc:86:18 (services_unittests+0x1d5e693) #9 NetworkServiceTest_CreateAndDestroyContext_Test services/network/network_service_unittest.cc:100 (services_unittests+0x1d5e693) #10 testing::internal::TestFactoryImpl<network::(anonymous namespace)::NetworkServiceTest_CreateAndDestroyContext_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (services_unittests+0x1d5e693) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2decdaf) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2678 (services_unittests+0x2decdaf) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dedb36) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2dfffb6) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dff419) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2dff419) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5df42e2) #18 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5df42e2) #19 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1ff7708) #20 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1ff7708) #21 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1ff7708) #22 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1ff7708) #23 Run base/callback.h:97:12 (services_unittests+0x5dfd8ab) #24 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5dfd8ab) #25 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5dfd710) #26 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1ff733f) Thread T10 'ThreadPoolForeg' (tid=2508, running) created by thread T9 at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (services_unittests+0x1ae1b29) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44ef2f7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44ef1f5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x448764d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x448616b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x448616b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x448616b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x4483dee) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x4483af9) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x4487fde) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2649:20 in reset ================== ================== WARNING: ThreadSanitizer: data race (pid=2212) Read of size 8 at 0x7b3000000668 by main thread: #0 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539:37 (services_unittests+0x29dad7d) #1 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x29dad7d) #2 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x29dad7d) #3 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4eaf416) #4 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4eaf416) #5 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4eaf416) #6 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4eaf416) #7 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4eaf416) #8 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6904) #9 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6939) #10 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f09218) #11 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f09218) #12 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f09218) #13 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5f09218) #14 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5f09279) #15 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f44681) #16 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f44681) #17 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f44681) #18 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f44681) #19 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f44a99) #20 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1d5e71b) #21 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1d5e71b) #22 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1d5e71b) #23 ~NetworkServiceTest services/network/network_service_unittest.cc:87 (services_unittests+0x1d5e71b) #24 network::(anonymous namespace)::NetworkServiceTest_CreateAndDestroyContext_Test::~NetworkServiceTest_CreateAndDestroyContext_Test() services/network/network_service_unittest.cc:100 (services_unittests+0x1d5e71b) #25 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2decfee) #26 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2decfee) #27 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dedb36) #28 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2dfffb6) #29 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dff419) #30 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2dff419) #31 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5df42e2) #32 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5df42e2) #33 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1ff7708) #34 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1ff7708) #35 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1ff7708) #36 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1ff7708) #37 Run base/callback.h:97:12 (services_unittests+0x5dfd8ab) #38 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5dfd8ab) #39 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5dfd710) #40 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1ff733f) Previous write of size 8 at 0x7b3000000668 by thread T10 (mutexes: write M220530352853091840): #0 __node_insert_multi_perform buildtools/third_party/libc++/trunk/include/__hash_table:2014:23 (services_unittests+0x29dcaa9) #1 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi(std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*) buildtools/third_party/libc++/trunk/include/__hash_table:2042 (services_unittests+0x29dcaa9) #2 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x29dc5ee) #3 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x29dc5ee) #4 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x29dc5ee) #5 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29dafa3) #6 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29dafa3) #7 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29dafa3) #8 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4eae6b3) #9 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4eae6b3) #10 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4eb6aa4) #11 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4eb6aa4) #12 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4eb6aa4) #13 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (services_unittests+0x4eb6aa4) #14 Run base/callback.h:136:12 (services_unittests+0x29e03c3) #15 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29e03c3) #16 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29e03c3) #17 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x2a1425c) #18 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x2a11f2b) #19 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x2a121da) #20 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x2a121da) #21 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x2a121da) #22 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x2a121da) #23 Run base/callback.h:97:12 (services_unittests+0x4498598) #24 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4498598) #25 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4498687) #26 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4498687) #27 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4498687) #28 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x4498687) #29 Run base/callback.h:97:12 (services_unittests+0x4458c2a) #30 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x4458c2a) #31 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x447b1d1) #32 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x447ae17) #33 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x447ae17) #34 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44eed9f) #35 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5def988) #36 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x447a5d7) #37 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x4488010) #38 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #39 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #40 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) Location is heap block of size 184 at 0x7b3000000600 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (services_unittests+0x1b5fb88) #1 net::NetworkChangeNotifier::NetworkChangeNotifier(net::NetworkChangeNotifier::NetworkChangeCalculatorParams const&) net/base/network_change_notifier.cc:643:22 (services_unittests+0x4eae1df) #2 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:92:7 (services_unittests+0x4eb66ac) #3 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (services_unittests+0x4eac3a7) #4 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:108:29 (services_unittests+0x5f43e93) #5 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:285 (services_unittests+0x5f43e93) #6 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>, bool) services/network/network_service.cc:245:5 (services_unittests+0x5f43843) #7 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x5f44e64) #8 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:370:10 (services_unittests+0x5f44d75) #9 network::NetworkService::CreateForTesting() services/network/network_service.cc:365:10 (services_unittests+0x5f44cc4) #10 NetworkServiceTest services/network/network_service_unittest.cc:86:18 (services_unittests+0x1d5e693) #11 NetworkServiceTest_CreateAndDestroyContext_Test services/network/network_service_unittest.cc:100 (services_unittests+0x1d5e693) #12 testing::internal::TestFactoryImpl<network::(anonymous namespace)::NetworkServiceTest_CreateAndDestroyContext_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (services_unittests+0x1d5e693) #13 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2decdaf) #14 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2678 (services_unittests+0x2decdaf) #15 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dedb36) #16 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2dfffb6) #17 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dff419) #18 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2dff419) #19 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5df42e2) #20 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5df42e2) #21 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1ff7708) #22 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1ff7708) #23 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1ff7708) #24 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1ff7708) #25 Run base/callback.h:97:12 (services_unittests+0x5dfd8ab) #26 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5dfd8ab) #27 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5dfd710) #28 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1ff733f) Mutex M220530352853091840 is already destroyed. Thread T10 'ThreadPoolForeg' (tid=2508, running) created by thread T9 at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (services_unittests+0x1ae1b29) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44ef2f7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44ef1f5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x448764d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x448616b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x448616b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x448616b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x4483dee) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x4483af9) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x4487fde) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/__hash_table:1539:37 in ~__hash_table ================== ================== WARNING: ThreadSanitizer: data race (pid=2212) Read of size 8 at 0x7b140001c930 by main thread: #0 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1583:39 (services_unittests+0x29dad97) #1 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x29dad97) #2 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x29dad97) #3 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x29dad97) #4 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4eaf416) #5 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4eaf416) #6 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4eaf416) #7 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4eaf416) #8 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4eaf416) #9 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6904) #10 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6939) #11 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f09218) #12 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f09218) #13 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f09218) #14 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5f09218) #15 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5f09279) #16 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f44681) #17 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f44681) #18 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f44681) #19 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f44681) #20 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f44a99) #21 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1d5e71b) #22 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1d5e71b) #23 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1d5e71b) #24 ~NetworkServiceTest services/network/network_service_unittest.cc:87 (services_unittests+0x1d5e71b) #25 network::(anonymous namespace)::NetworkServiceTest_CreateAndDestroyContext_Test::~NetworkServiceTest_CreateAndDestroyContext_Test() services/network/network_service_unittest.cc:100 (services_unittests+0x1d5e71b) #26 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2decfee) #27 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2decfee) #28 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dedb36) #29 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2dfffb6) #30 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dff419) #31 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2dff419) #32 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5df42e2) #33 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5df42e2) #34 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1ff7708) #35 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1ff7708) #36 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1ff7708) #37 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1ff7708) #38 Run base/callback.h:97:12 (services_unittests+0x5dfd8ab) #39 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5dfd8ab) #40 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5dfd710) #41 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1ff733f) Previous write of size 8 at 0x7b140001c930 by thread T10 (mutexes: write M220530352853091840): #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (services_unittests+0x1b5fb88) #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x29dc611) #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x29dc611) #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x29dc611) #4 __construct_node<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2524 (services_unittests+0x29dc611) #5 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2186 (services_unittests+0x29dc611) #6 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x29dc611) #7 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x29dc611) #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29dafa3) #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29dafa3) #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29dafa3) #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4eae6b3) #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4eae6b3) #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4eb6aa4) #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4eb6aa4) #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4eb6aa4) #16 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (services_unittests+0x4eb6aa4) #17 Run base/callback.h:136:12 (services_unittests+0x29e03c3) #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29e03c3) #19 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29e03c3) #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x2a1425c) #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x2a11f2b) #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x2a121da) #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x2a121da) #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x2a121da) #25 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x2a121da) #26 Run base/callback.h:97:12 (services_unittests+0x4498598) #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4498598) #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4498687) #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4498687) #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4498687) #31 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x4498687) #32 Run base/callback.h:97:12 (services_unittests+0x4458c2a) #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x4458c2a) #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x447b1d1) #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x447ae17) #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x447ae17) #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44eed9f) #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5def988) #39 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x447a5d7) #40 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x4488010) #41 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #42 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) Location is heap block of size 72 at 0x7b140001c930 allocated by thread T10: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (services_unittests+0x1b5fb88) #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x29dc611) #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x29dc611) #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x29dc611) #4 __construct_node<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2524 (services_unittests+0x29dc611) #5 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2186 (services_unittests+0x29dc611) #6 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x29dc611) #7 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x29dc611) #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29dafa3) #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29dafa3) #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29dafa3) #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4eae6b3) #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4eae6b3) #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4eb6aa4) #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4eb6aa4) #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4eb6aa4) #16 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (services_unittests+0x4eb6aa4) #17 Run base/callback.h:136:12 (services_unittests+0x29e03c3) #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29e03c3) #19 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29e03c3) #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x2a1425c) #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x2a11f2b) #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x2a121da) #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x2a121da) #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x2a121da) #25 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x2a121da) #26 Run base/callback.h:97:12 (services_unittests+0x4498598) #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4498598) #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4498687) #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4498687) #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4498687) #31 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x4498687) #32 Run base/callback.h:97:12 (services_unittests+0x4458c2a) #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x4458c2a) #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x447b1d1) #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x447ae17) #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x447ae17) #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44eed9f) #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5def988) #39 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x447a5d7) #40 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x4488010) #41 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #42 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) Mutex M220530352853091840 is already destroyed. Thread T10 'ThreadPoolForeg' (tid=2508, running) created by thread T9 at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (services_unittests+0x1ae1b29) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44ef2f7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44ef1f5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x448764d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x448616b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x448616b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x448616b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x4483dee) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x4483af9) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x4487fde) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/__hash_table:1583:39 in __deallocate_node ================== ================== WARNING: ThreadSanitizer: data race (pid=2212) Read of size 1 at 0x7b140001c957 by main thread: #0 __is_long buildtools/third_party/libc++/trunk/include/string:1426:39 (services_unittests+0x29dadac) #1 ~basic_string buildtools/third_party/libc++/trunk/include/string:2137 (services_unittests+0x29dadac) #2 ~pair buildtools/third_party/libc++/trunk/include/utility:315 (services_unittests+0x29dadac) #3 ~pair buildtools/third_party/libc++/trunk/include/utility:315 (services_unittests+0x29dadac) #4 __destroy<std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> > buildtools/third_party/libc++/trunk/include/memory:1747 (services_unittests+0x29dadac) #5 destroy<std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> > buildtools/third_party/libc++/trunk/include/memory:1595 (services_unittests+0x29dadac) #6 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1600 (services_unittests+0x29dadac) #7 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x29dadac) #8 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x29dadac) #9 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x29dadac) #10 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4eaf416) #11 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4eaf416) #12 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4eaf416) #13 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4eaf416) #14 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4eaf416) #15 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6904) #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6939) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f09218) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f09218) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f09218) #20 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5f09218) #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5f09279) #22 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f44681) #23 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f44681) #24 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f44681) #25 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f44681) #26 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f44a99) #27 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1d5e71b) #28 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1d5e71b) #29 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1d5e71b) #30 ~NetworkServiceTest services/network/network_service_unittest.cc:87 (services_unittests+0x1d5e71b) #31 network::(anonymous namespace)::NetworkServiceTest_CreateAndDestroyContext_Test::~NetworkServiceTest_CreateAndDestroyContext_Test() services/network/network_service_unittest.cc:100 (services_unittests+0x1d5e71b) #32 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2decfee) #33 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2decfee) #34 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dedb36) #35 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2dfffb6) #36 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dff419) #37 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2dff419) #38 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5df42e2) #39 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5df42e2) #40 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1ff7708) #41 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1ff7708) #42 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1ff7708) #43 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1ff7708) #44 Run base/callback.h:97:12 (services_unittests+0x5dfd8ab) #45 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5dfd8ab) #46 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5dfd710) #47 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1ff733f) Previous write of size 8 at 0x7b140001c950 by thread T10 (mutexes: write M220530352853091840): #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (services_unittests+0x1b5fb88) #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x29dc611) #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x29dc611) #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x29dc611) #4 __construct_node<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2524 (services_unittests+0x29dc611) #5 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2186 (services_unittests+0x29dc611) #6 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x29dc611) #7 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x29dc611) #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29dafa3) #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29dafa3) #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29dafa3) #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4eae6b3) #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4eae6b3) #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4eb6aa4) #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4eb6aa4) #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4eb6aa4) #16 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (services_unittests+0x4eb6aa4) #17 Run base/callback.h:136:12 (services_unittests+0x29e03c3) #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29e03c3) #19 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29e03c3) #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x2a1425c) #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x2a11f2b) #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x2a121da) #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x2a121da) #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x2a121da) #25 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x2a121da) #26 Run base/callback.h:97:12 (services_unittests+0x4498598) #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4498598) #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4498687) #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4498687) #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4498687) #31 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x4498687) #32 Run base/callback.h:97:12 (services_unittests+0x4458c2a) #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x4458c2a) #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x447b1d1) #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x447ae17) #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x447ae17) #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44eed9f) #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5def988) #39 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x447a5d7) #40 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x4488010) #41 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #42 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) Location is heap block of size 72 at 0x7b140001c930 allocated by thread T10: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (services_unittests+0x1b5fb88) #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x29dc611) #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x29dc611) #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x29dc611) #4 __construct_node<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2524 (services_unittests+0x29dc611) #5 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2186 (services_unittests+0x29dc611) #6 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x29dc611) #7 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x29dc611) #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29dafa3) #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29dafa3) #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29dafa3) #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4eae6b3) #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4eae6b3) #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4eb6aa4) #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4eb6aa4) #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4eb6aa4) #16 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (services_unittests+0x4eb6aa4) #17 Run base/callback.h:136:12 (services_unittests+0x29e03c3) #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29e03c3) #19 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29e03c3) #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x2a1425c) #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x2a11f2b) #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x2a121da) #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x2a121da) #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x2a121da) #25 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x2a121da) #26 Run base/callback.h:97:12 (services_unittests+0x4498598) #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4498598) #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4498687) #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4498687) #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4498687) #31 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x4498687) #32 Run base/callback.h:97:12 (services_unittests+0x4458c2a) #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x4458c2a) #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x447b1d1) #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x447ae17) #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x447ae17) #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44eed9f) #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5def988) #39 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x447a5d7) #40 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x4488010) #41 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #42 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) Mutex M220530352853091840 is already destroyed. Thread T10 'ThreadPoolForeg' (tid=2508, running) created by thread T9 at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (services_unittests+0x1ae1b29) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44ef2f7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44ef1f5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x448764d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x448616b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x448616b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x448616b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x4483dee) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x4483af9) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x4487fde) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/string:1426:39 in __is_long ================== ================== WARNING: ThreadSanitizer: data race (pid=2212) Write of size 8 at 0x7b140001c940 by main thread: #0 operator delete(void*) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 (services_unittests+0x1b5f299) #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (services_unittests+0x29dadce) #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x29dadce) #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x29dadce) #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x29dadce) #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x29dadce) #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (services_unittests+0x29dadce) #7 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1601 (services_unittests+0x29dadce) #8 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x29dadce) #9 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x29dadce) #10 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x29dadce) #11 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4eaf416) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4eaf416) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4eaf416) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4eaf416) #15 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4eaf416) #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6904) #17 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6939) #18 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f09218) #19 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f09218) #20 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f09218) #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5f09218) #22 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5f09279) #23 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f44681) #24 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f44681) #25 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f44681) #26 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f44681) #27 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f44a99) #28 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1d5e71b) #29 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1d5e71b) #30 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1d5e71b) #31 ~NetworkServiceTest services/network/network_service_unittest.cc:87 (services_unittests+0x1d5e71b) #32 network::(anonymous namespace)::NetworkServiceTest_CreateAndDestroyContext_Test::~NetworkServiceTest_CreateAndDestroyContext_Test() services/network/network_service_unittest.cc:100 (services_unittests+0x1d5e71b) #33 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2decfee) #34 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2decfee) #35 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dedb36) #36 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2dfffb6) #37 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dff419) #38 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2dff419) #39 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5df42e2) #40 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5df42e2) #41 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1ff7708) #42 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1ff7708) #43 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1ff7708) #44 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1ff7708) #45 Run base/callback.h:97:12 (services_unittests+0x5dfd8ab) #46 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5dfd8ab) #47 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5dfd710) #48 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1ff733f) Previous read of size 1 at 0x7b140001c945 by thread T10 (mutexes: write M220530352853091840): #0 operator() base/strings/string_piece.h:536:17 (services_unittests+0x29dc90e) #1 operator() net/dns/dns_hosts.h:28 (services_unittests+0x29dc90e) #2 operator() buildtools/third_party/libc++/trunk/include/unordered_map:440 (services_unittests+0x29dc90e) #3 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi(std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*) buildtools/third_party/libc++/trunk/include/__hash_table:2040 (services_unittests+0x29dc90e) #4 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x29dc5ee) #5 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x29dc5ee) #6 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x29dc5ee) #7 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29dafa3) #8 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29dafa3) #9 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29dafa3) #10 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4eae6b3) #11 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4eae6b3) #12 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4eb6aa4) #13 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4eb6aa4) #14 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4eb6aa4) #15 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (services_unittests+0x4eb6aa4) #16 Run base/callback.h:136:12 (services_unittests+0x29e03c3) #17 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29e03c3) #18 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29e03c3) #19 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x2a1425c) #20 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x2a11f2b) #21 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x2a121da) #22 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x2a121da) #23 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x2a121da) #24 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x2a121da) #25 Run base/callback.h:97:12 (services_unittests+0x4498598) #26 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4498598) #27 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4498687) #28 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4498687) #29 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4498687) #30 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x4498687) #31 Run base/callback.h:97:12 (services_unittests+0x4458c2a) #32 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x4458c2a) #33 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x447b1d1) #34 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x447ae17) #35 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x447ae17) #36 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44eed9f) #37 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5def988) #38 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x447a5d7) #39 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x4488010) #40 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #41 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #42 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) Mutex M220530352853091840 is already destroyed. Thread T10 'ThreadPoolForeg' (tid=2508, running) created by thread T9 at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (services_unittests+0x1ae1b29) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44ef2f7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44ef1f5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x448764d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x448616b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x448616b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x448616b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x4483dee) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x4483af9) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x4487fde) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) SUMMARY: ThreadSanitizer: data race /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 in operator delete(void*) ================== ================== WARNING: ThreadSanitizer: data race (pid=2212) Write of size 8 at 0x7b140001c948 by main thread: #0 operator delete(void*) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 (services_unittests+0x1b5f299) #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (services_unittests+0x29dadce) #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x29dadce) #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x29dadce) #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x29dadce) #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x29dadce) #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (services_unittests+0x29dadce) #7 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1601 (services_unittests+0x29dadce) #8 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x29dadce) #9 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x29dadce) #10 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x29dadce) #11 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4eaf416) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4eaf416) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4eaf416) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4eaf416) #15 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4eaf416) #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6904) #17 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6939) #18 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f09218) #19 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f09218) #20 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f09218) #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5f09218) #22 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5f09279) #23 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f44681) #24 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f44681) #25 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f44681) #26 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f44681) #27 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f44a99) #28 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1d5e71b) #29 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1d5e71b) #30 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1d5e71b) #31 ~NetworkServiceTest services/network/network_service_unittest.cc:87 (services_unittests+0x1d5e71b) #32 network::(anonymous namespace)::NetworkServiceTest_CreateAndDestroyContext_Test::~NetworkServiceTest_CreateAndDestroyContext_Test() services/network/network_service_unittest.cc:100 (services_unittests+0x1d5e71b) #33 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2decfee) #34 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2decfee) #35 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dedb36) #36 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2dfffb6) #37 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dff419) #38 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2dff419) #39 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5df42e2) #40 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5df42e2) #41 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1ff7708) #42 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1ff7708) #43 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1ff7708) #44 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1ff7708) #45 Run base/callback.h:97:12 (services_unittests+0x5dfd8ab) #46 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5dfd8ab) #47 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5dfd710) #48 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1ff733f) Previous read of size 1 at 0x7b140001c94a by thread T10 (mutexes: write M220530352853091840): #0 operator() base/strings/string_piece.h:536:17 (services_unittests+0x29dc977) #1 operator() net/dns/dns_hosts.h:28 (services_unittests+0x29dc977) #2 operator() buildtools/third_party/libc++/trunk/include/unordered_map:440 (services_unittests+0x29dc977) #3 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi(std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*) buildtools/third_party/libc++/trunk/include/__hash_table:2040 (services_unittests+0x29dc977) #4 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x29dc5ee) #5 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x29dc5ee) #6 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x29dc5ee) #7 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29dafa3) #8 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29dafa3) #9 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29dafa3) #10 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4eae6b3) #11 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4eae6b3) #12 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4eb6aa4) #13 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4eb6aa4) #14 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4eb6aa4) #15 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (services_unittests+0x4eb6aa4) #16 Run base/callback.h:136:12 (services_unittests+0x29e03c3) #17 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29e03c3) #18 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29e03c3) #19 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x2a1425c) #20 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x2a11f2b) #21 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x2a121da) #22 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x2a121da) #23 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x2a121da) #24 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x2a121da) #25 Run base/callback.h:97:12 (services_unittests+0x4498598) #26 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4498598) #27 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4498687) #28 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4498687) #29 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4498687) #30 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x4498687) #31 Run base/callback.h:97:12 (services_unittests+0x4458c2a) #32 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x4458c2a) #33 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x447b1d1) #34 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x447ae17) #35 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x447ae17) #36 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44eed9f) #37 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5def988) #38 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x447a5d7) #39 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x4488010) #40 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #41 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #42 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) Mutex M220530352853091840 is already destroyed. Thread T10 'ThreadPoolForeg' (tid=2508, running) created by thread T9 at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (services_unittests+0x1ae1b29) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44ef2f7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44ef1f5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x448764d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x448616b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x448616b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x448616b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x4483dee) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x4483af9) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x4487fde) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) SUMMARY: ThreadSanitizer: data race /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 in operator delete(void*) ================== ================== WARNING: ThreadSanitizer: data race (pid=2212) Write of size 8 at 0x7b140001c8f0 by main thread: #0 operator delete(void*) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 (services_unittests+0x1b5f299) #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (services_unittests+0x29dadce) #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x29dadce) #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x29dadce) #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x29dadce) #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x29dadce) #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (services_unittests+0x29dadce) #7 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1601 (services_unittests+0x29dadce) #8 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x29dadce) #9 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x29dadce) #10 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x29dadce) #11 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4eaf416) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4eaf416) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4eaf416) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4eaf416) #15 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4eaf416) #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6904) #17 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6939) #18 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f09218) #19 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f09218) #20 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f09218) #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5f09218) #22 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5f09279) #23 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f44681) #24 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f44681) #25 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f44681) #26 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f44681) #27 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f44a99) #28 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1d5e71b) #29 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1d5e71b) #30 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1d5e71b) #31 ~NetworkServiceTest services/network/network_service_unittest.cc:87 (services_unittests+0x1d5e71b) #32 network::(anonymous namespace)::NetworkServiceTest_CreateAndDestroyContext_Test::~NetworkServiceTest_CreateAndDestroyContext_Test() services/network/network_service_unittest.cc:100 (services_unittests+0x1d5e71b) #33 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2decfee) #34 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2decfee) #35 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dedb36) #36 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2dfffb6) #37 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dff419) #38 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2dff419) #39 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5df42e2) #40 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5df42e2) #41 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1ff7708) #42 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1ff7708) #43 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1ff7708) #44 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1ff7708) #45 Run base/callback.h:97:12 (services_unittests+0x5dfd8ab) #46 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5dfd8ab) #47 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5dfd710) #48 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1ff733f) Previous read of size 1 at 0x7b140001c8f4 by thread T10 (mutexes: write M220530352853091840): #0 operator() base/strings/string_piece.h:536:17 (services_unittests+0x29dc8f6) #1 operator() net/dns/dns_hosts.h:28 (services_unittests+0x29dc8f6) #2 operator() buildtools/third_party/libc++/trunk/include/unordered_map:440 (services_unittests+0x29dc8f6) #3 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi(std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*) buildtools/third_party/libc++/trunk/include/__hash_table:2040 (services_unittests+0x29dc8f6) #4 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x29dc5ee) #5 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x29dc5ee) #6 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x29dc5ee) #7 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29dafa3) #8 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29dafa3) #9 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29dafa3) #10 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4eae6b3) #11 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4eae6b3) #12 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4eb6aa4) #13 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4eb6aa4) #14 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4eb6aa4) #15 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (services_unittests+0x4eb6aa4) #16 Run base/callback.h:136:12 (services_unittests+0x29e03c3) #17 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29e03c3) #18 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29e03c3) #19 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x2a1425c) #20 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x2a11f2b) #21 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x2a121da) #22 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x2a121da) #23 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x2a121da) #24 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x2a121da) #25 Run base/callback.h:97:12 (services_unittests+0x4498598) #26 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4498598) #27 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4498687) #28 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4498687) #29 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4498687) #30 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x4498687) #31 Run base/callback.h:97:12 (services_unittests+0x4458c2a) #32 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x4458c2a) #33 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x447b1d1) #34 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x447ae17) #35 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x447ae17) #36 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44eed9f) #37 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5def988) #38 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x447a5d7) #39 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x4488010) #40 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #41 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #42 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) Mutex M220530352853091840 is already destroyed. Thread T10 'ThreadPoolForeg' (tid=2508, running) created by thread T9 at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (services_unittests+0x1ae1b29) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44ef2f7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44ef1f5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x448764d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x448616b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x448616b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x448616b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x4483dee) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x4483af9) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x4487fde) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) SUMMARY: ThreadSanitizer: data race /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 in operator delete(void*) ================== ================== WARNING: ThreadSanitizer: data race (pid=2212) Write of size 8 at 0x7b140001c800 by main thread: #0 operator delete(void*) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 (services_unittests+0x1b5f299) #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (services_unittests+0x29dadce) #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x29dadce) #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x29dadce) #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x29dadce) #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x29dadce) #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (services_unittests+0x29dadce) #7 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1601 (services_unittests+0x29dadce) #8 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x29dadce) #9 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x29dadce) #10 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x29dadce) #11 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4eaf416) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4eaf416) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4eaf416) #14 ~unique_ptr buildtools/third_part <truncated (837121 bytes)> 2853091840 is already destroyed. Thread T10 'ThreadPoolForeg' (tid=2508, running) created by thread T9 at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (services_unittests+0x1ae1b29) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44ef2f7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44ef1f5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x448764d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x448616b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x448616b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x448616b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x4483dee) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x4483af9) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x4487fde) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) SUMMARY: ThreadSanitizer: data race /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 in operator delete(void*) ================== ================== WARNING: ThreadSanitizer: data race (pid=2212) Write of size 8 at 0x7b3000000650 by main thread: #0 operator delete(void*) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 (services_unittests+0x1b5f299) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4eaf426) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4eaf426) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4eaf426) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4eaf426) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6904) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6939) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f09218) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f09218) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f09218) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5f09218) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5f09279) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f44681) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f44681) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f44681) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f44681) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f44a99) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1d5e71b) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1d5e71b) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1d5e71b) #20 ~NetworkServiceTest services/network/network_service_unittest.cc:87 (services_unittests+0x1d5e71b) #21 network::(anonymous namespace)::NetworkServiceTest_CreateAndDestroyContext_Test::~NetworkServiceTest_CreateAndDestroyContext_Test() services/network/network_service_unittest.cc:100 (services_unittests+0x1d5e71b) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2decfee) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2decfee) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dedb36) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2dfffb6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dff419) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2dff419) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5df42e2) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5df42e2) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1ff7708) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1ff7708) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1ff7708) #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1ff7708) #34 Run base/callback.h:97:12 (services_unittests+0x5dfd8ab) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5dfd8ab) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5dfd710) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1ff733f) Previous write of size 8 at 0x7b3000000650 by thread T10 (mutexes: write M220530352853091840): #0 __vallocate buildtools/third_party/libc++/trunk/include/vector:982:23 (services_unittests+0x1bee406) #1 std::__1::enable_if<(__is_forward_iterator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*>::value) && (is_constructible<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::iterator_traits<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*>::reference>::value), void>::type std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >::assign<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) buildtools/third_party/libc++/trunk/include/vector:1458 (services_unittests+0x1bee406) #2 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x29daf6e) #3 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29daf6e) #4 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4eae6b3) #5 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4eae6b3) #6 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4eb6aa4) #7 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4eb6aa4) #8 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4eb6aa4) #9 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (services_unittests+0x4eb6aa4) #10 Run base/callback.h:136:12 (services_unittests+0x29e03c3) #11 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29e03c3) #12 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29e03c3) #13 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x2a1425c) #14 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x2a11f2b) #15 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x2a121da) #16 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x2a121da) #17 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x2a121da) #18 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x2a121da) #19 Run base/callback.h:97:12 (services_unittests+0x4498598) #20 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4498598) #21 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4498687) #22 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4498687) #23 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4498687) #24 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x4498687) #25 Run base/callback.h:97:12 (services_unittests+0x4458c2a) #26 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x4458c2a) #27 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x447b1d1) #28 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x447ae17) #29 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x447ae17) #30 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44eed9f) #31 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5def988) #32 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x447a5d7) #33 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x4488010) #34 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #35 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #36 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) Mutex M220530352853091840 is already destroyed. Thread T10 'ThreadPoolForeg' (tid=2508, running) created by thread T9 at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (services_unittests+0x1ae1b29) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44ef2f7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44ef1f5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x448764d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x448616b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x448616b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x448616b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x4483dee) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x4483af9) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x4487fde) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) SUMMARY: ThreadSanitizer: data race /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 in operator delete(void*) ================== ================== WARNING: ThreadSanitizer: data race (pid=2212) Write of size 8 at 0x7b3000000660 by main thread: #0 operator delete(void*) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 (services_unittests+0x1b5f299) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4eaf426) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4eaf426) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4eaf426) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4eaf426) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6904) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6939) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f09218) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f09218) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f09218) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5f09218) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5f09279) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f44681) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f44681) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f44681) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f44681) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f44a99) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1d5e71b) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1d5e71b) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1d5e71b) #20 ~NetworkServiceTest services/network/network_service_unittest.cc:87 (services_unittests+0x1d5e71b) #21 network::(anonymous namespace)::NetworkServiceTest_CreateAndDestroyContext_Test::~NetworkServiceTest_CreateAndDestroyContext_Test() services/network/network_service_unittest.cc:100 (services_unittests+0x1d5e71b) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2decfee) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2decfee) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dedb36) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2dfffb6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dff419) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2dff419) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5df42e2) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5df42e2) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1ff7708) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1ff7708) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1ff7708) #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1ff7708) #34 Run base/callback.h:97:12 (services_unittests+0x5dfd8ab) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5dfd8ab) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5dfd710) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1ff733f) Previous write of size 8 at 0x7b3000000660 by thread T10 (mutexes: write M220530352853091840): #0 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__rehash(unsigned long) buildtools/third_party/libc++/trunk/include/__hash_table:2406:41 (services_unittests+0x1f7496c) #1 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::rehash(unsigned long) buildtools/third_party/libc++/trunk/include/__hash_table (services_unittests+0x1f747ff) #2 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi_prepare(unsigned long, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>&) buildtools/third_party/libc++/trunk/include/__hash_table:1968:9 (services_unittests+0x29dcc99) #3 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi(std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*) buildtools/third_party/libc++/trunk/include/__hash_table:2041:27 (services_unittests+0x29dc9c6) #4 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x29dc5ee) #5 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x29dc5ee) #6 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x29dc5ee) #7 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29dafa3) #8 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29dafa3) #9 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29dafa3) #10 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4eae6b3) #11 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4eae6b3) #12 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4eb6aa4) #13 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4eb6aa4) #14 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4eb6aa4) #15 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (services_unittests+0x4eb6aa4) #16 Run base/callback.h:136:12 (services_unittests+0x29e03c3) #17 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29e03c3) #18 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29e03c3) #19 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x2a1425c) #20 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x2a11f2b) #21 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x2a121da) #22 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x2a121da) #23 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x2a121da) #24 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x2a121da) #25 Run base/callback.h:97:12 (services_unittests+0x4498598) #26 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4498598) #27 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4498687) #28 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4498687) #29 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4498687) #30 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x4498687) #31 Run base/callback.h:97:12 (services_unittests+0x4458c2a) #32 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x4458c2a) #33 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x447b1d1) #34 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x447ae17) #35 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x447ae17) #36 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44eed9f) #37 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5def988) #38 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x447a5d7) #39 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x4488010) #40 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #41 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #42 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) Mutex M220530352853091840 is already destroyed. Thread T10 'ThreadPoolForeg' (tid=2508, running) created by thread T9 at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (services_unittests+0x1ae1b29) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44ef2f7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44ef1f5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x448764d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x448616b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x448616b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x448616b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x4483dee) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x4483af9) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x4487fde) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) SUMMARY: ThreadSanitizer: data race /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 in operator delete(void*) ================== ================== WARNING: ThreadSanitizer: data race (pid=2212) Write of size 8 at 0x7b3000000670 by main thread: #0 operator delete(void*) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 (services_unittests+0x1b5f299) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4eaf426) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4eaf426) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4eaf426) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4eaf426) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6904) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6939) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f09218) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f09218) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f09218) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5f09218) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5f09279) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f44681) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f44681) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f44681) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f44681) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f44a99) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1d5e71b) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1d5e71b) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1d5e71b) #20 ~NetworkServiceTest services/network/network_service_unittest.cc:87 (services_unittests+0x1d5e71b) #21 network::(anonymous namespace)::NetworkServiceTest_CreateAndDestroyContext_Test::~NetworkServiceTest_CreateAndDestroyContext_Test() services/network/network_service_unittest.cc:100 (services_unittests+0x1d5e71b) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2decfee) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2decfee) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dedb36) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2dfffb6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dff419) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2dff419) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5df42e2) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5df42e2) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1ff7708) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1ff7708) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1ff7708) #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1ff7708) #34 Run base/callback.h:97:12 (services_unittests+0x5dfd8ab) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5dfd8ab) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5dfd710) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1ff733f) Previous write of size 8 at 0x7b3000000670 by thread T10 (mutexes: write M220530352853091840): #0 __node_insert_multi_perform buildtools/third_party/libc++/trunk/include/__hash_table:2032:5 (services_unittests+0x29dcb58) #1 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi(std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*) buildtools/third_party/libc++/trunk/include/__hash_table:2042 (services_unittests+0x29dcb58) #2 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x29dc5ee) #3 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x29dc5ee) #4 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x29dc5ee) #5 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29dafa3) #6 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29dafa3) #7 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29dafa3) #8 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4eae6b3) #9 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4eae6b3) #10 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4eb6aa4) #11 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4eb6aa4) #12 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4eb6aa4) #13 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (services_unittests+0x4eb6aa4) #14 Run base/callback.h:136:12 (services_unittests+0x29e03c3) #15 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29e03c3) #16 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29e03c3) #17 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x2a1425c) #18 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x2a11f2b) #19 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x2a121da) #20 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x2a121da) #21 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x2a121da) #22 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x2a121da) #23 Run base/callback.h:97:12 (services_unittests+0x4498598) #24 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4498598) #25 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4498687) #26 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4498687) #27 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4498687) #28 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x4498687) #29 Run base/callback.h:97:12 (services_unittests+0x4458c2a) #30 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x4458c2a) #31 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x447b1d1) #32 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x447ae17) #33 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x447ae17) #34 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44eed9f) #35 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5def988) #36 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x447a5d7) #37 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x4488010) #38 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #39 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #40 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) Mutex M220530352853091840 is already destroyed. Thread T10 'ThreadPoolForeg' (tid=2508, running) created by thread T9 at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (services_unittests+0x1ae1b29) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44ef2f7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44ef1f5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x448764d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x448616b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x448616b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x448616b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x4483dee) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x4483af9) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x4487fde) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) SUMMARY: ThreadSanitizer: data race /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 in operator delete(void*) ================== ================== WARNING: ThreadSanitizer: data race (pid=2212) Write of size 8 at 0x7b3000000678 by main thread: #0 operator delete(void*) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 (services_unittests+0x1b5f299) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4eaf426) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4eaf426) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4eaf426) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4eaf426) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6904) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6939) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f09218) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f09218) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f09218) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5f09218) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5f09279) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f44681) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f44681) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f44681) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f44681) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f44a99) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1d5e71b) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1d5e71b) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1d5e71b) #20 ~NetworkServiceTest services/network/network_service_unittest.cc:87 (services_unittests+0x1d5e71b) #21 network::(anonymous namespace)::NetworkServiceTest_CreateAndDestroyContext_Test::~NetworkServiceTest_CreateAndDestroyContext_Test() services/network/network_service_unittest.cc:100 (services_unittests+0x1d5e71b) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2decfee) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2decfee) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dedb36) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2dfffb6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dff419) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2dff419) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5df42e2) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5df42e2) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1ff7708) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1ff7708) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1ff7708) #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1ff7708) #34 Run base/callback.h:97:12 (services_unittests+0x5dfd8ab) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5dfd8ab) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5dfd710) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1ff733f) Previous write of size 4 at 0x7b3000000678 by thread T10 (mutexes: write M220530352853091840): #0 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1569:27 (services_unittests+0x29daf88) #1 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29daf88) #2 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29daf88) #3 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4eae6b3) #4 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4eae6b3) #5 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4eb6aa4) #6 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4eb6aa4) #7 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4eb6aa4) #8 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (services_unittests+0x4eb6aa4) #9 Run base/callback.h:136:12 (services_unittests+0x29e03c3) #10 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29e03c3) #11 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29e03c3) #12 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x2a1425c) #13 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x2a11f2b) #14 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x2a121da) #15 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x2a121da) #16 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x2a121da) #17 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x2a121da) #18 Run base/callback.h:97:12 (services_unittests+0x4498598) #19 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4498598) #20 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4498687) #21 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4498687) #22 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4498687) #23 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x4498687) #24 Run base/callback.h:97:12 (services_unittests+0x4458c2a) #25 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x4458c2a) #26 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x447b1d1) #27 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x447ae17) #28 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x447ae17) #29 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44eed9f) #30 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5def988) #31 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x447a5d7) #32 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x4488010) #33 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #34 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #35 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) Mutex M220530352853091840 is already destroyed. Thread T10 'ThreadPoolForeg' (tid=2508, running) created by thread T9 at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (services_unittests+0x1ae1b29) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44ef2f7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44ef1f5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x448764d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x448616b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x448616b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x448616b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x4483dee) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x4483af9) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x4487fde) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) SUMMARY: ThreadSanitizer: data race /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 in operator delete(void*) ================== ================== WARNING: ThreadSanitizer: data race (pid=2212) Write of size 8 at 0x7b3000000680 by main thread: #0 operator delete(void*) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 (services_unittests+0x1b5f299) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4eaf426) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4eaf426) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4eaf426) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4eaf426) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6904) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6939) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f09218) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f09218) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f09218) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5f09218) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5f09279) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f44681) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f44681) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f44681) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f44681) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f44a99) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1d5e71b) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1d5e71b) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1d5e71b) #20 ~NetworkServiceTest services/network/network_service_unittest.cc:87 (services_unittests+0x1d5e71b) #21 network::(anonymous namespace)::NetworkServiceTest_CreateAndDestroyContext_Test::~NetworkServiceTest_CreateAndDestroyContext_Test() services/network/network_service_unittest.cc:100 (services_unittests+0x1d5e71b) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2decfee) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2decfee) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dedb36) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2dfffb6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dff419) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2dff419) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5df42e2) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5df42e2) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1ff7708) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1ff7708) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1ff7708) #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1ff7708) #34 Run base/callback.h:97:12 (services_unittests+0x5dfd8ab) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5dfd8ab) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5dfd710) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1ff733f) Previous write of size 8 at 0x7b3000000680 by thread T10 (mutexes: write M220530352853091840): #0 memcpy /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:801 (services_unittests+0x1ae28f7) #1 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31:55 (services_unittests+0x29dafb5) #2 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4eae6b3) #3 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4eae6b3) #4 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4eb6aa4) #5 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4eb6aa4) #6 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4eb6aa4) #7 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (services_unittests+0x4eb6aa4) #8 Run base/callback.h:136:12 (services_unittests+0x29e03c3) #9 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29e03c3) #10 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29e03c3) #11 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x2a1425c) #12 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x2a11f2b) #13 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x2a121da) #14 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x2a121da) #15 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x2a121da) #16 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x2a121da) #17 Run base/callback.h:97:12 (services_unittests+0x4498598) #18 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4498598) #19 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4498687) #20 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4498687) #21 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4498687) #22 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x4498687) #23 Run base/callback.h:97:12 (services_unittests+0x4458c2a) #24 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x4458c2a) #25 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x447b1d1) #26 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x447ae17) #27 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x447ae17) #28 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44eed9f) #29 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5def988) #30 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x447a5d7) #31 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x4488010) #32 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #33 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #34 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) Mutex M220530352853091840 is already destroyed. Thread T10 'ThreadPoolForeg' (tid=2508, running) created by thread T9 at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (services_unittests+0x1ae1b29) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44ef2f7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44ef1f5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x448764d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x448616b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x448616b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x448616b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x4483dee) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x4483af9) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x4487fde) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) SUMMARY: ThreadSanitizer: data race /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 in operator delete(void*) ================== ================== WARNING: ThreadSanitizer: data race (pid=2212) Write of size 8 at 0x7b3000000698 by main thread: #0 operator delete(void*) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 (services_unittests+0x1b5f299) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4eaf426) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4eaf426) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4eaf426) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4eaf426) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6904) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6939) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f09218) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f09218) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f09218) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5f09218) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5f09279) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f44681) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f44681) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f44681) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f44681) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f44a99) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1d5e71b) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1d5e71b) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1d5e71b) #20 ~NetworkServiceTest services/network/network_service_unittest.cc:87 (services_unittests+0x1d5e71b) #21 network::(anonymous namespace)::NetworkServiceTest_CreateAndDestroyContext_Test::~NetworkServiceTest_CreateAndDestroyContext_Test() services/network/network_service_unittest.cc:100 (services_unittests+0x1d5e71b) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2decfee) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2decfee) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dedb36) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2dfffb6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dff419) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2dff419) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5df42e2) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5df42e2) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1ff7708) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1ff7708) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1ff7708) #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1ff7708) #34 Run base/callback.h:97:12 (services_unittests+0x5dfd8ab) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5dfd8ab) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5dfd710) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1ff733f) Previous read of size 8 at 0x7b3000000698 by thread T10 (mutexes: write M220530352853091840): #0 capacity buildtools/third_party/libc++/trunk/include/vector:372:54 (services_unittests+0x29dcf76) #1 capacity buildtools/third_party/libc++/trunk/include/vector:659 (services_unittests+0x29dcf76) #2 std::__1::enable_if<(__is_forward_iterator<net::DnsConfig::DnsOverHttpsServerConfig*>::value) && (is_constructible<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::iterator_traits<net::DnsConfig::DnsOverHttpsServerConfig*>::reference>::value), void>::type std::__1::vector<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::allocator<net::DnsConfig::DnsOverHttpsServerConfig> >::assign<net::DnsConfig::DnsOverHttpsServerConfig*>(net::DnsConfig::DnsOverHttpsServerConfig*, net::DnsConfig::DnsOverHttpsServerConfig*) buildtools/third_party/libc++/trunk/include/vector:1439 (services_unittests+0x29dcf76) #3 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x29dafde) #4 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29dafde) #5 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4eae6b3) #6 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4eae6b3) #7 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4eb6aa4) #8 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4eb6aa4) #9 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4eb6aa4) #10 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (services_unittests+0x4eb6aa4) #11 Run base/callback.h:136:12 (services_unittests+0x29e03c3) #12 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29e03c3) #13 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29e03c3) #14 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x2a1425c) #15 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x2a11f2b) #16 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x2a121da) #17 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x2a121da) #18 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x2a121da) #19 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x2a121da) #20 Run base/callback.h:97:12 (services_unittests+0x4498598) #21 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4498598) #22 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4498687) #23 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4498687) #24 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4498687) #25 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x4498687) #26 Run base/callback.h:97:12 (services_unittests+0x4458c2a) #27 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x4458c2a) #28 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x447b1d1) #29 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x447ae17) #30 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x447ae17) #31 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44eed9f) #32 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5def988) #33 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x447a5d7) #34 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x4488010) #35 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #36 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #37 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) Mutex M220530352853091840 is already destroyed. Thread T10 'ThreadPoolForeg' (tid=2508, running) created by thread T9 at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (services_unittests+0x1ae1b29) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44ef2f7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44ef1f5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x448764d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x448616b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x448616b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x448616b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x4483dee) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x4483af9) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x4487fde) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) SUMMARY: ThreadSanitizer: data race /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 in operator delete(void*) ================== ================== WARNING: ThreadSanitizer: data race (pid=2212) Write of size 8 at 0x7b30000006a0 by main thread: #0 operator delete(void*) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 (services_unittests+0x1b5f299) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4eaf426) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4eaf426) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4eaf426) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4eaf426) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6904) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6939) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f09218) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f09218) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f09218) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5f09218) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5f09279) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f44681) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f44681) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f44681) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f44681) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f44a99) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1d5e71b) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1d5e71b) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1d5e71b) #20 ~NetworkServiceTest services/network/network_service_unittest.cc:87 (services_unittests+0x1d5e71b) #21 network::(anonymous namespace)::NetworkServiceTest_CreateAndDestroyContext_Test::~NetworkServiceTest_CreateAndDestroyContext_Test() services/network/network_service_unittest.cc:100 (services_unittests+0x1d5e71b) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2decfee) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2decfee) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dedb36) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2dfffb6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dff419) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2dff419) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5df42e2) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5df42e2) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1ff7708) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1ff7708) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1ff7708) #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1ff7708) #34 Run base/callback.h:97:12 (services_unittests+0x5dfd8ab) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5dfd8ab) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5dfd710) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1ff733f) Previous write of size 8 at 0x7b30000006a0 by thread T10 (mutexes: write M220530352853091840): #0 __destruct_at_end buildtools/third_party/libc++/trunk/include/vector:427:12 (services_unittests+0x29dd124) #1 __destruct_at_end buildtools/third_party/libc++/trunk/include/vector:833 (services_unittests+0x29dd124) #2 std::__1::enable_if<(__is_forward_iterator<net::DnsConfig::DnsOverHttpsServerConfig*>::value) && (is_constructible<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::iterator_traits<net::DnsConfig::DnsOverHttpsServerConfig*>::reference>::value), void>::type std::__1::vector<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::allocator<net::DnsConfig::DnsOverHttpsServerConfig> >::assign<net::DnsConfig::DnsOverHttpsServerConfig*>(net::DnsConfig::DnsOverHttpsServerConfig*, net::DnsConfig::DnsOverHttpsServerConfig*) buildtools/third_party/libc++/trunk/include/vector:1453 (services_unittests+0x29dd124) #3 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x29dafde) #4 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29dafde) #5 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4eae6b3) #6 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4eae6b3) #7 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4eb6aa4) #8 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4eb6aa4) #9 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4eb6aa4) #10 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (services_unittests+0x4eb6aa4) #11 Run base/callback.h:136:12 (services_unittests+0x29e03c3) #12 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29e03c3) #13 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29e03c3) #14 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x2a1425c) #15 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x2a11f2b) #16 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x2a121da) #17 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x2a121da) #18 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x2a121da) #19 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x2a121da) #20 Run base/callback.h:97:12 (services_unittests+0x4498598) #21 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4498598) #22 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4498687) #23 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4498687) #24 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4498687) #25 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x4498687) #26 Run base/callback.h:97:12 (services_unittests+0x4458c2a) #27 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x4458c2a) #28 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x447b1d1) #29 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x447ae17) #30 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x447ae17) #31 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44eed9f) #32 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5def988) #33 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x447a5d7) #34 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x4488010) #35 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #36 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #37 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) Mutex M220530352853091840 is already destroyed. Thread T10 'ThreadPoolForeg' (tid=2508, running) created by thread T9 at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (services_unittests+0x1ae1b29) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44ef2f7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44ef1f5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x448764d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x448616b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x448616b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x448616b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x4483dee) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x4483af9) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x4487fde) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) SUMMARY: ThreadSanitizer: data race /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 in operator delete(void*) ================== ================== WARNING: ThreadSanitizer: data race (pid=2212) Write of size 8 at 0x7b30000006a8 by main thread: #0 operator delete(void*) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 (services_unittests+0x1b5f299) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4eaf426) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4eaf426) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4eaf426) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4eaf426) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6904) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6939) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f09218) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f09218) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f09218) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5f09218) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5f09279) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f44681) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f44681) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f44681) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f44681) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f44a99) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1d5e71b) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1d5e71b) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1d5e71b) #20 ~NetworkServiceTest services/network/network_service_unittest.cc:87 (services_unittests+0x1d5e71b) #21 network::(anonymous namespace)::NetworkServiceTest_CreateAndDestroyContext_Test::~NetworkServiceTest_CreateAndDestroyContext_Test() services/network/network_service_unittest.cc:100 (services_unittests+0x1d5e71b) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2decfee) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2decfee) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dedb36) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2dfffb6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dff419) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2dff419) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5df42e2) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5df42e2) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1ff7708) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1ff7708) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1ff7708) #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1ff7708) #34 Run base/callback.h:97:12 (services_unittests+0x5dfd8ab) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5dfd8ab) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5dfd710) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1ff733f) Previous read of size 8 at 0x7b30000006a8 by thread T10 (mutexes: write M220530352853091840): #0 capacity buildtools/third_party/libc++/trunk/include/vector:372:40 (services_unittests+0x29dcf6a) #1 capacity buildtools/third_party/libc++/trunk/include/vector:659 (services_unittests+0x29dcf6a) #2 std::__1::enable_if<(__is_forward_iterator<net::DnsConfig::DnsOverHttpsServerConfig*>::value) && (is_constructible<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::iterator_traits<net::DnsConfig::DnsOverHttpsServerConfig*>::reference>::value), void>::type std::__1::vector<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::allocator<net::DnsConfig::DnsOverHttpsServerConfig> >::assign<net::DnsConfig::DnsOverHttpsServerConfig*>(net::DnsConfig::DnsOverHttpsServerConfig*, net::DnsConfig::DnsOverHttpsServerConfig*) buildtools/third_party/libc++/trunk/include/vector:1439 (services_unittests+0x29dcf6a) #3 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x29dafde) #4 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29dafde) #5 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4eae6b3) #6 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4eae6b3) #7 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4eb6aa4) #8 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4eb6aa4) #9 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4eb6aa4) #10 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (services_unittests+0x4eb6aa4) #11 Run base/callback.h:136:12 (services_unittests+0x29e03c3) #12 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29e03c3) #13 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29e03c3) #14 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x2a1425c) #15 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x2a11f2b) #16 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x2a121da) #17 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x2a121da) #18 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x2a121da) #19 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x2a121da) #20 Run base/callback.h:97:12 (services_unittests+0x4498598) #21 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4498598) #22 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4498687) #23 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4498687) #24 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4498687) #25 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x4498687) #26 Run base/callback.h:97:12 (services_unittests+0x4458c2a) #27 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x4458c2a) #28 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x447b1d1) #29 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x447ae17) #30 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x447ae17) #31 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44eed9f) #32 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5def988) #33 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x447a5d7) #34 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x4488010) #35 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #36 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #37 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) Mutex M220530352853091840 is already destroyed. Thread T10 'ThreadPoolForeg' (tid=2508, running) created by thread T9 at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (services_unittests+0x1ae1b29) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44ef2f7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44ef1f5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x448764d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x448616b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x448616b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x448616b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x4483dee) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x4483af9) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x4487fde) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) SUMMARY: ThreadSanitizer: data race /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 in operator delete(void*) ================== ================== WARNING: ThreadSanitizer: data race (pid=2212) Write of size 8 at 0x7b30000006b0 by main thread: #0 operator delete(void*) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 (services_unittests+0x1b5f299) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4eaf426) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4eaf426) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4eaf426) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4eaf426) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6904) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6939) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f09218) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f09218) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f09218) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5f09218) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5f09279) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f44681) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f44681) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f44681) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f44681) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f44a99) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1d5e71b) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1d5e71b) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1d5e71b) #20 ~NetworkServiceTest services/network/network_service_unittest.cc:87 (services_unittests+0x1d5e71b) #21 network::(anonymous namespace)::NetworkServiceTest_CreateAndDestroyContext_Test::~NetworkServiceTest_CreateAndDestroyContext_Test() services/network/network_service_unittest.cc:100 (services_unittests+0x1d5e71b) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2decfee) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2decfee) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dedb36) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2dfffb6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dff419) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2dff419) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5df42e2) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5df42e2) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1ff7708) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1ff7708) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1ff7708) #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1ff7708) #34 Run base/callback.h:97:12 (services_unittests+0x5dfd8ab) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5dfd8ab) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5dfd710) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1ff733f) Previous write of size 1 at 0x7b30000006b0 by thread T10 (mutexes: write M220530352853091840): #0 SetDnsConfig net/base/network_change_notifier.cc:79:10 (services_unittests+0x4eae6c6) #1 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4eae6c6) #2 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4eb6aa4) #3 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4eb6aa4) #4 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4eb6aa4) #5 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (services_unittests+0x4eb6aa4) #6 Run base/callback.h:136:12 (services_unittests+0x29e03c3) #7 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29e03c3) #8 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29e03c3) #9 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x2a1425c) #10 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x2a11f2b) #11 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x2a121da) #12 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x2a121da) #13 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x2a121da) #14 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x2a121da) #15 Run base/callback.h:97:12 (services_unittests+0x4498598) #16 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4498598) #17 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4498687) #18 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4498687) #19 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4498687) #20 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x4498687) #21 Run base/callback.h:97:12 (services_unittests+0x4458c2a) #22 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x4458c2a) #23 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x447b1d1) #24 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x447ae17) #25 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x447ae17) #26 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44eed9f) #27 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5def988) #28 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x447a5d7) #29 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x4488010) #30 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #31 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #32 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) Mutex M220530352853091840 is already destroyed. Thread T10 'ThreadPoolForeg' (tid=2508, running) created by thread T9 at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (services_unittests+0x1ae1b29) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44ef2f7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44ef1f5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x448764d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x448616b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x448616b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x448616b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x4483dee) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x4483af9) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x4487fde) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) SUMMARY: ThreadSanitizer: data race /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 in operator delete(void*) ================== ================== WARNING: ThreadSanitizer: data race (pid=2212) Write of size 8 at 0x7b18000071b8 by main thread: #0 operator delete(void*) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 (services_unittests+0x1b5f299) #1 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4eb6941) #2 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f09218) #3 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f09218) #4 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f09218) #5 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5f09218) #6 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5f09279) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f44681) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f44681) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f44681) #10 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f44681) #11 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f44a99) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1d5e71b) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1d5e71b) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1d5e71b) #15 ~NetworkServiceTest services/network/network_service_unittest.cc:87 (services_unittests+0x1d5e71b) #16 network::(anonymous namespace)::NetworkServiceTest_CreateAndDestroyContext_Test::~NetworkServiceTest_CreateAndDestroyContext_Test() services/network/network_service_unittest.cc:100 (services_unittests+0x1d5e71b) #17 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2decfee) #18 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2decfee) #19 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dedb36) #20 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2dfffb6) #21 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dff419) #22 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2dff419) #23 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5df42e2) #24 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5df42e2) #25 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1ff7708) #26 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1ff7708) #27 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1ff7708) #28 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1ff7708) #29 Run base/callback.h:97:12 (services_unittests+0x5dfd8ab) #30 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5dfd8ab) #31 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5dfd710) #32 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1ff733f) Previous read of size 8 at 0x7b18000071b8 by thread T10: #0 operator-> base/memory/scoped_refptr.h:221:12 (services_unittests+0x4eae765) #1 NotifyObserversOfInitialDNSConfigReadImpl net/base/network_change_notifier.cc:798 (services_unittests+0x4eae765) #2 NotifyObserversOfInitialDNSConfigRead net/base/network_change_notifier.cc:744 (services_unittests+0x4eae765) #3 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:766 (services_unittests+0x4eae765) #4 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4eb6aa4) #5 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4eb6aa4) #6 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4eb6aa4) #7 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (services_unittests+0x4eb6aa4) #8 Run base/callback.h:136:12 (services_unittests+0x29e03c3) #9 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29e03c3) #10 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29e03c3) #11 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x2a1425c) #12 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x2a11f2b) #13 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x2a121da) #14 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x2a121da) #15 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x2a121da) #16 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x2a121da) #17 Run base/callback.h:97:12 (services_unittests+0x4498598) #18 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4498598) #19 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4498687) #20 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4498687) #21 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4498687) #22 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x4498687) #23 Run base/callback.h:97:12 (services_unittests+0x4458c2a) #24 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x4458c2a) #25 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x447b1d1) #26 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x447ae17) #27 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x447ae17) #28 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44eed9f) #29 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5def988) #30 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x447a5d7) #31 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x4488010) #32 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #33 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #34 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) Thread T10 'ThreadPoolForeg' (tid=2508, running) created by thread T9 at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (services_unittests+0x1ae1b29) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44ef2f7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44ef1f5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x448764d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x448616b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x448616b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x448616b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x4483dee) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x4483af9) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x4487fde) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x4487c41) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x4487aaf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44ef804) SUMMARY: ThreadSanitizer: data race /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126 in operator delete(void*) ================== [ OK ] NetworkServiceTest.CreateAndDestroyContext (1901 ms) [ RUN ] NetworkServiceTest.DestroyingServiceDestroysContext [ OK ] NetworkServiceTest.DestroyingServiceDestroysContext (31 ms) [ RUN ] NetworkServiceTest.CreateContextWithoutChannelID [ OK ] NetworkServiceTest.CreateContextWithoutChannelID (24 ms) [ RUN ] NetworkServiceTest.AuthDefaultParams [ OK ] NetworkServiceTest.AuthDefaultParams (16 ms) [ RUN ] NetworkServiceTest.AuthSchemesDigestAndNtlmOnly [ OK ] NetworkServiceTest.AuthSchemesDigestAndNtlmOnly (23 ms) [ RUN ] NetworkServiceTest.AuthSchemesNone [ OK ] NetworkServiceTest.AuthSchemesNone (12 ms) [ RUN ] NetworkServiceTest.AuthGssapiLibraryName [ OK ] NetworkServiceTest.AuthGssapiLibraryName (11 ms) [----------] 7 tests from NetworkServiceTest (2019 ms total) [----------] Global test environment tear-down [==========] 10 tests from 2 test suites ran. (2044 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 43 warnings ThreadSanitizer: Matched 2 suppressions (pid=2212): 2 race:net::(anonymous namespace)::g_network_change_notifier [ RUN ] NetworkServiceTest.CreateAndDestroyContext [ OK ] NetworkServiceTest.CreateAndDestroyContext (17 ms) ================================================================================