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

Test 'StorageAreaImplParamTest.PutWhenAlreadyOverQuota' completed with the following status(es): 'FAILURE_ON_EXIT','SUCCESS' Test 'StorageAreaImplParamTest.PutWhenAlreadyOverQuota' had the following logs when run: ================================================================================ [ RUN ] StorageAreaImplParamTest.PutWhenAlreadyOverQuota [ OK ] StorageAreaImplParamTest.PutWhenAlreadyOverQuota (20 ms) [ RUN ] StorageAreaImplParamTest.PutWhenAlreadyOverQuotaBecauseOfLargeKey [ OK ] StorageAreaImplParamTest.PutWhenAlreadyOverQuotaBecauseOfLargeKey (15 ms) [----------] 4 tests from StorageAreaImplParamTest (93 ms total) [----------] 6 tests from DownloadManagerTest [ RUN ] DownloadManagerTest.StartDownload ================== WARNING: ThreadSanitizer: data race (pid=18106) Write of size 8 at 0x7b640001d118 by main thread: #0 reset buildtools/third_party/libc++/trunk/include/memory:2649:20 (content_unittests+0x794a94d) #1 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (content_unittests+0x794a94d) #2 base::internal::TaskSchedulerImpl::~TaskSchedulerImpl() base/task/task_scheduler/task_scheduler_impl.cc:86 (content_unittests+0x794a94d) #3 base::internal::TaskSchedulerImpl::~TaskSchedulerImpl() base/task/task_scheduler/task_scheduler_impl.cc:78:41 (content_unittests+0x794ab99) #4 base::TaskScheduler::SetInstance(std::__1::unique_ptr<base::TaskScheduler, std::__1::default_delete<base::TaskScheduler> >) base/task/task_scheduler/task_scheduler.cc:79:3 (content_unittests+0x7949fbb) #5 base::test::ScopedTaskEnvironment::~ScopedTaskEnvironment() base/test/scoped_task_environment.cc:432:3 (content_unittests+0x6c2746f) #6 content::TestBrowserThreadBundle::~TestBrowserThreadBundle() content/public/test/test_browser_thread_bundle.cc:65:1 (content_unittests+0x6bb7720) #7 content::DownloadManagerTest::~DownloadManagerTest() content/browser/download/download_manager_impl_unittest.cc:411:36 (content_unittests+0x29faa44) #8 content::DownloadManagerTest_StartDownload_Test::~DownloadManagerTest_StartDownload_Test() content/browser/download/download_manager_impl_unittest.cc:566:1 (content_unittests+0x29f9679) #9 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4bf458e) #10 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (content_unittests+0x4bf458e) #11 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (content_unittests+0x4bf50d6) #12 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (content_unittests+0x4c06956) #13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4c06139) #14 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (content_unittests+0x4c06139) #15 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (content_unittests+0x6c30192) #16 base::TestSuite::Run() base/test/test_suite.cc:316 (content_unittests+0x6c30192) #17 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (content_unittests+0x6bbf852) #18 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (content_unittests+0x6b56948) #19 MakeItSo<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (content_unittests+0x6b56948) #20 RunImpl<int (content::UnitTestTestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, 0> base/bind_internal.h:672 (content_unittests+0x6b56948) #21 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x6b56948) #22 Run base/callback.h:97:12 (content_unittests+0x6c4aa2d) #23 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (content_unittests+0x6c4aa2d) #24 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (content_unittests+0x6c4a890) #25 main content/test/run_all_unittests.cc:14:10 (content_unittests+0x6b568b4) Previous read of size 8 at 0x7b640001d118 by thread T14: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (content_unittests+0x794b853) #1 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257 (content_unittests+0x794b853) #2 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (content_unittests+0x794b1fe) #3 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (content_unittests+0x7929801) #4 PostTaskWithTraits base/task/post_task.cc:76:10 (content_unittests+0x7929dbe) #5 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (content_unittests+0x7929dbe) #6 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (content_unittests+0x796ddd2) #7 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (content_unittests+0x79298f9) #8 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (content_unittests+0x4129ce6) #9 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (content_unittests+0x412a555) #10 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (content_unittests+0x40f79cd) #11 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (content_unittests+0x7c7fb70) #12 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (content_unittests+0x79719f9) #13 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (content_unittests+0x79c1074) Location is heap block of size 1280 at 0x7b640001d100 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 (content_unittests+0x24e3a8b) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (content_unittests+0x6c26dc1) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:374 (content_unittests+0x6c26dc1) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (content_unittests+0x254b43d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (content_unittests+0x254b397) #5 DownloadManagerTest content/browser/download/download_manager_impl_unittest.cc:402:3 (content_unittests+0x29fad4a) #6 DownloadManagerTest_StartDownload_Test content/browser/download/download_manager_impl_unittest.cc:566 (content_unittests+0x29fad4a) #7 testing::internal::TestFactoryImpl<content::DownloadManagerTest_StartDownload_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (content_unittests+0x29fad4a) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4bf434f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (content_unittests+0x4bf434f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (content_unittests+0x4bf50d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (content_unittests+0x4c06956) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4c06139) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (content_unittests+0x4c06139) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (content_unittests+0x6c30192) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (content_unittests+0x6c30192) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (content_unittests+0x6bbf852) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (content_unittests+0x6b56948) #18 MakeItSo<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (content_unittests+0x6b56948) #19 RunImpl<int (content::UnitTestTestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, 0> base/bind_internal.h:672 (content_unittests+0x6b56948) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x6b56948) #21 Run base/callback.h:97:12 (content_unittests+0x6c4aa2d) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (content_unittests+0x6c4aa2d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (content_unittests+0x6c4a890) #24 main content/test/run_all_unittests.cc:14:10 (content_unittests+0x6b568b4) Thread T14 'NetworkChangeNotifier' (tid=18194, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (content_unittests+0x247404b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (content_unittests+0x79c0b67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (content_unittests+0x79c0a65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (content_unittests+0x79711b0) #4 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:108:21 (content_unittests+0x7c7fcdf) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (content_unittests+0x7c756c7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (content_unittests+0x707f74a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (content_unittests+0x707f74a) #8 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:254:5 (content_unittests+0x707f0e3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (content_unittests+0x65672f3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (content_unittests+0x67eca55) #11 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:499:12 (content_unittests+0x67f0753) #12 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:599 (content_unittests+0x67f0753) #13 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:672 (content_unittests+0x67f0753) #14 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x67f0753) #15 Run base/callback.h:97:12 (content_unittests+0x7928b71) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (content_unittests+0x7928b71) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (content_unittests+0x79434e5) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (content_unittests+0x79439bd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (content_unittests+0x79439bd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (content_unittests+0x78e3a87) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (content_unittests+0x78e3a87) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (content_unittests+0x7943ea0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (content_unittests+0x7943ea0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (content_unittests+0x790754e) #26 base::RunLoop::RunUntilIdle() base/run_loop.cc:170:3 (content_unittests+0x7908146) #27 content::DownloadManagerTest::TearDown() content/browser/download/download_manager_impl_unittest.cc:453:21 (content_unittests+0x29fa74e) #28 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4bf35ca) #29 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (content_unittests+0x4bf35ca) #30 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2675:11 (content_unittests+0x4bf44f8) #31 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (content_unittests+0x4bf50d6) #32 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (content_unittests+0x4c06956) #33 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4c06139) #34 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (content_unittests+0x4c06139) #35 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (content_unittests+0x6c30192) #36 base::TestSuite::Run() base/test/test_suite.cc:316 (content_unittests+0x6c30192) #37 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (content_unittests+0x6bbf852) #38 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (content_unittests+0x6b56948) #39 MakeItSo<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (content_unittests+0x6b56948) #40 RunImpl<int (content::UnitTestTestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, 0> base/bind_internal.h:672 (content_unittests+0x6b56948) #41 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x6b56948) #42 Run base/callback.h:97:12 (content_unittests+0x6c4aa2d) #43 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (content_unittests+0x6c4aa2d) #44 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (content_unittests+0x6c4a890) #45 main content/test/run_all_unittests.cc:14:10 (content_unittests+0x6b568b4) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2649:20 in reset ================== ================== WARNING: ThreadSanitizer: data race (pid=18106) Read of size 8 at 0x7b640001d118 by thread T14: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (content_unittests+0x794b853) #1 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257 (content_unittests+0x794b853) #2 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (content_unittests+0x794b1fe) #3 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (content_unittests+0x7929801) #4 PostTaskWithTraits base/task/post_task.cc:76:10 (content_unittests+0x7929dbe) #5 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (content_unittests+0x7929dbe) #6 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (content_unittests+0x796ddd2) #7 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (content_unittests+0x79298f9) #8 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (content_unittests+0x4129ce6) #9 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:409:18 (content_unittests+0x412a578) #10 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (content_unittests+0x40f79cd) #11 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (content_unittests+0x7c7fb70) #12 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (content_unittests+0x79719f9) #13 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (content_unittests+0x79c1074) Previous write of size 8 at 0x7b640001d118 by main thread: #0 reset buildtools/third_party/libc++/trunk/include/memory:2649:20 (content_unittests+0x794a94d) #1 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (content_unittests+0x794a94d) #2 base::internal::TaskSchedulerImpl::~TaskSchedulerImpl() base/task/task_scheduler/task_scheduler_impl.cc:86 (content_unittests+0x794a94d) #3 base::internal::TaskSchedulerImpl::~TaskSchedulerImpl() base/task/task_scheduler/task_scheduler_impl.cc:78:41 (content_unittests+0x794ab99) #4 base::TaskScheduler::SetInstance(std::__1::unique_ptr<base::TaskScheduler, std::__1::default_delete<base::TaskScheduler> >) base/task/task_scheduler/task_scheduler.cc:79:3 (content_unittests+0x7949fbb) #5 base::test::ScopedTaskEnvironment::~ScopedTaskEnvironment() base/test/scoped_task_environment.cc:432:3 (content_unittests+0x6c2746f) #6 content::TestBrowserThreadBundle::~TestBrowserThreadBundle() content/public/test/test_browser_thread_bundle.cc:65:1 (content_unittests+0x6bb7720) #7 content::DownloadManagerTest::~DownloadManagerTest() content/browser/download/download_manager_impl_unittest.cc:411:36 (content_unittests+0x29faa44) #8 content::DownloadManagerTest_StartDownload_Test::~DownloadManagerTest_StartDownload_Test() content/browser/download/download_manager_impl_unittest.cc:566:1 (content_unittests+0x29f9679) #9 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4bf458e) #10 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (content_unittests+0x4bf458e) #11 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (content_unittests+0x4bf50d6) #12 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (content_unittests+0x4c06956) #13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4c06139) #14 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (content_unittests+0x4c06139) #15 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (content_unittests+0x6c30192) #16 base::TestSuite::Run() base/test/test_suite.cc:316 (content_unittests+0x6c30192) #17 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (content_unittests+0x6bbf852) #18 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (content_unittests+0x6b56948) #19 MakeItSo<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (content_unittests+0x6b56948) #20 RunImpl<int (content::UnitTestTestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, 0> base/bind_internal.h:672 (content_unittests+0x6b56948) #21 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x6b56948) #22 Run base/callback.h:97:12 (content_unittests+0x6c4aa2d) #23 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (content_unittests+0x6c4aa2d) #24 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (content_unittests+0x6c4a890) #25 main content/test/run_all_unittests.cc:14:10 (content_unittests+0x6b568b4) Location is heap block of size 1280 at 0x7b640001d100 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 (content_unittests+0x24e3a8b) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (content_unittests+0x6c26dc1) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:374 (content_unittests+0x6c26dc1) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (content_unittests+0x254b43d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (content_unittests+0x254b397) #5 DownloadManagerTest content/browser/download/download_manager_impl_unittest.cc:402:3 (content_unittests+0x29fad4a) #6 DownloadManagerTest_StartDownload_Test content/browser/download/download_manager_impl_unittest.cc:566 (content_unittests+0x29fad4a) #7 testing::internal::TestFactoryImpl<content::DownloadManagerTest_StartDownload_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (content_unittests+0x29fad4a) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4bf434f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (content_unittests+0x4bf434f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (content_unittests+0x4bf50d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (content_unittests+0x4c06956) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4c06139) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (content_unittests+0x4c06139) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (content_unittests+0x6c30192) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (content_unittests+0x6c30192) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (content_unittests+0x6bbf852) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (content_unittests+0x6b56948) #18 MakeItSo<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (content_unittests+0x6b56948) #19 RunImpl<int (content::UnitTestTestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, 0> base/bind_internal.h:672 (content_unittests+0x6b56948) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x6b56948) #21 Run base/callback.h:97:12 (content_unittests+0x6c4aa2d) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (content_unittests+0x6c4aa2d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (content_unittests+0x6c4a890) #24 main content/test/run_all_unittests.cc:14:10 (content_unittests+0x6b568b4) Thread T14 'NetworkChangeNotifier' (tid=18194, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (content_unittests+0x247404b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (content_unittests+0x79c0b67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (content_unittests+0x79c0a65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (content_unittests+0x79711b0) #4 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:108:21 (content_unittests+0x7c7fcdf) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (content_unittests+0x7c756c7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (content_unittests+0x707f74a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (content_unittests+0x707f74a) #8 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:254:5 (content_unittests+0x707f0e3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (content_unittests+0x65672f3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (content_unittests+0x67eca55) #11 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:499:12 (content_unittests+0x67f0753) #12 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:599 (content_unittests+0x67f0753) #13 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:672 (content_unittests+0x67f0753) #14 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x67f0753) #15 Run base/callback.h:97:12 (content_unittests+0x7928b71) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (content_unittests+0x7928b71) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (content_unittests+0x79434e5) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (content_unittests+0x79439bd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (content_unittests+0x79439bd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (content_unittests+0x78e3a87) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (content_unittests+0x78e3a87) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (content_unittests+0x7943ea0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (content_unittests+0x7943ea0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (content_unittests+0x790754e) #26 base::RunLoop::RunUntilIdle() base/run_loop.cc:170:3 (content_unittests+0x7908146) #27 content::DownloadManagerTest::TearDown() content/browser/download/download_manager_impl_unittest.cc:453:21 (content_unittests+0x29fa74e) #28 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4bf35ca) #29 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (content_unittests+0x4bf35ca) #30 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2675:11 (content_unittests+0x4bf44f8) #31 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (content_unittests+0x4bf50d6) #32 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (content_unittests+0x4c06956) #33 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4c06139) #34 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (content_unittests+0x4c06139) #35 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (content_unittests+0x6c30192) #36 base::TestSuite::Run() base/test/test_suite.cc:316 (content_unittests+0x6c30192) #37 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (content_unittests+0x6bbf852) #38 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (content_unittests+0x6b56948) #39 MakeItSo<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (content_unittests+0x6b56948) #40 RunImpl<int (content::UnitTestTestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, 0> base/bind_internal.h:672 (content_unittests+0x6b56948) #41 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x6b56948) #42 Run base/callback.h:97:12 (content_unittests+0x6c4aa2d) #43 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (content_unittests+0x6c4aa2d) #44 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (content_unittests+0x6c4a890) #45 main content/test/run_all_unittests.cc:14:10 (content_unittests+0x6b568b4) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== Received signal 11 SEGV_MAPERR 000000000010 #0 0x561dc1ca8d68 (/b/s/w/ir/out/Release/content_unittests+0x2491d67) #1 0x561dc71c5741 (/b/s/w/ir/out/Release/content_unittests+0x79ae740) #2 0x561dc70d0230 (/b/s/w/ir/out/Release/content_unittests+0x78b922f) #3 0x561dc71c515c (/b/s/w/ir/out/Release/content_unittests+0x79ae15b) #4 0x561dc1c91cf4 (/b/s/w/ir/out/Release/content_unittests+0x247acf3) #5 0x561dc1cc7953 (/b/s/w/ir/out/Release/content_unittests+0x24b0952) #6 0x7f5a19b21330 (/lib/x86_64-linux-gnu/libpthread-2.19.so+0x1032f) #7 0x561dc7175004 (/b/s/w/ir/out/Release/content_unittests+0x795e003) #8 0x561dc716287b (/b/s/w/ir/out/Release/content_unittests+0x794b87a) #9 0x561dc71621ff (/b/s/w/ir/out/Release/content_unittests+0x794b1fe) #10 0x561dc7140802 (/b/s/w/ir/out/Release/content_unittests+0x7929801) #11 0x561dc7140dbf (/b/s/w/ir/out/Release/content_unittests+0x7929dbe) #12 0x561dc7184dd3 (/b/s/w/ir/out/Release/content_unittests+0x796ddd2) #13 0x561dc71408fa (/b/s/w/ir/out/Release/content_unittests+0x79298f9) #14 0x561dc3940ce7 (/b/s/w/ir/out/Release/content_unittests+0x4129ce6) #15 0x561dc3941579 (/b/s/w/ir/out/Release/content_unittests+0x412a578) #16 0x561dc390e9ce (/b/s/w/ir/out/Release/content_unittests+0x40f79cd) #17 0x561dc7496b71 (/b/s/w/ir/out/Release/content_unittests+0x7c7fb70) #18 0x561dc71889fa (/b/s/w/ir/out/Release/content_unittests+0x79719f9) #19 0x561dc71d8075 (/b/s/w/ir/out/Release/content_unittests+0x79c1074) #20 0x561dc1c8afad (/b/s/w/ir/out/Release/content_unittests+0x2473fac) #21 0x7f5a19b19184 (/lib/x86_64-linux-gnu/libpthread-2.19.so+0x8183) #22 0x7f5a13ad003d (/lib/x86_64-linux-gnu/libc-2.19.so+0xfe03c) r8: 000003ffffffffff r9: 0000561dc7175004 r10: 00007c0000000000 r11: 0000000000000000 r12: 0000000000000000 r13: 0000000000000000 r14: 0000000000000000 r15: 00007f5a041a0a70 di: 000000000f0a0000 si: 00007f5a041a1b80 bp: 00007f5a041a07b0 bx: 00007f5a041a0a48 dx: 0038e000000042b1 ax: 0000100000000040 cx: 00000000000042b1 sp: 00007f5a041a0770 ip: 0000561dc7175004 efl: 0000000000010246 cgf: 0000000000000033 erf: 0000000000000004 trp: 000000000000000e msk: 0000000000000000 cr2: 0000000000000010 [end of stack trace] Calling _exit(1). Core file will not be generated. ================== WARNING: ThreadSanitizer: data race (pid=18106) Write of size 8 at 0x7b5c00000e10 by main thread: #0 reset buildtools/third_party/libc++/trunk/include/memory:2649:20 (content_unittests+0x795d597) #1 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (content_unittests+0x795d597) #2 base::internal::TaskTracker::~TaskTracker() base/task/task_scheduler/task_tracker.cc:357 (content_unittests+0x795d597) #3 base::internal::TaskTrackerPosix::~TaskTrackerPosix() base/task/task_scheduler/task_tracker_posix.cc:16:37 (content_unittests+0x79c04ae) #4 ~TestTaskTracker base/test/scoped_task_environment.cc:268:30 (content_unittests+0x6c28233) #5 base::test::ScopedTaskEnvironment::TestTaskTracker::~TestTaskTracker() base/test/scoped_task_environment.cc:268 (content_unittests+0x6c28233) #6 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (content_unittests+0x794a96b) #7 reset buildtools/third_party/libc++/trunk/include/memory:2651 (content_unittests+0x794a96b) #8 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (content_unittests+0x794a96b) #9 base::internal::TaskSchedulerImpl::~TaskSchedulerImpl() base/task/task_scheduler/task_scheduler_impl.cc:86 (content_unittests+0x794a96b) #10 base::internal::TaskSchedulerImpl::~TaskSchedulerImpl() base/task/task_scheduler/task_scheduler_impl.cc:78:41 (content_unittests+0x794ab99) #11 base::TaskScheduler::SetInstance(std::__1::unique_ptr<base::TaskScheduler, std::__1::default_delete<base::TaskScheduler> >) base/task/task_scheduler/task_scheduler.cc:79:3 (content_unittests+0x7949fbb) #12 base::test::ScopedTaskEnvironment::~ScopedTaskEnvironment() base/test/scoped_task_environment.cc:432:3 (content_unittests+0x6c2746f) #13 content::TestBrowserThreadBundle::~TestBrowserThreadBundle() content/public/test/test_browser_thread_bundle.cc:65:1 (content_unittests+0x6bb7720) #14 content::DownloadManagerTest::~DownloadManagerTest() content/browser/download/download_manager_impl_unittest.cc:411:36 (content_unittests+0x29faa44) #15 content::DownloadManagerTest_StartDownload_Test::~DownloadManagerTest_StartDownload_Test() content/browser/download/download_manager_impl_unittest.cc:566:1 (content_unittests+0x29f9679) #16 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4bf458e) #17 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (content_unittests+0x4bf458e) #18 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (content_unittests+0x4bf50d6) #19 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (content_unittests+0x4c06956) #20 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4c06139) #21 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (content_unittests+0x4c06139) #22 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (content_unittests+0x6c30192) #23 base::TestSuite::Run() base/test/test_suite.cc:316 (content_unittests+0x6c30192) #24 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (content_unittests+0x6bbf852) #25 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (content_unittests+0x6b56948) #26 MakeItSo<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (content_unittests+0x6b56948) #27 RunImpl<int (content::UnitTestTestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, 0> base/bind_internal.h:672 (content_unittests+0x6b56948) #28 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x6b56948) #29 Run base/callback.h:97:12 (content_unittests+0x6c4aa2d) #30 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (content_unittests+0x6c4aa2d) #31 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (content_unittests+0x6c4a890) #32 main content/test/run_all_unittests.cc:14:10 (content_unittests+0x6b568b4) Previous read of size 8 at 0x7b5c00000e10 by thread T14: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (content_unittests+0x795e003) #1 BeforePostTask base/task/task_scheduler/task_tracker.cc (content_unittests+0x795e003) #2 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:434 (content_unittests+0x795e003) #3 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257:23 (content_unittests+0x794b87a) #4 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (content_unittests+0x794b1fe) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (content_unittests+0x7929801) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (content_unittests+0x7929dbe) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (content_unittests+0x7929dbe) #8 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (content_unittests+0x796ddd2) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (content_unittests+0x79298f9) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (content_unittests+0x4129ce6) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (content_unittests+0x412a555) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (content_unittests+0x40f79cd) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (content_unittests+0x7c7fb70) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (content_unittests+0x79719f9) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (content_unittests+0x79c1074) Location is heap block of size 776 at 0x7b5c00000e00 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 (content_unittests+0x24e3a8b) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:331:21 (content_unittests+0x6c268c6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (content_unittests+0x254b43d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (content_unittests+0x254b397) #4 DownloadManagerTest content/browser/download/download_manager_impl_unittest.cc:402:3 (content_unittests+0x29fad4a) #5 DownloadManagerTest_StartDownload_Test content/browser/download/download_manager_impl_unittest.cc:566 (content_unittests+0x29fad4a) #6 testing::internal::TestFactoryImpl<content::DownloadManagerTest_StartDownload_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (content_unittests+0x29fad4a) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4bf434f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (content_unittests+0x4bf434f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (content_unittests+0x4bf50d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (content_unittests+0x4c06956) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4c06139) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (content_unittests+0x4c06139) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (content_unittests+0x6c30192) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (content_unittests+0x6c30192) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (content_unittests+0x6bbf852) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (content_unittests+0x6b56948) #17 MakeItSo<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (content_unittests+0x6b56948) #18 RunImpl<int (content::UnitTestTestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, 0> base/bind_internal.h:672 (content_unittests+0x6b56948) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x6b56948) #20 Run base/callback.h:97:12 (content_unittests+0x6c4aa2d) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (content_unittests+0x6c4aa2d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (content_unittests+0x6c4a890) #23 main content/test/run_all_unittests.cc:14:10 (content_unittests+0x6b568b4) Thread T14 'NetworkChangeNotifier' (tid=18194, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (content_unittests+0x247404b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (content_unittests+0x79c0b67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (content_unittests+0x79c0a65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (content_unittests+0x79711b0) #4 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:108:21 (content_unittests+0x7c7fcdf) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (content_unittests+0x7c756c7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (content_unittests+0x707f74a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (content_unittests+0x707f74a) #8 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:254:5 (content_unittests+0x707f0e3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (content_unittests+0x65672f3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (content_unittests+0x67eca55) #11 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:499:12 (content_unittests+0x67f0753) #12 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:599 (content_unittests+0x67f0753) #13 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:672 (content_unittests+0x67f0753) #14 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x67f0753) #15 Run base/callback.h:97:12 (content_unittests+0x7928b71) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (content_unittests+0x7928b71) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (content_unittests+0x79434e5) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (content_unittests+0x79439bd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (content_unittests+0x79439bd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (content_unittests+0x78e3a87) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (content_unittests+0x78e3a87) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (content_unittests+0x7943ea0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (content_unittests+0x7943ea0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (content_unittests+0x790754e) #26 base::RunLoop::RunUntilIdle() base/run_loop.cc:170:3 (content_unittests+0x7908146) #27 content::DownloadManagerTest::TearDown() content/browser/download/download_manager_impl_unittest.cc:453:21 (content_unittests+0x29fa74e) #28 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4bf35ca) #29 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (content_unittests+0x4bf35ca) #30 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2675:11 (content_unittests+0x4bf44f8) #31 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (content_unittests+0x4bf50d6) #32 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (content_unittests+0x4c06956) #33 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4c06139) #34 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (content_unittests+0x4c06139) #35 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (content_unittests+0x6c30192) #36 base::TestSuite::Run() base/test/test_suite.cc:316 (content_unittests+0x6c30192) #37 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (content_unittests+0x6bbf852) #38 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (content_unittests+0x6b56948) #39 MakeItSo<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (content_unittests+0x6b56948) #40 RunImpl<int (content::UnitTestTestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, 0> base/bind_internal.h:672 (content_unittests+0x6b56948) #41 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x6b56948) #42 Run base/callback.h:97:12 (content_unittests+0x6c4aa2d) #43 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (content_unittests+0x6c4aa2d) #44 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (content_unittests+0x6c4a890) #45 main content/test/run_all_unittests.cc:14:10 (content_unittests+0x6b568b4) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2649:20 in reset ================== ================== WARNING: ThreadSanitizer: data race (pid=18106) Write of size 8 at 0x7b040001e9a0 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 (content_unittests+0x24e41de) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (content_unittests+0x795d5ad) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (content_unittests+0x795d5ad) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (content_unittests+0x795d5ad) #4 base::internal::TaskTracker::~TaskTracker() base/task/task_scheduler/task_tracker.cc:357 (content_unittests+0x795d5ad) #5 base::internal::TaskTrackerPosix::~TaskTrackerPosix() base/task/task_scheduler/task_tracker_posix.cc:16:37 (content_unittests+0x79c04ae) #6 ~TestTaskTracker base/test/scoped_task_environment.cc:268:30 (content_unittests+0x6c28233) #7 base::test::ScopedTaskEnvironment::TestTaskTracker::~TestTaskTracker() base/test/scoped_task_environment.cc:268 (content_unittests+0x6c28233) #8 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (content_unittests+0x794a96b) #9 reset buildtools/third_party/libc++/trunk/include/memory:2651 (content_unittests+0x794a96b) #10 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (content_unittests+0x794a96b) #11 base::internal::TaskSchedulerImpl::~TaskSchedulerImpl() base/task/task_scheduler/task_scheduler_impl.cc:86 (content_unittests+0x794a96b) #12 base::internal::TaskSchedulerImpl::~TaskSchedulerImpl() base/task/task_scheduler/task_scheduler_impl.cc:78:41 (content_unittests+0x794ab99) #13 base::TaskScheduler::SetInstance(std::__1::unique_ptr<base::TaskScheduler, std::__1::default_delete<base::TaskScheduler> >) base/task/task_scheduler/task_scheduler.cc:79:3 (content_unittests+0x7949fbb) #14 base::test::ScopedTaskEnvironment::~ScopedTaskEnvironment() base/test/scoped_task_environment.cc:432:3 (content_unittests+0x6c2746f) #15 content::TestBrowserThreadBundle::~TestBrowserThreadBundle() content/public/test/test_browser_thread_bundle.cc:65:1 (content_unittests+0x6bb7720) #16 content::DownloadManagerTest::~DownloadManagerTest() content/browser/download/download_manager_impl_unittest.cc:411:36 (content_unittests+0x29faa44) #17 content::DownloadManagerTest_StartDownload_Test::~DownloadManagerTest_StartDownload_Test() content/browser/download/download_manager_impl_unittest.cc:566:1 (content_unittests+0x29f9679) #18 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4bf458e) #19 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (content_unittests+0x4bf458e) #20 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (content_unittests+0x4bf50d6) #21 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (content_unittests+0x4c06956) #22 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4c06139) #23 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (content_unittests+0x4c06139) #24 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (content_unittests+0x6c30192) #25 base::TestSuite::Run() base/test/test_suite.cc:316 (content_unittests+0x6c30192) #26 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (content_unittests+0x6bbf852) #27 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (content_unittests+0x6b56948) #28 MakeItSo<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (content_unittests+0x6b56948) #29 RunImpl<int (content::UnitTestTestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, 0> base/bind_internal.h:672 (content_unittests+0x6b56948) #30 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x6b56948) #31 Run base/callback.h:97:12 (content_unittests+0x6c4aa2d) #32 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (content_unittests+0x6c4aa2d) #33 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (content_unittests+0x6c4a890) #34 main content/test/run_all_unittests.cc:14:10 (content_unittests+0x6b568b4) Previous atomic read of size 4 at 0x7b040001e9a0 by thread T14: #0 __tsan_atomic32_load /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:534:3 (content_unittests+0x24bdf8c) #1 __cxx_atomic_load<int> buildtools/third_party/libc++/trunk/include/atomic:964:12 (content_unittests+0x795e082) #2 load buildtools/third_party/libc++/trunk/include/atomic:1483 (content_unittests+0x795e082) #3 NoBarrier_Load base/atomicops_internals_portable.h:130 (content_unittests+0x795e082) #4 HasShutdownStarted base/task/task_scheduler/task_tracker.cc:185 (content_unittests+0x795e082) #5 BeforePostTask base/task/task_scheduler/task_tracker.cc:788 (content_unittests+0x795e082) #6 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:434 (content_unittests+0x795e082) #7 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257:23 (content_unittests+0x794b87a) #8 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (content_unittests+0x794b1fe) #9 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (content_unittests+0x7929801) #10 PostTaskWithTraits base/task/post_task.cc:76:10 (content_unittests+0x7929dbe) #11 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (content_unittests+0x7929dbe) #12 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (content_unittests+0x796ddd2) #13 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (content_unittests+0x79298f9) #14 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (content_unittests+0x4129ce6) #15 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (content_unittests+0x412a555) #16 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (content_unittests+0x40f79cd) #17 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (content_unittests+0x7c7fb70) #18 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (content_unittests+0x79719f9) #19 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (content_unittests+0x79c1074) Thread T14 'NetworkChangeNotifier' (tid=18194, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (content_unittests+0x247404b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (content_unittests+0x79c0b67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (content_unittests+0x79c0a65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (content_unittests+0x79711b0) #4 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:108:21 (content_unittests+0x7c7fcdf) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (content_unittests+0x7c756c7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (content_unittests+0x707f74a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (content_unittests+0x707f74a) #8 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:254:5 (content_unittests+0x707f0e3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (content_unittests+0x65672f3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (content_unittests+0x67eca55) #11 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:499:12 (content_unittests+0x67f0753) #12 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:599 (content_unittests+0x67f0753) #13 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:672 (content_unittests+0x67f0753) #14 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x67f0753) #15 Run base/callback.h:97:12 (content_unittests+0x7928b71) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (content_unittests+0x7928b71) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (content_unittests+0x79434e5) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (content_unittests+0x79439bd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (content_unittests+0x79439bd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (content_unittests+0x78e3a87) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (content_unittests+0x78e3a87) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (content_unittests+0x7943ea0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (content_unittests+0x7943ea0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (content_unittests+0x790754e) #26 base::RunLoop::RunUntilIdle() base/run_loop.cc:170:3 (content_unittests+0x7908146) #27 content::DownloadManagerTest::TearDown() content/browser/download/download_manager_impl_unittest.cc:453:21 (content_unittests+0x29fa74e) #28 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4bf35ca) #29 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (content_unittests+0x4bf35ca) #30 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2675:11 (content_unittests+0x4bf44f8) #31 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (content_unittests+0x4bf50d6) #32 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (content_unittests+0x4c06956) #33 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4c06139) #34 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (content_unittests+0x4c06139) #35 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (content_unittests+0x6c30192) #36 base::TestSuite::Run() base/test/test_suite.cc:316 (content_unittests+0x6c30192) #37 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (content_unittests+0x6bbf852) #38 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (content_unittests+0x6b56948) #39 MakeItSo<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (content_unittests+0x6b56948) #40 RunImpl<int (content::UnitTestTestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, 0> base/bind_internal.h:672 (content_unittests+0x6b56948) #41 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x6b56948) #42 Run base/callback.h:97:12 (content_unittests+0x6c4aa2d) #43 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (content_unittests+0x6c4aa2d) #44 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (content_unittests+0x6c4a890) #45 main content/test/run_all_unittests.cc:14:10 (content_unittests+0x6b568b4) 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=18106) Write of size 8 at 0x7b640001d100 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 (content_unittests+0x24e41de) #1 base::internal::TaskSchedulerImpl::~TaskSchedulerImpl() base/task/task_scheduler/task_scheduler_impl.cc:78:41 (content_unittests+0x794aba1) #2 base::TaskScheduler::SetInstance(std::__1::unique_ptr<base::TaskScheduler, std::__1::default_delete<base::TaskScheduler> >) base/task/task_scheduler/task_scheduler.cc:79:3 (content_unittests+0x7949fbb) #3 base::test::ScopedTaskEnvironment::~ScopedTaskEnvironment() base/test/scoped_task_environment.cc:432:3 (content_unittests+0x6c2746f) #4 content::TestBrowserThreadBundle::~TestBrowserThreadBundle() content/public/test/test_browser_thread_bundle.cc:65:1 (content_unittests+0x6bb7720) #5 content::DownloadManagerTest::~DownloadManagerTest() content/browser/download/download_manager_impl_unittest.cc:411:36 (content_unittests+0x29faa44) #6 content::DownloadManagerTest_StartDownload_Test::~DownloadManagerTest_StartDownload_Test() content/browser/download/download_manager_impl_unittest.cc:566:1 (content_unittests+0x29f9679) #7 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4bf458e) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (content_unittests+0x4bf458e) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (content_unittests+0x4bf50d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (content_unittests+0x4c06956) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4c06139) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (content_unittests+0x4c06139) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (content_unittests+0x6c30192) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (content_unittests+0x6c30192) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (content_unittests+0x6bbf852) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (content_unittests+0x6b56948) #17 MakeItSo<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (content_unittests+0x6b56948) #18 RunImpl<int (content::UnitTestTestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, 0> base/bind_internal.h:672 (content_unittests+0x6b56948) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x6b56948) #20 Run base/callback.h:97:12 (content_unittests+0x6c4aa2d) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (content_unittests+0x6c4aa2d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (content_unittests+0x6c4a890) #23 main content/test/run_all_unittests.cc:14:10 (content_unittests+0x6b568b4) Previous read of size 8 at 0x7b640001d100 by thread T14: #0 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (content_unittests+0x79297e7) #1 PostTaskWithTraits base/task/post_task.cc:76:10 (content_unittests+0x7929dbe) #2 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (content_unittests+0x7929dbe) #3 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (content_unittests+0x796ddd2) #4 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (content_unittests+0x79298f9) #5 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (content_unittests+0x4129ce6) #6 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:409:18 (content_unittests+0x412a578) #7 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (content_unittests+0x40f79cd) #8 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (content_unittests+0x7c7fb70) #9 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (content_unittests+0x79719f9) #10 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (content_unittests+0x79c1074) Thread T14 'NetworkChangeNotifier' (tid=18194, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (content_unittests+0x247404b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (content_unittests+0x79c0b67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (content_unittests+0x79c0a65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (content_unittests+0x79711b0) #4 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:108:21 (content_unittests+0x7c7fcdf) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (content_unittests+0x7c756c7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (content_unittests+0x707f74a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (content_unittests+0x707f74a) #8 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:254:5 (content_unittests+0x707f0e3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (content_unittests+0x65672f3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (content_unittests+0x67eca55) #11 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:499:12 (content_unittests+0x67f0753) #12 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:599 (content_unittests+0x67f0753) #13 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:672 (content_unittests+0x67f0753) #14 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x67f0753) #15 Run base/callback.h:97:12 (content_unittests+0x7928b71) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (content_unittests+0x7928b71) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (content_unittests+0x79434e5) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (content_unittests+0x79439bd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (content_unittests+0x79439bd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (content_unittests+0x78e3a87) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (content_unittests+0x78e3a87) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (content_unittests+0x7943ea0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (content_unittests+0x7943ea0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (content_unittests+0x790754e) #26 base::RunLoop::RunUntilIdle() base/run_loop.cc:170:3 (content_unittests+0x7908146) #27 content::DownloadManagerTest::TearDown() content/browser/download/download_manager_impl_unittest.cc:453:21 (content_unittests+0x29fa74e) #28 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4bf35ca) #29 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (content_unittests+0x4bf35ca) #30 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2675:11 (content_unittests+0x4bf44f8) #31 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (content_unittests+0x4bf50d6) #32 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (content_unittests+0x4c06956) #33 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4c06139) #34 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (content_unittests+0x4c06139) #35 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (content_unittests+0x6c30192) #36 base::TestSuite::Run() base/test/test_suite.cc:316 (content_unittests+0x6c30192) #37 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (content_unittests+0x6bbf852) #38 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (content_unittests+0x6b56948) #39 MakeItSo<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (content_unittests+0x6b56948) #40 RunImpl<int (content::UnitTestTestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, 0> base/bind_internal.h:672 (content_unittests+0x6b56948) #41 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x6b56948) #42 Run base/callback.h:97:12 (content_unittests+0x6c4aa2d) #43 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (content_unittests+0x6c4aa2d) #44 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (content_unittests+0x6c4a890) #45 main content/test/run_all_unittests.cc:14:10 (content_unittests+0x6b568b4) 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=18106) Write of size 8 at 0x7b640001d238 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 (content_unittests+0x24e41de) #1 base::internal::TaskSchedulerImpl::~TaskSchedulerImpl() base/task/task_scheduler/task_scheduler_impl.cc:78:41 (content_unittests+0x794aba1) #2 base::TaskScheduler::SetInstance(std::__1::unique_ptr<base::TaskScheduler, std::__1::default_delete<base::TaskScheduler> >) base/task/task_scheduler/task_scheduler.cc:79:3 (content_unittests+0x7949fbb) #3 base::test::ScopedTaskEnvironment::~ScopedTaskEnvironment() base/test/scoped_task_environment.cc:432:3 (content_unittests+0x6c2746f) #4 content::TestBrowserThreadBundle::~TestBrowserThreadBundle() content/public/test/test_browser_thread_bundle.cc:65:1 (content_unittests+0x6bb7720) #5 content::DownloadManagerTest::~DownloadManagerTest() content/browser/download/download_manager_impl_unittest.cc:411:36 (content_unittests+0x29faa44) #6 content::DownloadManagerTest_StartDownload_Test::~DownloadManagerTest_StartDownload_Test() content/browser/download/download_manager_impl_unittest.cc:566:1 (content_unittests+0x29f9679) #7 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4bf458e) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (content_unittests+0x4bf458e) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (content_unittests+0x4bf50d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (content_unittests+0x4c06956) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4c06139) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (content_unittests+0x4c06139) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (content_unittests+0x6c30192) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (content_unittests+0x6c30192) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (content_unittests+0x6bbf852) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (content_unittests+0x6b56948) #17 MakeItSo<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (content_unittests+0x6b56948) #18 RunImpl<int (content::UnitTestTestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, 0> base/bind_internal.h:672 (content_unittests+0x6b56948) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x6b56948) #20 Run base/callback.h:97:12 (content_unittests+0x6c4aa2d) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (content_unittests+0x6c4aa2d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (content_unittests+0x6c4a890) #23 main content/test/run_all_unittests.cc:14:10 (content_unittests+0x6b568b4) Previous atomic read of size 1 at 0x7b640001d238 by thread T14: #0 __tsan_atomic8_load /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:524:3 (content_unittests+0x24bdc8c) #1 __cxx_atomic_load<unsigned char> buildtools/third_party/libc++/trunk/include/atomic:970:12 (content_unittests+0x794b0fb) #2 load buildtools/third_party/libc++/trunk/include/atomic:1487 (content_unittests+0x794b0fb) #3 IsSet base/synchronization/atomic_flag.h:34 (content_unittests+0x794b0fb) #4 SetUserBlockingPriorityIfNeeded base/task/task_scheduler/task_scheduler_impl.cc:338 (content_unittests+0x794b0fb) #5 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:161 (content_unittests+0x794b0fb) #6 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (content_unittests+0x7929801) #7 PostTaskWithTraits base/task/post_task.cc:76:10 (content_unittests+0x7929dbe) #8 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (content_unittests+0x7929dbe) #9 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (content_unittests+0x796ddd2) #10 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (content_unittests+0x79298f9) #11 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (content_unittests+0x4129ce6) #12 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:409:18 (content_unittests+0x412a578) #13 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (content_unittests+0x40f79cd) #14 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (content_unittests+0x7c7fb70) #15 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (content_unittests+0x79719f9) #16 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (content_unittests+0x79c1074) Thread T14 'NetworkChangeNotifier' (tid=18194, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (content_unittests+0x247404b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (content_unittests+0x79c0b67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (content_unittests+0x79c0a65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (content_unittests+0x79711b0) #4 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:108:21 (content_unittests+0x7c7fcdf) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (content_unittests+0x7c756c7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (content_unittests+0x707f74a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (content_unittests+0x707f74a) #8 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:254:5 (content_unittests+0x707f0e3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (content_unittests+0x65672f3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (content_unittests+0x67eca55) #11 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:499:12 (content_unittests+0x67f0753) #12 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:599 (content_unittests+0x67f0753) #13 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:672 (content_unittests+0x67f0753) #14 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x67f0753) #15 Run base/callback.h:97:12 (content_unittests+0x7928b71) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (content_unittests+0x7928b71) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (content_unittests+0x79434e5) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (content_unittests+0x79439bd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (content_unittests+0x79439bd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (content_unittests+0x78e3a87) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (content_unittests+0x78e3a87) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (content_unittests+0x7943ea0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (content_unittests+0x7943ea0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (content_unittests+0x790754e) #26 base::RunLoop::RunUntilIdle() base/run_loop.cc:170:3 (content_unittests+0x7908146) #27 content::DownloadManagerTest::TearDown() content/browser/download/download_manager_impl_unittest.cc:453:21 (content_unittests+0x29fa74e) #28 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4bf35ca) #29 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (content_unittests+0x4bf35ca) #30 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2675:11 (content_unittests+0x4bf44f8) #31 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (content_unittests+0x4bf50d6) #32 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (content_unittests+0x4c06956) #33 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4c06139) #34 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (content_unittests+0x4c06139) #35 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (content_unittests+0x6c30192) #36 base::TestSuite::Run() base/test/test_suite.cc:316 (content_unittests+0x6c30192) #37 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (content_unittests+0x6bbf852) #38 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (content_unittests+0x6b56948) #39 MakeItSo<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (content_unittests+0x6b56948) #40 RunImpl<int (content::UnitTestTestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, 0> base/bind_internal.h:672 (content_unittests+0x6b56948) #41 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x6b56948) #42 Run base/callback.h:97:12 (content_unittests+0x6c4aa2d) #43 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (content_unittests+0x6c4aa2d) #44 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (content_unittests+0x6c4a890) #45 main content/test/run_all_unittests.cc:14:10 (content_unittests+0x6b568b4) 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=18106) Write of size 8 at 0x561dcc4a6190 by main thread: #0 base::TaskScheduler::SetInstance(std::__1::unique_ptr<base::TaskScheduler, std::__1::default_delete<base::TaskScheduler> >) base/task/task_scheduler/task_scheduler.cc:80:20 (content_unittests+0x7949fe1) #1 base::test::ScopedTaskEnvironment::~ScopedTaskEnvironment() base/test/scoped_task_environment.cc:432:3 (content_unittests+0x6c2746f) #2 content::TestBrowserThreadBundle::~TestBrowserThreadBundle() content/public/test/test_browser_thread_bundle.cc:65:1 (content_unittests+0x6bb7720) #3 content::DownloadManagerTest::~DownloadManagerTest() content/browser/download/download_manager_impl_unittest.cc:411:36 (content_unittests+0x29faa44) #4 content::DownloadManagerTest_StartDownload_Test::~DownloadManagerTest_StartDownload_Test() content/browser/download/download_manager_impl_unittest.cc:566:1 (content_unittests+0x29f9679) #5 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4bf458e) #6 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (content_unittests+0x4bf458e) #7 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (content_unittests+0x4bf50d6) #8 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (content_unittests+0x4c06956) #9 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4c06139) #10 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (content_unittests+0x4c06139) #11 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (content_unittests+0x6c30192) #12 base::TestSuite::Run() base/test/test_suite.cc:316 (content_unittests+0x6c30192) #13 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (content_unittests+0x6bbf852) #14 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (content_unittests+0x6b56948) #15 MakeItSo<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (content_unittests+0x6b56948) #16 RunImpl<int (content::UnitTestTestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, 0> base/bind_internal.h:672 (content_unittests+0x6b56948) #17 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x6b56948) #18 Run base/callback.h:97:12 (content_unittests+0x6c4aa2d) #19 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (content_unittests+0x6c4aa2d) #20 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (content_unittests+0x6c4a890) #21 main content/test/run_all_unittests.cc:14:10 (content_unittests+0x6b568b4) Previous read of size 8 at 0x561dcc4a6190 by thread T14: #0 base::TaskScheduler::GetInstance() base/task/task_scheduler/task_scheduler.cc:85:10 (content_unittests+0x7949f5a) #1 GetTaskExecutorForTraits base/task/post_task.cc:50:32 (content_unittests+0x79297bc) #2 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:85 (content_unittests+0x79297bc) #3 PostTaskWithTraits base/task/post_task.cc:76:10 (content_unittests+0x7929dbe) #4 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (content_unittests+0x7929dbe) #5 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (content_unittests+0x796ddd2) #6 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (content_unittests+0x79298f9) #7 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (content_unittests+0x4129ce6) #8 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:409:18 (content_unittests+0x412a578) #9 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (content_unittests+0x40f79cd) #10 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (content_unittests+0x7c7fb70) #11 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (content_unittests+0x79719f9) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (content_unittests+0x79c1074) Location is global 'base::(anonymous namespace)::g_task_scheduler' of size 8 at 0x561dcc4a6190 (content_unittests+0x00000cc8f190) Thread T14 'NetworkChangeNotifier' (tid=18194, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (content_unittests+0x247404b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (content_unittests+0x79c0b67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (content_unittests+0x79c0a65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (content_unittests+0x79711b0) #4 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:108:21 (content_unittests+0x7c7fcdf) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (content_unittests+0x7c756c7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (content_unittests+0x707f74a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (content_unittests+0x707f74a) #8 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:254:5 (content_unittests+0x707f0e3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (content_unittests+0x65672f3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (content_unittests+0x67eca55) #11 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:499:12 (content_unittests+0x67f0753) #12 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:599 (content_unittests+0x67f0753) #13 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:672 (content_unittests+0x67f0753) #14 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x67f0753) #15 Run base/callback.h:97:12 (content_unittests+0x7928b71) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (content_unittests+0x7928b71) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (content_unittests+0x79434e5) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (content_unittests+0x79439bd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (content_unittests+0x79439bd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (content_unittests+0x78e3a87) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (content_unittests+0x78e3a87) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (content_unittests+0x7943ea0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (content_unittests+0x7943ea0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (content_unittests+0x790754e) #26 base::RunLoop::RunUntilIdle() base/run_loop.cc:170:3 (content_unittests+0x7908146) #27 content::DownloadManagerTest::TearDown() content/browser/download/download_manager_impl_unittest.cc:453:21 (content_unittests+0x29fa74e) #28 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4bf35ca) #29 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (content_unittests+0x4bf35ca) #30 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2675:11 (content_unittests+0x4bf44f8) #31 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (content_unittests+0x4bf50d6) #32 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (content_unittests+0x4c06956) #33 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (content_unittests+0x4c06139) #34 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (content_unittests+0x4c06139) #35 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (content_unittests+0x6c30192) #36 base::TestSuite::Run() base/test/test_suite.cc:316 (content_unittests+0x6c30192) #37 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (content_unittests+0x6bbf852) #38 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (content_unittests+0x6b56948) #39 MakeItSo<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (content_unittests+0x6b56948) #40 RunImpl<int (content::UnitTestTestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, 0> base/bind_internal.h:672 (content_unittests+0x6b56948) #41 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (content_unittests+0x6b56948) #42 Run base/callback.h:97:12 (content_unittests+0x6c4aa2d) #43 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (content_unittests+0x6c4aa2d) #44 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (content_unittests+0x6c4a890) #45 main content/test/run_all_unittests.cc:14:10 (content_unittests+0x6b568b4) SUMMARY: ThreadSanitizer: data race base/task/task_scheduler/task_scheduler.cc:80:20 in base::TaskScheduler::SetInstance(std::__1::unique_ptr<base::TaskScheduler, std::__1::default_delete<base::TaskScheduler> >) ================== [ OK ] DownloadManagerTest.StartDownload (1069 ms) [ RUN ] DownloadManagerTest.StartDownloadWithoutHistoryDB [ OK ] DownloadManagerTest.StartDownloadWithoutHistoryDB (41 ms) [ RUN ] DownloadManagerTest.DetermineDownloadTarget_True [ OK ] DownloadManagerTest.DetermineDownloadTarget_True (20 ms) [ RUN ] DownloadManagerTest.DetermineDownloadTarget_False [ OK ] DownloadManagerTest.DetermineDownloadTarget_False (21 ms) [ RUN ] DownloadManagerTest.GetDownloadByGuid GMOCK WARNING: Uninteresting mock function call - returning directly. Function call: OnDownloadCreated(0x7b4c00000fc0, 0x7b8c0000c400) NOTE: You can safely ignore the above warning unless this call should not happen. Do not suppress it by blindly adding an EXPECT_CALL() if you don't mean to enforce the call. See https://github.com/google/googletest/blob/master/googlemock/docs/CookBook.md#knowing-when-to-expect for details. [ OK ] DownloadManagerTest.GetDownloadByGuid (20 ms) [ RUN ] DownloadManagerTest.RemoveDownloadsByURL [ OK ] DownloadManagerTest.RemoveDownloadsByURL (24 ms) [----------] 6 tests from DownloadManagerTest (1197 ms total) [----------] Global test environment tear-down [==========] 10 tests from 2 test suites ran. (1293 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 7 warnings [ RUN ] StorageAreaImplParamTest.PutWhenAlreadyOverQuota [ OK ] StorageAreaImplParamTest.PutWhenAlreadyOverQuota (17 ms) ================================================================================