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

Test 'TraceEventDataSourceNoInterningTest.InterningScopedToPackets' completed with the following status(es): 'FAILURE_ON_EXIT','SUCCESS' Test 'TraceEventDataSourceNoInterningTest.InterningScopedToPackets' had the following logs when run: ================================================================================ [ RUN ] TraceEventDataSourceNoInterningTest.InterningScopedToPackets ================== WARNING: ThreadSanitizer: data race (pid=21269) Atomic read of size 1 at 0x564109929e88 by thread T10: #0 pthread_mutex_lock /b/swarming/w/ir/k/src/third_party/llvm/projects/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:4137:3 (services_unittests+0x1905ff6) #1 base::internal::LockImpl::Lock() base/synchronization/lock_impl_posix.cc:102:12 (services_unittests+0x41d685d) #2 Acquire base/synchronization/lock.h:31:26 (services_unittests+0x460e4e8) #3 BasicAutoLock base/synchronization/lock_impl.h:84 (services_unittests+0x460e4e8) #4 tracing::TraceEventDataSource::CreateThreadLocalEventSink(bool) services/tracing/public/cpp/perfetto/trace_event_data_source.cc:380 (services_unittests+0x460e4e8) #5 tracing::TraceEventDataSource::OnAddTraceEvent(base::trace_event::TraceEvent*, bool, base::trace_event::TraceEventHandle*) services/tracing/public/cpp/perfetto/trace_event_data_source.cc:452:24 (services_unittests+0x460d441) #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+0x41ab9f3) #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+0x41adc45) #8 AddTraceEventWithThreadIdAndTimestamp<const char *, const char *> base/trace_event/trace_event.h:761:10 (services_unittests+0x4184cf0) #9 AddTraceEvent<const char *, const char *> base/trace_event/trace_event.h:830 (services_unittests+0x4184cf0) #10 base::ScopedBlockingCall::ScopedBlockingCall(base::Location const&, base::BlockingType) base/threading/scoped_blocking_call.cc:77 (services_unittests+0x4184cf0) #11 base::DirectoryExists(base::FilePath const&) base/files/file_util_posix.cc:488:22 (services_unittests+0x41cff1a) #12 base::(anonymous namespace)::SetThreadCgroupForThreadPriority(int, base::FilePath const&, base::ThreadPriority) base/threading/platform_thread_linux.cc:67:8 (services_unittests+0x41840f2) #13 SetThreadCgroupsForThreadPriority base/threading/platform_thread_linux.cc:78:3 (services_unittests+0x4183f54) #14 base::internal::SetCurrentThreadPriorityForPlatform(base::ThreadPriority) base/threading/platform_thread_linux.cc:116 (services_unittests+0x4183f54) #15 base::PlatformThread::SetCurrentThreadPriorityImpl(base::ThreadPriority) base/threading/platform_thread_posix.cc:309:7 (services_unittests+0x41da957) #16 base::PlatformThread::SetCurrentThreadPriority(base::ThreadPriority) base/threading/platform_thread.cc:32:5 (services_unittests+0x4183e02) #17 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:73:5 (services_unittests+0x41da9b5) Previous write of size 1 at 0x564109929e88 by main thread: #0 pthread_mutex_destroy /b/swarming/w/ir/k/src/third_party/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:1264:3 (services_unittests+0x18e94a6) #1 base::internal::LockImpl::~LockImpl() base/synchronization/lock_impl_posix.cc:79:12 (services_unittests+0x41d67b9) #2 ~Lock base/synchronization/lock.h:26:12 (services_unittests+0x460d28a) #3 tracing::TraceEventDataSource::~TraceEventDataSource() services/tracing/public/cpp/perfetto/trace_event_data_source.cc:198 (services_unittests+0x460d28a) #4 tracing::TraceEventDataSource::ResetForTesting() services/tracing/public/cpp/perfetto/trace_event_data_source.cc:187:42 (services_unittests+0x460cfd6) #5 CreateTraceEventDataSource services/tracing/public/cpp/perfetto/trace_event_data_source_unittest.cc:212:5 (services_unittests+0x21b9024) #6 tracing::(anonymous namespace)::TraceEventDataSourceNoInterningTest_InterningScopedToPackets_Test::TestBody() services/tracing/public/cpp/perfetto/trace_event_data_source_unittest.cc:1013 (services_unittests+0x21b9024) #7 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a1cb1f) #8 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2522 (services_unittests+0x2a1cb1f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a1dc98) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a1e876) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a30c66) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a300c9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a300c9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x51e9812) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x51e9812) #16 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1dd0818) #17 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1dd0818) #18 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1dd0818) #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+0x1dd0818) #20 Run base/callback.h:97:12 (services_unittests+0x51f2dad) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x51f2dad) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x51f2c10) #23 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1dd044f) Location is global 'tracing::TraceEventDataSource::GetInstance()::instance' of size 160 at 0x564109929e48 (services_unittests+0x000008dc9e88) Thread T10 (tid=21394, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18e7c5b) #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+0x41da567) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x41da465) #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x417600d) #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x416e15b) #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x416e15b) #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x416e15b) #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x416ac24) #8 base::internal::ThreadGroupImpl::Start(int, int, base::TimeDelta, scoped_refptr<base::TaskRunner>, base::WorkerThreadObserver*, base::internal::ThreadGroup::WorkerEnvironment, base::Optional<base::TimeDelta>) base/task/thread_pool/thread_group_impl.cc:425:1 (services_unittests+0x416abc9) #9 base::internal::ThreadPoolImpl::Start(base::ThreadPool::InitParams const&, base::WorkerThreadObserver*) base/task/thread_pool/thread_pool_impl.cc:192:11 (services_unittests+0x4163275) #10 base::test::ScopedTaskEnvironment::InitializeThreadPool() base/test/scoped_task_environment.cc:411:30 (services_unittests+0x51e45df) #11 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ThreadPoolExecutionMode, base::test::ScopedTaskEnvironment::NowSource, base::test::ScopedTaskEnvironment::ThreadingMode, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:375:5 (services_unittests+0x51e4023) #12 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<void>() base/test/scoped_task_environment.h:161:9 (services_unittests+0x1958d08) #13 TraceEventDataSourceTest services/tracing/public/cpp/perfetto/trace_event_data_source_unittest.cc:181:7 (services_unittests+0x21b8db3) #14 TraceEventDataSourceNoInterningTest services/tracing/public/cpp/perfetto/trace_event_data_source_unittest.cc:1003 (services_unittests+0x21b8db3) #15 TraceEventDataSourceNoInterningTest_InterningScopedToPackets_Test services/tracing/public/cpp/perfetto/trace_event_data_source_unittest.cc:1012 (services_unittests+0x21b8db3) #16 testing::internal::TestFactoryImpl<tracing::(anonymous namespace)::TraceEventDataSourceNoInterningTest_InterningScopedToPackets_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (services_unittests+0x21b8db3) #17 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a1daef) #18 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688 (services_unittests+0x2a1daef) #19 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a1e876) #20 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a30c66) #21 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a300c9) #22 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a300c9) #23 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x51e9812) #24 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x51e9812) #25 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1dd0818) #26 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1dd0818) #27 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1dd0818) #28 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+0x1dd0818) #29 Run base/callback.h:97:12 (services_unittests+0x51f2dad) #30 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x51f2dad) #31 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x51f2c10) #32 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1dd044f) SUMMARY: ThreadSanitizer: data race base/synchronization/lock_impl_posix.cc:102:12 in base::internal::LockImpl::Lock() ================== [ OK ] TraceEventDataSourceNoInterningTest.InterningScopedToPackets (877 ms) [----------] 1 test from TraceEventDataSourceNoInterningTest (877 ms total) [----------] Global test environment tear-down [==========] 10 tests from 2 test suites ran. (981 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 1 warnings [ RUN ] TraceEventDataSourceNoInterningTest.InterningScopedToPackets [ OK ] TraceEventDataSourceNoInterningTest.InterningScopedToPackets (12 ms) ================================================================================