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

Test 'ContentVerifyJobUnittest/ContentMismatchUnittest.ContentMismatch/2' completed with the following status(es): 'FAILURE_ON_EXIT','SUCCESS' Test 'ContentVerifyJobUnittest/ContentMismatchUnittest.ContentMismatch/2' had the following logs when run: ================================================================================ [ RUN ] ContentVerifyJobUnittest/ContentMismatchUnittest.ContentMismatch/2 [1896:2004:0323/214108.639254:14720446054:ERROR:simple_index_file_posix.cc(36)] opendir /b/s/w/it6bvO81/.org.chromium.Chromium.jnJwcP/Code Cache/js: No such file or directory (2) [1896:2004:0323/214108.639724:14720446509:ERROR:simple_index_file.cc(612)] Could not reconstruct index from disk [ OK ] ContentVerifyJobUnittest/ContentMismatchUnittest.ContentMismatch/2 (177 ms) [ RUN ] ContentVerifyJobUnittest/ContentMismatchUnittest.ContentMismatchWithLargeFile/0 ================== WARNING: ThreadSanitizer: data race (pid=1896) Read of size 8 at 0x55cc9fcc5f50 by thread T5: #0 base::TaskScheduler::GetInstance() base/task/task_scheduler/task_scheduler.cc:85:10 (extensions_unittests+0x57d8a4a) #1 GetTaskExecutorForTraits base/task/post_task.cc:50:32 (extensions_unittests+0x57b81ec) #2 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:85 (extensions_unittests+0x57b81ec) #3 PostTaskWithTraits base/task/post_task.cc:76:10 (extensions_unittests+0x57b87ee) #4 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (extensions_unittests+0x57b87ee) #5 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (extensions_unittests+0x57fced2) #6 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (extensions_unittests+0x57b8329) #7 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (extensions_unittests+0x27c8986) #8 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (extensions_unittests+0x27c91f5) #9 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (extensions_unittests+0x27967ed) #10 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (extensions_unittests+0x58f5830) #11 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (extensions_unittests+0x5800919) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (extensions_unittests+0x5856744) Previous write of size 8 at 0x55cc9fcc5f50 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 (extensions_unittests+0x57d8ad1) #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:374:3 (extensions_unittests+0x56898d5) #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 (extensions_unittests+0x230be0d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (extensions_unittests+0x230bdb7) #4 make_unique<content::TestBrowserThreadBundle> buildtools/third_party/libc++/trunk/include/memory:3131:32 (extensions_unittests+0x23d662b) #5 ExtensionsTest<> extensions/browser/extensions_test.h:41 (extensions_unittests+0x23d662b) #6 extensions::ContentVerifyJobUnittest::ContentVerifyJobUnittest() extensions/browser/content_verify_job_unittest.cc:51 (extensions_unittests+0x23d662b) #7 ContentMismatchUnittest extensions/browser/content_verify_job_unittest.cc:333:3 (extensions_unittests+0x23d80b1) #8 ContentMismatchUnittest_ContentMismatchWithLargeFile_Test extensions/browser/content_verify_job_unittest.cc:381 (extensions_unittests+0x23d80b1) #9 testing::internal::ParameterizedTestFactory<extensions::ContentMismatchUnittest_ContentMismatchWithLargeFile_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:399 (extensions_unittests+0x23d80b1) #10 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424e6df) #11 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (extensions_unittests+0x424e6df) #12 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #13 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #15 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #16 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #17 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #18 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #19 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #20 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #21 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #22 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #23 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #24 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #25 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #26 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) Location is global 'base::(anonymous namespace)::g_task_scheduler' of size 8 at 0x55cc9fcc5f50 (extensions_unittests+0x00000bbdaf50) Thread T5 'NetworkChangeNotifier' (tid=2012, 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 (extensions_unittests+0x227904b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (extensions_unittests+0x5856237) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (extensions_unittests+0x5856135) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (extensions_unittests+0x5800260) #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 (extensions_unittests+0x58f599f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (extensions_unittests+0x58eb447) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (extensions_unittests+0x74b820a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (extensions_unittests+0x74b820a) #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 (extensions_unittests+0x74b7ba3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (extensions_unittests+0x3d582d3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (extensions_unittests+0x3fb2e25) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #15 Run base/callback.h:97:12 (extensions_unittests+0x57b75a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (extensions_unittests+0x57b75a1) #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 (extensions_unittests+0x57d2125) #18 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoDelayedWork(base::TimeTicks*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:281:7 (extensions_unittests+0x57d26a3) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoDelayedWork(base::TimeTicks*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (extensions_unittests+0x57d27a4) #20 base::MessagePumpGlib::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_glib.cc:314:27 (extensions_unittests+0x576f3c2) #21 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (extensions_unittests+0x57d2ae0) #22 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (extensions_unittests+0x57d2ae0) #23 base::RunLoop::Run() base/run_loop.cc:157:14 (extensions_unittests+0x5795efe) #24 extensions::TestContentVerifySingleJobObserver::WaitForOnHashesReady() extensions/browser/content_verifier/test_utils.cc:63:29 (extensions_unittests+0x567a40d) #25 extensions::ContentVerifyJobUnittest::RunContentVerifyJob(extensions::Extension const&, base::FilePath const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, extensions::(anonymous namespace)::ContentVerifyJobAsyncRunMode) extensions/browser/content_verify_job_unittest.cc:113:18 (extensions_unittests+0x23d6b9b) #26 extensions::ContentMismatchUnittest::RunContentMismatchTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, extensions::(anonymous namespace)::ContentVerifyJobAsyncRunMode) extensions/browser/content_verify_job_unittest.cc:358:7 (extensions_unittests+0x23d5bd2) #27 extensions::ContentMismatchUnittest_ContentMismatch_Test::TestBody() extensions/browser/content_verify_job_unittest.cc:376:3 (extensions_unittests+0x23d58d1) #28 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424d8cf) #29 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2499 (extensions_unittests+0x424d8cf) #30 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2675:11 (extensions_unittests+0x424e888) #31 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #32 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #33 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #34 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #35 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #36 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #37 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #38 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #39 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #40 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #41 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #42 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #43 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #44 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #45 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) SUMMARY: ThreadSanitizer: data race base/task/task_scheduler/task_scheduler.cc:85:10 in base::TaskScheduler::GetInstance() ================== ================== WARNING: ThreadSanitizer: data race on vptr (ctor/dtor vs virtual call) (pid=1896) Read of size 8 at 0x7b640001c700 by thread T5: #0 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (extensions_unittests+0x57b8217) #1 PostTaskWithTraits base/task/post_task.cc:76:10 (extensions_unittests+0x57b87ee) #2 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (extensions_unittests+0x57b87ee) #3 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (extensions_unittests+0x57fced2) #4 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (extensions_unittests+0x57b8329) #5 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (extensions_unittests+0x27c8986) #6 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (extensions_unittests+0x27c91f5) #7 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (extensions_unittests+0x27967ed) #8 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (extensions_unittests+0x58f5830) #9 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (extensions_unittests+0x5800919) #10 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (extensions_unittests+0x5856744) Previous write of size 8 at 0x7b640001c700 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 (extensions_unittests+0x22e8a8b) #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 (extensions_unittests+0x5689871) #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 (extensions_unittests+0x5689871) #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 (extensions_unittests+0x230be0d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (extensions_unittests+0x230bdb7) #5 make_unique<content::TestBrowserThreadBundle> buildtools/third_party/libc++/trunk/include/memory:3131:32 (extensions_unittests+0x23d662b) #6 ExtensionsTest<> extensions/browser/extensions_test.h:41 (extensions_unittests+0x23d662b) #7 extensions::ContentVerifyJobUnittest::ContentVerifyJobUnittest() extensions/browser/content_verify_job_unittest.cc:51 (extensions_unittests+0x23d662b) #8 ContentMismatchUnittest extensions/browser/content_verify_job_unittest.cc:333:3 (extensions_unittests+0x23d80b1) #9 ContentMismatchUnittest_ContentMismatchWithLargeFile_Test extensions/browser/content_verify_job_unittest.cc:381 (extensions_unittests+0x23d80b1) #10 testing::internal::ParameterizedTestFactory<extensions::ContentMismatchUnittest_ContentMismatchWithLargeFile_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:399 (extensions_unittests+0x23d80b1) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424e6df) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (extensions_unittests+0x424e6df) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #18 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #24 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #27 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) Location is heap block of size 1280 at 0x7b640001c700 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 (extensions_unittests+0x22e8a8b) #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 (extensions_unittests+0x5689871) #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 (extensions_unittests+0x5689871) #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 (extensions_unittests+0x230be0d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (extensions_unittests+0x230bdb7) #5 make_unique<content::TestBrowserThreadBundle> buildtools/third_party/libc++/trunk/include/memory:3131:32 (extensions_unittests+0x23d662b) #6 ExtensionsTest<> extensions/browser/extensions_test.h:41 (extensions_unittests+0x23d662b) #7 extensions::ContentVerifyJobUnittest::ContentVerifyJobUnittest() extensions/browser/content_verify_job_unittest.cc:51 (extensions_unittests+0x23d662b) #8 ContentMismatchUnittest extensions/browser/content_verify_job_unittest.cc:333:3 (extensions_unittests+0x23d80b1) #9 ContentMismatchUnittest_ContentMismatchWithLargeFile_Test extensions/browser/content_verify_job_unittest.cc:381 (extensions_unittests+0x23d80b1) #10 testing::internal::ParameterizedTestFactory<extensions::ContentMismatchUnittest_ContentMismatchWithLargeFile_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:399 (extensions_unittests+0x23d80b1) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424e6df) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (extensions_unittests+0x424e6df) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #18 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #24 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #27 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) Thread T5 'NetworkChangeNotifier' (tid=2012, 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 (extensions_unittests+0x227904b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (extensions_unittests+0x5856237) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (extensions_unittests+0x5856135) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (extensions_unittests+0x5800260) #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 (extensions_unittests+0x58f599f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (extensions_unittests+0x58eb447) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (extensions_unittests+0x74b820a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (extensions_unittests+0x74b820a) #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 (extensions_unittests+0x74b7ba3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (extensions_unittests+0x3d582d3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (extensions_unittests+0x3fb2e25) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #15 Run base/callback.h:97:12 (extensions_unittests+0x57b75a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (extensions_unittests+0x57b75a1) #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 (extensions_unittests+0x57d2125) #18 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoDelayedWork(base::TimeTicks*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:281:7 (extensions_unittests+0x57d26a3) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoDelayedWork(base::TimeTicks*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (extensions_unittests+0x57d27a4) #20 base::MessagePumpGlib::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_glib.cc:314:27 (extensions_unittests+0x576f3c2) #21 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (extensions_unittests+0x57d2ae0) #22 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (extensions_unittests+0x57d2ae0) #23 base::RunLoop::Run() base/run_loop.cc:157:14 (extensions_unittests+0x5795efe) #24 extensions::TestContentVerifySingleJobObserver::WaitForOnHashesReady() extensions/browser/content_verifier/test_utils.cc:63:29 (extensions_unittests+0x567a40d) #25 extensions::ContentVerifyJobUnittest::RunContentVerifyJob(extensions::Extension const&, base::FilePath const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, extensions::(anonymous namespace)::ContentVerifyJobAsyncRunMode) extensions/browser/content_verify_job_unittest.cc:113:18 (extensions_unittests+0x23d6b9b) #26 extensions::ContentMismatchUnittest::RunContentMismatchTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, extensions::(anonymous namespace)::ContentVerifyJobAsyncRunMode) extensions/browser/content_verify_job_unittest.cc:358:7 (extensions_unittests+0x23d5bd2) #27 extensions::ContentMismatchUnittest_ContentMismatch_Test::TestBody() extensions/browser/content_verify_job_unittest.cc:376:3 (extensions_unittests+0x23d58d1) #28 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424d8cf) #29 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2499 (extensions_unittests+0x424d8cf) #30 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2675:11 (extensions_unittests+0x424e888) #31 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #32 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #33 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #34 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #35 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #36 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #37 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #38 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #39 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #40 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #41 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #42 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #43 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #44 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #45 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) SUMMARY: ThreadSanitizer: data race on vptr (ctor/dtor vs virtual call) base/task/post_task.cc:86:9 in base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) ================== ================== WARNING: ThreadSanitizer: data race (pid=1896) Atomic read of size 1 at 0x7b640001c838 by thread T5: #0 __tsan_atomic8_load /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:524:3 (extensions_unittests+0x22c2c8c) #1 __cxx_atomic_load<unsigned char> buildtools/third_party/libc++/trunk/include/atomic:970:12 (extensions_unittests+0x57d9beb) #2 load buildtools/third_party/libc++/trunk/include/atomic:1487 (extensions_unittests+0x57d9beb) #3 IsSet base/synchronization/atomic_flag.h:34 (extensions_unittests+0x57d9beb) #4 SetUserBlockingPriorityIfNeeded base/task/task_scheduler/task_scheduler_impl.cc:338 (extensions_unittests+0x57d9beb) #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 (extensions_unittests+0x57d9beb) #6 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (extensions_unittests+0x57b8231) #7 PostTaskWithTraits base/task/post_task.cc:76:10 (extensions_unittests+0x57b87ee) #8 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (extensions_unittests+0x57b87ee) #9 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (extensions_unittests+0x57fced2) #10 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (extensions_unittests+0x57b8329) #11 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (extensions_unittests+0x27c8986) #12 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (extensions_unittests+0x27c91f5) #13 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (extensions_unittests+0x27967ed) #14 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (extensions_unittests+0x58f5830) #15 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (extensions_unittests+0x5800919) #16 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (extensions_unittests+0x5856744) Previous write of size 8 at 0x7b640001c838 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 (extensions_unittests+0x22e8a8b) #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 (extensions_unittests+0x5689871) #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 (extensions_unittests+0x5689871) #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 (extensions_unittests+0x230be0d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (extensions_unittests+0x230bdb7) #5 make_unique<content::TestBrowserThreadBundle> buildtools/third_party/libc++/trunk/include/memory:3131:32 (extensions_unittests+0x23d662b) #6 ExtensionsTest<> extensions/browser/extensions_test.h:41 (extensions_unittests+0x23d662b) #7 extensions::ContentVerifyJobUnittest::ContentVerifyJobUnittest() extensions/browser/content_verify_job_unittest.cc:51 (extensions_unittests+0x23d662b) #8 ContentMismatchUnittest extensions/browser/content_verify_job_unittest.cc:333:3 (extensions_unittests+0x23d80b1) #9 ContentMismatchUnittest_ContentMismatchWithLargeFile_Test extensions/browser/content_verify_job_unittest.cc:381 (extensions_unittests+0x23d80b1) #10 testing::internal::ParameterizedTestFactory<extensions::ContentMismatchUnittest_ContentMismatchWithLargeFile_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:399 (extensions_unittests+0x23d80b1) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424e6df) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (extensions_unittests+0x424e6df) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #18 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #24 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #27 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) Location is heap block of size 1280 at 0x7b640001c700 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 (extensions_unittests+0x22e8a8b) #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 (extensions_unittests+0x5689871) #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 (extensions_unittests+0x5689871) #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 (extensions_unittests+0x230be0d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (extensions_unittests+0x230bdb7) #5 make_unique<content::TestBrowserThreadBundle> buildtools/third_party/libc++/trunk/include/memory:3131:32 (extensions_unittests+0x23d662b) #6 ExtensionsTest<> extensions/browser/extensions_test.h:41 (extensions_unittests+0x23d662b) #7 extensions::ContentVerifyJobUnittest::ContentVerifyJobUnittest() extensions/browser/content_verify_job_unittest.cc:51 (extensions_unittests+0x23d662b) #8 ContentMismatchUnittest extensions/browser/content_verify_job_unittest.cc:333:3 (extensions_unittests+0x23d80b1) #9 ContentMismatchUnittest_ContentMismatchWithLargeFile_Test extensions/browser/content_verify_job_unittest.cc:381 (extensions_unittests+0x23d80b1) #10 testing::internal::ParameterizedTestFactory<extensions::ContentMismatchUnittest_ContentMismatchWithLargeFile_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:399 (extensions_unittests+0x23d80b1) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424e6df) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (extensions_unittests+0x424e6df) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #18 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #24 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #27 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) Thread T5 'NetworkChangeNotifier' (tid=2012, 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 (extensions_unittests+0x227904b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (extensions_unittests+0x5856237) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (extensions_unittests+0x5856135) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (extensions_unittests+0x5800260) #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 (extensions_unittests+0x58f599f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (extensions_unittests+0x58eb447) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (extensions_unittests+0x74b820a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (extensions_unittests+0x74b820a) #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 (extensions_unittests+0x74b7ba3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (extensions_unittests+0x3d582d3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (extensions_unittests+0x3fb2e25) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #15 Run base/callback.h:97:12 (extensions_unittests+0x57b75a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (extensions_unittests+0x57b75a1) #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 (extensions_unittests+0x57d2125) #18 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoDelayedWork(base::TimeTicks*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:281:7 (extensions_unittests+0x57d26a3) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoDelayedWork(base::TimeTicks*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (extensions_unittests+0x57d27a4) #20 base::MessagePumpGlib::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_glib.cc:314:27 (extensions_unittests+0x576f3c2) #21 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (extensions_unittests+0x57d2ae0) #22 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (extensions_unittests+0x57d2ae0) #23 base::RunLoop::Run() base/run_loop.cc:157:14 (extensions_unittests+0x5795efe) #24 extensions::TestContentVerifySingleJobObserver::WaitForOnHashesReady() extensions/browser/content_verifier/test_utils.cc:63:29 (extensions_unittests+0x567a40d) #25 extensions::ContentVerifyJobUnittest::RunContentVerifyJob(extensions::Extension const&, base::FilePath const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, extensions::(anonymous namespace)::ContentVerifyJobAsyncRunMode) extensions/browser/content_verify_job_unittest.cc:113:18 (extensions_unittests+0x23d6b9b) #26 extensions::ContentMismatchUnittest::RunContentMismatchTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, extensions::(anonymous namespace)::ContentVerifyJobAsyncRunMode) extensions/browser/content_verify_job_unittest.cc:358:7 (extensions_unittests+0x23d5bd2) #27 extensions::ContentMismatchUnittest_ContentMismatch_Test::TestBody() extensions/browser/content_verify_job_unittest.cc:376:3 (extensions_unittests+0x23d58d1) #28 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424d8cf) #29 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2499 (extensions_unittests+0x424d8cf) #30 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2675:11 (extensions_unittests+0x424e888) #31 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #32 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #33 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #34 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #35 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #36 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #37 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #38 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #39 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #40 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #41 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #42 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #43 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #44 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #45 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:970:12 in __cxx_atomic_load<unsigned char> ================== ================== WARNING: ThreadSanitizer: data race (pid=1896) Read of size 8 at 0x7b640001c718 by thread T5: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (extensions_unittests+0x57da343) #1 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257 (extensions_unittests+0x57da343) #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 (extensions_unittests+0x57d9cee) #3 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (extensions_unittests+0x57b8231) #4 PostTaskWithTraits base/task/post_task.cc:76:10 (extensions_unittests+0x57b87ee) #5 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (extensions_unittests+0x57b87ee) #6 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (extensions_unittests+0x57fced2) #7 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (extensions_unittests+0x57b8329) #8 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (extensions_unittests+0x27c8986) #9 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (extensions_unittests+0x27c91f5) #10 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (extensions_unittests+0x27967ed) #11 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (extensions_unittests+0x58f5830) #12 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (extensions_unittests+0x5800919) #13 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (extensions_unittests+0x5856744) Previous write of size 8 at 0x7b640001c718 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 (extensions_unittests+0x22e8a8b) #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 (extensions_unittests+0x5689871) #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 (extensions_unittests+0x5689871) #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 (extensions_unittests+0x230be0d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (extensions_unittests+0x230bdb7) #5 make_unique<content::TestBrowserThreadBundle> buildtools/third_party/libc++/trunk/include/memory:3131:32 (extensions_unittests+0x23d662b) #6 ExtensionsTest<> extensions/browser/extensions_test.h:41 (extensions_unittests+0x23d662b) #7 extensions::ContentVerifyJobUnittest::ContentVerifyJobUnittest() extensions/browser/content_verify_job_unittest.cc:51 (extensions_unittests+0x23d662b) #8 ContentMismatchUnittest extensions/browser/content_verify_job_unittest.cc:333:3 (extensions_unittests+0x23d80b1) #9 ContentMismatchUnittest_ContentMismatchWithLargeFile_Test extensions/browser/content_verify_job_unittest.cc:381 (extensions_unittests+0x23d80b1) #10 testing::internal::ParameterizedTestFactory<extensions::ContentMismatchUnittest_ContentMismatchWithLargeFile_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:399 (extensions_unittests+0x23d80b1) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424e6df) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (extensions_unittests+0x424e6df) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #18 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #24 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #27 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) Location is heap block of size 1280 at 0x7b640001c700 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 (extensions_unittests+0x22e8a8b) #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 (extensions_unittests+0x5689871) #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 (extensions_unittests+0x5689871) #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 (extensions_unittests+0x230be0d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (extensions_unittests+0x230bdb7) #5 make_unique<content::TestBrowserThreadBundle> buildtools/third_party/libc++/trunk/include/memory:3131:32 (extensions_unittests+0x23d662b) #6 ExtensionsTest<> extensions/browser/extensions_test.h:41 (extensions_unittests+0x23d662b) #7 extensions::ContentVerifyJobUnittest::ContentVerifyJobUnittest() extensions/browser/content_verify_job_unittest.cc:51 (extensions_unittests+0x23d662b) #8 ContentMismatchUnittest extensions/browser/content_verify_job_unittest.cc:333:3 (extensions_unittests+0x23d80b1) #9 ContentMismatchUnittest_ContentMismatchWithLargeFile_Test extensions/browser/content_verify_job_unittest.cc:381 (extensions_unittests+0x23d80b1) #10 testing::internal::ParameterizedTestFactory<extensions::ContentMismatchUnittest_ContentMismatchWithLargeFile_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:399 (extensions_unittests+0x23d80b1) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424e6df) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (extensions_unittests+0x424e6df) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #18 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #24 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #27 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) Thread T5 'NetworkChangeNotifier' (tid=2012, 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 (extensions_unittests+0x227904b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (extensions_unittests+0x5856237) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (extensions_unittests+0x5856135) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (extensions_unittests+0x5800260) #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 (extensions_unittests+0x58f599f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (extensions_unittests+0x58eb447) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (extensions_unittests+0x74b820a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (extensions_unittests+0x74b820a) #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 (extensions_unittests+0x74b7ba3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (extensions_unittests+0x3d582d3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (extensions_unittests+0x3fb2e25) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #15 Run base/callback.h:97:12 (extensions_unittests+0x57b75a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (extensions_unittests+0x57b75a1) #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 (extensions_unittests+0x57d2125) #18 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoDelayedWork(base::TimeTicks*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:281:7 (extensions_unittests+0x57d26a3) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoDelayedWork(base::TimeTicks*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (extensions_unittests+0x57d27a4) #20 base::MessagePumpGlib::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_glib.cc:314:27 (extensions_unittests+0x576f3c2) #21 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (extensions_unittests+0x57d2ae0) #22 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (extensions_unittests+0x57d2ae0) #23 base::RunLoop::Run() base/run_loop.cc:157:14 (extensions_unittests+0x5795efe) #24 extensions::TestContentVerifySingleJobObserver::WaitForOnHashesReady() extensions/browser/content_verifier/test_utils.cc:63:29 (extensions_unittests+0x567a40d) #25 extensions::ContentVerifyJobUnittest::RunContentVerifyJob(extensions::Extension const&, base::FilePath const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, extensions::(anonymous namespace)::ContentVerifyJobAsyncRunMode) extensions/browser/content_verify_job_unittest.cc:113:18 (extensions_unittests+0x23d6b9b) #26 extensions::ContentMismatchUnittest::RunContentMismatchTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, extensions::(anonymous namespace)::ContentVerifyJobAsyncRunMode) extensions/browser/content_verify_job_unittest.cc:358:7 (extensions_unittests+0x23d5bd2) #27 extensions::ContentMismatchUnittest_ContentMismatch_Test::TestBody() extensions/browser/content_verify_job_unittest.cc:376:3 (extensions_unittests+0x23d58d1) #28 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424d8cf) #29 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2499 (extensions_unittests+0x424d8cf) #30 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2675:11 (extensions_unittests+0x424e888) #31 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #32 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #33 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #34 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #35 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #36 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #37 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #38 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #39 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #40 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #41 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #42 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #43 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #44 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #45 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=1896) Read of size 8 at 0x7b5c00001510 by thread T5: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (extensions_unittests+0x57ed103) #1 BeforePostTask base/task/task_scheduler/task_tracker.cc (extensions_unittests+0x57ed103) #2 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:434 (extensions_unittests+0x57ed103) #3 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257:23 (extensions_unittests+0x57da36a) #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 (extensions_unittests+0x57d9cee) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (extensions_unittests+0x57b8231) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (extensions_unittests+0x57b87ee) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (extensions_unittests+0x57b87ee) #8 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (extensions_unittests+0x57fced2) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (extensions_unittests+0x57b8329) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (extensions_unittests+0x27c8986) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (extensions_unittests+0x27c91f5) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (extensions_unittests+0x27967ed) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (extensions_unittests+0x58f5830) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (extensions_unittests+0x5800919) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (extensions_unittests+0x5856744) Previous write of size 8 at 0x7b5c00001510 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 (extensions_unittests+0x22e8a8b) #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 (extensions_unittests+0x5689376) #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 (extensions_unittests+0x230be0d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (extensions_unittests+0x230bdb7) #4 make_unique<content::TestBrowserThreadBundle> buildtools/third_party/libc++/trunk/include/memory:3131:32 (extensions_unittests+0x23d662b) #5 ExtensionsTest<> extensions/browser/extensions_test.h:41 (extensions_unittests+0x23d662b) #6 extensions::ContentVerifyJobUnittest::ContentVerifyJobUnittest() extensions/browser/content_verify_job_unittest.cc:51 (extensions_unittests+0x23d662b) #7 ContentMismatchUnittest extensions/browser/content_verify_job_unittest.cc:333:3 (extensions_unittests+0x23d80b1) #8 ContentMismatchUnittest_ContentMismatchWithLargeFile_Test extensions/browser/content_verify_job_unittest.cc:381 (extensions_unittests+0x23d80b1) #9 testing::internal::ParameterizedTestFactory<extensions::ContentMismatchUnittest_ContentMismatchWithLargeFile_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:399 (extensions_unittests+0x23d80b1) #10 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424e6df) #11 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (extensions_unittests+0x424e6df) #12 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #13 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #15 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #16 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #17 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #18 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #19 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #20 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #21 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #22 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #23 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #24 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #25 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #26 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) Location is heap block of size 776 at 0x7b5c00001500 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 (extensions_unittests+0x22e8a8b) #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 (extensions_unittests+0x5689376) #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 (extensions_unittests+0x230be0d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (extensions_unittests+0x230bdb7) #4 make_unique<content::TestBrowserThreadBundle> buildtools/third_party/libc++/trunk/include/memory:3131:32 (extensions_unittests+0x23d662b) #5 ExtensionsTest<> extensions/browser/extensions_test.h:41 (extensions_unittests+0x23d662b) #6 extensions::ContentVerifyJobUnittest::ContentVerifyJobUnittest() extensions/browser/content_verify_job_unittest.cc:51 (extensions_unittests+0x23d662b) #7 ContentMismatchUnittest extensions/browser/content_verify_job_unittest.cc:333:3 (extensions_unittests+0x23d80b1) #8 ContentMismatchUnittest_ContentMismatchWithLargeFile_Test extensions/browser/content_verify_job_unittest.cc:381 (extensions_unittests+0x23d80b1) #9 testing::internal::ParameterizedTestFactory<extensions::ContentMismatchUnittest_ContentMismatchWithLargeFile_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:399 (extensions_unittests+0x23d80b1) #10 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424e6df) #11 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (extensions_unittests+0x424e6df) #12 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #13 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #15 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #16 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #17 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #18 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #19 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #20 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #21 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #22 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #23 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #24 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #25 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #26 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) Thread T5 'NetworkChangeNotifier' (tid=2012, 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 (extensions_unittests+0x227904b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (extensions_unittests+0x5856237) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (extensions_unittests+0x5856135) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (extensions_unittests+0x5800260) #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 (extensions_unittests+0x58f599f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (extensions_unittests+0x58eb447) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (extensions_unittests+0x74b820a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (extensions_unittests+0x74b820a) #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 (extensions_unittests+0x74b7ba3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (extensions_unittests+0x3d582d3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (extensions_unittests+0x3fb2e25) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #15 Run base/callback.h:97:12 (extensions_unittests+0x57b75a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (extensions_unittests+0x57b75a1) #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 (extensions_unittests+0x57d2125) #18 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoDelayedWork(base::TimeTicks*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:281:7 (extensions_unittests+0x57d26a3) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoDelayedWork(base::TimeTicks*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (extensions_unittests+0x57d27a4) #20 base::MessagePumpGlib::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_glib.cc:314:27 (extensions_unittests+0x576f3c2) #21 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (extensions_unittests+0x57d2ae0) #22 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (extensions_unittests+0x57d2ae0) #23 base::RunLoop::Run() base/run_loop.cc:157:14 (extensions_unittests+0x5795efe) #24 extensions::TestContentVerifySingleJobObserver::WaitForOnHashesReady() extensions/browser/content_verifier/test_utils.cc:63:29 (extensions_unittests+0x567a40d) #25 extensions::ContentVerifyJobUnittest::RunContentVerifyJob(extensions::Extension const&, base::FilePath const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, extensions::(anonymous namespace)::ContentVerifyJobAsyncRunMode) extensions/browser/content_verify_job_unittest.cc:113:18 (extensions_unittests+0x23d6b9b) #26 extensions::ContentMismatchUnittest::RunContentMismatchTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, extensions::(anonymous namespace)::ContentVerifyJobAsyncRunMode) extensions/browser/content_verify_job_unittest.cc:358:7 (extensions_unittests+0x23d5bd2) #27 extensions::ContentMismatchUnittest_ContentMismatch_Test::TestBody() extensions/browser/content_verify_job_unittest.cc:376:3 (extensions_unittests+0x23d58d1) #28 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424d8cf) #29 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2499 (extensions_unittests+0x424d8cf) #30 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2675:11 (extensions_unittests+0x424e888) #31 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #32 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #33 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #34 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #35 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #36 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #37 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #38 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #39 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #40 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #41 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #42 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #43 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #44 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #45 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=1896) Atomic read of size 4 at 0x7b0400008b50 by thread T5: #0 __tsan_atomic32_load /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:534:3 (extensions_unittests+0x22c2f8c) #1 __cxx_atomic_load<int> buildtools/third_party/libc++/trunk/include/atomic:964:12 (extensions_unittests+0x57ed182) #2 load buildtools/third_party/libc++/trunk/include/atomic:1483 (extensions_unittests+0x57ed182) #3 NoBarrier_Load base/atomicops_internals_portable.h:130 (extensions_unittests+0x57ed182) #4 HasShutdownStarted base/task/task_scheduler/task_tracker.cc:185 (extensions_unittests+0x57ed182) #5 BeforePostTask base/task/task_scheduler/task_tracker.cc:788 (extensions_unittests+0x57ed182) #6 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:434 (extensions_unittests+0x57ed182) #7 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257:23 (extensions_unittests+0x57da36a) #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 (extensions_unittests+0x57d9cee) #9 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (extensions_unittests+0x57b8231) #10 PostTaskWithTraits base/task/post_task.cc:76:10 (extensions_unittests+0x57b87ee) #11 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (extensions_unittests+0x57b87ee) #12 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (extensions_unittests+0x57fced2) #13 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (extensions_unittests+0x57b8329) #14 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (extensions_unittests+0x27c8986) #15 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (extensions_unittests+0x27c91f5) #16 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (extensions_unittests+0x27967ed) #17 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (extensions_unittests+0x58f5830) #18 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (extensions_unittests+0x5800919) #19 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (extensions_unittests+0x5856744) Previous write of size 8 at 0x7b0400008b50 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 (extensions_unittests+0x22e8a8b) #1 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, int) base/task/task_scheduler/task_tracker.cc:287:14 (extensions_unittests+0x57eb445) #2 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker.cc:282:7 (extensions_unittests+0x57eb3d1) #3 base::internal::TaskTrackerPosix::TaskTrackerPosix(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker_posix.cc:15:56 (extensions_unittests+0x5855ac9) #4 TestTaskTracker base/test/scoped_task_environment.cc:623:7 (extensions_unittests+0x568938d) #5 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 (extensions_unittests+0x568938d) #6 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 (extensions_unittests+0x230be0d) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (extensions_unittests+0x230bdb7) #8 make_unique<content::TestBrowserThreadBundle> buildtools/third_party/libc++/trunk/include/memory:3131:32 (extensions_unittests+0x23d662b) #9 ExtensionsTest<> extensions/browser/extensions_test.h:41 (extensions_unittests+0x23d662b) #10 extensions::ContentVerifyJobUnittest::ContentVerifyJobUnittest() extensions/browser/content_verify_job_unittest.cc:51 (extensions_unittests+0x23d662b) #11 ContentMismatchUnittest extensions/browser/content_verify_job_unittest.cc:333:3 (extensions_unittests+0x23d80b1) #12 ContentMismatchUnittest_ContentMismatchWithLargeFile_Test extensions/browser/content_verify_job_unittest.cc:381 (extensions_unittests+0x23d80b1) #13 testing::internal::ParameterizedTestFactory<extensions::ContentMismatchUnittest_ContentMismatchWithLargeFile_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:399 (extensions_unittests+0x23d80b1) #14 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424e6df) #15 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (extensions_unittests+0x424e6df) #16 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #17 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #18 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #19 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #20 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #21 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #22 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #23 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #24 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #25 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #26 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #27 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #28 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #29 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #30 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) Location is heap block of size 4 at 0x7b0400008b50 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 (extensions_unittests+0x22e8a8b) #1 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, int) base/task/task_scheduler/task_tracker.cc:287:14 (extensions_unittests+0x57eb445) #2 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker.cc:282:7 (extensions_unittests+0x57eb3d1) #3 base::internal::TaskTrackerPosix::TaskTrackerPosix(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker_posix.cc:15:56 (extensions_unittests+0x5855ac9) #4 TestTaskTracker base/test/scoped_task_environment.cc:623:7 (extensions_unittests+0x568938d) #5 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 (extensions_unittests+0x568938d) #6 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 (extensions_unittests+0x230be0d) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (extensions_unittests+0x230bdb7) #8 make_unique<content::TestBrowserThreadBundle> buildtools/third_party/libc++/trunk/include/memory:3131:32 (extensions_unittests+0x23d662b) #9 ExtensionsTest<> extensions/browser/extensions_test.h:41 (extensions_unittests+0x23d662b) #10 extensions::ContentVerifyJobUnittest::ContentVerifyJobUnittest() extensions/browser/content_verify_job_unittest.cc:51 (extensions_unittests+0x23d662b) #11 ContentMismatchUnittest extensions/browser/content_verify_job_unittest.cc:333:3 (extensions_unittests+0x23d80b1) #12 ContentMismatchUnittest_ContentMismatchWithLargeFile_Test extensions/browser/content_verify_job_unittest.cc:381 (extensions_unittests+0x23d80b1) #13 testing::internal::ParameterizedTestFactory<extensions::ContentMismatchUnittest_ContentMismatchWithLargeFile_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:399 (extensions_unittests+0x23d80b1) #14 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424e6df) #15 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (extensions_unittests+0x424e6df) #16 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #17 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #18 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #19 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #20 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #21 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #22 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #23 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #24 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #25 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #26 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #27 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #28 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #29 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #30 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) Thread T5 'NetworkChangeNotifier' (tid=2012, 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 (extensions_unittests+0x227904b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (extensions_unittests+0x5856237) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (extensions_unittests+0x5856135) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (extensions_unittests+0x5800260) #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 (extensions_unittests+0x58f599f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (extensions_unittests+0x58eb447) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (extensions_unittests+0x74b820a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (extensions_unittests+0x74b820a) #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 (extensions_unittests+0x74b7ba3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (extensions_unittests+0x3d582d3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (extensions_unittests+0x3fb2e25) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #15 Run base/callback.h:97:12 (extensions_unittests+0x57b75a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (extensions_unittests+0x57b75a1) #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 (extensions_unittests+0x57d2125) #18 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoDelayedWork(base::TimeTicks*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:281:7 (extensions_unittests+0x57d26a3) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoDelayedWork(base::TimeTicks*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (extensions_unittests+0x57d27a4) #20 base::MessagePumpGlib::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_glib.cc:314:27 (extensions_unittests+0x576f3c2) #21 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (extensions_unittests+0x57d2ae0) #22 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (extensions_unittests+0x57d2ae0) #23 base::RunLoop::Run() base/run_loop.cc:157:14 (extensions_unittests+0x5795efe) #24 extensions::TestContentVerifySingleJobObserver::WaitForOnHashesReady() extensions/browser/content_verifier/test_utils.cc:63:29 (extensions_unittests+0x567a40d) #25 extensions::ContentVerifyJobUnittest::RunContentVerifyJob(extensions::Extension const&, base::FilePath const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, extensions::(anonymous namespace)::ContentVerifyJobAsyncRunMode) extensions/browser/content_verify_job_unittest.cc:113:18 (extensions_unittests+0x23d6b9b) #26 extensions::ContentMismatchUnittest::RunContentMismatchTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, extensions::(anonymous namespace)::ContentVerifyJobAsyncRunMode) extensions/browser/content_verify_job_unittest.cc:358:7 (extensions_unittests+0x23d5bd2) #27 extensions::ContentMismatchUnittest_ContentMismatch_Test::TestBody() extensions/browser/content_verify_job_unittest.cc:376:3 (extensions_unittests+0x23d58d1) #28 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424d8cf) #29 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2499 (extensions_unittests+0x424d8cf) #30 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2675:11 (extensions_unittests+0x424e888) #31 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #32 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #33 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #34 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #35 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #36 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #37 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #38 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #39 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #40 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #41 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #42 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #43 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #44 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #45 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:964:12 in __cxx_atomic_load<int> ================== ================== WARNING: ThreadSanitizer: data race (pid=1896) Atomic write of size 4 at 0x7b5c00001518 by thread T5: #0 __tsan_atomic32_fetch_add /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:615:3 (extensions_unittests+0x22c4f09) #1 __cxx_atomic_fetch_add<int> buildtools/third_party/libc++/trunk/include/atomic:1009:12 (extensions_unittests+0x57ed1b0) #2 fetch_add buildtools/third_party/libc++/trunk/include/atomic:1572 (extensions_unittests+0x57ed1b0) #3 NoBarrier_AtomicIncrement base/atomicops_internals_portable.h:86 (extensions_unittests+0x57ed1b0) #4 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:439 (extensions_unittests+0x57ed1b0) #5 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257:23 (extensions_unittests+0x57da36a) #6 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 (extensions_unittests+0x57d9cee) #7 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (extensions_unittests+0x57b8231) #8 PostTaskWithTraits base/task/post_task.cc:76:10 (extensions_unittests+0x57b87ee) #9 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (extensions_unittests+0x57b87ee) #10 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (extensions_unittests+0x57fced2) #11 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (extensions_unittests+0x57b8329) #12 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (extensions_unittests+0x27c8986) #13 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (extensions_unittests+0x27c91f5) #14 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (extensions_unittests+0x27967ed) #15 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (extensions_unittests+0x58f5830) #16 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (extensions_unittests+0x5800919) #17 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (extensions_unittests+0x5856744) Previous write of size 8 at 0x7b5c00001518 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 (extensions_unittests+0x22e8a8b) #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 (extensions_unittests+0x5689376) #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 (extensions_unittests+0x230be0d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (extensions_unittests+0x230bdb7) #4 make_unique<content::TestBrowserThreadBundle> buildtools/third_party/libc++/trunk/include/memory:3131:32 (extensions_unittests+0x23d662b) #5 ExtensionsTest<> extensions/browser/extensions_test.h:41 (extensions_unittests+0x23d662b) #6 extensions::ContentVerifyJobUnittest::ContentVerifyJobUnittest() extensions/browser/content_verify_job_unittest.cc:51 (extensions_unittests+0x23d662b) #7 ContentMismatchUnittest extensions/browser/content_verify_job_unittest.cc:333:3 (extensions_unittests+0x23d80b1) #8 ContentMismatchUnittest_ContentMismatchWithLargeFile_Test extensions/browser/content_verify_job_unittest.cc:381 (extensions_unittests+0x23d80b1) #9 testing::internal::ParameterizedTestFactory<extensions::ContentMismatchUnittest_ContentMismatchWithLargeFile_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:399 (extensions_unittests+0x23d80b1) #10 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424e6df) #11 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (extensions_unittests+0x424e6df) #12 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #13 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #15 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #16 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #17 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #18 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #19 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #20 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #21 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #22 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #23 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #24 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #25 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #26 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) Location is heap block of size 776 at 0x7b5c00001500 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 (extensions_unittests+0x22e8a8b) #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 (extensions_unittests+0x5689376) #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 (extensions_unittests+0x230be0d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (extensions_unittests+0x230bdb7) #4 make_unique<content::TestBrowserThreadBundle> buildtools/third_party/libc++/trunk/include/memory:3131:32 (extensions_unittests+0x23d662b) #5 ExtensionsTest<> extensions/browser/extensions_test.h:41 (extensions_unittests+0x23d662b) #6 extensions::ContentVerifyJobUnittest::ContentVerifyJobUnittest() extensions/browser/content_verify_job_unittest.cc:51 (extensions_unittests+0x23d662b) #7 ContentMismatchUnittest extensions/browser/content_verify_job_unittest.cc:333:3 (extensions_unittests+0x23d80b1) #8 ContentMismatchUnittest_ContentMismatchWithLargeFile_Test extensions/browser/content_verify_job_unittest.cc:381 (extensions_unittests+0x23d80b1) #9 testing::internal::ParameterizedTestFactory<extensions::ContentMismatchUnittest_ContentMismatchWithLargeFile_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:399 (extensions_unittests+0x23d80b1) #10 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424e6df) #11 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (extensions_unittests+0x424e6df) #12 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #13 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #15 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #16 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #17 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #18 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #19 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #20 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #21 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #22 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #23 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #24 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #25 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #26 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) Thread T5 'NetworkChangeNotifier' (tid=2012, 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 (extensions_unittests+0x227904b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (extensions_unittests+0x5856237) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (extensions_unittests+0x5856135) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (extensions_unittests+0x5800260) #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 (extensions_unittests+0x58f599f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (extensions_unittests+0x58eb447) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (extensions_unittests+0x74b820a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (extensions_unittests+0x74b820a) #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 (extensions_unittests+0x74b7ba3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (extensions_unittests+0x3d582d3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (extensions_unittests+0x3fb2e25) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #15 Run base/callback.h:97:12 (extensions_unittests+0x57b75a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (extensions_unittests+0x57b75a1) #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 (extensions_unittests+0x57d2125) #18 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoDelayedWork(base::TimeTicks*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:281:7 (extensions_unittests+0x57d26a3) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoDelayedWork(base::TimeTicks*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (extensions_unittests+0x57d27a4) #20 base::MessagePumpGlib::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_glib.cc:314:27 (extensions_unittests+0x576f3c2) #21 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (extensions_unittests+0x57d2ae0) #22 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (extensions_unittests+0x57d2ae0) #23 base::RunLoop::Run() base/run_loop.cc:157:14 (extensions_unittests+0x5795efe) #24 extensions::TestContentVerifySingleJobObserver::WaitForOnHashesReady() extensions/browser/content_verifier/test_utils.cc:63:29 (extensions_unittests+0x567a40d) #25 extensions::ContentVerifyJobUnittest::RunContentVerifyJob(extensions::Extension const&, base::FilePath const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, extensions::(anonymous namespace)::ContentVerifyJobAsyncRunMode) extensions/browser/content_verify_job_unittest.cc:113:18 (extensions_unittests+0x23d6b9b) #26 extensions::ContentMismatchUnittest::RunContentMismatchTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, extensions::(anonymous namespace)::ContentVerifyJobAsyncRunMode) extensions/browser/content_verify_job_unittest.cc:358:7 (extensions_unittests+0x23d5bd2) #27 extensions::ContentMismatchUnittest_ContentMismatch_Test::TestBody() extensions/browser/content_verify_job_unittest.cc:376:3 (extensions_unittests+0x23d58d1) #28 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424d8cf) #29 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2499 (extensions_unittests+0x424d8cf) #30 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2675:11 (extensions_unittests+0x424e888) #31 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #32 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #33 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #34 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #35 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #36 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #37 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #38 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #39 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #40 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #41 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #42 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #43 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #44 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #45 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:1009:12 in __cxx_atomic_fetch_add<int> ================== ================== WARNING: ThreadSanitizer: data race (pid=1896) Read of size 1 at 0x7b640001c840 by thread T5 (mutexes: write M3972): #0 value base/optional.h:604:5 (extensions_unittests+0x57da994) #1 base::internal::TaskSchedulerImpl::GetWorkerPoolForTraits(base::TaskTraits const&) base/task/task_scheduler/task_scheduler_impl.cc:333 (extensions_unittests+0x57da994) #2 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:264:5 (extensions_unittests+0x57da57c) #3 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 (extensions_unittests+0x57d9cee) #4 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (extensions_unittests+0x57b8231) #5 PostTaskWithTraits base/task/post_task.cc:76:10 (extensions_unittests+0x57b87ee) #6 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (extensions_unittests+0x57b87ee) #7 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (extensions_unittests+0x57fced2) #8 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (extensions_unittests+0x57b8329) #9 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (extensions_unittests+0x27c8986) #10 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (extensions_unittests+0x27c91f5) #11 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (extensions_unittests+0x27967ed) #12 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (extensions_unittests+0x58f5830) #13 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (extensions_unittests+0x5800919) #14 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (extensions_unittests+0x5856744) Previous write of size 8 at 0x7b640001c840 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 (extensions_unittests+0x22e8a8b) #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 (extensions_unittests+0x5689871) #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 (extensions_unittests+0x5689871) #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 (extensions_unittests+0x230be0d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (extensions_unittests+0x230bdb7) #5 make_unique<content::TestBrowserThreadBundle> buildtools/third_party/libc++/trunk/include/memory:3131:32 (extensions_unittests+0x23d662b) #6 ExtensionsTest<> extensions/browser/extensions_test.h:41 (extensions_unittests+0x23d662b) #7 extensions::ContentVerifyJobUnittest::ContentVerifyJobUnittest() extensions/browser/content_verify_job_unittest.cc:51 (extensions_unittests+0x23d662b) #8 ContentMismatchUnittest extensions/browser/content_verify_job_unittest.cc:333:3 (extensions_unittests+0x23d80b1) #9 ContentMismatchUnittest_ContentMismatchWithLargeFile_Test extensions/browser/content_verify_job_unittest.cc:381 (extensions_unittests+0x23d80b1) #10 testing::internal::ParameterizedTestFactory<extensions::ContentMismatchUnittest_ContentMismatchWithLargeFile_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:399 (extensions_unittests+0x23d80b1) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424e6df) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (extensions_unittests+0x424e6df) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #18 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #24 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #27 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) Location is heap block of size 1280 at 0x7b640001c700 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 (extensions_unittests+0x22e8a8b) #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 (extensions_unittests+0x5689871) #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 (extensions_unittests+0x5689871) #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 (extensions_unittests+0x230be0d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (extensions_unittests+0x230bdb7) #5 make_unique<content::TestBrowserThreadBundle> buildtools/third_party/libc++/trunk/include/memory:3131:32 (extensions_unittests+0x23d662b) #6 ExtensionsTest<> extensions/browser/extensions_test.h:41 (extensions_unittests+0x23d662b) #7 extensions::ContentVerifyJobUnittest::ContentVerifyJobUnittest() extensions/browser/content_verify_job_unittest.cc:51 (extensions_unittests+0x23d662b) #8 ContentMismatchUnittest extensions/browser/content_verify_job_unittest.cc:333:3 (extensions_unittests+0x23d80b1) #9 ContentMismatchUnittest_ContentMismatchWithLargeFile_Test extensions/browser/content_verify_job_unittest.cc:381 (extensions_unittests+0x23d80b1) #10 testing::internal::ParameterizedTestFactory<extensions::ContentMismatchUnittest_ContentMismatchWithLargeFile_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:399 (extensions_unittests+0x23d80b1) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424e6df) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (extensions_unittests+0x424e6df) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #18 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #24 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #27 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) Mutex M3972 (0x7b2c0000ffe8) created at: #0 pthread_mutex_init /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:1234:3 (extensions_unittests+0x227a70d) #1 base::internal::LockImpl::LockImpl() base/synchronization/lock_impl_posix.cc:72:8 (extensions_unittests+0x585205d) #2 Lock base/synchronization/lock.h:25:12 (extensions_unittests+0x57eb2c6) #3 SchedulerLock base/task/task_scheduler/scheduler_lock.h:72 (extensions_unittests+0x57eb2c6) #4 base::internal::TaskSource::TaskSource(base::TaskTraits const&, base::TaskRunner*, base::internal::TaskSourceExecutionMode) base/task/task_scheduler/task_source.h:176 (extensions_unittests+0x57eb2c6) #5 base::internal::Sequence::Sequence(base::TaskTraits const&, base::TaskRunner*, base::internal::TaskSourceExecutionMode) base/task/task_scheduler/sequence.cc:116:7 (extensions_unittests+0x57df530) #6 MakeRefCounted<base::internal::Sequence, const base::TaskTraits &, nullptr_t, base::internal::TaskSourceExecutionMode> base/memory/scoped_refptr.h:92:16 (extensions_unittests+0x57d9cc1) #7 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:164 (extensions_unittests+0x57d9cc1) #8 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (extensions_unittests+0x57b8231) #9 PostTaskWithTraits base/task/post_task.cc:76:10 (extensions_unittests+0x57b87ee) #10 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (extensions_unittests+0x57b87ee) #11 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (extensions_unittests+0x57fced2) #12 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (extensions_unittests+0x57b8329) #13 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (extensions_unittests+0x27c8986) #14 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (extensions_unittests+0x27c91f5) #15 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (extensions_unittests+0x27967ed) #16 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (extensions_unittests+0x58f5830) #17 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (extensions_unittests+0x5800919) #18 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (extensions_unittests+0x5856744) Thread T5 'NetworkChangeNotifier' (tid=2012, 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 (extensions_unittests+0x227904b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (extensions_unittests+0x5856237) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (extensions_unittests+0x5856135) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (extensions_unittests+0x5800260) #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 (extensions_unittests+0x58f599f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (extensions_unittests+0x58eb447) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (extensions_unittests+0x74b820a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (extensions_unittests+0x74b820a) #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 (extensions_unittests+0x74b7ba3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (extensions_unittests+0x3d582d3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (extensions_unittests+0x3fb2e25) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #15 Run base/callback.h:97:12 (extensions_unittests+0x57b75a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (extensions_unittests+0x57b75a1) #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 (extensions_unittests+0x57d2125) #18 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoDelayedWork(base::TimeTicks*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:281:7 (extensions_unittests+0x57d26a3) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoDelayedWork(base::TimeTicks*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (extensions_unittests+0x57d27a4) #20 base::MessagePumpGlib::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_glib.cc:314:27 (extensions_unittests+0x576f3c2) #21 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (extensions_unittests+0x57d2ae0) #22 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (extensions_unittests+0x57d2ae0) #23 base::RunLoop::Run() base/run_loop.cc:157:14 (extensions_unittests+0x5795efe) #24 extensions::TestContentVerifySingleJobObserver::WaitForOnHashesReady() extensions/browser/content_verifier/test_utils.cc:63:29 (extensions_unittests+0x567a40d) #25 extensions::ContentVerifyJobUnittest::RunContentVerifyJob(extensions::Extension const&, base::FilePath const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, extensions::(anonymous namespace)::ContentVerifyJobAsyncRunMode) extensions/browser/content_verify_job_unittest.cc:113:18 (extensions_unittests+0x23d6b9b) #26 extensions::ContentMismatchUnittest::RunContentMismatchTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, extensions::(anonymous namespace)::ContentVerifyJobAsyncRunMode) extensions/browser/content_verify_job_unittest.cc:358:7 (extensions_unittests+0x23d5bd2) #27 extensions::ContentMismatchUnittest_ContentMismatch_Test::TestBody() extensions/browser/content_verify_job_unittest.cc:376:3 (extensions_unittests+0x23d58d1) #28 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424d8cf) #29 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2499 (extensions_unittests+0x424d8cf) #30 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2675:11 (extensions_unittests+0x424e888) #31 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #32 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #33 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #34 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #35 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #36 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #37 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #38 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #39 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #40 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #41 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #42 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #43 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #44 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #45 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) SUMMARY: ThreadSanitizer: data race base/optional.h:604:5 in value ================== ================== WARNING: ThreadSanitizer: data race (pid=1896) Read of size 8 at 0x7b640001c8b8 by thread T5 (mutexes: write M3972): #0 operator-> base/task/task_scheduler/tracked_ref.h:102:34 (extensions_unittests+0x57dd55a) #1 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/task_scheduler/scheduler_worker_pool.cc:92 (extensions_unittests+0x57dd55a) #2 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:264:37 (extensions_unittests+0x57da5b8) #3 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 (extensions_unittests+0x57d9cee) #4 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (extensions_unittests+0x57b8231) #5 PostTaskWithTraits base/task/post_task.cc:76:10 (extensions_unittests+0x57b87ee) #6 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (extensions_unittests+0x57b87ee) #7 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (extensions_unittests+0x57fced2) #8 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (extensions_unittests+0x57b8329) #9 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (extensions_unittests+0x27c8986) #10 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (extensions_unittests+0x27c91f5) #11 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (extensions_unittests+0x27967ed) #12 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (extensions_unittests+0x58f5830) #13 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (extensions_unittests+0x5800919) #14 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (extensions_unittests+0x5856744) Previous write of size 8 at 0x7b640001c8b8 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 (extensions_unittests+0x22e8a8b) #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 (extensions_unittests+0x5689871) #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 (extensions_unittests+0x5689871) #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 (extensions_unittests+0x230be0d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (extensions_unittests+0x230bdb7) #5 make_unique<content::TestBrowserThreadBundle> buildtools/third_party/libc++/trunk/include/memory:3131:32 (extensions_unittests+0x23d662b) #6 ExtensionsTest<> extensions/browser/extensions_test.h:41 (extensions_unittests+0x23d662b) #7 extensions::ContentVerifyJobUnittest::ContentVerifyJobUnittest() extensions/browser/content_verify_job_unittest.cc:51 (extensions_unittests+0x23d662b) #8 ContentMismatchUnittest extensions/browser/content_verify_job_unittest.cc:333:3 (extensions_unittests+0x23d80b1) #9 ContentMismatchUnittest_ContentMismatchWithLargeFile_Test extensions/browser/content_verify_job_unittest.cc:381 (extensions_unittests+0x23d80b1) #10 testing::internal::ParameterizedTestFactory<extensions::ContentMismatchUnittest_ContentMismatchWithLargeFile_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:399 (extensions_unittests+0x23d80b1) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424e6df) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (extensions_unittests+0x424e6df) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #18 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #24 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #27 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) Location is heap block of size 1280 at 0x7b640001c700 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 (extensions_unittests+0x22e8a8b) #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 (extensions_unittests+0x5689871) #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 (extensions_unittests+0x5689871) #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 (extensions_unittests+0x230be0d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (extensions_unittests+0x230bdb7) #5 make_unique<content::TestBrowserThreadBundle> buildtools/third_party/libc++/trunk/include/memory:3131:32 (extensions_unittests+0x23d662b) #6 ExtensionsTest<> extensions/browser/extensions_test.h:41 (extensions_unittests+0x23d662b) #7 extensions::ContentVerifyJobUnittest::ContentVerifyJobUnittest() extensions/browser/content_verify_job_unittest.cc:51 (extensions_unittests+0x23d662b) #8 ContentMismatchUnittest extensions/browser/content_verify_job_unittest.cc:333:3 (extensions_unittests+0x23d80b1) #9 ContentMismatchUnittest_ContentMismatchWithLargeFile_Test extensions/browser/content_verify_job_unittest.cc:381 (extensions_unittests+0x23d80b1) #10 testing::internal::ParameterizedTestFactory<extensions::ContentMismatchUnittest_ContentMismatchWithLargeFile_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:399 (extensions_unittests+0x23d80b1) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424e6df) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (extensions_unittests+0x424e6df) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #18 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #24 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #27 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) Mutex M3972 (0x7b2c0000ffe8) created at: #0 pthread_mutex_init /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:1234:3 (extensions_unittests+0x227a70d) #1 base::internal::LockImpl::LockImpl() base/synchronization/lock_impl_posix.cc:72:8 (extensions_unittests+0x585205d) #2 Lock base/synchronization/lock.h:25:12 (extensions_unittests+0x57eb2c6) #3 SchedulerLock base/task/task_scheduler/scheduler_lock.h:72 (extensions_unittests+0x57eb2c6) #4 base::internal::TaskSource::TaskSource(base::TaskTraits const&, base::TaskRunner*, base::internal::TaskSourceExecutionMode) base/task/task_scheduler/task_source.h:176 (extensions_unittests+0x57eb2c6) #5 base::internal::Sequence::Sequence(base::TaskTraits const&, base::TaskRunner*, base::internal::TaskSourceExecutionMode) base/task/task_scheduler/sequence.cc:116:7 (extensions_unittests+0x57df530) #6 MakeRefCounted<base::internal::Sequence, const base::TaskTraits &, nullptr_t, base::internal::TaskSourceExecutionMode> base/memory/scoped_refptr.h:92:16 (extensions_unittests+0x57d9cc1) #7 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:164 (extensions_unittests+0x57d9cc1) #8 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (extensions_unittests+0x57b8231) #9 PostTaskWithTraits base/task/post_task.cc:76:10 (extensions_unittests+0x57b87ee) #10 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (extensions_unittests+0x57b87ee) #11 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (extensions_unittests+0x57fced2) #12 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (extensions_unittests+0x57b8329) #13 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (extensions_unittests+0x27c8986) #14 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (extensions_unittests+0x27c91f5) #15 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (extensions_unittests+0x27967ed) #16 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (extensions_unittests+0x58f5830) #17 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (extensions_unittests+0x5800919) #18 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (extensions_unittests+0x5856744) Thread T5 'NetworkChangeNotifier' (tid=2012, 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 (extensions_unittests+0x227904b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (extensions_unittests+0x5856237) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (extensions_unittests+0x5856135) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (extensions_unittests+0x5800260) #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 (extensions_unittests+0x58f599f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (extensions_unittests+0x58eb447) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (extensions_unittests+0x74b820a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (extensions_unittests+0x74b820a) #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 (extensions_unittests+0x74b7ba3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (extensions_unittests+0x3d582d3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (extensions_unittests+0x3fb2e25) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #15 Run base/callback.h:97:12 (extensions_unittests+0x57b75a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (extensions_unittests+0x57b75a1) #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 (extensions_unittests+0x57d2125) #18 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoDelayedWork(base::TimeTicks*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:281:7 (extensions_unittests+0x57d26a3) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoDelayedWork(base::TimeTicks*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (extensions_unittests+0x57d27a4) #20 base::MessagePumpGlib::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_glib.cc:314:27 (extensions_unittests+0x576f3c2) #21 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (extensions_unittests+0x57d2ae0) #22 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (extensions_unittests+0x57d2ae0) #23 base::RunLoop::Run() base/run_loop.cc:157:14 (extensions_unittests+0x5795efe) #24 extensions::TestContentVerifySingleJobObserver::WaitForOnHashesReady() extensions/browser/content_verifier/test_utils.cc:63:29 (extensions_unittests+0x567a40d) #25 extensions::ContentVerifyJobUnittest::RunContentVerifyJob(extensions::Extension const&, base::FilePath const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, extensions::(anonymous namespace)::ContentVerifyJobAsyncRunMode) extensions/browser/content_verify_job_unittest.cc:113:18 (extensions_unittests+0x23d6b9b) #26 extensions::ContentMismatchUnittest::RunContentMismatchTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, extensions::(anonymous namespace)::ContentVerifyJobAsyncRunMode) extensions/browser/content_verify_job_unittest.cc:358:7 (extensions_unittests+0x23d5bd2) #27 extensions::ContentMismatchUnittest_ContentMismatch_Test::TestBody() extensions/browser/content_verify_job_unittest.cc:376:3 (extensions_unittests+0x23d58d1) #28 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424d8cf) #29 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2499 (extensions_unittests+0x424d8cf) #30 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2675:11 (extensions_unittests+0x424e888) #31 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #32 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #33 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #34 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #35 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #36 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #37 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #38 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #39 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #40 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #41 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #42 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #43 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #44 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #45 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) SUMMARY: ThreadSanitizer: data race base/task/task_scheduler/tracked_ref.h:102:34 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=1896) Atomic read of size 1 at 0x7b5c000016a8 by thread T5 (mutexes: write M3972): #0 pthread_mutex_lock /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:4112:3 (extensions_unittests+0x22971d6) #1 base::internal::LockImpl::Lock() base/synchronization/lock_impl_posix.cc:102:12 (extensions_unittests+0x585214d) #2 Acquire base/synchronization/lock.h:31:26 (extensions_unittests+0x57ed245) #3 BasicAutoLock base/synchronization/lock_impl.h:84 (extensions_unittests+0x57ed245) #4 base::internal::TaskTracker::WillScheduleSequence(base::internal::Sequence::Transaction const&, base::internal::CanScheduleSequenceObserver*) base/task/task_scheduler/task_tracker.cc:453 (extensions_unittests+0x57ed245) #5 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/task_scheduler/scheduler_worker_pool.cc:92:24 (extensions_unittests+0x57dd569) #6 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:264:37 (extensions_unittests+0x57da5b8) #7 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 (extensions_unittests+0x57d9cee) #8 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (extensions_unittests+0x57b8231) #9 PostTaskWithTraits base/task/post_task.cc:76:10 (extensions_unittests+0x57b87ee) #10 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (extensions_unittests+0x57b87ee) #11 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (extensions_unittests+0x57fced2) #12 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (extensions_unittests+0x57b8329) #13 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (extensions_unittests+0x27c8986) #14 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (extensions_unittests+0x27c91f5) #15 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (extensions_unittests+0x27967ed) #16 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (extensions_unittests+0x58f5830) #17 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (extensions_unittests+0x5800919) #18 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (extensions_unittests+0x5856744) Previous write of size 8 at 0x7b5c000016a8 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 (extensions_unittests+0x22e8a8b) #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 (extensions_unittests+0x5689376) #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 (extensions_unittests+0x230be0d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (extensions_unittests+0x230bdb7) #4 make_unique<content::TestBrowserThreadBundle> buildtools/third_party/libc++/trunk/include/memory:3131:32 (extensions_unittests+0x23d662b) #5 ExtensionsTest<> extensions/browser/extensions_test.h:41 (extensions_unittests+0x23d662b) #6 extensions::ContentVerifyJobUnittest::ContentVerifyJobUnittest() extensions/browser/content_verify_job_unittest.cc:51 (extensions_unittests+0x23d662b) #7 ContentMismatchUnittest extensions/browser/content_verify_job_unittest.cc:333:3 (extensions_unittests+0x23d80b1) #8 ContentMismatchUnittest_ContentMismatchWithLargeFile_Test extensions/browser/content_verify_job_unittest.cc:381 (extensions_unittests+0x23d80b1) #9 testing::internal::ParameterizedTestFactory<extensions::ContentMismatchUnittest_ContentMismatchWithLargeFile_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:399 (extensions_unittests+0x23d80b1) #10 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424e6df) #11 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (extensions_unittests+0x424e6df) #12 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #13 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #15 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #16 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #17 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #18 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #19 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #20 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #21 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #22 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #23 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #24 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #25 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #26 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) Location is heap block of size 776 at 0x7b5c00001500 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 (extensions_unittests+0x22e8a8b) #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 (extensions_unittests+0x5689376) #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 (extensions_unittests+0x230be0d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (extensions_unittests+0x230bdb7) #4 make_unique<content::TestBrowserThreadBundle> buildtools/third_party/libc++/trunk/include/memory:3131:32 (extensions_unittests+0x23d662b) #5 ExtensionsTest<> extensions/browser/extensions_test.h:41 (extensions_unittests+0x23d662b) #6 extensions::ContentVerifyJobUnittest::ContentVerifyJobUnittest() extensions/browser/content_verify_job_unittest.cc:51 (extensions_unittests+0x23d662b) #7 ContentMismatchUnittest extensions/browser/content_verify_job_unittest.cc:333:3 (extensions_unittests+0x23d80b1) #8 ContentMismatchUnittest_ContentMismatchWithLargeFile_Test extensions/browser/content_verify_job_unittest.cc:381 (extensions_unittests+0x23d80b1) #9 testing::internal::ParameterizedTestFactory<extensions::ContentMismatchUnittest_ContentMismatchWithLargeFile_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-param-util.h:399 (extensions_unittests+0x23d80b1) #10 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424e6df) #11 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (extensions_unittests+0x424e6df) #12 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #13 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #15 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #16 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #17 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #18 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #19 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #20 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #21 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #22 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #23 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #24 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #25 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #26 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) Mutex M3972 (0x7b2c0000ffe8) created at: #0 pthread_mutex_init /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:1234:3 (extensions_unittests+0x227a70d) #1 base::internal::LockImpl::LockImpl() base/synchronization/lock_impl_posix.cc:72:8 (extensions_unittests+0x585205d) #2 Lock base/synchronization/lock.h:25:12 (extensions_unittests+0x57eb2c6) #3 SchedulerLock base/task/task_scheduler/scheduler_lock.h:72 (extensions_unittests+0x57eb2c6) #4 base::internal::TaskSource::TaskSource(base::TaskTraits const&, base::TaskRunner*, base::internal::TaskSourceExecutionMode) base/task/task_scheduler/task_source.h:176 (extensions_unittests+0x57eb2c6) #5 base::internal::Sequence::Sequence(base::TaskTraits const&, base::TaskRunner*, base::internal::TaskSourceExecutionMode) base/task/task_scheduler/sequence.cc:116:7 (extensions_unittests+0x57df530) #6 MakeRefCounted<base::internal::Sequence, const base::TaskTraits &, nullptr_t, base::internal::TaskSourceExecutionMode> base/memory/scoped_refptr.h:92:16 (extensions_unittests+0x57d9cc1) #7 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:164 (extensions_unittests+0x57d9cc1) #8 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (extensions_unittests+0x57b8231) #9 PostTaskWithTraits base/task/post_task.cc:76:10 (extensions_unittests+0x57b87ee) #10 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (extensions_unittests+0x57b87ee) #11 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (extensions_unittests+0x57fced2) #12 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (extensions_unittests+0x57b8329) #13 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (extensions_unittests+0x27c8986) #14 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (extensions_unittests+0x27c91f5) #15 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (extensions_unittests+0x27967ed) #16 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (extensions_unittests+0x58f5830) #17 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (extensions_unittests+0x5800919) #18 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (extensions_unittests+0x5856744) Thread T5 'NetworkChangeNotifier' (tid=2012, 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 (extensions_unittests+0x227904b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (extensions_unittests+0x5856237) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (extensions_unittests+0x5856135) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (extensions_unittests+0x5800260) #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 (extensions_unittests+0x58f599f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (extensions_unittests+0x58eb447) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (extensions_unittests+0x74b820a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (extensions_unittests+0x74b820a) #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 (extensions_unittests+0x74b7ba3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (extensions_unittests+0x3d582d3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (extensions_unittests+0x3fb2e25) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #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 (extensions_unittests+0x3fb6b23) #15 Run base/callback.h:97:12 (extensions_unittests+0x57b75a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (extensions_unittests+0x57b75a1) #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 (extensions_unittests+0x57d2125) #18 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoDelayedWork(base::TimeTicks*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:281:7 (extensions_unittests+0x57d26a3) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoDelayedWork(base::TimeTicks*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (extensions_unittests+0x57d27a4) #20 base::MessagePumpGlib::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_glib.cc:314:27 (extensions_unittests+0x576f3c2) #21 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (extensions_unittests+0x57d2ae0) #22 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (extensions_unittests+0x57d2ae0) #23 base::RunLoop::Run() base/run_loop.cc:157:14 (extensions_unittests+0x5795efe) #24 extensions::TestContentVerifySingleJobObserver::WaitForOnHashesReady() extensions/browser/content_verifier/test_utils.cc:63:29 (extensions_unittests+0x567a40d) #25 extensions::ContentVerifyJobUnittest::RunContentVerifyJob(extensions::Extension const&, base::FilePath const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, extensions::(anonymous namespace)::ContentVerifyJobAsyncRunMode) extensions/browser/content_verify_job_unittest.cc:113:18 (extensions_unittests+0x23d6b9b) #26 extensions::ContentMismatchUnittest::RunContentMismatchTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, extensions::(anonymous namespace)::ContentVerifyJobAsyncRunMode) extensions/browser/content_verify_job_unittest.cc:358:7 (extensions_unittests+0x23d5bd2) #27 extensions::ContentMismatchUnittest_ContentMismatch_Test::TestBody() extensions/browser/content_verify_job_unittest.cc:376:3 (extensions_unittests+0x23d58d1) #28 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x424d8cf) #29 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2499 (extensions_unittests+0x424d8cf) #30 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2675:11 (extensions_unittests+0x424e888) #31 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (extensions_unittests+0x424f466) #32 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (extensions_unittests+0x4260ce6) #33 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (extensions_unittests+0x42604c9) #34 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (extensions_unittests+0x42604c9) #35 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (extensions_unittests+0x568ccf2) #36 base::TestSuite::Run() base/test/test_suite.cc:316 (extensions_unittests+0x568ccf2) #37 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (extensions_unittests+0x56b31e2) #38 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (extensions_unittests+0x22ea3e8) #39 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (extensions_unittests+0x22ea3e8) #40 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (extensions_unittests+0x22ea3e8) #41 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (extensions_unittests+0x22ea3e8) #42 Run base/callback.h:97:12 (extensions_unittests+0x568fbad) #43 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (extensions_unittests+0x568fbad) #44 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (extensions_unittests+0x568fa10) #45 main extensions/test/extensions_unittests_main.cc:114:10 (extensions_unittests+0x22e9bef) SUMMARY: ThreadSanitizer: data race base/synchronization/lock_impl_posix.cc:102:12 in base::internal::LockImpl::Lock() ================== [ OK ] ContentVerifyJobUnittest/ContentMismatchUnittest.ContentMismatchWithLargeFile/0 (1857 ms) [ RUN ] ContentVerifyJobUnittest/ContentMismatchUnittest.ContentMismatchWithLargeFile/1 [ OK ] ContentVerifyJobUnittest/ContentMismatchUnittest.ContentMismatchWithLargeFile/1 (55 ms) [ RUN ] ContentVerifyJobUnittest/ContentMismatchUnittest.ContentMismatchWithLargeFile/2 [ OK ] ContentVerifyJobUnittest/ContentMismatchUnittest.ContentMismatchWithLargeFile/2 (30 ms) [----------] 4 tests from ContentVerifyJobUnittest/ContentMismatchUnittest (2119 ms total) [----------] 6 tests from ExtensionPrefValueMapTestIncognitoTestsInstance/ExtensionPrefValueMapTestIncognitoTests [ RUN ] ExtensionPrefValueMapTestIncognitoTestsInstance/ExtensionPrefValueMapTestIncognitoTests.OverrideIncognito/0 [ OK ] ExtensionPrefValueMapTestIncognitoTestsInstance/ExtensionPrefValueMapTestIncognitoTests.OverrideIncognito/0 (0 ms) [ RUN ] ExtensionPrefValueMapTestIncognitoTestsInstance/ExtensionPrefValueMapTestIncognitoTests.OverrideIncognito/1 [ OK ] ExtensionPrefValueMapTestIncognitoTestsInstance/ExtensionPrefValueMapTestIncognitoTests.OverrideIncognito/1 (0 ms) [ RUN ] ExtensionPrefValueMapTestIncognitoTestsInstance/ExtensionPrefValueMapTestIncognitoTests.OverrideIncognito/2 [ OK ] ExtensionPrefValueMapTestIncognitoTestsInstance/ExtensionPrefValueMapTestIncognitoTests.OverrideIncognito/2 (0 ms) [ RUN ] ExtensionPrefValueMapTestIncognitoTestsInstance/ExtensionPrefValueMapTestIncognitoTests.OverrideIncognito/3 [ OK ] ExtensionPrefValueMapTestIncognitoTestsInstance/ExtensionPrefValueMapTestIncognitoTests.OverrideIncognito/3 (0 ms) [ RUN ] ExtensionPrefValueMapTestIncognitoTestsInstance/ExtensionPrefValueMapTestIncognitoTests.OverrideIncognito/4 [ OK ] ExtensionPrefValueMapTestIncognitoTestsInstance/ExtensionPrefValueMapTestIncognitoTests.OverrideIncognito/4 (0 ms) [ RUN ] ExtensionPrefValueMapTestIncognitoTestsInstance/ExtensionPrefValueMapTestIncognitoTests.OverrideIncognito/5 [ OK ] ExtensionPrefValueMapTestIncognitoTestsInstance/ExtensionPrefValueMapTestIncognitoTests.OverrideIncognito/5 (0 ms) [----------] 6 tests from ExtensionPrefValueMapTestIncognitoTestsInstance/ExtensionPrefValueMapTestIncognitoTests (1 ms total) [----------] Global test environment tear-down [==========] 10 tests from 2 test suites ran. (2120 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 10 warnings [ RUN ] ContentVerifyJobUnittest/ContentMismatchUnittest.ContentMismatch/2 [ OK ] ContentVerifyJobUnittest/ContentMismatchUnittest.ContentMismatch/2 (47 ms) ================================================================================