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

Test 'TimestampViewTest.FormatToRelativeTime' completed with the following status(es): 'FAILURE_ON_EXIT','SUCCESS' Test 'TimestampViewTest.FormatToRelativeTime' had the following logs when run: ================================================================================ [ RUN ] TimestampViewTest.FormatToRelativeTime ================== WARNING: ThreadSanitizer: data race (pid=11721) Write of size 8 at 0x561947809c70 by main thread: #0 base::subtle::ScopedTimeClockOverrides::ScopedTimeClockOverrides(base::Time (*)(), base::TimeTicks (*)(), base::ThreadTicks (*)()) base/time/time_override.cc:28:41 (message_center_unittests+0xea7f2b) #1 make_unique<base::subtle::ScopedTimeClockOverrides, base::Time (*)(), base::TimeTicks (*)(), nullptr_t> buildtools/third_party/libc++/trunk/include/memory:3131:32 (message_center_unittests+0xea7275) #2 base::test::ScopedTaskEnvironment::MockTimeDomain::MockTimeDomain(base::test::ScopedTaskEnvironment::NowSource, base::sequence_manager::SequenceManager*) base/test/scoped_task_environment.cc:102 (message_center_unittests+0xea7275) #3 make_unique<base::test::ScopedTaskEnvironment::MockTimeDomain, base::test::ScopedTaskEnvironment::NowSource &, base::sequence_manager::SequenceManager *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (message_center_unittests+0xea604a) #4 CreateAndRegister base/test/scoped_task_environment.cc:137 (message_center_unittests+0xea604a) #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:325 (message_center_unittests+0xea604a) #6 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::NowSource, void>(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::NowSource) base/test/scoped_task_environment.h:143:9 (message_center_unittests+0x7c6cd1) #7 message_center::TimestampViewTest::SetUp() ui/message_center/views/timestamp_view_unittest.cc:32:36 (message_center_unittests+0x7c69ee) #8 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (message_center_unittests+0xcde832) #9 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2494 (message_center_unittests+0xcde832) #10 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2675:11 (message_center_unittests+0xcdf658) #11 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (message_center_unittests+0xce0236) #12 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (message_center_unittests+0xcf1ab6) #13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (message_center_unittests+0xcf1299) #14 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (message_center_unittests+0xcf1299) #15 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (message_center_unittests+0xeaa682) #16 base::TestSuite::Run() base/test/test_suite.cc:316 (message_center_unittests+0xeaa682) #17 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::MessageCenterTestSuite *> base/bind_internal.h:499:12 (message_center_unittests+0x76e308) #18 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::MessageCenterTestSuite *> base/bind_internal.h:599 (message_center_unittests+0x76e308) #19 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::MessageCenterTestSuite> >, 0> base/bind_internal.h:672 (message_center_unittests+0x76e308) #20 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::MessageCenterTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (message_center_unittests+0x76e308) #21 Run base/callback.h:97:12 (message_center_unittests+0xead6ed) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (message_center_unittests+0xead6ed) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (message_center_unittests+0xead550) #24 main ui/message_center/test/run_all_unittests.cc:56:10 (message_center_unittests+0x76e067) Previous read of size 8 at 0x561947809c70 by thread T5 (mutexes: write M0): #0 base::TimeTicks::Now() base/time/time.cc:369:10 (message_center_unittests+0xe6a1ba) #1 base::WaitableEvent::TimedWaitUntil(base::TimeTicks const&) base/synchronization/waitable_event_posix.cc:206:22 (message_center_unittests+0xe9ec66) #2 base::WaitableEvent::TimedWait(base::TimeDelta const&) base/synchronization/waitable_event_posix.cc:162:10 (message_center_unittests+0xe9ee33) #3 base::MessagePumpDefault::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_default.cc:57:14 (message_center_unittests+0xdf6aaa) #4 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (message_center_unittests+0xe3a110) #5 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (message_center_unittests+0xe3a110) #6 base::RunLoop::Run() base/run_loop.cc:157:14 (message_center_unittests+0xe1179e) #7 base::Thread::Run(base::RunLoop*) base/threading/thread.cc:242:13 (message_center_unittests+0xe66759) #8 base::Thread::ThreadMain() base/threading/thread.cc:312:3 (message_center_unittests+0xe66a11) #9 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (message_center_unittests+0xea2244) Location is global 'base::internal::g_time_ticks_now_function' of size 8 at 0x561947809c70 (message_center_unittests+0x000002039c70) Mutex M0 (0x7f3a8147cd28) created at: #0 pthread_mutex_init /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:1234:3 (message_center_unittests+0x6cb70d) #1 base::internal::LockImpl::LockImpl() base/synchronization/lock_impl_posix.cc:72:8 (message_center_unittests+0xe9e23d) #2 Lock base/synchronization/lock.h:25:12 (message_center_unittests+0xe9eb1f) #3 SyncWaiter base/synchronization/waitable_event_posix.cc:93 (message_center_unittests+0xe9eb1f) #4 base::WaitableEvent::TimedWaitUntil(base::TimeTicks const&) base/synchronization/waitable_event_posix.cc:191 (message_center_unittests+0xe9eb1f) #5 base::WaitableEvent::TimedWait(base::TimeDelta const&) base/synchronization/waitable_event_posix.cc:162:10 (message_center_unittests+0xe9ee33) #6 base::MessagePumpDefault::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_default.cc:57:14 (message_center_unittests+0xdf6aaa) #7 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (message_center_unittests+0xe3a110) #8 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (message_center_unittests+0xe3a110) #9 base::RunLoop::Run() base/run_loop.cc:157:14 (message_center_unittests+0xe1179e) #10 base::Thread::Run(base::RunLoop*) base/threading/thread.cc:242:13 (message_center_unittests+0xe66759) #11 base::Thread::ThreadMain() base/threading/thread.cc:312:3 (message_center_unittests+0xe66a11) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (message_center_unittests+0xea2244) Thread T5 'GpuThread' (tid=11814, 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 (message_center_unittests+0x6ca04b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (message_center_unittests+0xea1d87) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (message_center_unittests+0xea1c85) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (message_center_unittests+0xe66470) #4 base::Thread::Start() base/threading/thread.cc:77:10 (message_center_unittests+0xe660e3) #5 gpu::InProcessGpuThreadHolder::InProcessGpuThreadHolder() gpu/ipc/in_process_gpu_thread_holder.cc:33:3 (message_center_unittests+0x1f71397) #6 NoDestructor<> base/no_destructor.h:54:20 (message_center_unittests+0x1f726f1) #7 gpu::GetTestGpuThreadHolder() gpu/ipc/test_gpu_thread_holder.cc:12 (message_center_unittests+0x1f726f1) #8 ui::InProcessContextProvider::BindToCurrentThread() ui/compositor/test/in_process_context_provider.cc:102:7 (message_center_unittests+0x1f61c74) #9 ui::InProcessContextFactory::CreateLayerTreeFrameSink(base::WeakPtr<ui::Compositor>) ui/compositor/test/in_process_context_factory.cc:205:52 (message_center_unittests+0x1f5b627) #10 ui::Compositor::RequestNewLayerTreeFrameSink() ui/compositor/compositor.cc:624:23 (message_center_unittests+0x126eb5e) #11 cc::LayerTreeHost::RequestNewLayerTreeFrameSink() cc/trees/layer_tree_host.cc:487:12 (message_center_unittests+0x19bf3af) #12 cc::SingleThreadProxy::RequestNewLayerTreeFrameSink() cc/trees/single_thread_proxy.cc:127:21 (message_center_unittests+0x1a79077) #13 Invoke<void (cc::SingleThreadProxy::*)(), base::WeakPtr<cc::SingleThreadProxy>> base/bind_internal.h:499:12 (message_center_unittests+0x1a7ceca) #14 MakeItSo<void (cc::SingleThreadProxy::*)(), base::WeakPtr<cc::SingleThreadProxy>> base/bind_internal.h:619 (message_center_unittests+0x1a7ceca) #15 RunImpl<void (cc::SingleThreadProxy::*)(), std::__1::tuple<base::WeakPtr<cc::SingleThreadProxy> >, 0> base/bind_internal.h:672 (message_center_unittests+0x1a7ceca) #16 base::internal::Invoker<base::internal::BindState<void (cc::SingleThreadProxy::*)(), base::WeakPtr<cc::SingleThreadProxy> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (message_center_unittests+0x1a7ceca) #17 Run base/callback.h:97:12 (message_center_unittests+0xe133fd) #18 void base::internal::CancelableCallbackImpl<base::OnceCallback<void ()> >::ForwardOnce<>() base/cancelable_callback.h:126 (message_center_unittests+0xe133fd) #19 Invoke<void (base::internal::CancelableCallbackImpl<base::OnceCallback<void ()> >::*)(), base::WeakPtr<base::internal::CancelableCallbackImpl<base::OnceCallback<void ()> > >> base/bind_internal.h:499:12 (message_center_unittests+0xe134ba) #20 MakeItSo<void (base::internal::CancelableCallbackImpl<base::OnceCallback<void ()> >::*)(), base::WeakPtr<base::internal::CancelableCallbackImpl<base::OnceCallback<void ()> > >> base/bind_internal.h:619 (message_center_unittests+0xe134ba) #21 RunImpl<void (base::internal::CancelableCallbackImpl<base::OnceCallback<void ()> >::*)(), std::__1::tuple<base::WeakPtr<base::internal::CancelableCallbackImpl<base::OnceCallback<void ()> > > >, 0> base/bind_internal.h:672 (message_center_unittests+0xe134ba) #22 base::internal::Invoker<base::internal::BindState<void (base::internal::CancelableCallbackImpl<base::OnceCallback<void ()> >::*)(), base::WeakPtr<base::internal::CancelableCallbackImpl<base::OnceCallback<void ()> > > >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (message_center_unittests+0xe134ba) #23 Run base/callback.h:97:12 (message_center_unittests+0xe23171) #24 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (message_center_unittests+0xe23171) #25 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (message_center_unittests+0xe39755) #26 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (message_center_unittests+0xe39c2d) #27 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (message_center_unittests+0xe39c2d) #28 base::MessagePumpGlib::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_glib.cc:309:49 (message_center_unittests+0xdf712b) #29 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (message_center_unittests+0xe3a110) #30 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (message_center_unittests+0xe3a110) #31 base::RunLoop::Run() base/run_loop.cc:157:14 (message_center_unittests+0xe1179e) #32 base::RunLoop::RunUntilIdle() base/run_loop.cc:170:3 (message_center_unittests+0xe12396) #33 RunPendingMessages ui/views/test/views_test_base.cc:197:12 (message_center_unittests+0x7d9a45) #34 views::ViewsTestBase::TearDown() ui/views/test/views_test_base.cc:157 (message_center_unittests+0x7d9a45) #35 message_center::NotificationViewMDTest::TearDown() ui/message_center/views/notification_view_md_unittest.cc:220:25 (message_center_unittests+0x7a521e) #36 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (message_center_unittests+0xcdeaea) #37 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2507 (message_center_unittests+0xcdeaea) #38 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2675:11 (message_center_unittests+0xcdf658) #39 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (message_center_unittests+0xce0236) #40 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (message_center_unittests+0xcf1ab6) #41 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (message_center_unittests+0xcf1299) #42 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (message_center_unittests+0xcf1299) #43 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (message_center_unittests+0xeaa682) #44 base::TestSuite::Run() base/test/test_suite.cc:316 (message_center_unittests+0xeaa682) #45 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::MessageCenterTestSuite *> base/bind_internal.h:499:12 (message_center_unittests+0x76e308) #46 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::MessageCenterTestSuite *> base/bind_internal.h:599 (message_center_unittests+0x76e308) #47 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::MessageCenterTestSuite> >, 0> base/bind_internal.h:672 (message_center_unittests+0x76e308) #48 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::MessageCenterTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (message_center_unittests+0x76e308) #49 Run base/callback.h:97:12 (message_center_unittests+0xead6ed) #50 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (message_center_unittests+0xead6ed) #51 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (message_center_unittests+0xead550) #52 main ui/message_center/test/run_all_unittests.cc:56:10 (message_center_unittests+0x76e067) SUMMARY: ThreadSanitizer: data race base/time/time_override.cc:28:41 in base::subtle::ScopedTimeClockOverrides::ScopedTimeClockOverrides(base::Time (*)(), base::TimeTicks (*)(), base::ThreadTicks (*)()) ================== [ OK ] TimestampViewTest.FormatToRelativeTime (332 ms) [----------] 1 test from TimestampViewTest (332 ms total) [----------] 1 test from NotificationMenuModelTest [ RUN ] NotificationMenuModelTest.ContextMenuTestWithMessageCenter [ OK ] NotificationMenuModelTest.ContextMenuTestWithMessageCenter (0 ms) [----------] 1 test from NotificationMenuModelTest (0 ms total) [----------] 1 test from NotificationViewTest [ RUN ] NotificationViewTest.CreateOrUpdateTest [ OK ] NotificationViewTest.CreateOrUpdateTest (96 ms) [----------] 1 test from NotificationViewTest (96 ms total) [----------] Global test environment tear-down [==========] 10 tests from 5 test suites ran. (1894 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 1 warnings [ RUN ] TimestampViewTest.FormatToRelativeTime [ OK ] TimestampViewTest.FormatToRelativeTime (102 ms) ================================================================================