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

Test 'ExtensionPrinterHandlerTest.Print_Pwg_NonDefaultSettings' completed with the following status(es): 'FAILURE_ON_EXIT','SUCCESS' Test 'ExtensionPrinterHandlerTest.Print_Pwg_NonDefaultSettings' had the following logs when run: ================================================================================ [ RUN ] ExtensionPrinterHandlerTest.Print_Pwg_NonDefaultSettings [ OK ] ExtensionPrinterHandlerTest.Print_Pwg_NonDefaultSettings (63 ms) [ RUN ] ExtensionPrinterHandlerTest.GrantUsbPrinterAccess_Reset [ OK ] ExtensionPrinterHandlerTest.GrantUsbPrinterAccess_Reset (65 ms) [----------] 6 tests from ExtensionPrinterHandlerTest (457 ms total) [----------] 2 tests from PdfPrinterHandlerTest [ RUN ] PdfPrinterHandlerTest.GetFileNameForPrintJobURL [ OK ] PdfPrinterHandlerTest.GetFileNameForPrintJobURL (1 ms) [ RUN ] PdfPrinterHandlerTest.GetFileName [ OK ] PdfPrinterHandlerTest.GetFileName (1 ms) [----------] 2 tests from PdfPrinterHandlerTest (7 ms total) [----------] 2 tests from PrintPreviewHandlerTest [ RUN ] PrintPreviewHandlerTest.Print [ OK ] PrintPreviewHandlerTest.Print (144 ms) [ RUN ] PrintPreviewHandlerTest.GetPreview ================== WARNING: ThreadSanitizer: data race (pid=30287) Read of size 8 at 0x5619843a12f8 by thread T19: #0 base::TaskScheduler::GetInstance() base/task/task_scheduler/task_scheduler.cc:85:10 (unit_tests+0xa8995fa) #1 GetTaskExecutorForTraits base/task/post_task.cc:50:32 (unit_tests+0xa878cec) #2 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:85 (unit_tests+0xa878cec) #3 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #4 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #5 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa8bda82) #6 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #7 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #8 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #9 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #10 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #11 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x5619843a12f8 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 (unit_tests+0xa899681) #1 base::test::ScopedTaskEnvironment::~ScopedTaskEnvironment() base/test/scoped_task_environment.cc:432:3 (unit_tests+0x9a0659f) #2 content::TestBrowserThreadBundle::~TestBrowserThreadBundle() content/public/test/test_browser_thread_bundle.cc:65:1 (unit_tests+0x9b4b200) #3 printing::PrintPreviewHandlerTest::~PrintPreviewHandlerTest() chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:244:47 (unit_tests+0x5c581d8) #4 printing::PrintPreviewHandlerTest_Print_Test::~PrintPreviewHandlerTest_Print_Test() chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:555:1 (unit_tests+0x5c57fb9) #5 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #6 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #7 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #8 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #9 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #10 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #11 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #12 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #13 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #14 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #15 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #16 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #17 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #18 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #19 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #20 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #21 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is global 'base::(anonymous namespace)::g_task_scheduler' of size 8 at 0x5619843a12f8 (unit_tests+0x000012b8a2f8) Thread T19 'NetworkChangeNotifier' (tid=30461, 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 (unit_tests+0x3a5104b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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 (unit_tests+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6ab7a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6ab7a) #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 (unit_tests+0xcb6a513) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #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 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x5c581ce) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x5c581ce) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x5c581ce) #33 printing::PrintPreviewHandlerTest::~PrintPreviewHandlerTest() chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:244 (unit_tests+0x5c581ce) #34 printing::PrintPreviewHandlerTest_Print_Test::~PrintPreviewHandlerTest_Print_Test() chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:555:1 (unit_tests+0x5c57fb9) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) 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=30287) Read of size 8 at 0x7b640001d100 by thread T19: #0 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d17) #1 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #2 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #3 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa8bda82) #4 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #5 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #6 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #7 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #8 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #9 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #10 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d100 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 (unit_tests+0x3ac0a8b) #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 (unit_tests+0x9a05ef1) #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 (unit_tests+0x9a05ef1) #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 (unit_tests+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 PrintPreviewHandlerTest chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:243:3 (unit_tests+0x5c58cb2) #6 PrintPreviewHandlerTest_GetPreview_Test chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:599 (unit_tests+0x5c58cb2) #7 testing::internal::TestFactoryImpl<printing::PrintPreviewHandlerTest_GetPreview_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x5c58cb2) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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 (unit_tests+0x9a05ef1) #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 (unit_tests+0x9a05ef1) #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 (unit_tests+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 PrintPreviewHandlerTest chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:243:3 (unit_tests+0x5c58cb2) #6 PrintPreviewHandlerTest_GetPreview_Test chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:599 (unit_tests+0x5c58cb2) #7 testing::internal::TestFactoryImpl<printing::PrintPreviewHandlerTest_GetPreview_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x5c58cb2) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T19 'NetworkChangeNotifier' (tid=30461, 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 (unit_tests+0x3a5104b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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 (unit_tests+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6ab7a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6ab7a) #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 (unit_tests+0xcb6a513) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #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 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x5c581ce) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x5c581ce) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x5c581ce) #33 printing::PrintPreviewHandlerTest::~PrintPreviewHandlerTest() chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:244 (unit_tests+0x5c581ce) #34 printing::PrintPreviewHandlerTest_Print_Test::~PrintPreviewHandlerTest_Print_Test() chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:555:1 (unit_tests+0x5c57fb9) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) 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=30287) Atomic read of size 1 at 0x7b640001d238 by thread T19: #0 __tsan_atomic8_load /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:524:3 (unit_tests+0x3a9ac8c) #1 __cxx_atomic_load<unsigned char> buildtools/third_party/libc++/trunk/include/atomic:970:12 (unit_tests+0xa89a79b) #2 load buildtools/third_party/libc++/trunk/include/atomic:1487 (unit_tests+0xa89a79b) #3 IsSet base/synchronization/atomic_flag.h:34 (unit_tests+0xa89a79b) #4 SetUserBlockingPriorityIfNeeded base/task/task_scheduler/task_scheduler_impl.cc:338 (unit_tests+0xa89a79b) #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 (unit_tests+0xa89a79b) #6 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #7 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #8 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #9 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa8bda82) #10 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #11 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #12 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #13 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #14 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #15 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #16 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d238 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 (unit_tests+0x3ac0a8b) #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 (unit_tests+0x9a05ef1) #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 (unit_tests+0x9a05ef1) #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 (unit_tests+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 PrintPreviewHandlerTest chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:243:3 (unit_tests+0x5c58cb2) #6 PrintPreviewHandlerTest_GetPreview_Test chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:599 (unit_tests+0x5c58cb2) #7 testing::internal::TestFactoryImpl<printing::PrintPreviewHandlerTest_GetPreview_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x5c58cb2) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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 (unit_tests+0x9a05ef1) #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 (unit_tests+0x9a05ef1) #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 (unit_tests+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 PrintPreviewHandlerTest chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:243:3 (unit_tests+0x5c58cb2) #6 PrintPreviewHandlerTest_GetPreview_Test chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:599 (unit_tests+0x5c58cb2) #7 testing::internal::TestFactoryImpl<printing::PrintPreviewHandlerTest_GetPreview_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x5c58cb2) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T19 'NetworkChangeNotifier' (tid=30461, 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 (unit_tests+0x3a5104b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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 (unit_tests+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6ab7a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6ab7a) #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 (unit_tests+0xcb6a513) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #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 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x5c581ce) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x5c581ce) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x5c581ce) #33 printing::PrintPreviewHandlerTest::~PrintPreviewHandlerTest() chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:244 (unit_tests+0x5c581ce) #34 printing::PrintPreviewHandlerTest_Print_Test::~PrintPreviewHandlerTest_Print_Test() chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:555:1 (unit_tests+0x5c57fb9) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:970:12 in __cxx_atomic_load<unsigned char> ================== ================== WARNING: ThreadSanitizer: data race (pid=30287) Read of size 8 at 0x7b640001d118 by thread T19: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (unit_tests+0xa89aef3) #1 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257 (unit_tests+0xa89aef3) #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 (unit_tests+0xa89a89e) #3 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #4 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #5 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #6 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa8bda82) #7 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #8 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #9 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #10 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #11 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #12 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #13 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d118 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 (unit_tests+0x3ac0a8b) #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 (unit_tests+0x9a05ef1) #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 (unit_tests+0x9a05ef1) #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 (unit_tests+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 PrintPreviewHandlerTest chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:243:3 (unit_tests+0x5c58cb2) #6 PrintPreviewHandlerTest_GetPreview_Test chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:599 (unit_tests+0x5c58cb2) #7 testing::internal::TestFactoryImpl<printing::PrintPreviewHandlerTest_GetPreview_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x5c58cb2) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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 (unit_tests+0x9a05ef1) #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 (unit_tests+0x9a05ef1) #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 (unit_tests+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 PrintPreviewHandlerTest chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:243:3 (unit_tests+0x5c58cb2) #6 PrintPreviewHandlerTest_GetPreview_Test chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:599 (unit_tests+0x5c58cb2) #7 testing::internal::TestFactoryImpl<printing::PrintPreviewHandlerTest_GetPreview_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x5c58cb2) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T19 'NetworkChangeNotifier' (tid=30461, 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 (unit_tests+0x3a5104b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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 (unit_tests+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6ab7a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6ab7a) #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 (unit_tests+0xcb6a513) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #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 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x5c581ce) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x5c581ce) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x5c581ce) #33 printing::PrintPreviewHandlerTest::~PrintPreviewHandlerTest() chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:244 (unit_tests+0x5c581ce) #34 printing::PrintPreviewHandlerTest_Print_Test::~PrintPreviewHandlerTest_Print_Test() chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:555:1 (unit_tests+0x5c57fb9) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=30287) Read of size 8 at 0x7b5c00000e10 by thread T19: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (unit_tests+0xa8adcb3) #1 BeforePostTask base/task/task_scheduler/task_tracker.cc (unit_tests+0xa8adcb3) #2 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:434 (unit_tests+0xa8adcb3) #3 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257:23 (unit_tests+0xa89af1a) #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 (unit_tests+0xa89a89e) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #8 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa8bda82) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b5c00000e10 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 (unit_tests+0x3ac0a8b) #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 (unit_tests+0x9a059f6) #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 (unit_tests+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 PrintPreviewHandlerTest chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:243:3 (unit_tests+0x5c58cb2) #5 PrintPreviewHandlerTest_GetPreview_Test chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:599 (unit_tests+0x5c58cb2) #6 testing::internal::TestFactoryImpl<printing::PrintPreviewHandlerTest_GetPreview_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x5c58cb2) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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 (unit_tests+0x9a059f6) #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 (unit_tests+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 PrintPreviewHandlerTest chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:243:3 (unit_tests+0x5c58cb2) #5 PrintPreviewHandlerTest_GetPreview_Test chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:599 (unit_tests+0x5c58cb2) #6 testing::internal::TestFactoryImpl<printing::PrintPreviewHandlerTest_GetPreview_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x5c58cb2) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T19 'NetworkChangeNotifier' (tid=30461, 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 (unit_tests+0x3a5104b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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 (unit_tests+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6ab7a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6ab7a) #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 (unit_tests+0xcb6a513) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #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 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x5c581ce) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x5c581ce) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x5c581ce) #33 printing::PrintPreviewHandlerTest::~PrintPreviewHandlerTest() chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:244 (unit_tests+0x5c581ce) #34 printing::PrintPreviewHandlerTest_Print_Test::~PrintPreviewHandlerTest_Print_Test() chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:555:1 (unit_tests+0x5c57fb9) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=30287) Atomic read of size 4 at 0x7b0400033690 by thread T19: #0 __tsan_atomic32_load /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:534:3 (unit_tests+0x3a9af8c) #1 __cxx_atomic_load<int> buildtools/third_party/libc++/trunk/include/atomic:964:12 (unit_tests+0xa8add32) #2 load buildtools/third_party/libc++/trunk/include/atomic:1483 (unit_tests+0xa8add32) #3 NoBarrier_Load base/atomicops_internals_portable.h:130 (unit_tests+0xa8add32) #4 HasShutdownStarted base/task/task_scheduler/task_tracker.cc:185 (unit_tests+0xa8add32) #5 BeforePostTask base/task/task_scheduler/task_tracker.cc:788 (unit_tests+0xa8add32) #6 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:434 (unit_tests+0xa8add32) #7 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257:23 (unit_tests+0xa89af1a) #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 (unit_tests+0xa89a89e) #9 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #10 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #11 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #12 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa8bda82) #13 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #14 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #15 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #16 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #17 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #18 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #19 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b0400033690 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 (unit_tests+0x3ac0a8b) #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 (unit_tests+0xa8abff5) #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 (unit_tests+0xa8abf81) #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 (unit_tests+0xa919399) #4 TestTaskTracker base/test/scoped_task_environment.cc:623:7 (unit_tests+0x9a05a0d) #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 (unit_tests+0x9a05a0d) #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 (unit_tests+0x3acf5fd) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #8 PrintPreviewHandlerTest chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:243:3 (unit_tests+0x5c58cb2) #9 PrintPreviewHandlerTest_GetPreview_Test chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:599 (unit_tests+0x5c58cb2) #10 testing::internal::TestFactoryImpl<printing::PrintPreviewHandlerTest_GetPreview_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x5c58cb2) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #18 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #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 (unit_tests+0x99fce58) #24 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #27 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 4 at 0x7b0400033690 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 (unit_tests+0x3ac0a8b) #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 (unit_tests+0xa8abff5) #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 (unit_tests+0xa8abf81) #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 (unit_tests+0xa919399) #4 TestTaskTracker base/test/scoped_task_environment.cc:623:7 (unit_tests+0x9a05a0d) #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 (unit_tests+0x9a05a0d) #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 (unit_tests+0x3acf5fd) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #8 PrintPreviewHandlerTest chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:243:3 (unit_tests+0x5c58cb2) #9 PrintPreviewHandlerTest_GetPreview_Test chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:599 (unit_tests+0x5c58cb2) #10 testing::internal::TestFactoryImpl<printing::PrintPreviewHandlerTest_GetPreview_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x5c58cb2) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #18 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #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 (unit_tests+0x99fce58) #24 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #27 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T19 'NetworkChangeNotifier' (tid=30461, 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 (unit_tests+0x3a5104b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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 (unit_tests+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6ab7a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6ab7a) #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 (unit_tests+0xcb6a513) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #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 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x5c581ce) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x5c581ce) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x5c581ce) #33 printing::PrintPreviewHandlerTest::~PrintPreviewHandlerTest() chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:244 (unit_tests+0x5c581ce) #34 printing::PrintPreviewHandlerTest_Print_Test::~PrintPreviewHandlerTest_Print_Test() chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:555:1 (unit_tests+0x5c57fb9) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:964:12 in __cxx_atomic_load<int> ================== ================== WARNING: ThreadSanitizer: data race (pid=30287) Atomic write of size 4 at 0x7b5c00000e18 by thread T19: #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 (unit_tests+0x3a9cf09) #1 __cxx_atomic_fetch_add<int> buildtools/third_party/libc++/trunk/include/atomic:1009:12 (unit_tests+0xa8add60) #2 fetch_add buildtools/third_party/libc++/trunk/include/atomic:1572 (unit_tests+0xa8add60) #3 NoBarrier_AtomicIncrement base/atomicops_internals_portable.h:86 (unit_tests+0xa8add60) #4 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:439 (unit_tests+0xa8add60) #5 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257:23 (unit_tests+0xa89af1a) #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 (unit_tests+0xa89a89e) #7 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #8 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #9 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #10 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa8bda82) #11 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #12 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #13 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #14 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #15 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #16 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #17 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b5c00000e18 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 (unit_tests+0x3ac0a8b) #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 (unit_tests+0x9a059f6) #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 (unit_tests+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 PrintPreviewHandlerTest chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:243:3 (unit_tests+0x5c58cb2) #5 PrintPreviewHandlerTest_GetPreview_Test chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:599 (unit_tests+0x5c58cb2) #6 testing::internal::TestFactoryImpl<printing::PrintPreviewHandlerTest_GetPreview_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x5c58cb2) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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 (unit_tests+0x9a059f6) #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 (unit_tests+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 PrintPreviewHandlerTest chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:243:3 (unit_tests+0x5c58cb2) #5 PrintPreviewHandlerTest_GetPreview_Test chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:599 (unit_tests+0x5c58cb2) #6 testing::internal::TestFactoryImpl<printing::PrintPreviewHandlerTest_GetPreview_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x5c58cb2) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T19 'NetworkChangeNotifier' (tid=30461, 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 (unit_tests+0x3a5104b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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 (unit_tests+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6ab7a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6ab7a) #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 (unit_tests+0xcb6a513) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #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 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x5c581ce) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x5c581ce) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x5c581ce) #33 printing::PrintPreviewHandlerTest::~PrintPreviewHandlerTest() chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:244 (unit_tests+0x5c581ce) #34 printing::PrintPreviewHandlerTest_Print_Test::~PrintPreviewHandlerTest_Print_Test() chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:555:1 (unit_tests+0x5c57fb9) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:1009:12 in __cxx_atomic_fetch_add<int> ================== ================== WARNING: ThreadSanitizer: data race (pid=30287) Read of size 1 at 0x7b640001d240 by thread T19 (mutexes: write M18712777371746280): #0 value base/optional.h:604:5 (unit_tests+0xa89b544) #1 base::internal::TaskSchedulerImpl::GetWorkerPoolForTraits(base::TaskTraits const&) base/task/task_scheduler/task_scheduler_impl.cc:333 (unit_tests+0xa89b544) #2 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:264:5 (unit_tests+0xa89b12c) #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 (unit_tests+0xa89a89e) #4 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #5 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #6 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #7 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa8bda82) #8 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #9 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #10 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #11 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #12 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #13 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #14 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d240 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 (unit_tests+0x3ac0a8b) #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 (unit_tests+0x9a05ef1) #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 (unit_tests+0x9a05ef1) #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 (unit_tests+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 PrintPreviewHandlerTest chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:243:3 (unit_tests+0x5c58cb2) #6 PrintPreviewHandlerTest_GetPreview_Test chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:599 (unit_tests+0x5c58cb2) #7 testing::internal::TestFactoryImpl<printing::PrintPreviewHandlerTest_GetPreview_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x5c58cb2) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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 (unit_tests+0x9a05ef1) #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 (unit_tests+0x9a05ef1) #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 (unit_tests+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 PrintPreviewHandlerTest chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:243:3 (unit_tests+0x5c58cb2) #6 PrintPreviewHandlerTest_GetPreview_Test chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:599 (unit_tests+0x5c58cb2) #7 testing::internal::TestFactoryImpl<printing::PrintPreviewHandlerTest_GetPreview_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x5c58cb2) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Mutex M18712777371746280 is already destroyed. Thread T19 'NetworkChangeNotifier' (tid=30461, 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 (unit_tests+0x3a5104b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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 (unit_tests+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6ab7a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6ab7a) #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 (unit_tests+0xcb6a513) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #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 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x5c581ce) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x5c581ce) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x5c581ce) #33 printing::PrintPreviewHandlerTest::~PrintPreviewHandlerTest() chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:244 (unit_tests+0x5c581ce) #34 printing::PrintPreviewHandlerTest_Print_Test::~PrintPreviewHandlerTest_Print_Test() chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:555:1 (unit_tests+0x5c57fb9) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race base/optional.h:604:5 in value ================== ================== WARNING: ThreadSanitizer: data race (pid=30287) Read of size 8 at 0x7b640001d2b8 by thread T19 (mutexes: write M18712777371746280): #0 operator-> base/task/task_scheduler/tracked_ref.h:102:34 (unit_tests+0xa89e10a) #1 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/task_scheduler/scheduler_worker_pool.cc:92 (unit_tests+0xa89e10a) #2 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:264:37 (unit_tests+0xa89b168) #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 (unit_tests+0xa89a89e) #4 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #5 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #6 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #7 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa8bda82) #8 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #9 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #10 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #11 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #12 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #13 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #14 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d2b8 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 (unit_tests+0x3ac0a8b) #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 (unit_tests+0x9a05ef1) #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 (unit_tests+0x9a05ef1) #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 (unit_tests+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 PrintPreviewHandlerTest chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:243:3 (unit_tests+0x5c58cb2) #6 PrintPreviewHandlerTest_GetPreview_Test chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:599 (unit_tests+0x5c58cb2) #7 testing::internal::TestFactoryImpl<printing::PrintPreviewHandlerTest_GetPreview_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x5c58cb2) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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 (unit_tests+0x9a05ef1) #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 (unit_tests+0x9a05ef1) #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 (unit_tests+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 PrintPreviewHandlerTest chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:243:3 (unit_tests+0x5c58cb2) #6 PrintPreviewHandlerTest_GetPreview_Test chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:599 (unit_tests+0x5c58cb2) #7 testing::internal::TestFactoryImpl<printing::PrintPreviewHandlerTest_GetPreview_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x5c58cb2) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Mutex M18712777371746280 is already destroyed. Thread T19 'NetworkChangeNotifier' (tid=30461, 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 (unit_tests+0x3a5104b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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 (unit_tests+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6ab7a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6ab7a) #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 (unit_tests+0xcb6a513) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #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 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x5c581ce) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x5c581ce) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x5c581ce) #33 printing::PrintPreviewHandlerTest::~PrintPreviewHandlerTest() chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:244 (unit_tests+0x5c581ce) #34 printing::PrintPreviewHandlerTest_Print_Test::~PrintPreviewHandlerTest_Print_Test() chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:555:1 (unit_tests+0x5c57fb9) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race base/task/task_scheduler/tracked_ref.h:102:34 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=30287) Atomic read of size 1 at 0x7b5c00000fa8 by thread T19 (mutexes: write M18712777371746280): #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 (unit_tests+0x3a6f1d6) #1 base::internal::LockImpl::Lock() base/synchronization/lock_impl_posix.cc:102:12 (unit_tests+0xa91547d) #2 Acquire base/synchronization/lock.h:31:26 (unit_tests+0xa8addf5) #3 BasicAutoLock base/synchronization/lock_impl.h:84 (unit_tests+0xa8addf5) #4 base::internal::TaskTracker::WillScheduleSequence(base::internal::Sequence::Transaction const&, base::internal::CanScheduleSequenceObserver*) base/task/task_scheduler/task_tracker.cc:453 (unit_tests+0xa8addf5) #5 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/task_scheduler/scheduler_worker_pool.cc:92:24 (unit_tests+0xa89e119) #6 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:264:37 (unit_tests+0xa89b168) #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 (unit_tests+0xa89a89e) #8 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #9 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #10 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #11 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa8bda82) #12 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #13 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #14 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #15 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #16 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #17 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #18 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b5c00000fa8 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 (unit_tests+0x3ac0a8b) #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 (unit_tests+0x9a059f6) #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 (unit_tests+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 PrintPreviewHandlerTest chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:243:3 (unit_tests+0x5c58cb2) #5 PrintPreviewHandlerTest_GetPreview_Test chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:599 (unit_tests+0x5c58cb2) #6 testing::internal::TestFactoryImpl<printing::PrintPreviewHandlerTest_GetPreview_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x5c58cb2) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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 (unit_tests+0x9a059f6) #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 (unit_tests+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 PrintPreviewHandlerTest chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:243:3 (unit_tests+0x5c58cb2) #5 PrintPreviewHandlerTest_GetPreview_Test chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:599 (unit_tests+0x5c58cb2) #6 testing::internal::TestFactoryImpl<printing::PrintPreviewHandlerTest_GetPreview_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x5c58cb2) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Mutex M18712777371746280 is already destroyed. Thread T19 'NetworkChangeNotifier' (tid=30461, 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 (unit_tests+0x3a5104b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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 (unit_tests+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6ab7a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6ab7a) #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 (unit_tests+0xcb6a513) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #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 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #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 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x5c581ce) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x5c581ce) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x5c581ce) #33 printing::PrintPreviewHandlerTest::~PrintPreviewHandlerTest() chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:244 (unit_tests+0x5c581ce) #34 printing::PrintPreviewHandlerTest_Print_Test::~PrintPreviewHandlerTest_Print_Test() chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc:555:1 (unit_tests+0x5c57fb9) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race base/synchronization/lock_impl_posix.cc:102:12 in base::internal::LockImpl::Lock() ================== [ OK ] PrintPreviewHandlerTest.GetPreview (1814 ms) [----------] 2 tests from PrintPreviewHandlerTest (1964 ms total) [----------] Global test environment tear-down [==========] 10 tests from 3 test suites ran. (2431 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 10 warnings [ RUN ] ExtensionPrinterHandlerTest.Print_Pwg_NonDefaultSettings [ OK ] ExtensionPrinterHandlerTest.Print_Pwg_NonDefaultSettings (50 ms) ================================================================================