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

Test 'CorsURLLoaderTest.NavigateWithoutInitiator' completed with the following status(es): 'FAILURE_ON_EXIT','SUCCESS' Test 'CorsURLLoaderTest.NavigateWithoutInitiator' had the following logs when run: ================================================================================ [ RUN ] CorsURLLoaderTest.NavigateWithoutInitiator [ OK ] CorsURLLoaderTest.NavigateWithoutInitiator (23 ms) [ RUN ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther1 [12612:12612:0420/013709.492320:18891277233:WARNING:cors_url_loader_factory.cc(141)] |fetch_credentials_mode| and |load_flags| contradict each other. [ OK ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther1 (26 ms) [ RUN ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther2 [12612:12612:0420/013709.505730:18891290630:WARNING:cors_url_loader_factory.cc(141)] |fetch_credentials_mode| and |load_flags| contradict each other. ================== WARNING: ThreadSanitizer: data race (pid=12612) Write of size 8 at 0x7b18000078f8 by main thread: #0 reset buildtools/third_party/libc++/trunk/include/memory:2649:20 (services_unittests+0x4e981a0) #1 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e981a0) #2 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e981a0) #3 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6a4) #4 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6d9) #5 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efc538) #6 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efc538) #7 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efc538) #8 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efc538) #9 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efc599) #10 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37921) #11 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37921) #12 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37921) #13 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37921) #14 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f37d39) #15 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #16 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #17 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #18 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #19 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:452:1 (services_unittests+0x1c033c9) #20 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd200e) #21 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd200e) #22 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #23 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #24 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #25 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #26 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #27 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #28 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #29 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #30 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #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+0x1fdba18) #32 Run base/callback.h:97:12 (services_unittests+0x5df092d) #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+0x5df092d) #34 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #35 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous read of size 8 at 0x7b18000078f8 by thread T16: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (services_unittests+0x4e9743b) #1 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e9743b) #2 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9f844) #3 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9f844) #4 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9f844) #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+0x4e9f844) #6 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #7 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #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+0x29c56d3) #9 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #10 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #11 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #12 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #13 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #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+0x29f758a) #15 Run base/callback.h:97:12 (services_unittests+0x447e668) #16 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447e668) #17 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447e757) #18 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447e757) #19 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447e757) #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+0x447e757) #21 Run base/callback.h:97:12 (services_unittests+0x443e6da) #22 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443e6da) #23 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4460cb1) #24 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x44608fe) #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+0x44608fe) #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+0x44d4f7f) #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+0x5de2a58) #28 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x4460087) #29 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e0e0) #30 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446dd11) #31 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446db7f) #32 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d59e4) Location is heap block of size 96 at 0x7b18000078c0 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (services_unittests+0x1b42c5b) #1 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:10 (services_unittests+0x4e9511f) #2 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:108:29 (services_unittests+0x5f37133) #3 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:285 (services_unittests+0x5f37133) #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+0x5f36ae3) #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+0x5f38104) #6 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:370:10 (services_unittests+0x5f38015) #7 network::NetworkService::CreateForTesting() services/network/network_service.cc:365:10 (services_unittests+0x5f37f64) #8 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:149:24 (services_unittests+0x1bff24a) #9 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd0bd2) #10 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (services_unittests+0x2dd0bd2) #11 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688:11 (services_unittests+0x2dd1f78) #12 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #13 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #15 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #16 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #17 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #18 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #19 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #20 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #21 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+0x1fdba18) #22 Run base/callback.h:97:12 (services_unittests+0x5df092d) #23 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df092d) #24 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #25 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Thread T16 'ThreadPoolForeg' (tid=12758, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #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+0x44d54d7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d53d5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446d71d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c23b) #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+0x446c23b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c23b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/scheduler_worker_pool_impl.cc:104:30 (services_unittests+0x4468ce4) #8 base::internal::SchedulerWorkerPoolImpl::PushSequenceAndWakeUpWorkers(base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool_impl.cc:448:1 (services_unittests+0x446941d) #9 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool.cc:88:5 (services_unittests+0x4466b84) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:320:37 (services_unittests+0x445d838) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:198:10 (services_unittests+0x445cce1) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x443eb89) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x443eb89) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x443efbf) #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x447e2d2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x443ea19) #17 PostTaskWithTraitsAndReplyWithResult<bool, bool> base/task/post_task.h:158:10 (services_unittests+0x29e2995) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2940 (services_unittests+0x29e2995) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::Options const&, net::NetLog*) net/dns/host_resolver_manager.cc:2264:3 (services_unittests+0x29de1f4) #20 make_unique<net::HostResolverManager, net::HostResolver::Options, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x5f37316) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:304 (services_unittests+0x5f37316) #22 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+0x5f36ae3) #23 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+0x5f38104) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:370:10 (services_unittests+0x5f38015) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:365:10 (services_unittests+0x5f37f64) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:149:24 (services_unittests+0x1bff24a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd0bd2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (services_unittests+0x2dd0bd2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688:11 (services_unittests+0x2dd1f78) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #39 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+0x1fdba18) #40 Run base/callback.h:97:12 (services_unittests+0x5df092d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df092d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2649:20 in reset ================== ================== WARNING: ThreadSanitizer: data race (pid=12612) Read of size 8 at 0x7b30000004e8 by main thread: #0 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539:37 (services_unittests+0x29c008d) #1 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x29c008d) #2 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x29c008d) #3 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4e981b6) #4 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4e981b6) #5 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e981b6) #6 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e981b6) #7 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e981b6) #8 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6a4) #9 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6d9) #10 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efc538) #11 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efc538) #12 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efc538) #13 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efc538) #14 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efc599) #15 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37921) #16 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37921) #17 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37921) #18 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37921) #19 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f37d39) #20 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #21 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #22 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #23 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #24 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:452:1 (services_unittests+0x1c033c9) #25 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd200e) #26 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd200e) #27 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #28 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #29 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #30 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #31 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #32 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #33 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #34 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #35 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #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+0x1fdba18) #37 Run base/callback.h:97:12 (services_unittests+0x5df092d) #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+0x5df092d) #39 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #40 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous write of size 8 at 0x7b30000004e8 by thread T16 (mutexes: write M436421659990164608): #0 __node_insert_multi_perform buildtools/third_party/libc++/trunk/include/__hash_table:2014:23 (services_unittests+0x29c1db9) #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+0x29c1db9) #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+0x29c18fe) #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+0x29c18fe) #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+0x29c18fe) #5 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29c02b3) #6 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29c02b3) #7 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02b3) #8 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e97453) #9 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e97453) #10 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9f844) #11 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9f844) #12 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9f844) #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+0x4e9f844) #14 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #15 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #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+0x29c56d3) #17 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #18 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #19 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #20 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #21 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #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+0x29f758a) #23 Run base/callback.h:97:12 (services_unittests+0x447e668) #24 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447e668) #25 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447e757) #26 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447e757) #27 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447e757) #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+0x447e757) #29 Run base/callback.h:97:12 (services_unittests+0x443e6da) #30 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443e6da) #31 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4460cb1) #32 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x44608fe) #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+0x44608fe) #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+0x44d4f7f) #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+0x5de2a58) #36 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x4460087) #37 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e0e0) #38 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446dd11) #39 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446db7f) #40 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d59e4) Location is heap block of size 184 at 0x7b3000000480 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (services_unittests+0x1b42c5b) #1 net::NetworkChangeNotifier::NetworkChangeNotifier(net::NetworkChangeNotifier::NetworkChangeCalculatorParams const&) net/base/network_change_notifier.cc:643:22 (services_unittests+0x4e96f7f) #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+0x4e9f44c) #3 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (services_unittests+0x4e95147) #4 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:108:29 (services_unittests+0x5f37133) #5 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:285 (services_unittests+0x5f37133) #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+0x5f36ae3) #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+0x5f38104) #8 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:370:10 (services_unittests+0x5f38015) #9 network::NetworkService::CreateForTesting() services/network/network_service.cc:365:10 (services_unittests+0x5f37f64) #10 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:149:24 (services_unittests+0x1bff24a) #11 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd0bd2) #12 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (services_unittests+0x2dd0bd2) #13 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688:11 (services_unittests+0x2dd1f78) #14 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #15 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #16 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #17 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #18 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #19 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #20 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #21 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #22 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #23 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+0x1fdba18) #24 Run base/callback.h:97:12 (services_unittests+0x5df092d) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df092d) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #27 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Mutex M436421659990164608 is already destroyed. Thread T16 'ThreadPoolForeg' (tid=12758, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #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+0x44d54d7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d53d5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446d71d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c23b) #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+0x446c23b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c23b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/scheduler_worker_pool_impl.cc:104:30 (services_unittests+0x4468ce4) #8 base::internal::SchedulerWorkerPoolImpl::PushSequenceAndWakeUpWorkers(base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool_impl.cc:448:1 (services_unittests+0x446941d) #9 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool.cc:88:5 (services_unittests+0x4466b84) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:320:37 (services_unittests+0x445d838) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:198:10 (services_unittests+0x445cce1) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x443eb89) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x443eb89) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x443efbf) #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x447e2d2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x443ea19) #17 PostTaskWithTraitsAndReplyWithResult<bool, bool> base/task/post_task.h:158:10 (services_unittests+0x29e2995) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2940 (services_unittests+0x29e2995) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::Options const&, net::NetLog*) net/dns/host_resolver_manager.cc:2264:3 (services_unittests+0x29de1f4) #20 make_unique<net::HostResolverManager, net::HostResolver::Options, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x5f37316) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:304 (services_unittests+0x5f37316) #22 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+0x5f36ae3) #23 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+0x5f38104) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:370:10 (services_unittests+0x5f38015) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:365:10 (services_unittests+0x5f37f64) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:149:24 (services_unittests+0x1bff24a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd0bd2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (services_unittests+0x2dd0bd2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688:11 (services_unittests+0x2dd1f78) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #39 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+0x1fdba18) #40 Run base/callback.h:97:12 (services_unittests+0x5df092d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df092d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/__hash_table:1539:37 in ~__hash_table ================== ================== WARNING: ThreadSanitizer: data race (pid=12612) Read of size 8 at 0x7b140001e050 by main thread: #0 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1583:39 (services_unittests+0x29c00a7) #1 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x29c00a7) #2 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x29c00a7) #3 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x29c00a7) #4 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4e981b6) #5 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4e981b6) #6 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e981b6) #7 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e981b6) #8 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e981b6) #9 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6a4) #10 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6d9) #11 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efc538) #12 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efc538) #13 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efc538) #14 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efc538) #15 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efc599) #16 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37921) #17 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37921) #18 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37921) #19 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37921) #20 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f37d39) #21 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #22 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #23 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #24 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #25 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:452:1 (services_unittests+0x1c033c9) #26 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd200e) #27 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd200e) #28 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #29 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #30 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #31 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #32 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #33 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #34 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #35 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #36 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #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+0x1fdba18) #38 Run base/callback.h:97:12 (services_unittests+0x5df092d) #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+0x5df092d) #40 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #41 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous write of size 8 at 0x7b140001e050 by thread T16 (mutexes: write M436421659990164608): #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (services_unittests+0x1b42c5b) #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x29c1921) #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x29c1921) #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x29c1921) #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+0x29c1921) #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+0x29c1921) #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+0x29c1921) #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+0x29c1921) #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29c02b3) #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29c02b3) #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02b3) #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e97453) #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e97453) #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9f844) #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9f844) #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9f844) #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+0x4e9f844) #17 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #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+0x29c56d3) #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #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+0x29f758a) #26 Run base/callback.h:97:12 (services_unittests+0x447e668) #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447e668) #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447e757) #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447e757) #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447e757) #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+0x447e757) #32 Run base/callback.h:97:12 (services_unittests+0x443e6da) #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443e6da) #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4460cb1) #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x44608fe) #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+0x44608fe) #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+0x44d4f7f) #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+0x5de2a58) #39 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x4460087) #40 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e0e0) #41 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446dd11) #42 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446db7f) #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d59e4) Location is heap block of size 72 at 0x7b140001e050 allocated by thread T16: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (services_unittests+0x1b42c5b) #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x29c1921) #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x29c1921) #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x29c1921) #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+0x29c1921) #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+0x29c1921) #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+0x29c1921) #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+0x29c1921) #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29c02b3) #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29c02b3) #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02b3) #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e97453) #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e97453) #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9f844) #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9f844) #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9f844) #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+0x4e9f844) #17 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #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+0x29c56d3) #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #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+0x29f758a) #26 Run base/callback.h:97:12 (services_unittests+0x447e668) #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447e668) #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447e757) #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447e757) #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447e757) #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+0x447e757) #32 Run base/callback.h:97:12 (services_unittests+0x443e6da) #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443e6da) #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4460cb1) #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x44608fe) #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+0x44608fe) #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+0x44d4f7f) #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+0x5de2a58) #39 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x4460087) #40 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e0e0) #41 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446dd11) #42 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446db7f) #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d59e4) Mutex M436421659990164608 is already destroyed. Thread T16 'ThreadPoolForeg' (tid=12758, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #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+0x44d54d7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d53d5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446d71d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c23b) #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+0x446c23b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c23b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/scheduler_worker_pool_impl.cc:104:30 (services_unittests+0x4468ce4) #8 base::internal::SchedulerWorkerPoolImpl::PushSequenceAndWakeUpWorkers(base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool_impl.cc:448:1 (services_unittests+0x446941d) #9 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool.cc:88:5 (services_unittests+0x4466b84) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:320:37 (services_unittests+0x445d838) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:198:10 (services_unittests+0x445cce1) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x443eb89) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x443eb89) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x443efbf) #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x447e2d2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x443ea19) #17 PostTaskWithTraitsAndReplyWithResult<bool, bool> base/task/post_task.h:158:10 (services_unittests+0x29e2995) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2940 (services_unittests+0x29e2995) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::Options const&, net::NetLog*) net/dns/host_resolver_manager.cc:2264:3 (services_unittests+0x29de1f4) #20 make_unique<net::HostResolverManager, net::HostResolver::Options, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x5f37316) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:304 (services_unittests+0x5f37316) #22 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+0x5f36ae3) #23 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+0x5f38104) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:370:10 (services_unittests+0x5f38015) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:365:10 (services_unittests+0x5f37f64) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:149:24 (services_unittests+0x1bff24a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd0bd2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (services_unittests+0x2dd0bd2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688:11 (services_unittests+0x2dd1f78) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #39 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+0x1fdba18) #40 Run base/callback.h:97:12 (services_unittests+0x5df092d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df092d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/__hash_table:1583:39 in __deallocate_node ================== ================== WARNING: ThreadSanitizer: data race (pid=12612) Read of size 1 at 0x7b140001e077 by main thread: #0 __is_long buildtools/third_party/libc++/trunk/include/string:1426:39 (services_unittests+0x29c00bc) #1 ~basic_string buildtools/third_party/libc++/trunk/include/string:2137 (services_unittests+0x29c00bc) #2 ~pair buildtools/third_party/libc++/trunk/include/utility:315 (services_unittests+0x29c00bc) #3 ~pair buildtools/third_party/libc++/trunk/include/utility:315 (services_unittests+0x29c00bc) #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+0x29c00bc) #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+0x29c00bc) #6 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1600 (services_unittests+0x29c00bc) #7 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x29c00bc) #8 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x29c00bc) #9 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x29c00bc) #10 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4e981b6) #11 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4e981b6) #12 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e981b6) #13 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e981b6) #14 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e981b6) #15 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6a4) #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6d9) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efc538) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efc538) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efc538) #20 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efc538) #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efc599) #22 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37921) #23 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37921) #24 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37921) #25 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37921) #26 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f37d39) #27 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #28 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #29 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #30 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #31 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:452:1 (services_unittests+0x1c033c9) #32 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd200e) #33 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd200e) #34 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #35 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #36 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #37 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #38 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #39 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #40 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #41 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #42 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #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+0x1fdba18) #44 Run base/callback.h:97:12 (services_unittests+0x5df092d) #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+0x5df092d) #46 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #47 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous write of size 8 at 0x7b140001e070 by thread T16 (mutexes: write M436421659990164608): #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (services_unittests+0x1b42c5b) #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x29c1921) #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x29c1921) #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x29c1921) #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+0x29c1921) #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+0x29c1921) #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+0x29c1921) #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+0x29c1921) #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29c02b3) #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29c02b3) #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02b3) #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e97453) #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e97453) #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9f844) #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9f844) #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9f844) #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+0x4e9f844) #17 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #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+0x29c56d3) #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #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+0x29f758a) #26 Run base/callback.h:97:12 (services_unittests+0x447e668) #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447e668) #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447e757) #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447e757) #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447e757) #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+0x447e757) #32 Run base/callback.h:97:12 (services_unittests+0x443e6da) #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443e6da) #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4460cb1) #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x44608fe) #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+0x44608fe) #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+0x44d4f7f) #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+0x5de2a58) #39 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x4460087) #40 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e0e0) #41 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446dd11) #42 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446db7f) #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d59e4) Location is heap block of size 72 at 0x7b140001e050 allocated by thread T16: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (services_unittests+0x1b42c5b) #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x29c1921) #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x29c1921) #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x29c1921) #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+0x29c1921) #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+0x29c1921) #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+0x29c1921) #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+0x29c1921) #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29c02b3) #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29c02b3) #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02b3) #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e97453) #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e97453) #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9f844) #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9f844) #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9f844) #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+0x4e9f844) #17 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #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+0x29c56d3) #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #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+0x29f758a) #26 Run base/callback.h:97:12 (services_unittests+0x447e668) #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447e668) #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447e757) #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447e757) #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447e757) #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+0x447e757) #32 Run base/callback.h:97:12 (services_unittests+0x443e6da) #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443e6da) #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4460cb1) #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x44608fe) #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+0x44608fe) #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+0x44d4f7f) #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+0x5de2a58) #39 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x4460087) #40 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e0e0) #41 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446dd11) #42 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446db7f) #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d59e4) Mutex M436421659990164608 is already destroyed. Thread T16 'ThreadPoolForeg' (tid=12758, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #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+0x44d54d7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d53d5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446d71d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c23b) #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+0x446c23b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c23b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/scheduler_worker_pool_impl.cc:104:30 (services_unittests+0x4468ce4) #8 base::internal::SchedulerWorkerPoolImpl::PushSequenceAndWakeUpWorkers(base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool_impl.cc:448:1 (services_unittests+0x446941d) #9 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool.cc:88:5 (services_unittests+0x4466b84) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:320:37 (services_unittests+0x445d838) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:198:10 (services_unittests+0x445cce1) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x443eb89) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x443eb89) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x443efbf) #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x447e2d2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x443ea19) #17 PostTaskWithTraitsAndReplyWithResult<bool, bool> base/task/post_task.h:158:10 (services_unittests+0x29e2995) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2940 (services_unittests+0x29e2995) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::Options const&, net::NetLog*) net/dns/host_resolver_manager.cc:2264:3 (services_unittests+0x29de1f4) #20 make_unique<net::HostResolverManager, net::HostResolver::Options, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x5f37316) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:304 (services_unittests+0x5f37316) #22 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+0x5f36ae3) #23 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+0x5f38104) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:370:10 (services_unittests+0x5f38015) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:365:10 (services_unittests+0x5f37f64) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:149:24 (services_unittests+0x1bff24a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd0bd2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (services_unittests+0x2dd0bd2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688:11 (services_unittests+0x2dd1f78) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #39 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+0x1fdba18) #40 Run base/callback.h:97:12 (services_unittests+0x5df092d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df092d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/string:1426:39 in __is_long ================== ================== WARNING: ThreadSanitizer: data race (pid=12612) Write of size 8 at 0x7b140001e060 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (services_unittests+0x29c00de) #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x29c00de) #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x29c00de) #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x29c00de) #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x29c00de) #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (services_unittests+0x29c00de) #7 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1601 (services_unittests+0x29c00de) #8 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x29c00de) #9 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x29c00de) #10 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x29c00de) #11 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4e981b6) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4e981b6) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e981b6) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e981b6) #15 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e981b6) #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6a4) #17 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6d9) #18 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efc538) #19 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efc538) #20 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efc538) #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efc538) #22 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efc599) #23 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37921) #24 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37921) #25 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37921) #26 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37921) #27 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f37d39) #28 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #29 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #30 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #31 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #32 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:452:1 (services_unittests+0x1c033c9) #33 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd200e) #34 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd200e) #35 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #36 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #37 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #38 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #39 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #40 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #41 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #42 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #43 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #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+0x1fdba18) #45 Run base/callback.h:97:12 (services_unittests+0x5df092d) #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+0x5df092d) #47 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #48 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous read of size 1 at 0x7b140001e064 by thread T16 (mutexes: write M436421659990164608): #0 operator() base/strings/string_piece.h:536:17 (services_unittests+0x29c1c06) #1 operator() net/dns/dns_hosts.h:28 (services_unittests+0x29c1c06) #2 operator() buildtools/third_party/libc++/trunk/include/unordered_map:440 (services_unittests+0x29c1c06) #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+0x29c1c06) #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+0x29c18fe) #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+0x29c18fe) #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+0x29c18fe) #7 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29c02b3) #8 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29c02b3) #9 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02b3) #10 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e97453) #11 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e97453) #12 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9f844) #13 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9f844) #14 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9f844) #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+0x4e9f844) #16 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #17 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #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+0x29c56d3) #19 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #20 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #21 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #22 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #23 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #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+0x29f758a) #25 Run base/callback.h:97:12 (services_unittests+0x447e668) #26 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447e668) #27 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447e757) #28 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447e757) #29 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447e757) #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+0x447e757) #31 Run base/callback.h:97:12 (services_unittests+0x443e6da) #32 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443e6da) #33 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4460cb1) #34 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x44608fe) #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+0x44608fe) #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+0x44d4f7f) #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+0x5de2a58) #38 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x4460087) #39 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e0e0) #40 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446dd11) #41 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446db7f) #42 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d59e4) Mutex M436421659990164608 is already destroyed. Thread T16 'ThreadPoolForeg' (tid=12758, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #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+0x44d54d7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d53d5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446d71d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c23b) #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+0x446c23b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c23b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/scheduler_worker_pool_impl.cc:104:30 (services_unittests+0x4468ce4) #8 base::internal::SchedulerWorkerPoolImpl::PushSequenceAndWakeUpWorkers(base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool_impl.cc:448:1 (services_unittests+0x446941d) #9 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool.cc:88:5 (services_unittests+0x4466b84) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:320:37 (services_unittests+0x445d838) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:198:10 (services_unittests+0x445cce1) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x443eb89) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x443eb89) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x443efbf) #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x447e2d2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x443ea19) #17 PostTaskWithTraitsAndReplyWithResult<bool, bool> base/task/post_task.h:158:10 (services_unittests+0x29e2995) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2940 (services_unittests+0x29e2995) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::Options const&, net::NetLog*) net/dns/host_resolver_manager.cc:2264:3 (services_unittests+0x29de1f4) #20 make_unique<net::HostResolverManager, net::HostResolver::Options, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x5f37316) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:304 (services_unittests+0x5f37316) #22 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+0x5f36ae3) #23 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+0x5f38104) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:370:10 (services_unittests+0x5f38015) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:365:10 (services_unittests+0x5f37f64) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:149:24 (services_unittests+0x1bff24a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd0bd2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (services_unittests+0x2dd0bd2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688:11 (services_unittests+0x2dd1f78) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #39 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+0x1fdba18) #40 Run base/callback.h:97:12 (services_unittests+0x5df092d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df092d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) SUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*) ================== ================== WARNING: ThreadSanitizer: data race (pid=12612) Write of size 8 at 0x7b140001e010 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (services_unittests+0x29c00de) #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x29c00de) #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x29c00de) #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x29c00de) #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x29c00de) #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (services_unittests+0x29c00de) #7 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1601 (services_unittests+0x29c00de) #8 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x29c00de) #9 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x29c00de) #10 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x29c00de) #11 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4e981b6) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4e981b6) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e981b6) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e981b6) #15 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e981b6) #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6a4) #17 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6d9) #18 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efc538) #19 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efc538) #20 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efc538) #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efc538) #22 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efc599) #23 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37921) #24 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37921) #25 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37921) #26 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37921) #27 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f37d39) #28 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #29 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #30 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #31 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #32 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:452:1 (services_unittests+0x1c033c9) #33 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd200e) #34 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd200e) #35 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #36 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #37 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #38 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #39 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #40 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #41 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #42 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #43 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #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+0x1fdba18) #45 Run base/callback.h:97:12 (services_unittests+0x5df092d) #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+0x5df092d) #47 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #48 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous read of size 1 at 0x7b140001e015 by thread T16 (mutexes: write M436421659990164608): #0 operator() base/strings/string_piece.h:536:17 (services_unittests+0x29c1c1e) #1 operator() net/dns/dns_hosts.h:28 (services_unittests+0x29c1c1e) #2 operator() buildtools/third_party/libc++/trunk/include/unordered_map:440 (services_unittests+0x29c1c1e) #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+0x29c1c1e) #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+0x29c18fe) #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+0x29c18fe) #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_ty <truncated (1013095 bytes)> nal::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+0x447e757) #31 Run base/callback.h:97:12 (services_unittests+0x443e6da) #32 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443e6da) #33 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4460cb1) #34 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x44608fe) #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+0x44608fe) #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+0x44d4f7f) #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+0x5de2a58) #38 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x4460087) #39 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e0e0) #40 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446dd11) #41 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446db7f) #42 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d59e4) Mutex M436421659990164608 is already destroyed. Thread T16 'ThreadPoolForeg' (tid=12758, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #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+0x44d54d7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d53d5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446d71d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c23b) #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+0x446c23b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c23b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/scheduler_worker_pool_impl.cc:104:30 (services_unittests+0x4468ce4) #8 base::internal::SchedulerWorkerPoolImpl::PushSequenceAndWakeUpWorkers(base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool_impl.cc:448:1 (services_unittests+0x446941d) #9 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool.cc:88:5 (services_unittests+0x4466b84) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:320:37 (services_unittests+0x445d838) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:198:10 (services_unittests+0x445cce1) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x443eb89) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x443eb89) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x443efbf) #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x447e2d2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x443ea19) #17 PostTaskWithTraitsAndReplyWithResult<bool, bool> base/task/post_task.h:158:10 (services_unittests+0x29e2995) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2940 (services_unittests+0x29e2995) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::Options const&, net::NetLog*) net/dns/host_resolver_manager.cc:2264:3 (services_unittests+0x29de1f4) #20 make_unique<net::HostResolverManager, net::HostResolver::Options, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x5f37316) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:304 (services_unittests+0x5f37316) #22 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+0x5f36ae3) #23 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+0x5f38104) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:370:10 (services_unittests+0x5f38015) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:365:10 (services_unittests+0x5f37f64) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:149:24 (services_unittests+0x1bff24a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd0bd2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (services_unittests+0x2dd0bd2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688:11 (services_unittests+0x2dd1f78) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #39 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+0x1fdba18) #40 Run base/callback.h:97:12 (services_unittests+0x5df092d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df092d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) SUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*) ================== ================== WARNING: ThreadSanitizer: data race (pid=12612) Write of size 8 at 0x7b30000004f0 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4e981c6) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e981c6) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e981c6) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e981c6) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6a4) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6d9) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efc538) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efc538) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efc538) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efc538) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efc599) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37921) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37921) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37921) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37921) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f37d39) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:452:1 (services_unittests+0x1c033c9) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd200e) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd200e) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #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+0x1fdba18) #34 Run base/callback.h:97:12 (services_unittests+0x5df092d) #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+0x5df092d) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous write of size 8 at 0x7b30000004f0 by thread T16 (mutexes: write M436421659990164608): #0 __node_insert_multi_perform buildtools/third_party/libc++/trunk/include/__hash_table:2032:5 (services_unittests+0x29c1e68) #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+0x29c1e68) #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+0x29c18fe) #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+0x29c18fe) #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+0x29c18fe) #5 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29c02b3) #6 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29c02b3) #7 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02b3) #8 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e97453) #9 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e97453) #10 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9f844) #11 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9f844) #12 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9f844) #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+0x4e9f844) #14 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #15 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #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+0x29c56d3) #17 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #18 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #19 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #20 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #21 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #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+0x29f758a) #23 Run base/callback.h:97:12 (services_unittests+0x447e668) #24 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447e668) #25 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447e757) #26 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447e757) #27 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447e757) #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+0x447e757) #29 Run base/callback.h:97:12 (services_unittests+0x443e6da) #30 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443e6da) #31 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4460cb1) #32 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x44608fe) #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+0x44608fe) #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+0x44d4f7f) #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+0x5de2a58) #36 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x4460087) #37 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e0e0) #38 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446dd11) #39 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446db7f) #40 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d59e4) Mutex M436421659990164608 is already destroyed. Thread T16 'ThreadPoolForeg' (tid=12758, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #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+0x44d54d7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d53d5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446d71d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c23b) #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+0x446c23b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c23b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/scheduler_worker_pool_impl.cc:104:30 (services_unittests+0x4468ce4) #8 base::internal::SchedulerWorkerPoolImpl::PushSequenceAndWakeUpWorkers(base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool_impl.cc:448:1 (services_unittests+0x446941d) #9 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool.cc:88:5 (services_unittests+0x4466b84) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:320:37 (services_unittests+0x445d838) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:198:10 (services_unittests+0x445cce1) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x443eb89) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x443eb89) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x443efbf) #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x447e2d2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x443ea19) #17 PostTaskWithTraitsAndReplyWithResult<bool, bool> base/task/post_task.h:158:10 (services_unittests+0x29e2995) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2940 (services_unittests+0x29e2995) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::Options const&, net::NetLog*) net/dns/host_resolver_manager.cc:2264:3 (services_unittests+0x29de1f4) #20 make_unique<net::HostResolverManager, net::HostResolver::Options, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x5f37316) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:304 (services_unittests+0x5f37316) #22 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+0x5f36ae3) #23 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+0x5f38104) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:370:10 (services_unittests+0x5f38015) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:365:10 (services_unittests+0x5f37f64) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:149:24 (services_unittests+0x1bff24a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd0bd2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (services_unittests+0x2dd0bd2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688:11 (services_unittests+0x2dd1f78) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #39 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+0x1fdba18) #40 Run base/callback.h:97:12 (services_unittests+0x5df092d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df092d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) SUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*) ================== ================== WARNING: ThreadSanitizer: data race (pid=12612) Write of size 8 at 0x7b30000004f8 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4e981c6) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e981c6) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e981c6) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e981c6) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6a4) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6d9) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efc538) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efc538) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efc538) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efc538) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efc599) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37921) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37921) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37921) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37921) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f37d39) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:452:1 (services_unittests+0x1c033c9) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd200e) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd200e) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #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+0x1fdba18) #34 Run base/callback.h:97:12 (services_unittests+0x5df092d) #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+0x5df092d) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous write of size 4 at 0x7b30000004f8 by thread T16 (mutexes: write M436421659990164608): #0 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1569:27 (services_unittests+0x29c0298) #1 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29c0298) #2 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c0298) #3 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e97453) #4 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e97453) #5 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9f844) #6 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9f844) #7 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9f844) #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+0x4e9f844) #9 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #10 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #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+0x29c56d3) #12 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #13 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #14 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #15 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #16 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #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+0x29f758a) #18 Run base/callback.h:97:12 (services_unittests+0x447e668) #19 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447e668) #20 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447e757) #21 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447e757) #22 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447e757) #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+0x447e757) #24 Run base/callback.h:97:12 (services_unittests+0x443e6da) #25 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443e6da) #26 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4460cb1) #27 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x44608fe) #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+0x44608fe) #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+0x44d4f7f) #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+0x5de2a58) #31 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x4460087) #32 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e0e0) #33 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446dd11) #34 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446db7f) #35 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d59e4) Mutex M436421659990164608 is already destroyed. Thread T16 'ThreadPoolForeg' (tid=12758, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #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+0x44d54d7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d53d5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446d71d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c23b) #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+0x446c23b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c23b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/scheduler_worker_pool_impl.cc:104:30 (services_unittests+0x4468ce4) #8 base::internal::SchedulerWorkerPoolImpl::PushSequenceAndWakeUpWorkers(base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool_impl.cc:448:1 (services_unittests+0x446941d) #9 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool.cc:88:5 (services_unittests+0x4466b84) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:320:37 (services_unittests+0x445d838) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:198:10 (services_unittests+0x445cce1) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x443eb89) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x443eb89) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x443efbf) #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x447e2d2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x443ea19) #17 PostTaskWithTraitsAndReplyWithResult<bool, bool> base/task/post_task.h:158:10 (services_unittests+0x29e2995) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2940 (services_unittests+0x29e2995) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::Options const&, net::NetLog*) net/dns/host_resolver_manager.cc:2264:3 (services_unittests+0x29de1f4) #20 make_unique<net::HostResolverManager, net::HostResolver::Options, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x5f37316) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:304 (services_unittests+0x5f37316) #22 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+0x5f36ae3) #23 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+0x5f38104) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:370:10 (services_unittests+0x5f38015) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:365:10 (services_unittests+0x5f37f64) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:149:24 (services_unittests+0x1bff24a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd0bd2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (services_unittests+0x2dd0bd2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688:11 (services_unittests+0x2dd1f78) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #39 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+0x1fdba18) #40 Run base/callback.h:97:12 (services_unittests+0x5df092d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df092d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) SUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*) ================== ================== WARNING: ThreadSanitizer: data race (pid=12612) Write of size 8 at 0x7b3000000500 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4e981c6) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e981c6) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e981c6) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e981c6) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6a4) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6d9) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efc538) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efc538) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efc538) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efc538) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efc599) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37921) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37921) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37921) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37921) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f37d39) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:452:1 (services_unittests+0x1c033c9) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd200e) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd200e) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #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+0x1fdba18) #34 Run base/callback.h:97:12 (services_unittests+0x5df092d) #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+0x5df092d) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous write of size 8 at 0x7b3000000500 by thread T16 (mutexes: write M436421659990164608): #0 memcpy /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:801:5 (services_unittests+0x1add307) #1 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31:55 (services_unittests+0x29c02c5) #2 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e97453) #3 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e97453) #4 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9f844) #5 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9f844) #6 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9f844) #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+0x4e9f844) #8 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #9 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #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+0x29c56d3) #11 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #12 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #13 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #14 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #15 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #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+0x29f758a) #17 Run base/callback.h:97:12 (services_unittests+0x447e668) #18 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447e668) #19 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447e757) #20 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447e757) #21 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447e757) #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+0x447e757) #23 Run base/callback.h:97:12 (services_unittests+0x443e6da) #24 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443e6da) #25 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4460cb1) #26 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x44608fe) #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+0x44608fe) #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+0x44d4f7f) #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+0x5de2a58) #30 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x4460087) #31 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e0e0) #32 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446dd11) #33 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446db7f) #34 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d59e4) Mutex M436421659990164608 is already destroyed. Thread T16 'ThreadPoolForeg' (tid=12758, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #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+0x44d54d7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d53d5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446d71d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c23b) #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+0x446c23b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c23b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/scheduler_worker_pool_impl.cc:104:30 (services_unittests+0x4468ce4) #8 base::internal::SchedulerWorkerPoolImpl::PushSequenceAndWakeUpWorkers(base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool_impl.cc:448:1 (services_unittests+0x446941d) #9 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool.cc:88:5 (services_unittests+0x4466b84) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:320:37 (services_unittests+0x445d838) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:198:10 (services_unittests+0x445cce1) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x443eb89) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x443eb89) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x443efbf) #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x447e2d2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x443ea19) #17 PostTaskWithTraitsAndReplyWithResult<bool, bool> base/task/post_task.h:158:10 (services_unittests+0x29e2995) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2940 (services_unittests+0x29e2995) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::Options const&, net::NetLog*) net/dns/host_resolver_manager.cc:2264:3 (services_unittests+0x29de1f4) #20 make_unique<net::HostResolverManager, net::HostResolver::Options, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x5f37316) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:304 (services_unittests+0x5f37316) #22 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+0x5f36ae3) #23 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+0x5f38104) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:370:10 (services_unittests+0x5f38015) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:365:10 (services_unittests+0x5f37f64) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:149:24 (services_unittests+0x1bff24a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd0bd2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (services_unittests+0x2dd0bd2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688:11 (services_unittests+0x2dd1f78) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #39 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+0x1fdba18) #40 Run base/callback.h:97:12 (services_unittests+0x5df092d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df092d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) SUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*) ================== ================== WARNING: ThreadSanitizer: data race (pid=12612) Write of size 8 at 0x7b3000000518 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4e981c6) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e981c6) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e981c6) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e981c6) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6a4) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6d9) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efc538) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efc538) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efc538) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efc538) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efc599) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37921) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37921) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37921) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37921) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f37d39) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:452:1 (services_unittests+0x1c033c9) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd200e) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd200e) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #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+0x1fdba18) #34 Run base/callback.h:97:12 (services_unittests+0x5df092d) #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+0x5df092d) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous read of size 8 at 0x7b3000000518 by thread T16 (mutexes: write M436421659990164608): #0 capacity buildtools/third_party/libc++/trunk/include/vector:372:54 (services_unittests+0x29c2286) #1 capacity buildtools/third_party/libc++/trunk/include/vector:659 (services_unittests+0x29c2286) #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+0x29c2286) #3 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x29c02ee) #4 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02ee) #5 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e97453) #6 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e97453) #7 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9f844) #8 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9f844) #9 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9f844) #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+0x4e9f844) #11 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #12 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #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+0x29c56d3) #14 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #15 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #16 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #17 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #18 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #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+0x29f758a) #20 Run base/callback.h:97:12 (services_unittests+0x447e668) #21 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447e668) #22 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447e757) #23 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447e757) #24 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447e757) #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+0x447e757) #26 Run base/callback.h:97:12 (services_unittests+0x443e6da) #27 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443e6da) #28 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4460cb1) #29 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x44608fe) #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+0x44608fe) #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+0x44d4f7f) #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+0x5de2a58) #33 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x4460087) #34 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e0e0) #35 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446dd11) #36 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446db7f) #37 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d59e4) Mutex M436421659990164608 is already destroyed. Thread T16 'ThreadPoolForeg' (tid=12758, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #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+0x44d54d7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d53d5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446d71d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c23b) #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+0x446c23b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c23b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/scheduler_worker_pool_impl.cc:104:30 (services_unittests+0x4468ce4) #8 base::internal::SchedulerWorkerPoolImpl::PushSequenceAndWakeUpWorkers(base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool_impl.cc:448:1 (services_unittests+0x446941d) #9 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool.cc:88:5 (services_unittests+0x4466b84) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:320:37 (services_unittests+0x445d838) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:198:10 (services_unittests+0x445cce1) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x443eb89) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x443eb89) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x443efbf) #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x447e2d2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x443ea19) #17 PostTaskWithTraitsAndReplyWithResult<bool, bool> base/task/post_task.h:158:10 (services_unittests+0x29e2995) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2940 (services_unittests+0x29e2995) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::Options const&, net::NetLog*) net/dns/host_resolver_manager.cc:2264:3 (services_unittests+0x29de1f4) #20 make_unique<net::HostResolverManager, net::HostResolver::Options, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x5f37316) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:304 (services_unittests+0x5f37316) #22 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+0x5f36ae3) #23 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+0x5f38104) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:370:10 (services_unittests+0x5f38015) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:365:10 (services_unittests+0x5f37f64) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:149:24 (services_unittests+0x1bff24a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd0bd2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (services_unittests+0x2dd0bd2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688:11 (services_unittests+0x2dd1f78) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #39 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+0x1fdba18) #40 Run base/callback.h:97:12 (services_unittests+0x5df092d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df092d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) SUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*) ================== ================== WARNING: ThreadSanitizer: data race (pid=12612) Write of size 8 at 0x7b3000000520 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4e981c6) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e981c6) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e981c6) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e981c6) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6a4) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6d9) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efc538) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efc538) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efc538) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efc538) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efc599) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37921) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37921) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37921) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37921) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f37d39) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:452:1 (services_unittests+0x1c033c9) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd200e) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd200e) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #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+0x1fdba18) #34 Run base/callback.h:97:12 (services_unittests+0x5df092d) #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+0x5df092d) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous write of size 8 at 0x7b3000000520 by thread T16 (mutexes: write M436421659990164608): #0 __destruct_at_end buildtools/third_party/libc++/trunk/include/vector:427:12 (services_unittests+0x29c2434) #1 __destruct_at_end buildtools/third_party/libc++/trunk/include/vector:833 (services_unittests+0x29c2434) #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+0x29c2434) #3 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x29c02ee) #4 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02ee) #5 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e97453) #6 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e97453) #7 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9f844) #8 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9f844) #9 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9f844) #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+0x4e9f844) #11 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #12 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #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+0x29c56d3) #14 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #15 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #16 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #17 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #18 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #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+0x29f758a) #20 Run base/callback.h:97:12 (services_unittests+0x447e668) #21 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447e668) #22 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447e757) #23 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447e757) #24 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447e757) #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+0x447e757) #26 Run base/callback.h:97:12 (services_unittests+0x443e6da) #27 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443e6da) #28 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4460cb1) #29 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x44608fe) #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+0x44608fe) #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+0x44d4f7f) #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+0x5de2a58) #33 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x4460087) #34 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e0e0) #35 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446dd11) #36 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446db7f) #37 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d59e4) Mutex M436421659990164608 is already destroyed. Thread T16 'ThreadPoolForeg' (tid=12758, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #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+0x44d54d7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d53d5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446d71d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c23b) #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+0x446c23b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c23b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/scheduler_worker_pool_impl.cc:104:30 (services_unittests+0x4468ce4) #8 base::internal::SchedulerWorkerPoolImpl::PushSequenceAndWakeUpWorkers(base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool_impl.cc:448:1 (services_unittests+0x446941d) #9 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool.cc:88:5 (services_unittests+0x4466b84) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:320:37 (services_unittests+0x445d838) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:198:10 (services_unittests+0x445cce1) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x443eb89) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x443eb89) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x443efbf) #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x447e2d2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x443ea19) #17 PostTaskWithTraitsAndReplyWithResult<bool, bool> base/task/post_task.h:158:10 (services_unittests+0x29e2995) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2940 (services_unittests+0x29e2995) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::Options const&, net::NetLog*) net/dns/host_resolver_manager.cc:2264:3 (services_unittests+0x29de1f4) #20 make_unique<net::HostResolverManager, net::HostResolver::Options, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x5f37316) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:304 (services_unittests+0x5f37316) #22 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+0x5f36ae3) #23 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+0x5f38104) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:370:10 (services_unittests+0x5f38015) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:365:10 (services_unittests+0x5f37f64) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:149:24 (services_unittests+0x1bff24a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd0bd2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (services_unittests+0x2dd0bd2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688:11 (services_unittests+0x2dd1f78) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #39 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+0x1fdba18) #40 Run base/callback.h:97:12 (services_unittests+0x5df092d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df092d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) SUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*) ================== ================== WARNING: ThreadSanitizer: data race (pid=12612) Write of size 8 at 0x7b3000000528 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4e981c6) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e981c6) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e981c6) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e981c6) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6a4) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6d9) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efc538) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efc538) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efc538) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efc538) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efc599) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37921) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37921) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37921) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37921) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f37d39) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:452:1 (services_unittests+0x1c033c9) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd200e) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd200e) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #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+0x1fdba18) #34 Run base/callback.h:97:12 (services_unittests+0x5df092d) #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+0x5df092d) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous read of size 8 at 0x7b3000000528 by thread T16 (mutexes: write M436421659990164608): #0 capacity buildtools/third_party/libc++/trunk/include/vector:372:40 (services_unittests+0x29c227a) #1 capacity buildtools/third_party/libc++/trunk/include/vector:659 (services_unittests+0x29c227a) #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+0x29c227a) #3 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x29c02ee) #4 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02ee) #5 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e97453) #6 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e97453) #7 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9f844) #8 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9f844) #9 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9f844) #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+0x4e9f844) #11 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #12 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #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+0x29c56d3) #14 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #15 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #16 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #17 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #18 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #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+0x29f758a) #20 Run base/callback.h:97:12 (services_unittests+0x447e668) #21 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447e668) #22 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447e757) #23 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447e757) #24 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447e757) #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+0x447e757) #26 Run base/callback.h:97:12 (services_unittests+0x443e6da) #27 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443e6da) #28 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4460cb1) #29 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x44608fe) #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+0x44608fe) #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+0x44d4f7f) #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+0x5de2a58) #33 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x4460087) #34 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e0e0) #35 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446dd11) #36 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446db7f) #37 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d59e4) Mutex M436421659990164608 is already destroyed. Thread T16 'ThreadPoolForeg' (tid=12758, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #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+0x44d54d7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d53d5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446d71d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c23b) #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+0x446c23b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c23b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/scheduler_worker_pool_impl.cc:104:30 (services_unittests+0x4468ce4) #8 base::internal::SchedulerWorkerPoolImpl::PushSequenceAndWakeUpWorkers(base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool_impl.cc:448:1 (services_unittests+0x446941d) #9 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool.cc:88:5 (services_unittests+0x4466b84) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:320:37 (services_unittests+0x445d838) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:198:10 (services_unittests+0x445cce1) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x443eb89) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x443eb89) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x443efbf) #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x447e2d2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x443ea19) #17 PostTaskWithTraitsAndReplyWithResult<bool, bool> base/task/post_task.h:158:10 (services_unittests+0x29e2995) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2940 (services_unittests+0x29e2995) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::Options const&, net::NetLog*) net/dns/host_resolver_manager.cc:2264:3 (services_unittests+0x29de1f4) #20 make_unique<net::HostResolverManager, net::HostResolver::Options, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x5f37316) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:304 (services_unittests+0x5f37316) #22 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+0x5f36ae3) #23 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+0x5f38104) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:370:10 (services_unittests+0x5f38015) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:365:10 (services_unittests+0x5f37f64) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:149:24 (services_unittests+0x1bff24a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd0bd2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (services_unittests+0x2dd0bd2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688:11 (services_unittests+0x2dd1f78) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #39 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+0x1fdba18) #40 Run base/callback.h:97:12 (services_unittests+0x5df092d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df092d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) SUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*) ================== ================== WARNING: ThreadSanitizer: data race (pid=12612) Write of size 8 at 0x7b3000000530 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4e981c6) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e981c6) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e981c6) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e981c6) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6a4) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9f6d9) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efc538) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efc538) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efc538) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efc538) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efc599) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37921) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37921) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37921) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37921) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f37d39) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:452:1 (services_unittests+0x1c033c9) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd200e) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd200e) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #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+0x1fdba18) #34 Run base/callback.h:97:12 (services_unittests+0x5df092d) #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+0x5df092d) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous write of size 1 at 0x7b3000000530 by thread T16 (mutexes: write M436421659990164608): #0 SetDnsConfig net/base/network_change_notifier.cc:79:10 (services_unittests+0x4e97466) #1 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e97466) #2 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9f844) #3 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9f844) #4 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9f844) #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+0x4e9f844) #6 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #7 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #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+0x29c56d3) #9 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #10 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #11 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #12 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #13 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #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+0x29f758a) #15 Run base/callback.h:97:12 (services_unittests+0x447e668) #16 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447e668) #17 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447e757) #18 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447e757) #19 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447e757) #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+0x447e757) #21 Run base/callback.h:97:12 (services_unittests+0x443e6da) #22 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443e6da) #23 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4460cb1) #24 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x44608fe) #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+0x44608fe) #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+0x44d4f7f) #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+0x5de2a58) #28 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x4460087) #29 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e0e0) #30 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446dd11) #31 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446db7f) #32 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d59e4) Mutex M436421659990164608 is already destroyed. Thread T16 'ThreadPoolForeg' (tid=12758, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #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+0x44d54d7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d53d5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446d71d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c23b) #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+0x446c23b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c23b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/scheduler_worker_pool_impl.cc:104:30 (services_unittests+0x4468ce4) #8 base::internal::SchedulerWorkerPoolImpl::PushSequenceAndWakeUpWorkers(base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool_impl.cc:448:1 (services_unittests+0x446941d) #9 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/thread_pool/scheduler_worker_pool.cc:88:5 (services_unittests+0x4466b84) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:320:37 (services_unittests+0x445d838) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:198:10 (services_unittests+0x445cce1) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x443eb89) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x443eb89) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x443efbf) #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x447e2d2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x443ea19) #17 PostTaskWithTraitsAndReplyWithResult<bool, bool> base/task/post_task.h:158:10 (services_unittests+0x29e2995) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2940 (services_unittests+0x29e2995) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::Options const&, net::NetLog*) net/dns/host_resolver_manager.cc:2264:3 (services_unittests+0x29de1f4) #20 make_unique<net::HostResolverManager, net::HostResolver::Options, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x5f37316) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:304 (services_unittests+0x5f37316) #22 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+0x5f36ae3) #23 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+0x5f38104) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:370:10 (services_unittests+0x5f38015) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:365:10 (services_unittests+0x5f37f64) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:149:24 (services_unittests+0x1bff24a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd0bd2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (services_unittests+0x2dd0bd2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688:11 (services_unittests+0x2dd1f78) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd2b56) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de4fd6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4439) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4439) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7392) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7392) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #39 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+0x1fdba18) #40 Run base/callback.h:97:12 (services_unittests+0x5df092d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df092d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0790) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) SUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*) ================== [ OK ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther2 (1408 ms) [ RUN ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther3 [12612:12612:0420/013710.913701:18892698603:WARNING:cors_url_loader_factory.cc(141)] |fetch_credentials_mode| and |load_flags| contradict each other. [ OK ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther3 (14 ms) [ RUN ] CorsURLLoaderTest.SameOriginRequest [ OK ] CorsURLLoaderTest.SameOriginRequest (21 ms) [ RUN ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsMode [ OK ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsMode (13 ms) [ RUN ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsModeAndPatchMethod [ OK ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsModeAndPatchMethod (18 ms) [ RUN ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin [ OK ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin (13 ms) [ RUN ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader [ OK ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader (15 ms) [ RUN ] CorsURLLoaderTest.CrossOriginRequestWithCorsMode [ OK ] CorsURLLoaderTest.CrossOriginRequestWithCorsMode (12 ms) [----------] 10 tests from CorsURLLoaderTest (1565 ms total) [----------] Global test environment tear-down [==========] 10 tests from 1 test suite ran. (1567 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 40 warnings ThreadSanitizer: Matched 2 suppressions (pid=12612): 2 race:net::(anonymous namespace)::g_network_change_notifier [ RUN ] CorsURLLoaderTest.NavigateWithoutInitiator [ OK ] CorsURLLoaderTest.NavigateWithoutInitiator (21 ms) ================================================================================