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

Test 'TraceEventDataSourceNewProtosTest.EventWithUIntArgs' completed with the following status(es): 'FAILURE_ON_EXIT','SUCCESS' Test 'TraceEventDataSourceNewProtosTest.EventWithUIntArgs' had the following logs when run: ================================================================================ [ RUN ] TraceEventDataSourceNewProtosTest.EventWithUIntArgs [ OK ] TraceEventDataSourceNewProtosTest.EventWithUIntArgs (19 ms) [ RUN ] TraceEventDataSourceNewProtosTest.EventWithIntArgs [ OK ] TraceEventDataSourceNewProtosTest.EventWithIntArgs (28 ms) [ RUN ] TraceEventDataSourceNewProtosTest.EventWithBoolArgs ================== WARNING: ThreadSanitizer: data race (pid=28538) Atomic read of size 1 at 0x55a5c438c4f8 by thread T15: #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 (services_unittests+0x1aca1d6) #1 base::internal::LockImpl::Lock() base/synchronization/lock_impl_posix.cc:102:12 (services_unittests+0x43df4bd) #2 Acquire base/synchronization/lock.h:31:26 (services_unittests+0x471866b) #3 BasicAutoLock base/synchronization/lock_impl.h:84 (services_unittests+0x471866b) #4 tracing::TraceEventDataSource::CreateThreadLocalEventSink(bool) services/tracing/public/cpp/perfetto/trace_event_data_source.cc:356 (services_unittests+0x471866b) #5 tracing::TraceEventDataSource::OnAddTraceEvent(base::trace_event::TraceEvent*, bool, base::trace_event::TraceEventHandle*) services/tracing/public/cpp/perfetto/trace_event_data_source.cc:439:24 (services_unittests+0x471761d) #6 base::trace_event::TraceLog::AddTraceEventWithThreadIdAndTimestamp(char, unsigned char const*, char const*, char const*, unsigned long long, unsigned long long, int, base::TimeTicks const&, base::trace_event::TraceArguments*, unsigned int) base/trace_event/trace_log.cc:1240:7 (services_unittests+0x43b48bd) #7 trace_event_internal::AddTraceEventWithThreadIdAndTimestamp(char, unsigned char const*, char const*, char const*, unsigned long long, unsigned long long, int, base::TimeTicks const&, base::trace_event::TraceArguments*, unsigned int) base/trace_event/trace_log.cc:1775:9 (services_unittests+0x43b6b15) #8 AddTraceEventWithThreadIdAndTimestamp base/trace_event/trace_event.h:871:10 (services_unittests+0x438d2fe) #9 AddTraceEvent base/trace_event/trace_event.h:886 (services_unittests+0x438d2fe) #10 base::ScopedBlockingCall::~ScopedBlockingCall() base/threading/scoped_blocking_call.cc:86 (services_unittests+0x438d2fe) #11 base::DirectoryExists(base::FilePath const&) base/files/file_util_posix.cc:492:1 (services_unittests+0x43d8b89) #12 base::(anonymous namespace)::SetThreadCgroupForThreadPriority(int, base::FilePath const&, base::ThreadPriority) base/threading/platform_thread_linux.cc:67:8 (services_unittests+0x438c622) #13 SetThreadCgroupsForThreadPriority base/threading/platform_thread_linux.cc:76:3 (services_unittests+0x438c453) #14 base::internal::SetCurrentThreadPriorityForPlatform(base::ThreadPriority) base/threading/platform_thread_linux.cc:116 (services_unittests+0x438c453) #15 base::PlatformThread::SetCurrentThreadPriorityImpl(base::ThreadPriority) base/threading/platform_thread_posix.cc:309:7 (services_unittests+0x43e38e7) #16 base::PlatformThread::SetCurrentThreadPriority(base::ThreadPriority) base/threading/platform_thread.cc:32:5 (services_unittests+0x438c332) #17 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:73:5 (services_unittests+0x43e3945) Previous write of size 1 at 0x55a5c438c4f8 by main thread: #0 pthread_mutex_destroy /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:1251:3 (services_unittests+0x1aad896) #1 base::internal::LockImpl::~LockImpl() base/synchronization/lock_impl_posix.cc:79:12 (services_unittests+0x43df419) #2 ~Lock base/synchronization/lock.h:26:12 (services_unittests+0x471742a) #3 tracing::TraceEventDataSource::~TraceEventDataSource() services/tracing/public/cpp/perfetto/trace_event_data_source.cc:178 (services_unittests+0x471742a) #4 tracing::TraceEventDataSource::ResetForTesting() services/tracing/public/cpp/perfetto/trace_event_data_source.cc:165:42 (services_unittests+0x4717146) #5 tracing::(anonymous namespace)::TraceEventDataSourceTest::CreateTraceEventDataSource() services/tracing/public/cpp/perfetto/trace_event_data_source_unittest.cc:241:5 (services_unittests+0x231dbe3) #6 tracing::(anonymous namespace)::TraceEventDataSourceNewProtosTest::SetUp() services/tracing/public/cpp/perfetto/trace_event_data_source_unittest.cc:628:5 (services_unittests+0x23285f8) #7 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2d37942) #8 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2494 (services_unittests+0x2d37942) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2675:11 (services_unittests+0x2d38ce8) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (services_unittests+0x2d398c6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (services_unittests+0x2d4b146) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2d4a929) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (services_unittests+0x2d4a929) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (services_unittests+0x5ca2f62) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5ca2f62) #16 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fa4508) #17 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fa4508) #18 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fa4508) #19 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1fa4508) #20 Run base/callback.h:97:12 (services_unittests+0x5cac45d) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5cac45d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5cac2c0) #23 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fa413f) Location is global 'tracing::TraceEventDataSource::GetInstance()::instance' of size 152 at 0x55a5c438c4b8 (services_unittests+0x00000966b4f8) Thread T15 (tid=28654, 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 (services_unittests+0x1aac04b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x43e34f7) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x43e33f5) #3 base::internal::SchedulerWorker::Start(base::SchedulerWorkerObserver*) base/task/task_scheduler/scheduler_worker.cc:79:3 (services_unittests+0x43771cd) #4 operator() base/task/task_scheduler/scheduler_worker_pool_impl.cc:187:15 (services_unittests+0x4375ceb) #5 ForEachWorker<(lambda at ../../base/task/task_scheduler/scheduler_worker_pool_impl.cc:186:37)> base/task/task_scheduler/scheduler_worker_pool_impl.cc:152 (services_unittests+0x4375ceb) #6 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::FlushImpl() base/task/task_scheduler/scheduler_worker_pool_impl.cc:186 (services_unittests+0x4375ceb) #7 base::internal::SchedulerWorkerPoolImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/task_scheduler/scheduler_worker_pool_impl.cc:105:30 (services_unittests+0x43727e4) #8 base::internal::SchedulerWorkerPoolImpl::Start(base::SchedulerWorkerPoolParams const&, int, scoped_refptr<base::TaskRunner>, base::SchedulerWorkerObserver*, base::internal::SchedulerWorkerPoolImpl::WorkerEnvironment, base::Optional<base::TimeDelta>) base/task/task_scheduler/scheduler_worker_pool_impl.cc:435:1 (services_unittests+0x4372792) #9 base::internal::TaskSchedulerImpl::Start(base::TaskScheduler::InitParams const&, base::SchedulerWorkerObserver*) base/task/task_scheduler/task_scheduler_impl.cc:142:21 (services_unittests+0x43693e1) #10 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:377:33 (services_unittests+0x5c9da09) #11 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<void>() base/test/scoped_task_environment.h:143:9 (services_unittests+0x1b1d745) #12 TraceEventDataSourceTest services/tracing/public/cpp/perfetto/trace_event_data_source_unittest.cc:213:7 (services_unittests+0x2330ba3) #13 TraceEventDataSourceNewProtosTest services/tracing/public/cpp/perfetto/trace_event_data_source_unittest.cc:621 (services_unittests+0x2330ba3) #14 TraceEventDataSourceNewProtosTest_EventWithBoolArgs_Test services/tracing/public/cpp/perfetto/trace_event_data_source_unittest.cc:964 (services_unittests+0x2330ba3) #15 testing::internal::TestFactoryImpl<tracing::(anonymous namespace)::TraceEventDataSourceNewProtosTest_EventWithBoolArgs_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (services_unittests+0x2330ba3) #16 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2d38b3f) #17 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (services_unittests+0x2d38b3f) #18 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (services_unittests+0x2d398c6) #19 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (services_unittests+0x2d4b146) #20 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2d4a929) #21 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (services_unittests+0x2d4a929) #22 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (services_unittests+0x5ca2f62) #23 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5ca2f62) #24 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fa4508) #25 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fa4508) #26 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fa4508) #27 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1fa4508) #28 Run base/callback.h:97:12 (services_unittests+0x5cac45d) #29 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x5cac45d) #30 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5cac2c0) #31 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fa413f) SUMMARY: ThreadSanitizer: data race base/synchronization/lock_impl_posix.cc:102:12 in base::internal::LockImpl::Lock() ================== [ OK ] TraceEventDataSourceNewProtosTest.EventWithBoolArgs (1117 ms) [ RUN ] TraceEventDataSourceNewProtosTest.EventWithDoubleArgs [ OK ] TraceEventDataSourceNewProtosTest.EventWithDoubleArgs (28 ms) [ RUN ] TraceEventDataSourceNewProtosTest.EventWithPointerArgs [ OK ] TraceEventDataSourceNewProtosTest.EventWithPointerArgs (19 ms) [ RUN ] TraceEventDataSourceNewProtosTest.EventWithConvertableArgs [ OK ] TraceEventDataSourceNewProtosTest.EventWithConvertableArgs (29 ms) [ RUN ] TraceEventDataSourceNewProtosTest.UpdateDurationOfCompleteEvent [ OK ] TraceEventDataSourceNewProtosTest.UpdateDurationOfCompleteEvent (15 ms) [ RUN ] TraceEventDataSourceNewProtosTest.InternedStrings [ OK ] TraceEventDataSourceNewProtosTest.InternedStrings (53 ms) [----------] 10 tests from TraceEventDataSourceNewProtosTest (1352 ms total) [----------] Global test environment tear-down [==========] 10 tests from 1 test suite ran. (1354 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 1 warnings [ RUN ] TraceEventDataSourceNewProtosTest.EventWithUIntArgs [ OK ] TraceEventDataSourceNewProtosTest.EventWithUIntArgs (23 ms) ================================================================================