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

Test 'CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin' completed with the following status(es): 'FAILURE_ON_EXIT','SUCCESS' Test 'CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin' had the following logs when run: ================================================================================ [ RUN ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin [ OK ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin (29 ms) [ RUN ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader [ OK ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader (14 ms) [ RUN ] CorsURLLoaderTest.CrossOriginRequestWithCorsMode ================== WARNING: ThreadSanitizer: data race (pid=2607) Write of size 8 at 0x7b1800006cf8 by main thread: #0 reset buildtools/third_party/libc++/trunk/include/memory:2649:20 (services_unittests+0x4e986f0) #1 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e986f0) #2 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e986f0) #3 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fbf4) #4 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fc29) #5 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efcbf8) #6 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efcbf8) #7 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efcbf8) #8 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efcbf8) #9 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efcc59) #10 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37fe1) #11 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37fe1) #12 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37fe1) #13 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37fe1) #14 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f383f9) #15 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #16 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #17 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #18 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #19 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test() services/network/cors/cors_url_loader_unittest.cc:594:1 (services_unittests+0x1c07c19) #20 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd260e) #21 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd260e) #22 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #23 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #24 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #25 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #26 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #27 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #28 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #29 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #30 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #31 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1fdba18) #32 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #33 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df0fed) #34 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #35 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous read of size 8 at 0x7b1800006cf8 by thread T13: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (services_unittests+0x4e9798b) #1 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e9798b) #2 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9fd94) #3 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9fd94) #4 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9fd94) #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+0x4e9fd94) #6 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #7 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #8 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29c56d3) #9 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #10 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #11 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #12 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #13 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #14 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x29f758a) #15 Run base/callback.h:97:12 (services_unittests+0x447ebb8) #16 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447ebb8) #17 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447eca7) #18 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447eca7) #19 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447eca7) #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+0x447eca7) #21 Run base/callback.h:97:12 (services_unittests+0x443ec2a) #22 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443ec2a) #23 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4461201) #24 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x4460e4e) #25 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x4460e4e) #26 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44d54cf) #27 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5de3118) #28 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x44605d7) #29 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e630) #30 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #31 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #32 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) Location is heap block of size 96 at 0x7b1800006cc0 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (services_unittests+0x1b42c5b) #1 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:10 (services_unittests+0x4e9566f) #2 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:108:29 (services_unittests+0x5f377f3) #3 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:285 (services_unittests+0x5f377f3) #4 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>, bool) services/network/network_service.cc:245:5 (services_unittests+0x5f371a3) #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+0x5f387c4) #6 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:370:10 (services_unittests+0x5f386d5) #7 network::NetworkService::CreateForTesting() services/network/network_service.cc:365:10 (services_unittests+0x5f38624) #8 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:149:24 (services_unittests+0x1bff24a) #9 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd11d2) #10 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (services_unittests+0x2dd11d2) #11 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688:11 (services_unittests+0x2dd2578) #12 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #13 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #15 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #16 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #17 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #18 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #19 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #20 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #21 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1fdba18) #22 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #23 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df0fed) #24 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #25 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Thread T13 'ThreadPoolForeg' (tid=3002, running) created by thread T10 at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44d5a27) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d5925) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446dc6d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c78b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x446c78b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c78b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x446a40e) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x446a119) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x446e5fe) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2649:20 in reset ================== ================== WARNING: ThreadSanitizer: data race (pid=2607) Read of size 8 at 0x7b3000000668 by main thread: #0 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539:37 (services_unittests+0x29c008d) #1 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x29c008d) #2 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x29c008d) #3 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4e98706) #4 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4e98706) #5 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e98706) #6 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e98706) #7 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e98706) #8 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fbf4) #9 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fc29) #10 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efcbf8) #11 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efcbf8) #12 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efcbf8) #13 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efcbf8) #14 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efcc59) #15 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37fe1) #16 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37fe1) #17 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37fe1) #18 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37fe1) #19 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f383f9) #20 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #21 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #22 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #23 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #24 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test() services/network/cors/cors_url_loader_unittest.cc:594:1 (services_unittests+0x1c07c19) #25 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd260e) #26 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd260e) #27 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #28 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #29 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #30 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #31 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #32 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #33 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #34 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #35 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #36 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1fdba18) #37 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #38 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df0fed) #39 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #40 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous write of size 8 at 0x7b3000000668 by thread T13 (mutexes: write M711985662189897216): #0 __node_insert_multi_perform buildtools/third_party/libc++/trunk/include/__hash_table:2014:23 (services_unittests+0x29c1db9) #1 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi(std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*) buildtools/third_party/libc++/trunk/include/__hash_table:2042 (services_unittests+0x29c1db9) #2 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x29c18fe) #3 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x29c18fe) #4 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x29c18fe) #5 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29c02b3) #6 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29c02b3) #7 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02b3) #8 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e979a3) #9 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e979a3) #10 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9fd94) #11 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9fd94) #12 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9fd94) #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+0x4e9fd94) #14 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #15 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #16 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29c56d3) #17 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #18 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #19 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #20 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #21 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #22 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x29f758a) #23 Run base/callback.h:97:12 (services_unittests+0x447ebb8) #24 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447ebb8) #25 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447eca7) #26 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447eca7) #27 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447eca7) #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+0x447eca7) #29 Run base/callback.h:97:12 (services_unittests+0x443ec2a) #30 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443ec2a) #31 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4461201) #32 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x4460e4e) #33 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x4460e4e) #34 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44d54cf) #35 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5de3118) #36 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x44605d7) #37 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e630) #38 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #39 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #40 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) Location is heap block of size 184 at 0x7b3000000600 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (services_unittests+0x1b42c5b) #1 net::NetworkChangeNotifier::NetworkChangeNotifier(net::NetworkChangeNotifier::NetworkChangeCalculatorParams const&) net/base/network_change_notifier.cc:643:22 (services_unittests+0x4e974cf) #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+0x4e9f99c) #3 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (services_unittests+0x4e95697) #4 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:108:29 (services_unittests+0x5f377f3) #5 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:285 (services_unittests+0x5f377f3) #6 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>, bool) services/network/network_service.cc:245:5 (services_unittests+0x5f371a3) #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+0x5f387c4) #8 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:370:10 (services_unittests+0x5f386d5) #9 network::NetworkService::CreateForTesting() services/network/network_service.cc:365:10 (services_unittests+0x5f38624) #10 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:149:24 (services_unittests+0x1bff24a) #11 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd11d2) #12 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (services_unittests+0x2dd11d2) #13 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688:11 (services_unittests+0x2dd2578) #14 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #15 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #16 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #17 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #18 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #19 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #20 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #21 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #22 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #23 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1fdba18) #24 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df0fed) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #27 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Mutex M711985662189897216 is already destroyed. Thread T13 'ThreadPoolForeg' (tid=3002, running) created by thread T10 at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44d5a27) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d5925) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446dc6d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c78b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x446c78b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c78b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x446a40e) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x446a119) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x446e5fe) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/__hash_table:1539:37 in ~__hash_table ================== ================== WARNING: ThreadSanitizer: data race (pid=2607) Read of size 8 at 0x7b1400018830 by main thread: #0 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1583:39 (services_unittests+0x29c00a7) #1 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x29c00a7) #2 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x29c00a7) #3 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x29c00a7) #4 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4e98706) #5 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4e98706) #6 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e98706) #7 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e98706) #8 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e98706) #9 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fbf4) #10 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fc29) #11 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efcbf8) #12 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efcbf8) #13 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efcbf8) #14 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efcbf8) #15 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efcc59) #16 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37fe1) #17 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37fe1) #18 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37fe1) #19 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37fe1) #20 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f383f9) #21 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #22 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #23 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #24 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #25 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test() services/network/cors/cors_url_loader_unittest.cc:594:1 (services_unittests+0x1c07c19) #26 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd260e) #27 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd260e) #28 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #29 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #30 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #31 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #32 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #33 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #34 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #35 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #36 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #37 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1fdba18) #38 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #39 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df0fed) #40 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #41 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous write of size 8 at 0x7b1400018830 by thread T13 (mutexes: write M711985662189897216): #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (services_unittests+0x1b42c5b) #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x29c1921) #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x29c1921) #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x29c1921) #4 __construct_node<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2524 (services_unittests+0x29c1921) #5 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2186 (services_unittests+0x29c1921) #6 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x29c1921) #7 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x29c1921) #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29c02b3) #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29c02b3) #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02b3) #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e979a3) #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e979a3) #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9fd94) #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9fd94) #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9fd94) #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+0x4e9fd94) #17 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #19 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29c56d3) #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #25 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x29f758a) #26 Run base/callback.h:97:12 (services_unittests+0x447ebb8) #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447ebb8) #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447eca7) #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447eca7) #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447eca7) #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+0x447eca7) #32 Run base/callback.h:97:12 (services_unittests+0x443ec2a) #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443ec2a) #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4461201) #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x4460e4e) #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x4460e4e) #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44d54cf) #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5de3118) #39 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x44605d7) #40 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e630) #41 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #42 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) Location is heap block of size 72 at 0x7b1400018830 allocated by thread T13: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (services_unittests+0x1b42c5b) #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x29c1921) #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x29c1921) #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x29c1921) #4 __construct_node<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2524 (services_unittests+0x29c1921) #5 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2186 (services_unittests+0x29c1921) #6 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x29c1921) #7 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x29c1921) #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29c02b3) #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29c02b3) #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02b3) #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e979a3) #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e979a3) #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9fd94) #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9fd94) #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9fd94) #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+0x4e9fd94) #17 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #19 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29c56d3) #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #25 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x29f758a) #26 Run base/callback.h:97:12 (services_unittests+0x447ebb8) #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447ebb8) #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447eca7) #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447eca7) #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447eca7) #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+0x447eca7) #32 Run base/callback.h:97:12 (services_unittests+0x443ec2a) #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443ec2a) #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4461201) #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x4460e4e) #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x4460e4e) #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44d54cf) #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5de3118) #39 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x44605d7) #40 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e630) #41 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #42 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) Mutex M711985662189897216 is already destroyed. Thread T13 'ThreadPoolForeg' (tid=3002, running) created by thread T10 at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44d5a27) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d5925) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446dc6d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c78b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x446c78b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c78b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x446a40e) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x446a119) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x446e5fe) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/__hash_table:1583:39 in __deallocate_node ================== ================== WARNING: ThreadSanitizer: data race (pid=2607) Read of size 1 at 0x7b1400018857 by main thread: #0 __is_long buildtools/third_party/libc++/trunk/include/string:1426:39 (services_unittests+0x29c00bc) #1 ~basic_string buildtools/third_party/libc++/trunk/include/string:2137 (services_unittests+0x29c00bc) #2 ~pair buildtools/third_party/libc++/trunk/include/utility:315 (services_unittests+0x29c00bc) #3 ~pair buildtools/third_party/libc++/trunk/include/utility:315 (services_unittests+0x29c00bc) #4 __destroy<std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> > buildtools/third_party/libc++/trunk/include/memory:1747 (services_unittests+0x29c00bc) #5 destroy<std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> > buildtools/third_party/libc++/trunk/include/memory:1595 (services_unittests+0x29c00bc) #6 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1600 (services_unittests+0x29c00bc) #7 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x29c00bc) #8 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x29c00bc) #9 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x29c00bc) #10 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4e98706) #11 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4e98706) #12 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e98706) #13 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e98706) #14 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e98706) #15 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fbf4) #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fc29) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efcbf8) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efcbf8) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efcbf8) #20 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efcbf8) #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efcc59) #22 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37fe1) #23 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37fe1) #24 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37fe1) #25 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37fe1) #26 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f383f9) #27 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #28 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #29 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #30 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #31 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test() services/network/cors/cors_url_loader_unittest.cc:594:1 (services_unittests+0x1c07c19) #32 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd260e) #33 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd260e) #34 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #35 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #36 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #37 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #38 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #39 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #40 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #41 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #42 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #43 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1fdba18) #44 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #45 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df0fed) #46 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #47 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous write of size 8 at 0x7b1400018850 by thread T13 (mutexes: write M711985662189897216): #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (services_unittests+0x1b42c5b) #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x29c1921) #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x29c1921) #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x29c1921) #4 __construct_node<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2524 (services_unittests+0x29c1921) #5 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2186 (services_unittests+0x29c1921) #6 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x29c1921) #7 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x29c1921) #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29c02b3) #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29c02b3) #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02b3) #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e979a3) #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e979a3) #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9fd94) #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9fd94) #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9fd94) #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+0x4e9fd94) #17 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #19 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29c56d3) #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #25 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x29f758a) #26 Run base/callback.h:97:12 (services_unittests+0x447ebb8) #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447ebb8) #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447eca7) #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447eca7) #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447eca7) #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+0x447eca7) #32 Run base/callback.h:97:12 (services_unittests+0x443ec2a) #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443ec2a) #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4461201) #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x4460e4e) #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x4460e4e) #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44d54cf) #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5de3118) #39 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x44605d7) #40 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e630) #41 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #42 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) Location is heap block of size 72 at 0x7b1400018830 allocated by thread T13: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (services_unittests+0x1b42c5b) #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x29c1921) #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x29c1921) #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x29c1921) #4 __construct_node<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2524 (services_unittests+0x29c1921) #5 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2186 (services_unittests+0x29c1921) #6 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x29c1921) #7 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x29c1921) #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29c02b3) #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29c02b3) #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02b3) #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e979a3) #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e979a3) #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9fd94) #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9fd94) #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9fd94) #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+0x4e9fd94) #17 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #19 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29c56d3) #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #25 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x29f758a) #26 Run base/callback.h:97:12 (services_unittests+0x447ebb8) #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447ebb8) #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447eca7) #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447eca7) #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447eca7) #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+0x447eca7) #32 Run base/callback.h:97:12 (services_unittests+0x443ec2a) #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443ec2a) #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4461201) #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x4460e4e) #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x4460e4e) #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44d54cf) #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5de3118) #39 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x44605d7) #40 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e630) #41 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #42 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) Mutex M711985662189897216 is already destroyed. Thread T13 'ThreadPoolForeg' (tid=3002, running) created by thread T10 at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44d5a27) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d5925) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446dc6d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c78b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x446c78b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c78b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x446a40e) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x446a119) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x446e5fe) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/string:1426:39 in __is_long ================== ================== WARNING: ThreadSanitizer: data race (pid=2607) Write of size 8 at 0x7b1400018840 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (services_unittests+0x29c00de) #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x29c00de) #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x29c00de) #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x29c00de) #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x29c00de) #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (services_unittests+0x29c00de) #7 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1601 (services_unittests+0x29c00de) #8 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x29c00de) #9 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x29c00de) #10 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x29c00de) #11 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4e98706) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4e98706) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e98706) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e98706) #15 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e98706) #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fbf4) #17 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fc29) #18 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efcbf8) #19 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efcbf8) #20 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efcbf8) #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efcbf8) #22 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efcc59) #23 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37fe1) #24 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37fe1) #25 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37fe1) #26 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37fe1) #27 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f383f9) #28 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #29 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #30 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #31 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #32 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test() services/network/cors/cors_url_loader_unittest.cc:594:1 (services_unittests+0x1c07c19) #33 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd260e) #34 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd260e) #35 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #36 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #37 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #38 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #39 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #40 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #41 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #42 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #43 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #44 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1fdba18) #45 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #46 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df0fed) #47 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #48 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous read of size 1 at 0x7b1400018847 by thread T13 (mutexes: write M711985662189897216): #0 operator() base/strings/string_piece.h:536:17 (services_unittests+0x29c1c4e) #1 operator() net/dns/dns_hosts.h:28 (services_unittests+0x29c1c4e) #2 operator() buildtools/third_party/libc++/trunk/include/unordered_map:440 (services_unittests+0x29c1c4e) #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+0x29c1c4e) #4 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x29c18fe) #5 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x29c18fe) #6 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x29c18fe) #7 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29c02b3) #8 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29c02b3) #9 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02b3) #10 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e979a3) #11 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e979a3) #12 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9fd94) #13 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9fd94) #14 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9fd94) #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+0x4e9fd94) #16 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #17 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #18 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29c56d3) #19 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #20 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #21 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #22 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #23 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #24 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x29f758a) #25 Run base/callback.h:97:12 (services_unittests+0x447ebb8) #26 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447ebb8) #27 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447eca7) #28 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447eca7) #29 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447eca7) #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+0x447eca7) #31 Run base/callback.h:97:12 (services_unittests+0x443ec2a) #32 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443ec2a) #33 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4461201) #34 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x4460e4e) #35 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x4460e4e) #36 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44d54cf) #37 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5de3118) #38 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x44605d7) #39 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e630) #40 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #41 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #42 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) Mutex M711985662189897216 is already destroyed. Thread T13 'ThreadPoolForeg' (tid=3002, running) created by thread T10 at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44d5a27) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d5925) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446dc6d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c78b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x446c78b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c78b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x446a40e) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x446a119) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x446e5fe) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) 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=2607) Write of size 8 at 0x7b1400018de0 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (services_unittests+0x29c00de) #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x29c00de) #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x29c00de) #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x29c00de) #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x29c00de) #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (services_unittests+0x29c00de) #7 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1601 (services_unittests+0x29c00de) #8 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x29c00de) #9 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x29c00de) #10 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x29c00de) #11 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4e98706) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4e98706) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e98706) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e98706) #15 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e98706) #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fbf4) #17 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fc29) #18 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efcbf8) #19 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efcbf8) #20 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efcbf8) #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efcbf8) #22 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efcc59) #23 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37fe1) #24 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37fe1) #25 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37fe1) #26 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37fe1) #27 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f383f9) #28 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #29 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #30 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #31 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #32 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test() services/network/cors/cors_url_loader_unittest.cc:594:1 (services_unittests+0x1c07c19) #33 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd260e) #34 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd260e) #35 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #36 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #37 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #38 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #39 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #40 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #41 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #42 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #43 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #44 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1fdba18) #45 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #46 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df0fed) #47 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #48 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous read of size 1 at 0x7b1400018de6 by thread T13 (mutexes: write M711985662189897216): #0 operator() base/strings/string_piece.h:536:17 (services_unittests+0x29c1c36) #1 operator() net/dns/dns_hosts.h:28 (services_unittests+0x29c1c36) #2 operator() buildtools/third_party/libc++/trunk/include/unordered_map:440 (services_unittests+0x29c1c36) #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+0x29c1c36) #4 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x29c18fe) #5 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x29c18fe) #6 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x29c18fe) #7 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29c02b3) #8 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29c02b3) #9 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02b3) #10 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e979a3) #11 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e979a3) #12 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9fd94) #13 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9fd94) #14 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9fd94) #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+0x4e9fd94) #16 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #17 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #18 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29c56d3) #19 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #20 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #21 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #22 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #23 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #24 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x29f758a) #25 Run base/callback.h:97:12 (services_unittests+0x447ebb8) #26 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447ebb8) #27 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447eca7) #28 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447eca7) #29 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447eca7) #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+0x447eca7) #31 Run base/callback.h:97:12 (services_unittests+0x443ec2a) #32 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443ec2a) #33 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4461201) #34 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x4460e4e) #35 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x4460e4e) #36 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44d54cf) #37 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5de3118) #38 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x44605d7) #39 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e630) #40 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #41 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #42 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) Mutex M711985662189897216 is already destroyed. Thread T13 'ThreadPoolForeg' (tid=3002, running) created by thread T10 at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44d5a27) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d5925) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446dc6d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c78b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x446c78b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c78b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x446a40e) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x446a119) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x446e5fe) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) 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=2607) Write of size 8 at 0x7b1400018de8 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (services_unittests+0x29c00de) #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x29c00de) #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x29c00de) #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x29c00de) #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x29c00de) #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (services_unittests+0x29c00de) #7 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1601 (services_unittests+0x29c00de) #8 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x29c00de) #9 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x29c00de) #10 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x29c00de) #11 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4e98706) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4e98706) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e98706) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e98706) #15 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e98706) #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fbf4) #17 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fc29) #18 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efcbf8) #19 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efcbf8) #20 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efcbf8) #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efcbf8) #22 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efcc59) #23 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37fe1) #24 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37fe1) #25 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37fe1) #26 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37fe1) #27 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f383f9) #28 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #29 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #30 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #31 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #32 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test() services/network/cors/cors_url_loader_unittest.cc:594:1 (services_unittests+0x1c07c19) #33 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd260e) #34 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd260e) #35 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #36 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #37 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #38 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #39 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #40 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #41 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #42 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #43 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #44 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1fdba18) #45 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #46 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df0fed) #47 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #48 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous read of size 1 at 0x7b1400018deb by thread T13 (mutexes: write M711985662189897216): #0 operator() base/strings/string_piece.h:536:17 (services_unittests+0x29c1ac7) #1 operator() net/dns/dns_hosts.h:28 (services_unittests+0x29c1ac7) #2 operator() buildtools/third_party/libc++/trunk/include/unordered_map:440 (services_unittests+0x29c1ac7) #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+0x29c1ac7) #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+0x29c1ac7) #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+0x29c1ac7) #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+0x29c1ac7) #7 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29c02b3) #8 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29c02b3) #9 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02b3) #10 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e979a3) #11 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e979a3) #12 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9fd94) #13 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9fd94) #14 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9fd94) #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+0x4e9fd94) #16 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #17 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #18 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29c56d3) #19 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #20 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #21 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #22 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #23 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #24 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x29f758a) #25 Run base/callback.h:97:12 (services_unittests+0x447ebb8) #26 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447ebb8) #27 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447eca7) #28 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447eca7) #29 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447eca7) #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+0x447eca7) #31 Run base/callback.h:97:12 (services_unittests+0x443ec2a) #32 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443ec2a) #33 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4461201) #34 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x4460e4e) #35 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x4460e4e) #36 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44d54cf) #37 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5de3118) #38 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x44605d7) #39 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e630) #40 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #41 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #42 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) Mutex M711985662189897216 is already destroyed. Thread T13 'ThreadPoolForeg' (tid=3002, running) created by thread T10 at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44d5a27) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d5925) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446dc6d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c78b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x446c78b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c78b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x446a40e) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x446a119) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x446e5fe) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) 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=2607) Write of size 8 at 0x7b14000189d0 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (services_unittests+0x29c00de) #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x29c00de) #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x29c00de) #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x29c00de) #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x29c00de) #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (services_unittests+0x29c00de) #7 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1601 (services_unittests+0x29c00de) #8 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x29c00de) #9 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x29c00de) #10 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x29c00de) #11 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4e98706) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4e98706) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e98706) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e98706) #15 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e98706) #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fbf4) #17 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fc29) #18 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efcbf8) #19 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efcbf8) #20 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efcbf8) #21 network::NetworkChangeManager::~NetworkChangeManager() services/net <truncated (805499 bytes)> task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c78b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x446a40e) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x446a119) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x446e5fe) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) SUMMARY: ThreadSanitizer: data race base/synchronization/lock_impl_posix.cc:79:12 in base::internal::LockImpl::~LockImpl() ================== ================== WARNING: ThreadSanitizer: data race (pid=2607) Write of size 8 at 0x7b3000000638 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4e98716) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e98716) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e98716) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e98716) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fbf4) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fc29) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efcbf8) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efcbf8) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efcbf8) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efcbf8) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efcc59) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37fe1) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37fe1) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37fe1) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37fe1) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f383f9) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test() services/network/cors/cors_url_loader_unittest.cc:594:1 (services_unittests+0x1c07c19) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd260e) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd260e) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1fdba18) #34 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df0fed) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous write of size 8 at 0x7b3000000638 by thread T13 (mutexes: write M711985662189897216): #0 __vallocate buildtools/third_party/libc++/trunk/include/vector:982:23 (services_unittests+0x1c40083) #1 std::__1::enable_if<(__is_forward_iterator<net::IPEndPoint*>::value) && (is_constructible<net::IPEndPoint, std::__1::iterator_traits<net::IPEndPoint*>::reference>::value), void>::type std::__1::vector<net::IPEndPoint, std::__1::allocator<net::IPEndPoint> >::assign<net::IPEndPoint*>(net::IPEndPoint*, net::IPEndPoint*) buildtools/third_party/libc++/trunk/include/vector:1458 (services_unittests+0x1c40083) #2 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x29c0255) #3 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c0255) #4 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e979a3) #5 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e979a3) #6 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9fd94) #7 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9fd94) #8 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9fd94) #9 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (services_unittests+0x4e9fd94) #10 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #11 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #12 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29c56d3) #13 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #14 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #15 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #16 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #17 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #18 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x29f758a) #19 Run base/callback.h:97:12 (services_unittests+0x447ebb8) #20 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447ebb8) #21 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447eca7) #22 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447eca7) #23 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447eca7) #24 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x447eca7) #25 Run base/callback.h:97:12 (services_unittests+0x443ec2a) #26 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443ec2a) #27 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4461201) #28 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x4460e4e) #29 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x4460e4e) #30 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44d54cf) #31 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5de3118) #32 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x44605d7) #33 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e630) #34 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #35 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #36 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) Mutex M711985662189897216 is already destroyed. Thread T13 'ThreadPoolForeg' (tid=3002, running) created by thread T10 at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44d5a27) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d5925) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446dc6d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c78b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x446c78b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c78b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x446a40e) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x446a119) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x446e5fe) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) 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=2607) Write of size 8 at 0x7b3000000650 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4e98716) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e98716) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e98716) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e98716) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fbf4) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fc29) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efcbf8) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efcbf8) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efcbf8) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efcbf8) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efcc59) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37fe1) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37fe1) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37fe1) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37fe1) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f383f9) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test() services/network/cors/cors_url_loader_unittest.cc:594:1 (services_unittests+0x1c07c19) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd260e) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd260e) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1fdba18) #34 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df0fed) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous write of size 8 at 0x7b3000000650 by thread T13 (mutexes: write M711985662189897216): #0 __vallocate buildtools/third_party/libc++/trunk/include/vector:982:23 (services_unittests+0x1bd2226) #1 std::__1::enable_if<(__is_forward_iterator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*>::value) && (is_constructible<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::iterator_traits<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*>::reference>::value), void>::type std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >::assign<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) buildtools/third_party/libc++/trunk/include/vector:1458 (services_unittests+0x1bd2226) #2 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x29c027e) #3 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c027e) #4 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e979a3) #5 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e979a3) #6 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9fd94) #7 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9fd94) #8 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9fd94) #9 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (services_unittests+0x4e9fd94) #10 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #11 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #12 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29c56d3) #13 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #14 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #15 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #16 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #17 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #18 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x29f758a) #19 Run base/callback.h:97:12 (services_unittests+0x447ebb8) #20 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447ebb8) #21 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447eca7) #22 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447eca7) #23 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447eca7) #24 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x447eca7) #25 Run base/callback.h:97:12 (services_unittests+0x443ec2a) #26 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443ec2a) #27 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4461201) #28 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x4460e4e) #29 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x4460e4e) #30 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44d54cf) #31 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5de3118) #32 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x44605d7) #33 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e630) #34 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #35 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #36 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) Mutex M711985662189897216 is already destroyed. Thread T13 'ThreadPoolForeg' (tid=3002, running) created by thread T10 at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44d5a27) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d5925) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446dc6d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c78b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x446c78b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c78b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x446a40e) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x446a119) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x446e5fe) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) 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=2607) Write of size 8 at 0x7b3000000660 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4e98716) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e98716) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e98716) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e98716) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fbf4) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fc29) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efcbf8) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efcbf8) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efcbf8) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efcbf8) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efcc59) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37fe1) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37fe1) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37fe1) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37fe1) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f383f9) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test() services/network/cors/cors_url_loader_unittest.cc:594:1 (services_unittests+0x1c07c19) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd260e) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd260e) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1fdba18) #34 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df0fed) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous write of size 8 at 0x7b3000000660 by thread T13 (mutexes: write M711985662189897216): #0 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__rehash(unsigned long) buildtools/third_party/libc++/trunk/include/__hash_table:2406:41 (services_unittests+0x1f58bec) #1 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::rehash(unsigned long) buildtools/third_party/libc++/trunk/include/__hash_table (services_unittests+0x1f58a7f) #2 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi_prepare(unsigned long, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>&) buildtools/third_party/libc++/trunk/include/__hash_table:1968:9 (services_unittests+0x29c1fa9) #3 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi(std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*) buildtools/third_party/libc++/trunk/include/__hash_table:2041:27 (services_unittests+0x29c1cd6) #4 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x29c18fe) #5 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x29c18fe) #6 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x29c18fe) #7 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29c02b3) #8 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29c02b3) #9 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02b3) #10 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e979a3) #11 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e979a3) #12 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9fd94) #13 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9fd94) #14 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9fd94) #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+0x4e9fd94) #16 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #17 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #18 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29c56d3) #19 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #20 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #21 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #22 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #23 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #24 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x29f758a) #25 Run base/callback.h:97:12 (services_unittests+0x447ebb8) #26 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447ebb8) #27 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447eca7) #28 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447eca7) #29 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447eca7) #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+0x447eca7) #31 Run base/callback.h:97:12 (services_unittests+0x443ec2a) #32 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443ec2a) #33 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4461201) #34 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x4460e4e) #35 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x4460e4e) #36 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44d54cf) #37 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5de3118) #38 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x44605d7) #39 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e630) #40 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #41 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #42 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) Mutex M711985662189897216 is already destroyed. Thread T13 'ThreadPoolForeg' (tid=3002, running) created by thread T10 at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44d5a27) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d5925) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446dc6d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c78b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x446c78b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c78b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x446a40e) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x446a119) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x446e5fe) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) 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=2607) Write of size 8 at 0x7b3000000670 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4e98716) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e98716) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e98716) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e98716) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fbf4) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fc29) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efcbf8) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efcbf8) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efcbf8) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efcbf8) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efcc59) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37fe1) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37fe1) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37fe1) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37fe1) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f383f9) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test() services/network/cors/cors_url_loader_unittest.cc:594:1 (services_unittests+0x1c07c19) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd260e) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd260e) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1fdba18) #34 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df0fed) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous write of size 8 at 0x7b3000000670 by thread T13 (mutexes: write M711985662189897216): #0 __node_insert_multi_perform buildtools/third_party/libc++/trunk/include/__hash_table:2032:5 (services_unittests+0x29c1e68) #1 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi(std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*) buildtools/third_party/libc++/trunk/include/__hash_table:2042 (services_unittests+0x29c1e68) #2 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x29c18fe) #3 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x29c18fe) #4 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x29c18fe) #5 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x29c02b3) #6 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29c02b3) #7 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02b3) #8 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e979a3) #9 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e979a3) #10 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9fd94) #11 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9fd94) #12 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9fd94) #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+0x4e9fd94) #14 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #15 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #16 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29c56d3) #17 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #18 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #19 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #20 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #21 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #22 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x29f758a) #23 Run base/callback.h:97:12 (services_unittests+0x447ebb8) #24 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447ebb8) #25 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447eca7) #26 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447eca7) #27 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447eca7) #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+0x447eca7) #29 Run base/callback.h:97:12 (services_unittests+0x443ec2a) #30 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443ec2a) #31 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4461201) #32 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x4460e4e) #33 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x4460e4e) #34 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44d54cf) #35 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5de3118) #36 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x44605d7) #37 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e630) #38 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #39 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #40 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) Mutex M711985662189897216 is already destroyed. Thread T13 'ThreadPoolForeg' (tid=3002, running) created by thread T10 at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44d5a27) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d5925) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446dc6d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c78b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x446c78b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c78b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x446a40e) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x446a119) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x446e5fe) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) 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=2607) Write of size 8 at 0x7b3000000678 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4e98716) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e98716) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e98716) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e98716) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fbf4) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fc29) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efcbf8) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efcbf8) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efcbf8) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efcbf8) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efcc59) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37fe1) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37fe1) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37fe1) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37fe1) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f383f9) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test() services/network/cors/cors_url_loader_unittest.cc:594:1 (services_unittests+0x1c07c19) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd260e) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd260e) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1fdba18) #34 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df0fed) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous write of size 4 at 0x7b3000000678 by thread T13 (mutexes: write M711985662189897216): #0 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1569:27 (services_unittests+0x29c0298) #1 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x29c0298) #2 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c0298) #3 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e979a3) #4 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e979a3) #5 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9fd94) #6 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9fd94) #7 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9fd94) #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+0x4e9fd94) #9 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #10 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #11 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29c56d3) #12 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #13 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #14 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #15 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #16 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #17 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x29f758a) #18 Run base/callback.h:97:12 (services_unittests+0x447ebb8) #19 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447ebb8) #20 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447eca7) #21 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447eca7) #22 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447eca7) #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+0x447eca7) #24 Run base/callback.h:97:12 (services_unittests+0x443ec2a) #25 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443ec2a) #26 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4461201) #27 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x4460e4e) #28 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x4460e4e) #29 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44d54cf) #30 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5de3118) #31 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x44605d7) #32 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e630) #33 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #34 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #35 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) Mutex M711985662189897216 is already destroyed. Thread T13 'ThreadPoolForeg' (tid=3002, running) created by thread T10 at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44d5a27) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d5925) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446dc6d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c78b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x446c78b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c78b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x446a40e) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x446a119) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x446e5fe) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) 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=2607) Write of size 8 at 0x7b3000000680 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4e98716) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e98716) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e98716) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e98716) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fbf4) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fc29) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efcbf8) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efcbf8) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efcbf8) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efcbf8) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efcc59) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37fe1) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37fe1) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37fe1) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37fe1) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f383f9) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test() services/network/cors/cors_url_loader_unittest.cc:594:1 (services_unittests+0x1c07c19) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd260e) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd260e) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1fdba18) #34 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df0fed) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous write of size 8 at 0x7b3000000680 by thread T13 (mutexes: write M711985662189897216): #0 memcpy /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:801:5 (services_unittests+0x1add307) #1 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31:55 (services_unittests+0x29c02c5) #2 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e979a3) #3 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e979a3) #4 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9fd94) #5 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9fd94) #6 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9fd94) #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+0x4e9fd94) #8 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #9 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #10 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29c56d3) #11 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #12 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #13 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #14 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #15 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #16 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x29f758a) #17 Run base/callback.h:97:12 (services_unittests+0x447ebb8) #18 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447ebb8) #19 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447eca7) #20 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447eca7) #21 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447eca7) #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+0x447eca7) #23 Run base/callback.h:97:12 (services_unittests+0x443ec2a) #24 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443ec2a) #25 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4461201) #26 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x4460e4e) #27 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x4460e4e) #28 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44d54cf) #29 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5de3118) #30 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x44605d7) #31 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e630) #32 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #33 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #34 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) Mutex M711985662189897216 is already destroyed. Thread T13 'ThreadPoolForeg' (tid=3002, running) created by thread T10 at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44d5a27) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d5925) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446dc6d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c78b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x446c78b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c78b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x446a40e) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x446a119) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x446e5fe) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) 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=2607) Write of size 8 at 0x7b3000000698 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4e98716) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e98716) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e98716) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e98716) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fbf4) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fc29) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efcbf8) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efcbf8) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efcbf8) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efcbf8) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efcc59) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37fe1) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37fe1) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37fe1) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37fe1) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f383f9) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test() services/network/cors/cors_url_loader_unittest.cc:594:1 (services_unittests+0x1c07c19) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd260e) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd260e) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1fdba18) #34 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df0fed) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous read of size 8 at 0x7b3000000698 by thread T13 (mutexes: write M711985662189897216): #0 capacity buildtools/third_party/libc++/trunk/include/vector:372:54 (services_unittests+0x29c2286) #1 capacity buildtools/third_party/libc++/trunk/include/vector:659 (services_unittests+0x29c2286) #2 std::__1::enable_if<(__is_forward_iterator<net::DnsConfig::DnsOverHttpsServerConfig*>::value) && (is_constructible<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::iterator_traits<net::DnsConfig::DnsOverHttpsServerConfig*>::reference>::value), void>::type std::__1::vector<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::allocator<net::DnsConfig::DnsOverHttpsServerConfig> >::assign<net::DnsConfig::DnsOverHttpsServerConfig*>(net::DnsConfig::DnsOverHttpsServerConfig*, net::DnsConfig::DnsOverHttpsServerConfig*) buildtools/third_party/libc++/trunk/include/vector:1439 (services_unittests+0x29c2286) #3 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x29c02ee) #4 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02ee) #5 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e979a3) #6 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e979a3) #7 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9fd94) #8 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9fd94) #9 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9fd94) #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+0x4e9fd94) #11 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #12 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #13 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29c56d3) #14 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #15 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #16 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #17 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #18 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #19 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x29f758a) #20 Run base/callback.h:97:12 (services_unittests+0x447ebb8) #21 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447ebb8) #22 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447eca7) #23 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447eca7) #24 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447eca7) #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+0x447eca7) #26 Run base/callback.h:97:12 (services_unittests+0x443ec2a) #27 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443ec2a) #28 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4461201) #29 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x4460e4e) #30 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x4460e4e) #31 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44d54cf) #32 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5de3118) #33 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x44605d7) #34 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e630) #35 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #36 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #37 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) Mutex M711985662189897216 is already destroyed. Thread T13 'ThreadPoolForeg' (tid=3002, running) created by thread T10 at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44d5a27) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d5925) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446dc6d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c78b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x446c78b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c78b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x446a40e) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x446a119) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x446e5fe) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) 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=2607) Write of size 8 at 0x7b30000006a0 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4e98716) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e98716) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e98716) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e98716) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fbf4) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fc29) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efcbf8) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efcbf8) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efcbf8) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efcbf8) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efcc59) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37fe1) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37fe1) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37fe1) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37fe1) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f383f9) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test() services/network/cors/cors_url_loader_unittest.cc:594:1 (services_unittests+0x1c07c19) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd260e) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd260e) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1fdba18) #34 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df0fed) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous write of size 8 at 0x7b30000006a0 by thread T13 (mutexes: write M711985662189897216): #0 __destruct_at_end buildtools/third_party/libc++/trunk/include/vector:427:12 (services_unittests+0x29c2434) #1 __destruct_at_end buildtools/third_party/libc++/trunk/include/vector:833 (services_unittests+0x29c2434) #2 std::__1::enable_if<(__is_forward_iterator<net::DnsConfig::DnsOverHttpsServerConfig*>::value) && (is_constructible<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::iterator_traits<net::DnsConfig::DnsOverHttpsServerConfig*>::reference>::value), void>::type std::__1::vector<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::allocator<net::DnsConfig::DnsOverHttpsServerConfig> >::assign<net::DnsConfig::DnsOverHttpsServerConfig*>(net::DnsConfig::DnsOverHttpsServerConfig*, net::DnsConfig::DnsOverHttpsServerConfig*) buildtools/third_party/libc++/trunk/include/vector:1453 (services_unittests+0x29c2434) #3 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x29c02ee) #4 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02ee) #5 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e979a3) #6 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e979a3) #7 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9fd94) #8 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9fd94) #9 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9fd94) #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+0x4e9fd94) #11 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #12 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #13 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29c56d3) #14 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #15 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #16 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #17 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #18 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #19 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x29f758a) #20 Run base/callback.h:97:12 (services_unittests+0x447ebb8) #21 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447ebb8) #22 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447eca7) #23 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447eca7) #24 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447eca7) #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+0x447eca7) #26 Run base/callback.h:97:12 (services_unittests+0x443ec2a) #27 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443ec2a) #28 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4461201) #29 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x4460e4e) #30 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x4460e4e) #31 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44d54cf) #32 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5de3118) #33 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x44605d7) #34 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e630) #35 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #36 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #37 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) Mutex M711985662189897216 is already destroyed. Thread T13 'ThreadPoolForeg' (tid=3002, running) created by thread T10 at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44d5a27) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d5925) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446dc6d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c78b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x446c78b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c78b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x446a40e) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x446a119) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x446e5fe) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) 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=2607) Write of size 8 at 0x7b30000006a8 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4e98716) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e98716) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e98716) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e98716) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fbf4) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fc29) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efcbf8) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efcbf8) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efcbf8) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efcbf8) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efcc59) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37fe1) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37fe1) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37fe1) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37fe1) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f383f9) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test() services/network/cors/cors_url_loader_unittest.cc:594:1 (services_unittests+0x1c07c19) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd260e) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd260e) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1fdba18) #34 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df0fed) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous read of size 8 at 0x7b30000006a8 by thread T13 (mutexes: write M711985662189897216): #0 capacity buildtools/third_party/libc++/trunk/include/vector:372:40 (services_unittests+0x29c227a) #1 capacity buildtools/third_party/libc++/trunk/include/vector:659 (services_unittests+0x29c227a) #2 std::__1::enable_if<(__is_forward_iterator<net::DnsConfig::DnsOverHttpsServerConfig*>::value) && (is_constructible<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::iterator_traits<net::DnsConfig::DnsOverHttpsServerConfig*>::reference>::value), void>::type std::__1::vector<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::allocator<net::DnsConfig::DnsOverHttpsServerConfig> >::assign<net::DnsConfig::DnsOverHttpsServerConfig*>(net::DnsConfig::DnsOverHttpsServerConfig*, net::DnsConfig::DnsOverHttpsServerConfig*) buildtools/third_party/libc++/trunk/include/vector:1439 (services_unittests+0x29c227a) #3 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x29c02ee) #4 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x29c02ee) #5 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4e979a3) #6 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e979a3) #7 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9fd94) #8 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9fd94) #9 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9fd94) #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+0x4e9fd94) #11 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #12 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #13 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29c56d3) #14 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #15 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #16 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #17 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #18 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #19 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x29f758a) #20 Run base/callback.h:97:12 (services_unittests+0x447ebb8) #21 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447ebb8) #22 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447eca7) #23 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447eca7) #24 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447eca7) #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+0x447eca7) #26 Run base/callback.h:97:12 (services_unittests+0x443ec2a) #27 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443ec2a) #28 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4461201) #29 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x4460e4e) #30 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x4460e4e) #31 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44d54cf) #32 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5de3118) #33 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x44605d7) #34 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e630) #35 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #36 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #37 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) Mutex M711985662189897216 is already destroyed. Thread T13 'ThreadPoolForeg' (tid=3002, running) created by thread T10 at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44d5a27) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d5925) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446dc6d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c78b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x446c78b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c78b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x446a40e) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x446a119) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x446e5fe) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) 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=2607) Write of size 8 at 0x7b30000006b0 by main thread: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1b433ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4e98716) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4e98716) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4e98716) #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:181 (services_unittests+0x4e98716) #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fbf4) #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:57 (services_unittests+0x4e9fc29) #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5efcbf8) #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5efcbf8) #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5efcbf8) #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x5efcbf8) #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x5efcc59) #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x5f37fe1) #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x5f37fe1) #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x5f37fe1) #15 network::NetworkService::~NetworkService() services/network/network_service.cc:336 (services_unittests+0x5f37fe1) #16 network::NetworkService::~NetworkService() services/network/network_service.cc:319:35 (services_unittests+0x5f383f9) #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1c087f6) #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1c087f6) #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1c087f6) #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:129 (services_unittests+0x1c087f6) #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test::~CorsURLLoaderTest_CrossOriginRequestWithCorsMode_Test() services/network/cors/cors_url_loader_unittest.cc:594:1 (services_unittests+0x1c07c19) #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd260e) #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd260e) #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1fdba18) #34 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5df0fed) #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous write of size 1 at 0x7b30000006b0 by thread T13 (mutexes: write M711985662189897216): #0 SetDnsConfig net/base/network_change_notifier.cc:79:10 (services_unittests+0x4e979b6) #1 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:763 (services_unittests+0x4e979b6) #2 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4e9fd94) #3 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4e9fd94) #4 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4e9fd94) #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+0x4e9fd94) #6 Run base/callback.h:136:12 (services_unittests+0x29c56d3) #7 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x29c56d3) #8 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (services_unittests+0x29c56d3) #9 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x29f960c) #10 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x29f72db) #11 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x29f758a) #12 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x29f758a) #13 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x29f758a) #14 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x29f758a) #15 Run base/callback.h:97:12 (services_unittests+0x447ebb8) #16 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x447ebb8) #17 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x447eca7) #18 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x447eca7) #19 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x447eca7) #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+0x447eca7) #21 Run base/callback.h:97:12 (services_unittests+0x443ec2a) #22 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443ec2a) #23 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:709:19 (services_unittests+0x4461201) #24 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:727:7 (services_unittests+0x4460e4e) #25 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:563 (services_unittests+0x4460e4e) #26 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x44d54cf) #27 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::Sequence*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:663:46 (services_unittests+0x5de3118) #28 base::internal::TaskTracker::RunAndPopNextTask(scoped_refptr<base::internal::Sequence>) base/task/thread_pool/task_tracker.cc:427:3 (services_unittests+0x44605d7) #29 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:340:31 (services_unittests+0x446e630) #30 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #31 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #32 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) Mutex M711985662189897216 is already destroyed. Thread T13 'ThreadPoolForeg' (tid=3002, running) created by thread T10 at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (services_unittests+0x1ad305b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x44d5a27) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x44d5925) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/thread_pool/scheduler_worker.cc:79:3 (services_unittests+0x446dc6d) #4 operator() base/task/thread_pool/scheduler_worker_pool_impl.cc:186:15 (services_unittests+0x446c78b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/scheduler_worker_pool_impl.cc:185:37)> base/task/thread_pool/scheduler_worker_pool_impl.cc:151 (services_unittests+0x446c78b) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/scheduler_worker_pool_impl.cc:185 (services_unittests+0x446c78b) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::Flush(base::internal::SchedulerLock*) base/task/thread_pool/scheduler_worker_pool_impl.cc:123:5 (services_unittests+0x446a40e) #8 base::internal::SchedulerWorkerPoolImpl::SchedulerWorkerDelegateImpl::GetWork(base::internal::SchedulerWorker*) base/task/thread_pool/scheduler_worker_pool_impl.cc:611:12 (services_unittests+0x446a119) #9 base::internal::SchedulerWorker::RunWorker() base/task/thread_pool/scheduler_worker.cc:328:51 (services_unittests+0x446e5fe) #10 base::internal::SchedulerWorker::RunPooledWorker() base/task/thread_pool/scheduler_worker.cc:233:3 (services_unittests+0x446e261) #11 base::internal::SchedulerWorker::ThreadMain() base/task/thread_pool/scheduler_worker.cc:212:7 (services_unittests+0x446e0cf) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x44d5f34) 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.CrossOriginRequestWithCorsMode (849 ms) [----------] 10 tests from CorsURLLoaderTest (1917 ms total) [----------] Global test environment tear-down [==========] 10 tests from 1 test suite ran. (1919 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 41 warnings ThreadSanitizer: Matched 3 suppressions (pid=2607): 3 race:net::(anonymous namespace)::g_network_change_notifier [ RUN ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin [ OK ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin (21 ms) ================================================================================