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

Test 'CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther2' completed with the following status(es): 'FAILURE_ON_EXIT','SUCCESS' Test 'CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther2' had the following logs when run: ================================================================================ [ RUN ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther2 [31910:31910:0524/215316.303394:4489710445:WARNING:cors_url_loader_factory.cc(153)] |fetch_credentials_mode| and |allow_credentials| or |load_flags| contradict each other. [ OK ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther2 (63 ms) [ RUN ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther3 [31910:31910:0524/215316.358440:4489765489:WARNING:cors_url_loader_factory.cc(153)] |fetch_credentials_mode| and |allow_credentials| or |load_flags| contradict each other. [ OK ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther3 (39 ms) [ RUN ] CorsURLLoaderTest.NavigationFromRenderer [ OK ] CorsURLLoaderTest.NavigationFromRenderer (19 ms) [ RUN ] CorsURLLoaderTest.SameOriginRequest [ OK ] CorsURLLoaderTest.SameOriginRequest (48 ms) [ RUN ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsMode [ OK ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsMode (17 ms) [ RUN ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsModeAndPatchMethod [ OK ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsModeAndPatchMethod (17 ms) [ RUN ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin [ OK ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin (14 ms) [ RUN ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader ================== WARNING: ThreadSanitizer: data race (pid=31910) Write of size 8 at 0x7b1c00002418 by main thread: #0 reset buildtools/third_party/libc++/trunk/include/memory:2649:20 (services_unittests+0x4aed5d2) #1 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5d2) #2 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5d2) #3 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c) #4 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59) #5 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88) #6 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88) #7 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88) #8 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88) #9 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9) #10 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead) #11 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead) #12 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead) #13 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead) #14 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9) #15 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472) #16 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472) #17 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472) #18 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472) #19 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test() services/network/cors/cors_url_loader_unittest.cc:651:1 (services_unittests+0x1a1dbb9) #20 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe) #21 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe) #22 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #23 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #24 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #25 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #26 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #27 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #28 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #29 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #30 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #32 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #33 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #34 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #35 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) Previous read of size 8 at 0x7b1c00002418 by thread T24: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (services_unittests+0x4aec87b) #1 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec87b) #2 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4) #3 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4) #4 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4) #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+0x4af4dc4) #6 Run base/callback.h:136:12 (services_unittests+0x273b963) #7 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963) #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+0x273b963) #9 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c) #10 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b) #11 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a) #12 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a) #13 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a) #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+0x276e60a) #15 Run base/callback.h:97:12 (services_unittests+0x4106c78) #16 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78) #17 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67) #18 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67) #19 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67) #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+0x4106d67) #21 Run base/callback.h:97:12 (services_unittests+0x40c5ac5) #22 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5) #23 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511) #24 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe) #25 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe) #26 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf) #27 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8) #28 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e) #29 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867) #30 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471) #31 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df) #32 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934) Location is heap block of size 104 at 0x7b1c000023e0 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+0x195b8db) #1 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:10 (services_unittests+0x4ae9b8f) #2 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:109:29 (services_unittests+0x52da62b) #3 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:302 (services_unittests+0x52da62b) #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:262:5 (services_unittests+0x52d9c42) #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+0x52db684) #6 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595) #7 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4) #8 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a) #9 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2) #10 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2) #11 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68) #12 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #13 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #15 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #16 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #17 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #18 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #19 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #20 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #22 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #23 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #24 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #25 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) Thread T24 'ThreadPoolForeg' (tid=32172, 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:989:3 (services_unittests+0x18ecbfb) #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+0x415d427) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325) #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d) #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b) #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b) #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924) #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd) #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df) #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+0x41068e2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439) #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297) #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d) #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:262:5 (services_unittests+0x52d9c42) #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+0x52db684) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2649:20 in reset ================== ================== WARNING: ThreadSanitizer: data race (pid=31910) Read of size 8 at 0x7b30000004e8 by main thread: #0 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539:37 (services_unittests+0x273631d) #1 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x273631d) #2 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x273631d) #3 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4aed5e8) #4 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4aed5e8) #5 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5e8) #6 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5e8) #7 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5e8) #8 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c) #9 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59) #10 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88) #11 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88) #12 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88) #13 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88) #14 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9) #15 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead) #16 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead) #17 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead) #18 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead) #19 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9) #20 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472) #21 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472) #22 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472) #23 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472) #24 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test() services/network/cors/cors_url_loader_unittest.cc:651:1 (services_unittests+0x1a1dbb9) #25 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe) #26 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe) #27 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #28 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #29 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #30 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #31 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #32 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #33 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #34 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #35 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #37 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #38 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #39 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #40 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) Previous write of size 8 at 0x7b30000004e8 by thread T24 (mutexes: write M849626925801407616): #0 __node_insert_multi_perform buildtools/third_party/libc++/trunk/include/__hash_table:2014:23 (services_unittests+0x2738049) #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+0x2738049) #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+0x2737b8e) #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+0x2737b8e) #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+0x2737b8e) #5 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543) #6 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543) #7 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543) #8 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893) #9 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893) #10 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4) #11 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4) #12 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4) #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+0x4af4dc4) #14 Run base/callback.h:136:12 (services_unittests+0x273b963) #15 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963) #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+0x273b963) #17 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c) #18 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b) #19 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a) #20 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a) #21 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a) #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+0x276e60a) #23 Run base/callback.h:97:12 (services_unittests+0x4106c78) #24 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78) #25 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67) #26 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67) #27 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67) #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+0x4106d67) #29 Run base/callback.h:97:12 (services_unittests+0x40c5ac5) #30 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5) #31 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511) #32 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe) #33 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe) #34 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf) #35 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8) #36 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e) #37 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867) #38 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471) #39 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df) #40 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934) 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+0x195b8db) #1 net::NetworkChangeNotifier::NetworkChangeNotifier(net::NetworkChangeNotifier::NetworkChangeCalculatorParams const&) net/base/network_change_notifier.cc:679:22 (services_unittests+0x4aec24e) #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+0x4af49cc) #3 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (services_unittests+0x4ae9bb7) #4 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:109:29 (services_unittests+0x52da62b) #5 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:302 (services_unittests+0x52da62b) #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:262:5 (services_unittests+0x52d9c42) #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+0x52db684) #8 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595) #9 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4) #10 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a) #11 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2) #12 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2) #13 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68) #14 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #15 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #16 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #17 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #18 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #19 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #20 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #21 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #22 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #24 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #27 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) Mutex M849626925801407616 is already destroyed. Thread T24 'ThreadPoolForeg' (tid=32172, 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:989:3 (services_unittests+0x18ecbfb) #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+0x415d427) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325) #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d) #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b) #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b) #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924) #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd) #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df) #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+0x41068e2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439) #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297) #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d) #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:262:5 (services_unittests+0x52d9c42) #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+0x52db684) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/__hash_table:1539:37 in ~__hash_table ================== ================== WARNING: ThreadSanitizer: data race (pid=31910) Read of size 8 at 0x7b140001a8b0 by main thread: #0 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1583:39 (services_unittests+0x2736337) #1 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x2736337) #2 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x2736337) #3 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x2736337) #4 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4aed5e8) #5 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4aed5e8) #6 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5e8) #7 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5e8) #8 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5e8) #9 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c) #10 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59) #11 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88) #12 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88) #13 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88) #14 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88) #15 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9) #16 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead) #17 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead) #18 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead) #19 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead) #20 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9) #21 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472) #22 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472) #23 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472) #24 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472) #25 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test() services/network/cors/cors_url_loader_unittest.cc:651:1 (services_unittests+0x1a1dbb9) #26 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe) #27 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe) #28 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #29 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #30 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #31 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #32 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #33 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #34 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #35 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #36 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #38 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #39 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #40 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #41 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) Previous write of size 8 at 0x7b140001a8b0 by thread T24 (mutexes: write M849626925801407616): #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+0x195b8db) #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x2737bb1) #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x2737bb1) #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x2737bb1) #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+0x2737bb1) #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+0x2737bb1) #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+0x2737bb1) #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+0x2737bb1) #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543) #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543) #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543) #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893) #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893) #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4) #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4) #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4) #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+0x4af4dc4) #17 Run base/callback.h:136:12 (services_unittests+0x273b963) #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963) #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+0x273b963) #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c) #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b) #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a) #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a) #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a) #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+0x276e60a) #26 Run base/callback.h:97:12 (services_unittests+0x4106c78) #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78) #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67) #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67) #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67) #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+0x4106d67) #32 Run base/callback.h:97:12 (services_unittests+0x40c5ac5) #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5) #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511) #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe) #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe) #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf) #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8) #39 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e) #40 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867) #41 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471) #42 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df) #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934) Location is heap block of size 72 at 0x7b140001a8b0 allocated by thread T24: #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+0x195b8db) #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x2737bb1) #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x2737bb1) #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x2737bb1) #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+0x2737bb1) #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+0x2737bb1) #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+0x2737bb1) #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+0x2737bb1) #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543) #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543) #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543) #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893) #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893) #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4) #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4) #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4) #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+0x4af4dc4) #17 Run base/callback.h:136:12 (services_unittests+0x273b963) #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963) #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+0x273b963) #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c) #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b) #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a) #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a) #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a) #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+0x276e60a) #26 Run base/callback.h:97:12 (services_unittests+0x4106c78) #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78) #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67) #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67) #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67) #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+0x4106d67) #32 Run base/callback.h:97:12 (services_unittests+0x40c5ac5) #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5) #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511) #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe) #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe) #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf) #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8) #39 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e) #40 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867) #41 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471) #42 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df) #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934) Mutex M849626925801407616 is already destroyed. Thread T24 'ThreadPoolForeg' (tid=32172, 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:989:3 (services_unittests+0x18ecbfb) #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+0x415d427) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325) #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d) #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b) #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b) #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924) #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd) #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df) #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+0x41068e2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439) #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297) #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d) #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:262:5 (services_unittests+0x52d9c42) #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+0x52db684) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/__hash_table:1583:39 in __deallocate_node ================== ================== WARNING: ThreadSanitizer: data race (pid=31910) Read of size 1 at 0x7b140001a8d7 by main thread: #0 __is_long buildtools/third_party/libc++/trunk/include/string:1426:39 (services_unittests+0x273634c) #1 ~basic_string buildtools/third_party/libc++/trunk/include/string:2137 (services_unittests+0x273634c) #2 ~pair buildtools/third_party/libc++/trunk/include/utility:315 (services_unittests+0x273634c) #3 ~pair buildtools/third_party/libc++/trunk/include/utility:315 (services_unittests+0x273634c) #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+0x273634c) #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+0x273634c) #6 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1600 (services_unittests+0x273634c) #7 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x273634c) #8 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x273634c) #9 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x273634c) #10 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4aed5e8) #11 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4aed5e8) #12 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5e8) #13 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5e8) #14 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5e8) #15 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c) #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88) #20 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88) #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9) #22 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead) #23 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead) #24 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead) #25 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead) #26 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9) #27 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472) #28 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472) #29 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472) #30 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472) #31 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test() services/network/cors/cors_url_loader_unittest.cc:651:1 (services_unittests+0x1a1dbb9) #32 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe) #33 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe) #34 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #35 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #36 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #37 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #38 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #39 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #40 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #41 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #42 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #44 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #45 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #46 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #47 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) Previous write of size 8 at 0x7b140001a8d0 by thread T24 (mutexes: write M849626925801407616): #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+0x195b8db) #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x2737bb1) #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x2737bb1) #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x2737bb1) #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+0x2737bb1) #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+0x2737bb1) #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+0x2737bb1) #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+0x2737bb1) #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543) #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543) #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543) #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893) #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893) #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4) #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4) #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4) #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+0x4af4dc4) #17 Run base/callback.h:136:12 (services_unittests+0x273b963) #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963) #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+0x273b963) #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c) #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b) #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a) #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a) #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a) #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+0x276e60a) #26 Run base/callback.h:97:12 (services_unittests+0x4106c78) #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78) #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67) #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67) #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67) #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+0x4106d67) #32 Run base/callback.h:97:12 (services_unittests+0x40c5ac5) #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5) #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511) #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe) #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe) #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf) #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8) #39 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e) #40 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867) #41 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471) #42 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df) #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934) Location is heap block of size 72 at 0x7b140001a8b0 allocated by thread T24: #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+0x195b8db) #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x2737bb1) #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x2737bb1) #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x2737bb1) #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+0x2737bb1) #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+0x2737bb1) #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+0x2737bb1) #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+0x2737bb1) #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543) #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543) #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543) #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893) #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893) #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4) #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4) #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4) #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+0x4af4dc4) #17 Run base/callback.h:136:12 (services_unittests+0x273b963) #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963) #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+0x273b963) #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c) #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b) #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a) #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a) #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a) #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+0x276e60a) #26 Run base/callback.h:97:12 (services_unittests+0x4106c78) #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78) #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67) #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67) #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67) #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+0x4106d67) #32 Run base/callback.h:97:12 (services_unittests+0x40c5ac5) #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5) #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511) #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe) #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe) #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf) #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8) #39 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e) #40 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867) #41 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471) #42 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df) #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934) Mutex M849626925801407616 is already destroyed. Thread T24 'ThreadPoolForeg' (tid=32172, 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:989:3 (services_unittests+0x18ecbfb) #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+0x415d427) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325) #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d) #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b) #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b) #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924) #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd) #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df) #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+0x41068e2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439) #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297) #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d) #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:262:5 (services_unittests+0x52d9c42) #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+0x52db684) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/string:1426:39 in __is_long ================== ================== WARNING: ThreadSanitizer: data race (pid=31910) Write of size 8 at 0x7b140001a8c0 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+0x195c02e) #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (services_unittests+0x273636e) #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x273636e) #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x273636e) #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x273636e) #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x273636e) #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (services_unittests+0x273636e) #7 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1601 (services_unittests+0x273636e) #8 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x273636e) #9 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x273636e) #10 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x273636e) #11 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4aed5e8) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4aed5e8) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5e8) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5e8) #15 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5e8) #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c) #17 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59) #18 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88) #19 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88) #20 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88) #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88) #22 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9) #23 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead) #24 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead) #25 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead) #26 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead) #27 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9) #28 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472) #29 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472) #30 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472) #31 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472) #32 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test() services/network/cors/cors_url_loader_unittest.cc:651:1 (services_unittests+0x1a1dbb9) #33 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe) #34 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe) #35 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #36 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #37 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #38 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #39 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #40 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #41 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #42 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #43 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #45 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #46 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #47 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #48 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) Previous read of size 1 at 0x7b140001a8c6 by thread T24 (mutexes: write M849626925801407616): #0 operator() base/strings/string_piece.h:536:17 (services_unittests+0x2737ec6) #1 operator() net/dns/dns_hosts.h:28 (services_unittests+0x2737ec6) #2 operator() buildtools/third_party/libc++/trunk/include/unordered_map:440 (services_unittests+0x2737ec6) #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+0x2737ec6) #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+0x2737b8e) #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+0x2737b8e) #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+0x2737b8e) #7 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543) #8 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543) #9 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543) #10 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893) #11 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893) #12 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4) #13 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4) #14 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4) #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+0x4af4dc4) #16 Run base/callback.h:136:12 (services_unittests+0x273b963) #17 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963) #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+0x273b963) #19 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c) #20 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b) #21 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a) #22 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a) #23 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a) #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+0x276e60a) #25 Run base/callback.h:97:12 (services_unittests+0x4106c78) #26 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78) #27 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67) #28 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67) #29 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67) #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+0x4106d67) #31 Run base/callback.h:97:12 (services_unittests+0x40c5ac5) #32 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5) #33 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511) #34 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe) #35 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe) #36 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf) #37 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8) #38 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e) #39 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867) #40 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471) #41 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df) #42 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934) Mutex M849626925801407616 is already destroyed. Thread T24 'ThreadPoolForeg' (tid=32172, 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:989:3 (services_unittests+0x18ecbfb) #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+0x415d427) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325) #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d) #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b) #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b) #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924) #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd) #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df) #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+0x41068e2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439) #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297) #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d) #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:262:5 (services_unittests+0x52d9c42) #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+0x52db684) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) 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=31910) Write of size 8 at 0x7b140001a8c8 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+0x195c02e) #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (services_unittests+0x273636e) #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x273636e) #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x273636e) #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x273636e) #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x273636e) #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (services_unittests+0x273636e) #7 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1601 (services_unittests+0x273636e) #8 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x273636e) #9 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x273636e) #10 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x273636e) #11 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4aed5e8) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4aed5e8) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5e8) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5e8) #15 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5e8) #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c) #17 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59) #18 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88) #19 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88) #20 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88) #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88) #22 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9) #23 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead) #24 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead) #25 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead) #26 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead) #27 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9) #28 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472) #29 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472) #30 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472) #31 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472) #32 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test() services/network/cors/cors_url_loader_unittest.cc:651:1 (services_unittests+0x1a1dbb9) #33 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe) #34 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe) #35 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #36 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #37 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #38 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #39 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #40 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #41 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #42 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #43 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #45 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #46 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #47 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #48 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) Previous read of size 1 at 0x7b140001a8cb by thread T24 (mutexes: write M849626925801407616): #0 operator() base/strings/string_piece.h:536:17 (services_unittests+0x2737d57) #1 operator() net/dns/dns_hosts.h:28 (services_unittests+0x2737d57) #2 operator() buildtools/third_party/libc++/trunk/include/unordered_map:440 (services_unittests+0x2737d57) #3 __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:2527 (services_unittests+0x2737d57) #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:2186 (services_unittests+0x2737d57) #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+0x2737d57) #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_ <truncated (1016533 bytes)> MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67) #29 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67) #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+0x4106d67) #31 Run base/callback.h:97:12 (services_unittests+0x40c5ac5) #32 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5) #33 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511) #34 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe) #35 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe) #36 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf) #37 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8) #38 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e) #39 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867) #40 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471) #41 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df) #42 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934) Mutex M849626925801407616 is already destroyed. Thread T24 'ThreadPoolForeg' (tid=32172, 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:989:3 (services_unittests+0x18ecbfb) #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+0x415d427) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325) #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d) #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b) #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b) #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924) #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd) #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df) #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+0x41068e2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439) #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297) #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d) #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:262:5 (services_unittests+0x52d9c42) #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+0x52db684) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) 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=31910) 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+0x195c02e) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test() services/network/cors/cors_url_loader_unittest.cc:651:1 (services_unittests+0x1a1dbb9) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) Previous write of size 8 at 0x7b30000004f0 by thread T24 (mutexes: write M849626925801407616): #0 __node_insert_multi_perform buildtools/third_party/libc++/trunk/include/__hash_table:2032:5 (services_unittests+0x27380f8) #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+0x27380f8) #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+0x2737b8e) #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+0x2737b8e) #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+0x2737b8e) #5 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543) #6 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543) #7 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543) #8 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893) #9 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893) #10 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4) #11 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4) #12 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4) #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+0x4af4dc4) #14 Run base/callback.h:136:12 (services_unittests+0x273b963) #15 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963) #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+0x273b963) #17 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c) #18 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b) #19 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a) #20 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a) #21 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a) #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+0x276e60a) #23 Run base/callback.h:97:12 (services_unittests+0x4106c78) #24 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78) #25 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67) #26 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67) #27 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67) #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+0x4106d67) #29 Run base/callback.h:97:12 (services_unittests+0x40c5ac5) #30 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5) #31 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511) #32 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe) #33 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe) #34 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf) #35 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8) #36 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e) #37 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867) #38 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471) #39 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df) #40 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934) Mutex M849626925801407616 is already destroyed. Thread T24 'ThreadPoolForeg' (tid=32172, 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:989:3 (services_unittests+0x18ecbfb) #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+0x415d427) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325) #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d) #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b) #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b) #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924) #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd) #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df) #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+0x41068e2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439) #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297) #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d) #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:262:5 (services_unittests+0x52d9c42) #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+0x52db684) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) 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=31910) 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+0x195c02e) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test() services/network/cors/cors_url_loader_unittest.cc:651:1 (services_unittests+0x1a1dbb9) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) Previous write of size 4 at 0x7b30000004f8 by thread T24 (mutexes: write M849626925801407616): #0 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1569:27 (services_unittests+0x2736528) #1 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736528) #2 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736528) #3 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893) #4 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893) #5 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4) #6 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4) #7 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4) #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+0x4af4dc4) #9 Run base/callback.h:136:12 (services_unittests+0x273b963) #10 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963) #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+0x273b963) #12 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c) #13 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b) #14 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a) #15 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a) #16 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a) #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+0x276e60a) #18 Run base/callback.h:97:12 (services_unittests+0x4106c78) #19 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78) #20 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67) #21 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67) #22 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67) #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+0x4106d67) #24 Run base/callback.h:97:12 (services_unittests+0x40c5ac5) #25 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5) #26 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511) #27 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe) #28 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe) #29 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf) #30 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8) #31 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e) #32 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867) #33 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471) #34 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df) #35 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934) Mutex M849626925801407616 is already destroyed. Thread T24 'ThreadPoolForeg' (tid=32172, 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:989:3 (services_unittests+0x18ecbfb) #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+0x415d427) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325) #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d) #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b) #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b) #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924) #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd) #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df) #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+0x41068e2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439) #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297) #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d) #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:262:5 (services_unittests+0x52d9c42) #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+0x52db684) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) 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=31910) 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+0x195c02e) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test() services/network/cors/cors_url_loader_unittest.cc:651:1 (services_unittests+0x1a1dbb9) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) Previous write of size 8 at 0x7b3000000500 by thread T24 (mutexes: write M849626925801407616): #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+0x18f6ea7) #1 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31:55 (services_unittests+0x2736555) #2 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893) #3 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893) #4 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4) #5 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4) #6 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4) #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+0x4af4dc4) #8 Run base/callback.h:136:12 (services_unittests+0x273b963) #9 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963) #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+0x273b963) #11 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c) #12 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b) #13 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a) #14 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a) #15 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a) #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+0x276e60a) #17 Run base/callback.h:97:12 (services_unittests+0x4106c78) #18 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78) #19 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67) #20 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67) #21 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67) #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+0x4106d67) #23 Run base/callback.h:97:12 (services_unittests+0x40c5ac5) #24 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5) #25 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511) #26 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe) #27 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe) #28 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf) #29 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8) #30 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e) #31 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867) #32 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471) #33 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df) #34 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934) Mutex M849626925801407616 is already destroyed. Thread T24 'ThreadPoolForeg' (tid=32172, 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:989:3 (services_unittests+0x18ecbfb) #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+0x415d427) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325) #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d) #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b) #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b) #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924) #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd) #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df) #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+0x41068e2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439) #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297) #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d) #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:262:5 (services_unittests+0x52d9c42) #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+0x52db684) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) 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=31910) 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+0x195c02e) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test() services/network/cors/cors_url_loader_unittest.cc:651:1 (services_unittests+0x1a1dbb9) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) Previous read of size 8 at 0x7b3000000518 by thread T24 (mutexes: write M849626925801407616): #0 capacity buildtools/third_party/libc++/trunk/include/vector:372:54 (services_unittests+0x2738516) #1 capacity buildtools/third_party/libc++/trunk/include/vector:659 (services_unittests+0x2738516) #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+0x2738516) #3 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x273657e) #4 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x273657e) #5 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893) #6 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893) #7 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4) #8 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4) #9 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4) #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+0x4af4dc4) #11 Run base/callback.h:136:12 (services_unittests+0x273b963) #12 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963) #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+0x273b963) #14 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c) #15 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b) #16 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a) #17 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a) #18 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a) #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+0x276e60a) #20 Run base/callback.h:97:12 (services_unittests+0x4106c78) #21 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78) #22 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67) #23 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67) #24 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67) #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+0x4106d67) #26 Run base/callback.h:97:12 (services_unittests+0x40c5ac5) #27 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5) #28 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511) #29 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe) #30 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe) #31 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf) #32 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8) #33 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e) #34 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867) #35 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471) #36 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df) #37 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934) Mutex M849626925801407616 is already destroyed. Thread T24 'ThreadPoolForeg' (tid=32172, 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:989:3 (services_unittests+0x18ecbfb) #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+0x415d427) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325) #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d) #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b) #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b) #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924) #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd) #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df) #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+0x41068e2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439) #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297) #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d) #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:262:5 (services_unittests+0x52d9c42) #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+0x52db684) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) 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=31910) 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+0x195c02e) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test() services/network/cors/cors_url_loader_unittest.cc:651:1 (services_unittests+0x1a1dbb9) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) Previous write of size 8 at 0x7b3000000520 by thread T24 (mutexes: write M849626925801407616): #0 __destruct_at_end buildtools/third_party/libc++/trunk/include/vector:427:12 (services_unittests+0x27386c4) #1 __destruct_at_end buildtools/third_party/libc++/trunk/include/vector:833 (services_unittests+0x27386c4) #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+0x27386c4) #3 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x273657e) #4 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x273657e) #5 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893) #6 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893) #7 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4) #8 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4) #9 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4) #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+0x4af4dc4) #11 Run base/callback.h:136:12 (services_unittests+0x273b963) #12 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963) #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+0x273b963) #14 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c) #15 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b) #16 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a) #17 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a) #18 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a) #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+0x276e60a) #20 Run base/callback.h:97:12 (services_unittests+0x4106c78) #21 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78) #22 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67) #23 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67) #24 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67) #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+0x4106d67) #26 Run base/callback.h:97:12 (services_unittests+0x40c5ac5) #27 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5) #28 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511) #29 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe) #30 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe) #31 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf) #32 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8) #33 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e) #34 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867) #35 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471) #36 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df) #37 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934) Mutex M849626925801407616 is already destroyed. Thread T24 'ThreadPoolForeg' (tid=32172, 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:989:3 (services_unittests+0x18ecbfb) #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+0x415d427) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325) #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d) #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b) #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b) #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924) #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd) #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df) #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+0x41068e2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439) #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297) #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d) #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:262:5 (services_unittests+0x52d9c42) #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+0x52db684) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) 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=31910) 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+0x195c02e) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test() services/network/cors/cors_url_loader_unittest.cc:651:1 (services_unittests+0x1a1dbb9) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) Previous read of size 8 at 0x7b3000000528 by thread T24 (mutexes: write M849626925801407616): #0 capacity buildtools/third_party/libc++/trunk/include/vector:372:40 (services_unittests+0x273850a) #1 capacity buildtools/third_party/libc++/trunk/include/vector:659 (services_unittests+0x273850a) #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+0x273850a) #3 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x273657e) #4 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x273657e) #5 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893) #6 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893) #7 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4) #8 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4) #9 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4) #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+0x4af4dc4) #11 Run base/callback.h:136:12 (services_unittests+0x273b963) #12 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963) #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+0x273b963) #14 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c) #15 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b) #16 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a) #17 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a) #18 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a) #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+0x276e60a) #20 Run base/callback.h:97:12 (services_unittests+0x4106c78) #21 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78) #22 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67) #23 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67) #24 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67) #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+0x4106d67) #26 Run base/callback.h:97:12 (services_unittests+0x40c5ac5) #27 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5) #28 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511) #29 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe) #30 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe) #31 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf) #32 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8) #33 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e) #34 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867) #35 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471) #36 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df) #37 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934) Mutex M849626925801407616 is already destroyed. Thread T24 'ThreadPoolForeg' (tid=32172, 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:989:3 (services_unittests+0x18ecbfb) #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+0x415d427) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325) #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d) #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b) #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b) #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924) #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd) #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df) #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+0x41068e2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439) #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297) #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d) #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:262:5 (services_unittests+0x52d9c42) #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+0x52db684) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) 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=31910) 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+0x195c02e) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsModeButMissingCorsHeader_Test() services/network/cors/cors_url_loader_unittest.cc:651:1 (services_unittests+0x1a1dbb9) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) Previous write of size 1 at 0x7b3000000530 by thread T24 (mutexes: write M849626925801407616): #0 SetDnsConfig net/base/network_change_notifier.cc:79:10 (services_unittests+0x4aec8a6) #1 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec8a6) #2 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4) #3 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4) #4 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4) #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+0x4af4dc4) #6 Run base/callback.h:136:12 (services_unittests+0x273b963) #7 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963) #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+0x273b963) #9 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c) #10 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b) #11 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a) #12 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a) #13 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a) #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+0x276e60a) #15 Run base/callback.h:97:12 (services_unittests+0x4106c78) #16 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78) #17 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67) #18 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67) #19 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67) #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+0x4106d67) #21 Run base/callback.h:97:12 (services_unittests+0x40c5ac5) #22 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5) #23 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511) #24 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe) #25 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe) #26 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf) #27 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8) #28 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e) #29 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867) #30 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471) #31 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df) #32 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934) Mutex M849626925801407616 is already destroyed. Thread T24 'ThreadPoolForeg' (tid=32172, 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:989:3 (services_unittests+0x18ecbfb) #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+0x415d427) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325) #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d) #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b) #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b) #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924) #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd) #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1) #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53) #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071) #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab) #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab) #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df) #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+0x41068e2) #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439) #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5) #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5) #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297) #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d) #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d) #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:262:5 (services_unittests+0x52d9c42) #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+0x52db684) #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595) #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4) #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a) #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2) #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2) #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68) #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36) #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6) #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349) #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349) #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712) #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712) #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578) #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578) #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578) #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+0x1de0578) #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d) #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d) #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0) #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af) 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.CrossOriginRequestWithCorsModeButMissingCorsHeader (1807 ms) [----------] 10 tests from CorsURLLoaderTest (2085 ms total) [----------] Global test environment tear-down [==========] 10 tests from 1 test suite ran. (2087 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 40 warnings ThreadSanitizer: Matched 2 suppressions (pid=31910): 2 race:net::(anonymous namespace)::g_network_change_notifier [ RUN ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther2 [7631:7631:0524/215546.447325:4639854383:WARNING:cors_url_loader_factory.cc(153)] |fetch_credentials_mode| and |allow_credentials| or |load_flags| contradict each other. [ OK ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther2 (20 ms) ================================================================================