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

Test 'TracingConsumerTest.PrivacyFilterConfig' completed with the following status(es): 'FAILURE_ON_EXIT','SUCCESS' Test 'TracingConsumerTest.PrivacyFilterConfig' had the following logs when run: ================================================================================ [ RUN ] TracingConsumerTest.PrivacyFilterConfig tracing_service_impl.cc: Configured tracing, #sources:1, duration:0 ms, #buffers:1, total buffer size:32768 KB, total sessions:1 ================== WARNING: ThreadSanitizer: heap-use-after-free (pid=26118) Read of size 1 at 0x7b54000020a7 by thread T8: #0 __is_long buildtools/third_party/libc++/trunk/include/string:1426:39 (services_unittests+0x5025596) #1 __get_pointer buildtools/third_party/libc++/trunk/include/string:1520 (services_unittests+0x5025596) #2 data buildtools/third_party/libc++/trunk/include/string:1248 (services_unittests+0x5025596) #3 std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::operator=(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) buildtools/third_party/libc++/trunk/include/string:2273 (services_unittests+0x5025596) #4 set_name third_party/perfetto/include/perfetto/tracing/core/data_source_descriptor.h:67:51 (services_unittests+0x5609b55) #5 tracing::ProducerClient::NewDataSourceAdded(tracing::PerfettoTracedProcess::DataSourceBase const*) services/tracing/public/cpp/perfetto/producer_client.cc:92 (services_unittests+0x5609b55) #6 tracing::ProducerClient::BindClientAndHostPipesOnSequence(mojo::InterfaceRequest<tracing::mojom::ProducerClient>, mojo::InterfacePtrInfo<tracing::mojom::ProducerHost>) services/tracing/public/cpp/perfetto/producer_client.cc:82:5 (services_unittests+0x560970e) #7 Invoke<void (tracing::ProducerClient::*)(mojo::InterfaceRequest<tracing::mojom::ProducerClient>, mojo::InterfacePtrInfo<tracing::mojom::ProducerHost>), tracing::ProducerClient *, mojo::InterfaceRequest<tracing::mojom::ProducerClient>, mojo::InterfacePtrInfo<tracing::mojom::ProducerHost> > base/bind_internal.h:499:12 (services_unittests+0x560b2c9) #8 MakeItSo<void (tracing::ProducerClient::*)(mojo::InterfaceRequest<tracing::mojom::ProducerClient>, mojo::InterfacePtrInfo<tracing::mojom::ProducerHost>), tracing::ProducerClient *, mojo::InterfaceRequest<tracing::mojom::ProducerClient>, mojo::InterfacePtrInfo<tracing::mojom::ProducerHost> > base/bind_internal.h:599 (services_unittests+0x560b2c9) #9 RunImpl<void (tracing::ProducerClient::*)(mojo::InterfaceRequest<tracing::mojom::ProducerClient>, mojo::InterfacePtrInfo<tracing::mojom::ProducerHost>), std::__1::tuple<base::internal::UnretainedWrapper<tracing::ProducerClient>, mojo::InterfaceRequest<tracing::mojom::ProducerClient>, mojo::InterfacePtrInfo<tracing::mojom::ProducerHost> >, 0, 1, 2> base/bind_internal.h:672 (services_unittests+0x560b2c9) #10 base::internal::Invoker<base::internal::BindState<void (tracing::ProducerClient::*)(mojo::InterfaceRequest<tracing::mojom::ProducerClient>, mojo::InterfacePtrInfo<tracing::mojom::ProducerHost>), base::internal::UnretainedWrapper<tracing::ProducerClient>, mojo::InterfaceRequest<tracing::mojom::ProducerClient>, mojo::InterfacePtrInfo<tracing::mojom::ProducerHost> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x560b2c9) #11 Run base/callback.h:97:12 (services_unittests+0x50da94c) #12 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x50da94c) #13 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x51139e1) #14 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x5113144) #15 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x5113144) #16 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x519fec4) #17 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x6440f26) #18 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x51125b0) #19 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x512a16e) #20 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x5129cb1) #21 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x5129b15) #22 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x51a0ab1) Previous write of size 8 at 0x7b54000020a0 by thread T7: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1d2b72e) #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (services_unittests+0x273dda8) #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x273dda8) #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x273dda8) #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x273dda8) #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x273dda8) #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (services_unittests+0x273dda8) #7 ~__vector_base buildtools/third_party/libc++/trunk/include/vector:464 (services_unittests+0x273dda8) #8 ~vector buildtools/third_party/libc++/trunk/include/vector:555 (services_unittests+0x273dda8) #9 perfetto::TraceConfig::~TraceConfig() third_party/perfetto/src/tracing/core/trace_config.cc:36 (services_unittests+0x273dda8) #10 tracing::ConsumerHost::TracingSession::TracingSession(tracing::ConsumerHost*, mojo::InterfaceRequest<tracing::mojom::TracingSessionHost>, mojo::InterfacePtr<tracing::mojom::TracingSessionClient>, perfetto::TraceConfig const&, tracing::mojom::TracingClientPriority) services/tracing/perfetto/consumer_host.cc:177:1 (services_unittests+0x4f531df) #11 make_unique<tracing::ConsumerHost::TracingSession, tracing::ConsumerHost *, mojo::InterfaceRequest<tracing::mojom::TracingSessionHost>, mojo::InterfacePtr<tracing::mojom::TracingSessionClient>, const perfetto::TraceConfig &, tracing::mojom::TracingClientPriority &> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x4f59cf0) #12 operator() services/tracing/perfetto/consumer_host.cc:516 (services_unittests+0x4f59cf0) #13 Invoke<(lambda at ../../services/tracing/perfetto/consumer_host.cc:507:11), base::WeakPtr<tracing::ConsumerHost>, mojo::InterfaceRequest<tracing::mojom::TracingSessionHost>, mojo::InterfacePtr<tracing::mojom::TracingSessionClient>, perfetto::TraceConfig, tracing::mojom::TracingClientPriority> base/bind_internal.h:386 (services_unittests+0x4f59cf0) #14 MakeItSo<(lambda at ../../services/tracing/perfetto/consumer_host.cc:507:11), base::WeakPtr<tracing::ConsumerHost>, mojo::InterfaceRequest<tracing::mojom::TracingSessionHost>, mojo::InterfacePtr<tracing::mojom::TracingSessionClient>, perfetto::TraceConfig, tracing::mojom::TracingClientPriority> base/bind_internal.h:599 (services_unittests+0x4f59cf0) #15 RunImpl<(lambda at ../../services/tracing/perfetto/consumer_host.cc:507:11), std::__1::tuple<base::WeakPtr<tracing::ConsumerHost>, mojo::InterfaceRequest<tracing::mojom::TracingSessionHost>, mojo::InterfacePtr<tracing::mojom::TracingSessionClient>, perfetto::TraceConfig, tracing::mojom::TracingClientPriority>, 0, 1, 2, 3, 4> base/bind_internal.h:672 (services_unittests+0x4f59cf0) #16 base::internal::Invoker<base::internal::BindState<tracing::ConsumerHost::EnableTracing(mojo::InterfaceRequest<tracing::mojom::TracingSessionHost>, mojo::InterfacePtr<tracing::mojom::TracingSessionClient>, perfetto::TraceConfig const&, tracing::mojom::TracingClientPriority)::$_2, base::WeakPtr<tracing::ConsumerHost>, mojo::InterfaceRequest<tracing::mojom::TracingSessionHost>, mojo::InterfacePtr<tracing::mojom::TracingSessionClient>, perfetto::TraceConfig, tracing::mojom::TracingClientPriority>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x4f59cf0) #17 Run base/callback.h:97:12 (services_unittests+0x4f5f7ed) #18 tracing::PerfettoService::RequestTracingSession(tracing::mojom::TracingClientPriority, base::OnceCallback<void ()>) services/tracing/perfetto/perfetto_service.cc:149 (services_unittests+0x4f5f7ed) #19 tracing::ConsumerHost::EnableTracing(mojo::InterfaceRequest<tracing::mojom::TracingSessionHost>, mojo::InterfacePtr<tracing::mojom::TracingSessionClient>, perfetto::TraceConfig const&, tracing::mojom::TracingClientPriority) services/tracing/perfetto/consumer_host.cc:504:13 (services_unittests+0x4f57182) #20 tracing::ThreadedPerfettoService::EnableTracingOnSequence(perfetto::TraceConfig const&) services/tracing/perfetto/consumer_host_unittest.cc:138:16 (services_unittests+0x25f6d63) #21 Invoke<void (tracing::ThreadedPerfettoService::*)(const perfetto::TraceConfig &), tracing::ThreadedPerfettoService *, perfetto::TraceConfig> base/bind_internal.h:499:12 (services_unittests+0x25f6ea0) #22 MakeItSo<void (tracing::ThreadedPerfettoService::*)(const perfetto::TraceConfig &), tracing::ThreadedPerfettoService *, perfetto::TraceConfig> base/bind_internal.h:599 (services_unittests+0x25f6ea0) #23 RunImpl<void (tracing::ThreadedPerfettoService::*)(const perfetto::TraceConfig &), std::__1::tuple<base::internal::UnretainedWrapper<tracing::ThreadedPerfettoService>, perfetto::TraceConfig>, 0, 1> base/bind_internal.h:672 (services_unittests+0x25f6ea0) #24 base::internal::Invoker<base::internal::BindState<void (tracing::ThreadedPerfettoService::*)(perfetto::TraceConfig const&), base::internal::UnretainedWrapper<tracing::ThreadedPerfettoService>, perfetto::TraceConfig>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x25f6ea0) #25 Run base/callback.h:97:12 (services_unittests+0x513698f) #26 base::(anonymous namespace)::PostTaskAndReplyRelay::RunTaskAndPostReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:97 (services_unittests+0x513698f) #27 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x5137047) #28 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x5137047) #29 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x5137047) #30 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x5137047) #31 Run base/callback.h:97:12 (services_unittests+0x50da94c) #32 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x50da94c) #33 base::internal::TaskTracker::RunContinueOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:741:19 (services_unittests+0x5113981) #34 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:762:7 (services_unittests+0x5112fb4) #35 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x5112fb4) #36 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x519fec4) #37 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x6440f26) #38 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x51125b0) #39 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x512a16e) #40 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x5129cb1) #41 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x5129b15) #42 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x51a0ab1) Thread T8 'ThreadPoolForeg' (tid=26211, running) created by thread T7 at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x1cbbc5b) #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+0x51a0556) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x51a0415) #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x512933d) #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x511f07e) #5 void base::internal::ThreadGroupImpl::ScopedWorkersExecutor::WorkerContainer::ForEachWorker<base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl()::'lambda0'(base::internal::WorkerThread*)>(base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl()::'lambda0'(base::internal::WorkerThread*)) base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x511f07e) #6 FlushImpl base/task/thread_pool/thread_group_impl.cc:184:23 (services_unittests+0x511a8e7) #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::Flush(base::internal::CheckedLock*) base/task/thread_pool/thread_group_impl.cc:122 (services_unittests+0x511a8e7) #8 base::internal::ThreadGroupImpl::WorkerThreadDelegateImpl::GetWork(base::internal::WorkerThread*) base/task/thread_pool/thread_group_impl.cc:599:12 (services_unittests+0x511a419) #9 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:308:51 (services_unittests+0x512a120) #10 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x5129cb1) #11 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x5129b15) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x51a0ab1) Thread T7 'ThreadPoolForeg' (tid=26210, 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:989:3 (services_unittests+0x1cbbc5b) #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+0x51a0556) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x51a0415) #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x512933d) #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x511f07e) #5 void base::internal::ThreadGroupImpl::ScopedWorkersExecutor::WorkerContainer::ForEachWorker<base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl()::'lambda0'(base::internal::WorkerThread*)>(base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl()::'lambda0'(base::internal::WorkerThread*)) base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x511f07e) #6 FlushImpl base/task/thread_pool/thread_group_impl.cc:184:23 (services_unittests+0x5118c3d) #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103 (services_unittests+0x5118c3d) #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+0x5118bd2) #9 base::internal::ThreadPoolImpl::Start(base::ThreadPool::InitParams const&, base::WorkerThreadObserver*) base/task/thread_pool/thread_pool_impl.cc:192:11 (services_unittests+0x510e105) #10 base::test::ScopedTaskEnvironment::InitializeThreadPool() base/test/scoped_task_environment.cc:411:30 (services_unittests+0x644005f) #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+0x643f9d6) #12 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<void>() base/test/scoped_task_environment.h:161:9 (services_unittests+0x1d2cce8) #13 TracingConsumerTest services/tracing/perfetto/consumer_host_unittest.cc:284:7 (services_unittests+0x25f7d50) #14 TracingConsumerTest_PrivacyFilterConfig_Test services/tracing/perfetto/consumer_host_unittest.cc:606 (services_unittests+0x25f7d50) #15 testing::internal::TestFactoryImpl<tracing::TracingConsumerTest_PrivacyFilterConfig_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (services_unittests+0x25f7d50) #16 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2fae00f) #17 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688 (services_unittests+0x2fae00f) #18 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2faed96) #19 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2fc1186) #20 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2fc05e9) #21 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2fc05e9) #22 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x6446c92) #23 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x6446c92) #24 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x21d47a8) #25 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x21d47a8) #26 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x21d47a8) #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+0x21d47a8) #28 Run base/callback.h:97:12 (services_unittests+0x64520d8) #29 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x64520d8) #30 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x6451ee7) #31 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x21d43de) SUMMARY: ThreadSanitizer: heap-use-after-free buildtools/third_party/libc++/trunk/include/string:1426:39 in __is_long ================== tracing_service_impl.cc: Tracing session 1 ended, total sessions:0 [ OK ] TracingConsumerTest.PrivacyFilterConfig (1188 ms) [ RUN ] TracingConsumerTest.PrivacyFilterConfigInJson tracing_service_impl.cc: Configured tracing, #sources:1, duration:0 ms, #buffers:1, total buffer size:32768 KB, total sessions:1 ================== WARNING: ThreadSanitizer: heap-use-after-free (pid=26118) Read of size 1 at 0x7b54000025a7 by thread T12: #0 __is_long buildtools/third_party/libc++/trunk/include/string:1426:39 (services_unittests+0x5025596) #1 __get_pointer buildtools/third_party/libc++/trunk/include/string:1520 (services_unittests+0x5025596) #2 data buildtools/third_party/libc++/trunk/include/string:1248 (services_unittests+0x5025596) #3 std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::operator=(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) buildtools/third_party/libc++/trunk/include/string:2273 (services_unittests+0x5025596) #4 set_name third_party/perfetto/include/perfetto/tracing/core/data_source_descriptor.h:67:51 (services_unittests+0x5609b55) #5 tracing::ProducerClient::NewDataSourceAdded(tracing::PerfettoTracedProcess::DataSourceBase const*) services/tracing/public/cpp/perfetto/producer_client.cc:92 (services_unittests+0x5609b55) #6 tracing::ProducerClient::BindClientAndHostPipesOnSequence(mojo::InterfaceRequest<tracing::mojom::ProducerClient>, mojo::InterfacePtrInfo<tracing::mojom::ProducerHost>) services/tracing/public/cpp/perfetto/producer_client.cc:82:5 (services_unittests+0x560970e) #7 Invoke<void (tracing::ProducerClient::*)(mojo::InterfaceRequest<tracing::mojom::ProducerClient>, mojo::InterfacePtrInfo<tracing::mojom::ProducerHost>), tracing::ProducerClient *, mojo::InterfaceRequest<tracing::mojom::ProducerClient>, mojo::InterfacePtrInfo<tracing::mojom::ProducerHost> > base/bind_internal.h:499:12 (services_unittests+0x560b2c9) #8 MakeItSo<void (tracing::ProducerClient::*)(mojo::InterfaceRequest<tracing::mojom::ProducerClient>, mojo::InterfacePtrInfo<tracing::mojom::ProducerHost>), tracing::ProducerClient *, mojo::InterfaceRequest<tracing::mojom::ProducerClient>, mojo::InterfacePtrInfo<tracing::mojom::ProducerHost> > base/bind_internal.h:599 (services_unittests+0x560b2c9) #9 RunImpl<void (tracing::ProducerClient::*)(mojo::InterfaceRequest<tracing::mojom::ProducerClient>, mojo::InterfacePtrInfo<tracing::mojom::ProducerHost>), std::__1::tuple<base::internal::UnretainedWrapper<tracing::ProducerClient>, mojo::InterfaceRequest<tracing::mojom::ProducerClient>, mojo::InterfacePtrInfo<tracing::mojom::ProducerHost> >, 0, 1, 2> base/bind_internal.h:672 (services_unittests+0x560b2c9) #10 base::internal::Invoker<base::internal::BindState<void (tracing::ProducerClient::*)(mojo::InterfaceRequest<tracing::mojom::ProducerClient>, mojo::InterfacePtrInfo<tracing::mojom::ProducerHost>), base::internal::UnretainedWrapper<tracing::ProducerClient>, mojo::InterfaceRequest<tracing::mojom::ProducerClient>, mojo::InterfacePtrInfo<tracing::mojom::ProducerHost> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x560b2c9) #11 Run base/callback.h:97:12 (services_unittests+0x50da94c) #12 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x50da94c) #13 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x51139e1) #14 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x5113144) #15 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x5113144) #16 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x519fec4) #17 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x6440f26) #18 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x51125b0) #19 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x512a16e) #20 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x5129cb1) #21 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x5129b15) #22 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x51a0ab1) Previous write of size 8 at 0x7b54000025a0 by thread T11: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1d2b72e) #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (services_unittests+0x273dda8) #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x273dda8) #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x273dda8) #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x273dda8) #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x273dda8) #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (services_unittests+0x273dda8) #7 ~__vector_base buildtools/third_party/libc++/trunk/include/vector:464 (services_unittests+0x273dda8) #8 ~vector buildtools/third_party/libc++/trunk/include/vector:555 (services_unittests+0x273dda8) #9 perfetto::TraceConfig::~TraceConfig() third_party/perfetto/src/tracing/core/trace_config.cc:36 (services_unittests+0x273dda8) #10 ~__tuple_leaf buildtools/third_party/libc++/trunk/include/tuple:170:7 (services_unittests+0x4f59e83) #11 ~__tuple_impl buildtools/third_party/libc++/trunk/include/tuple:364 (services_unittests+0x4f59e83) #12 ~tuple buildtools/third_party/libc++/trunk/include/tuple:469 (services_unittests+0x4f59e83) #13 ~BindState base/bind_internal.h:854 (services_unittests+0x4f59e83) #14 base::internal::BindState<tracing::ConsumerHost::EnableTracing(mojo::InterfaceRequest<tracing::mojom::TracingSessionHost>, mojo::InterfacePtr<tracing::mojom::TracingSessionClient>, perfetto::TraceConfig const&, tracing::mojom::TracingClientPriority)::$_2, base::WeakPtr<tracing::ConsumerHost>, mojo::InterfaceRequest<tracing::mojom::TracingSessionHost>, mojo::InterfacePtr<tracing::mojom::TracingSessionClient>, perfetto::TraceConfig, tracing::mojom::TracingClientPriority>::Destroy(base::internal::BindStateBase const*) base/bind_internal.h:857 (services_unittests+0x4f59e83) #15 Destruct base/callback_internal.cc:29:3 (services_unittests+0x505c5ec) #16 Release base/memory/ref_counted.h:407 (services_unittests+0x505c5ec) #17 Release base/memory/scoped_refptr.h:297 (services_unittests+0x505c5ec) #18 ~scoped_refptr base/memory/scoped_refptr.h:209 (services_unittests+0x505c5ec) #19 base::internal::CallbackBase::~CallbackBase() base/callback_internal.cc:84 (services_unittests+0x505c5ec) #20 tracing::PerfettoService::RequestTracingSession(tracing::mojom::TracingClientPriority, base::OnceCallback<void ()>) services/tracing/perfetto/perfetto_service.cc (services_unittests+0x4f5f7f9) #21 tracing::ConsumerHost::EnableTracing(mojo::InterfaceRequest<tracing::mojom::TracingSessionHost>, mojo::InterfacePtr<tracing::mojom::TracingSessionClient>, perfetto::TraceConfig const&, tracing::mojom::TracingClientPriority) services/tracing/perfetto/consumer_host.cc:504:13 (services_unittests+0x4f57182) #22 tracing::ThreadedPerfettoService::EnableTracingOnSequence(perfetto::TraceConfig const&) services/tracing/perfetto/consumer_host_unittest.cc:138:16 (services_unittests+0x25f6d63) #23 Invoke<void (tracing::ThreadedPerfettoService::*)(const perfetto::TraceConfig &), tracing::ThreadedPerfettoService *, perfetto::TraceConfig> base/bind_internal.h:499:12 (services_unittests+0x25f6ea0) #24 MakeItSo<void (tracing::ThreadedPerfettoService::*)(const perfetto::TraceConfig &), tracing::ThreadedPerfettoService *, perfetto::TraceConfig> base/bind_internal.h:599 (services_unittests+0x25f6ea0) #25 RunImpl<void (tracing::ThreadedPerfettoService::*)(const perfetto::TraceConfig &), std::__1::tuple<base::internal::UnretainedWrapper<tracing::ThreadedPerfettoService>, perfetto::TraceConfig>, 0, 1> base/bind_internal.h:672 (services_unittests+0x25f6ea0) #26 base::internal::Invoker<base::internal::BindState<void (tracing::ThreadedPerfettoService::*)(perfetto::TraceConfig const&), base::internal::UnretainedWrapper<tracing::ThreadedPerfettoService>, perfetto::TraceConfig>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x25f6ea0) #27 Run base/callback.h:97:12 (services_unittests+0x513698f) #28 base::(anonymous namespace)::PostTaskAndReplyRelay::RunTaskAndPostReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:97 (services_unittests+0x513698f) #29 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x5137047) #30 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x5137047) #31 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x5137047) #32 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x5137047) #33 Run base/callback.h:97:12 (services_unittests+0x50da94c) #34 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x50da94c) #35 base::internal::TaskTracker::RunContinueOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:741:19 (services_unittests+0x5113981) #36 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:762:7 (services_unittests+0x5112fb4) #37 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x5112fb4) #38 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x519fec4) #39 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x6440f26) #40 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x51125b0) #41 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x512a16e) #42 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x5129cb1) #43 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x5129b15) #44 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x51a0ab1) Thread T12 'ThreadPoolForeg' (tid=26386, running) created by thread T11 at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x1cbbc5b) #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+0x51a0556) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x51a0415) #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x512933d) #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x511f07e) #5 void base::internal::ThreadGroupImpl::ScopedWorkersExecutor::WorkerContainer::ForEachWorker<base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl()::'lambda0'(base::internal::WorkerThread*)>(base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl()::'lambda0'(base::internal::WorkerThread*)) base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x511f07e) #6 FlushImpl base/task/thread_pool/thread_group_impl.cc:184:23 (services_unittests+0x511a8e7) #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::Flush(base::internal::CheckedLock*) base/task/thread_pool/thread_group_impl.cc:122 (services_unittests+0x511a8e7) #8 base::internal::ThreadGroupImpl::WorkerThreadDelegateImpl::GetWork(base::internal::WorkerThread*) base/task/thread_pool/thread_group_impl.cc:599:12 (services_unittests+0x511a419) #9 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:308:51 (services_unittests+0x512a120) #10 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x5129cb1) #11 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x5129b15) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x51a0ab1) Thread T11 'ThreadPoolForeg' (tid=26384, 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:989:3 (services_unittests+0x1cbbc5b) #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+0x51a0556) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x51a0415) #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x512933d) #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x511f07e) #5 void base::internal::ThreadGroupImpl::ScopedWorkersExecutor::WorkerContainer::ForEachWorker<base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl()::'lambda0'(base::internal::WorkerThread*)>(base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl()::'lambda0'(base::internal::WorkerThread*)) base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x511f07e) #6 FlushImpl base/task/thread_pool/thread_group_impl.cc:184:23 (services_unittests+0x5118c3d) #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103 (services_unittests+0x5118c3d) #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+0x5118bd2) #9 base::internal::ThreadPoolImpl::Start(base::ThreadPool::InitParams const&, base::WorkerThreadObserver*) base/task/thread_pool/thread_pool_impl.cc:192:11 (services_unittests+0x510e105) #10 base::test::ScopedTaskEnvironment::InitializeThreadPool() base/test/scoped_task_environment.cc:411:30 (services_unittests+0x644005f) #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+0x643f9d6) #12 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<void>() base/test/scoped_task_environment.h:161:9 (services_unittests+0x1d2cce8) #13 TracingConsumerTest services/tracing/perfetto/consumer_host_unittest.cc:284:7 (services_unittests+0x25f7f20) #14 TracingConsumerTest_PrivacyFilterConfigInJson_Test services/tracing/perfetto/consumer_host_unittest.cc:622 (services_unittests+0x25f7f20) #15 testing::internal::TestFactoryImpl<tracing::TracingConsumerTest_PrivacyFilterConfigInJson_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (services_unittests+0x25f7f20) #16 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2fae00f) #17 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688 (services_unittests+0x2fae00f) #18 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2faed96) #19 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2fc1186) #20 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2fc05e9) #21 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2fc05e9) #22 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x6446c92) #23 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x6446c92) #24 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x21d47a8) #25 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x21d47a8) #26 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x21d47a8) #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+0x21d47a8) #28 Run base/callback.h:97:12 (services_unittests+0x64520d8) #29 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x64520d8) #30 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x6451ee7) #31 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x21d43de) SUMMARY: ThreadSanitizer: heap-use-after-free buildtools/third_party/libc++/trunk/include/string:1426:39 in __is_long ================== ================== WARNING: ThreadSanitizer: heap-use-after-free (pid=26118) Read of size 8 at 0x7b5400002088 by thread T12: #0 data_source_id services/tracing/public/cpp/perfetto/perfetto_traced_process.h:52:46 (services_unittests+0x560a455) #1 tracing::ProducerClient::StopDataSource(unsigned long, base::OnceCallback<void ()>) services/tracing/public/cpp/perfetto/producer_client.cc:149 (services_unittests+0x560a455) #2 StopDataSource services/tracing/perfetto/test_utils.cc:109:19 (services_unittests+0x2614344) #3 non-virtual thunk to tracing::MockProducerClient::StopDataSource(unsigned long, base::OnceCallback<void ()>) services/tracing/perfetto/test_utils.cc (services_unittests+0x2614344) #4 tracing::mojom::ProducerClientStubDispatch::AcceptWithResponder(tracing::mojom::ProducerClient*, mojo::Message*, std::__1::unique_ptr<mojo::MessageReceiverWithStatus, std::__1::default_delete<mojo::MessageReceiverWithStatus> >) gen/services/tracing/public/mojom/perfetto_service.mojom.cc:1301:13 (services_unittests+0x55af237) #5 tracing::mojom::ProducerClientStub<mojo::RawPtrImplRefTraits<tracing::mojom::ProducerClient> >::AcceptWithResponder(mojo::Message*, std::__1::unique_ptr<mojo::MessageReceiverWithStatus, std::__1::default_delete<mojo::MessageReceiverWithStatus> >) gen/services/tracing/public/mojom/perfetto_service.mojom.h:469:12 (services_unittests+0x560b561) #6 mojo::InterfaceEndpointClient::HandleValidatedMessage(mojo::Message*) mojo/public/cpp/bindings/lib/interface_endpoint_client.cc:412:34 (services_unittests+0x52a6d7f) #7 mojo::InterfaceEndpointClient::HandleIncomingMessageThunk::Accept(mojo::Message*) mojo/public/cpp/bindings/lib/interface_endpoint_client.cc:133:18 (services_unittests+0x52a67fa) #8 mojo::FilterChain::Accept(mojo::Message*) mojo/public/cpp/bindings/lib/filter_chain.cc:40:17 (services_unittests+0x52aad5a) #9 mojo::InterfaceEndpointClient::HandleIncomingMessage(mojo::Message*) mojo/public/cpp/bindings/lib/interface_endpoint_client.cc:320:19 (services_unittests+0x52a8a4a) #10 mojo::internal::MultiplexRouter::ProcessIncomingMessage(mojo::internal::MultiplexRouter::MessageWrapper*, mojo::internal::MultiplexRouter::ClientCallBehavior, base::SequencedTaskRunner*) mojo/public/cpp/bindings/lib/multiplex_router.cc:873:42 (services_unittests+0x52b34c6) #11 mojo::internal::MultiplexRouter::Accept(mojo::Message*) mojo/public/cpp/bindings/lib/multiplex_router.cc:594:38 (services_unittests+0x52b2515) #12 mojo::FilterChain::Accept(mojo::Message*) mojo/public/cpp/bindings/lib/filter_chain.cc:40:17 (services_unittests+0x52aad5a) #13 mojo::Connector::DispatchMessage(mojo::Message) mojo/public/cpp/bindings/lib/connector.cc:525:49 (services_unittests+0x52a0bec) #14 mojo::Connector::ReadAllAvailableMessages() mojo/public/cpp/bindings/lib/connector.cc:600:12 (services_unittests+0x52a1d70) #15 mojo::Connector::OnHandleReadyInternal(unsigned int) mojo/public/cpp/bindings/lib/connector.cc:435:3 (services_unittests+0x52a184e) #16 mojo::Connector::OnWatcherHandleReady(unsigned int) mojo/public/cpp/bindings/lib/connector.cc:396:3 (services_unittests+0x52a1740) #17 Invoke<void (mojo::Connector::*)(unsigned int), mojo::Connector *, unsigned int> base/bind_internal.h:499:12 (services_unittests+0x52a4cff) #18 MakeItSo<void (mojo::Connector::*const &)(unsigned int), mojo::Connector *, unsigned int> base/bind_internal.h:599 (services_unittests+0x52a4cff) #19 RunImpl<void (mojo::Connector::*const &)(unsigned int), const std::__1::tuple<base::internal::UnretainedWrapper<mojo::Connector> > &, 0> base/bind_internal.h:672 (services_unittests+0x52a4cff) #20 base::internal::Invoker<base::internal::BindState<void (mojo::Connector::*)(unsigned int), base::internal::UnretainedWrapper<mojo::Connector> >, void (unsigned int)>::Run(base::internal::BindStateBase*, unsigned int) base/bind_internal.h:654 (services_unittests+0x52a4cff) #21 Run base/callback.h:136:12 (services_unittests+0x2013318) #22 mojo::SimpleWatcher::DiscardReadyState(base::RepeatingCallback<void (unsigned int)> const&, unsigned int, mojo::HandleSignalsState const&) mojo/public/cpp/system/simple_watcher.h:194 (services_unittests+0x2013318) #23 Invoke<void (*const &)(const base::RepeatingCallback<void (unsigned int)> &, unsigned int, const mojo::HandleSignalsState &), const base::RepeatingCallback<void (unsigned int)> &, unsigned int, const mojo::HandleSignalsState &> base/bind_internal.h:399:12 (services_unittests+0x2013375) #24 MakeItSo<void (*const &)(const base::RepeatingCallback<void (unsigned int)> &, unsigned int, const mojo::HandleSignalsState &), const base::RepeatingCallback<void (unsigned int)> &, unsigned int, const mojo::HandleSignalsState &> base/bind_internal.h:599 (services_unittests+0x2013375) #25 RunImpl<void (*const &)(const base::RepeatingCallback<void (unsigned int)> &, unsigned int, const mojo::HandleSignalsState &), const std::__1::tuple<base::RepeatingCallback<void (unsigned int)> > &, 0> base/bind_internal.h:672 (services_unittests+0x2013375) #26 base::internal::Invoker<base::internal::BindState<void (*)(base::RepeatingCallback<void (unsigned int)> const&, unsigned int, mojo::HandleSignalsState const&), base::RepeatingCallback<void (unsigned int)> >, void (unsigned int, mojo::HandleSignalsState const&)>::Run(base::internal::BindStateBase*, unsigned int, mojo::HandleSignalsState const&) base/bind_internal.h:654 (services_unittests+0x2013375) #27 Run base/callback.h:136:12 (services_unittests+0x52d4bad) #28 mojo::SimpleWatcher::OnHandleReady(int, unsigned int, mojo::HandleSignalsState const&) mojo/public/cpp/system/simple_watcher.cc:293 (services_unittests+0x52d4bad) #29 Invoke<void (mojo::SimpleWatcher::*)(int, unsigned int, const mojo::HandleSignalsState &), base::WeakPtr<mojo::SimpleWatcher>, int, unsigned int, mojo::HandleSignalsState> base/bind_internal.h:499:12 (services_unittests+0x52d53c5) #30 MakeItSo<void (mojo::SimpleWatcher::*)(int, unsigned int, const mojo::HandleSignalsState &), base::WeakPtr<mojo::SimpleWatcher>, int, unsigned int, mojo::HandleSignalsState> base/bind_internal.h:619 (services_unittests+0x52d53c5) #31 void base::internal::Invoker<base::internal::BindState<void (mojo::SimpleWatcher::*)(int, unsigned int, mojo::HandleSignalsState const&), base::WeakPtr<mojo::SimpleWatcher>, int, unsigned int, mojo::HandleSignalsState>, void ()>::RunImpl<void (mojo::SimpleWatcher::*)(int, unsigned int, mojo::HandleSignalsState const&), std::__1::tuple<base::WeakPtr<mojo::SimpleWatcher>, int, unsigned int, mojo::HandleSignalsState>, 0ul, 1ul, 2ul, 3ul>(void (mojo::SimpleWatcher::*&&)(int, unsigned int, mojo::HandleSignalsState const&), std::__1::tuple<base::WeakPtr<mojo::SimpleWatcher>, int, unsigned int, mojo::HandleSignalsState>&&, std::__1::integer_sequence<unsigned long, 0ul, 1ul, 2ul, 3ul>) base/bind_internal.h:672 (services_unittests+0x52d53c5) #32 base::internal::Invoker<base::internal::BindState<void (mojo::SimpleWatcher::*)(int, unsigned int, mojo::HandleSignalsState const&), base::WeakPtr<mojo::SimpleWatcher>, int, unsigned int, mojo::HandleSignalsState>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641:12 (services_unittests+0x52d526e) #33 Run base/callback.h:97:12 (services_unittests+0x50da94c) #34 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x50da94c) #35 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x51139e1) #36 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x5113144) #37 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x5113144) #38 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x519fec4) #39 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x6440f26) #40 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x51125b0) #41 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x512a16e) #42 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x5129cb1) #43 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x5129b15) #44 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x51a0ab1) Previous write of size 8 at 0x7b5400002088 by thread T7: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1d2b72e) #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (services_unittests+0x27743a8) #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x27743a8) #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x27743a8) #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x27743a8) #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x27743a8) #6 void std::__1::__function::__policy::__large_destroy<std::__1::__function::__alloc_func<perfetto::TracingServiceImpl::ProducerEndpointImpl::SetupDataSource(unsigned long, perfetto::DataSourceConfig const&)::$_24, std::__1::allocator<perfetto::TracingServiceImpl::ProducerEndpointImpl::SetupDataSource(unsigned long, perfetto::DataSourceConfig const&)::$_24>, void ()> >(void*) buildtools/third_party/libc++/trunk/include/functional:1934 (services_unittests+0x27743a8) #7 ~__policy_func buildtools/third_party/libc++/trunk/include/functional:2098:13 (services_unittests+0x560d148) #8 ~function buildtools/third_party/libc++/trunk/include/functional:2338 (services_unittests+0x560d148) #9 Invoke<(lambda at ../../services/tracing/public/cpp/perfetto/task_runner.cc:33:11), std::__1::function<void ()> > base/bind_internal.h:386 (services_unittests+0x560d148) #10 MakeItSo<(lambda at ../../services/tracing/public/cpp/perfetto/task_runner.cc:33:11), std::__1::function<void ()> > base/bind_internal.h:599 (services_unittests+0x560d148) #11 RunImpl<(lambda at ../../services/tracing/public/cpp/perfetto/task_runner.cc:33:11), std::__1::tuple<std::__1::function<void ()> >, 0> base/bind_internal.h:672 (services_unittests+0x560d148) #12 base::internal::Invoker<base::internal::BindState<tracing::PerfettoTaskRunner::PostTask(std::__1::function<void ()>)::$_0, std::__1::function<void ()> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x560d148) #13 Run base/callback.h:97:12 (services_unittests+0x50da94c) #14 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x50da94c) #15 base::internal::TaskTracker::RunContinueOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:741:19 (services_unittests+0x5113981) #16 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:762:7 (services_unittests+0x5112fb4) #17 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x5112fb4) #18 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x519fec4) #19 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x6440f26) #20 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x51125b0) #21 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x512a16e) #22 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x5129cb1) #23 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x5129b15) #24 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x51a0ab1) Thread T12 'ThreadPoolForeg' (tid=26386, running) created by thread T11 at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x1cbbc5b) #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+0x51a0556) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x51a0415) #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x512933d) #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x511f07e) #5 void base::internal::ThreadGroupImpl::ScopedWorkersExecutor::WorkerContainer::ForEachWorker<base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl()::'lambda0'(base::internal::WorkerThread*)>(base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl()::'lambda0'(base::internal::WorkerThread*)) base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x511f07e) #6 FlushImpl base/task/thread_pool/thread_group_impl.cc:184:23 (services_unittests+0x511a8e7) #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::Flush(base::internal::CheckedLock*) base/task/thread_pool/thread_group_impl.cc:122 (services_unittests+0x511a8e7) #8 base::internal::ThreadGroupImpl::WorkerThreadDelegateImpl::GetWork(base::internal::WorkerThread*) base/task/thread_pool/thread_group_impl.cc:599:12 (services_unittests+0x511a419) #9 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:308:51 (services_unittests+0x512a120) #10 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x5129cb1) #11 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x5129b15) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x51a0ab1) Thread T7 'ThreadPoolForeg' (tid=26210, finished) 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:989:3 (services_unittests+0x1cbbc5b) #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+0x51a0556) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x51a0415) #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x512933d) #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x511f07e) #5 void base::internal::ThreadGroupImpl::ScopedWorkersExecutor::WorkerContainer::ForEachWorker<base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl()::'lambda0'(base::internal::WorkerThread*)>(base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl()::'lambda0'(base::internal::WorkerThread*)) base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x511f07e) #6 FlushImpl base/task/thread_pool/thread_group_impl.cc:184:23 (services_unittests+0x5118c3d) #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103 (services_unittests+0x5118c3d) #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+0x5118bd2) #9 base::internal::ThreadPoolImpl::Start(base::ThreadPool::InitParams const&, base::WorkerThreadObserver*) base/task/thread_pool/thread_pool_impl.cc:192:11 (services_unittests+0x510e105) #10 base::test::ScopedTaskEnvironment::InitializeThreadPool() base/test/scoped_task_environment.cc:411:30 (services_unittests+0x644005f) #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+0x643f9d6) #12 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<void>() base/test/scoped_task_environment.h:161:9 (services_unittests+0x1d2cce8) #13 TracingConsumerTest services/tracing/perfetto/consumer_host_unittest.cc:284:7 (services_unittests+0x25f7d50) #14 TracingConsumerTest_PrivacyFilterConfig_Test services/tracing/perfetto/consumer_host_unittest.cc:606 (services_unittests+0x25f7d50) #15 testing::internal::TestFactoryImpl<tracing::TracingConsumerTest_PrivacyFilterConfig_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (services_unittests+0x25f7d50) #16 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2fae00f) #17 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688 (services_unittests+0x2fae00f) #18 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2faed96) #19 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2fc1186) #20 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2fc05e9) #21 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2fc05e9) #22 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x6446c92) #23 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x6446c92) #24 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x21d47a8) #25 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x21d47a8) #26 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x21d47a8) #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+0x21d47a8) #28 Run base/callback.h:97:12 (services_unittests+0x64520d8) #29 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x64520d8) #30 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x6451ee7) #31 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x21d43de) SUMMARY: ThreadSanitizer: heap-use-after-free services/tracing/public/cpp/perfetto/perfetto_traced_process.h:52:46 in data_source_id ================== ================== WARNING: ThreadSanitizer: heap-use-after-free (pid=26118) Read of size 8 at 0x7b5400002588 by thread T12: #0 data_source_id services/tracing/public/cpp/perfetto/perfetto_traced_process.h:52:46 (services_unittests+0x560a455) #1 tracing::ProducerClient::StopDataSource(unsigned long, base::OnceCallback<void ()>) services/tracing/public/cpp/perfetto/producer_client.cc:149 (services_unittests+0x560a455) #2 StopDataSource services/tracing/perfetto/test_utils.cc:109:19 (services_unittests+0x2614344) #3 non-virtual thunk to tracing::MockProducerClient::StopDataSource(unsigned long, base::OnceCallback<void ()>) services/tracing/perfetto/test_utils.cc (services_unittests+0x2614344) #4 tracing::mojom::ProducerClientStubDispatch::AcceptWithResponder(tracing::mojom::ProducerClient*, mojo::Message*, std::__1::unique_ptr<mojo::MessageReceiverWithStatus, std::__1::default_delete<mojo::MessageReceiverWithStatus> >) gen/services/tracing/public/mojom/perfetto_service.mojom.cc:1301:13 (services_unittests+0x55af237) #5 tracing::mojom::ProducerClientStub<mojo::RawPtrImplRefTraits<tracing::mojom::ProducerClient> >::AcceptWithResponder(mojo::Message*, std::__1::unique_ptr<mojo::MessageReceiverWithStatus, std::__1::default_delete<mojo::MessageReceiverWithStatus> >) gen/services/tracing/public/mojom/perfetto_service.mojom.h:469:12 (services_unittests+0x560b561) #6 mojo::InterfaceEndpointClient::HandleValidatedMessage(mojo::Message*) mojo/public/cpp/bindings/lib/interface_endpoint_client.cc:412:34 (services_unittests+0x52a6d7f) #7 mojo::InterfaceEndpointClient::HandleIncomingMessageThunk::Accept(mojo::Message*) mojo/public/cpp/bindings/lib/interface_endpoint_client.cc:133:18 (services_unittests+0x52a67fa) #8 mojo::FilterChain::Accept(mojo::Message*) mojo/public/cpp/bindings/lib/filter_chain.cc:40:17 (services_unittests+0x52aad5a) #9 mojo::InterfaceEndpointClient::HandleIncomingMessage(mojo::Message*) mojo/public/cpp/bindings/lib/interface_endpoint_client.cc:320:19 (services_unittests+0x52a8a4a) #10 mojo::internal::MultiplexRouter::ProcessIncomingMessage(mojo::internal::MultiplexRouter::MessageWrapper*, mojo::internal::MultiplexRouter::ClientCallBehavior, base::SequencedTaskRunner*) mojo/public/cpp/bindings/lib/multiplex_router.cc:873:42 (services_unittests+0x52b34c6) #11 mojo::internal::MultiplexRouter::Accept(mojo::Message*) mojo/public/cpp/bindings/lib/multiplex_router.cc:594:38 (services_unittests+0x52b2515) #12 mojo::FilterChain::Accept(mojo::Message*) mojo/public/cpp/bindings/lib/filter_chain.cc:40:17 (services_unittests+0x52aad5a) #13 mojo::Connector::DispatchMessage(mojo::Message) mojo/public/cpp/bindings/lib/connector.cc:525:49 (services_unittests+0x52a0bec) #14 mojo::Connector::ReadAllAvailableMessages() mojo/public/cpp/bindings/lib/connector.cc:600:12 (services_unittests+0x52a1d70) #15 mojo::Connector::OnHandleReadyInternal(unsigned int) mojo/public/cpp/bindings/lib/connector.cc:435:3 (services_unittests+0x52a184e) #16 mojo::Connector::OnWatcherHandleReady(unsigned int) mojo/public/cpp/bindings/lib/connector.cc:396:3 (services_unittests+0x52a1740) #17 Invoke<void (mojo::Connector::*)(unsigned int), mojo::Connector *, unsigned int> base/bind_internal.h:499:12 (services_unittests+0x52a4cff) #18 MakeItSo<void (mojo::Connector::*const &)(unsigned int), mojo::Connector *, unsigned int> base/bind_internal.h:599 (services_unittests+0x52a4cff) #19 RunImpl<void (mojo::Connector::*const &)(unsigned int), const std::__1::tuple<base::internal::UnretainedWrapper<mojo::Connector> > &, 0> base/bind_internal.h:672 (services_unittests+0x52a4cff) #20 base::internal::Invoker<base::internal::BindState<void (mojo::Connector::*)(unsigned int), base::internal::UnretainedWrapper<mojo::Connector> >, void (unsigned int)>::Run(base::internal::BindStateBase*, unsigned int) base/bind_internal.h:654 (services_unittests+0x52a4cff) #21 Run base/callback.h:136:12 (services_unittests+0x2013318) #22 mojo::SimpleWatcher::DiscardReadyState(base::RepeatingCallback<void (unsigned int)> const&, unsigned int, mojo::HandleSignalsState const&) mojo/public/cpp/system/simple_watcher.h:194 (services_unittests+0x2013318) #23 Invoke<void (*const &)(const base::RepeatingCallback<void (unsigned int)> &, unsigned int, const mojo::HandleSignalsState &), const base::RepeatingCallback<void (unsigned int)> &, unsigned int, const mojo::HandleSignalsState &> base/bind_internal.h:399:12 (services_unittests+0x2013375) #24 MakeItSo<void (*const &)(const base::RepeatingCallback<void (unsigned int)> &, unsigned int, const mojo::HandleSignalsState &), const base::RepeatingCallback<void (unsigned int)> &, unsigned int, const mojo::HandleSignalsState &> base/bind_internal.h:599 (services_unittests+0x2013375) #25 RunImpl<void (*const &)(const base::RepeatingCallback<void (unsigned int)> &, unsigned int, const mojo::HandleSignalsState &), const std::__1::tuple<base::RepeatingCallback<void (unsigned int)> > &, 0> base/bind_internal.h:672 (services_unittests+0x2013375) #26 base::internal::Invoker<base::internal::BindState<void (*)(base::RepeatingCallback<void (unsigned int)> const&, unsigned int, mojo::HandleSignalsState const&), base::RepeatingCallback<void (unsigned int)> >, void (unsigned int, mojo::HandleSignalsState const&)>::Run(base::internal::BindStateBase*, unsigned int, mojo::HandleSignalsState const&) base/bind_internal.h:654 (services_unittests+0x2013375) #27 Run base/callback.h:136:12 (services_unittests+0x52d4bad) #28 mojo::SimpleWatcher::OnHandleReady(int, unsigned int, mojo::HandleSignalsState const&) mojo/public/cpp/system/simple_watcher.cc:293 (services_unittests+0x52d4bad) #29 Invoke<void (mojo::SimpleWatcher::*)(int, unsigned int, const mojo::HandleSignalsState &), base::WeakPtr<mojo::SimpleWatcher>, int, unsigned int, mojo::HandleSignalsState> base/bind_internal.h:499:12 (services_unittests+0x52d53c5) #30 MakeItSo<void (mojo::SimpleWatcher::*)(int, unsigned int, const mojo::HandleSignalsState &), base::WeakPtr<mojo::SimpleWatcher>, int, unsigned int, mojo::HandleSignalsState> base/bind_internal.h:619 (services_unittests+0x52d53c5) #31 void base::internal::Invoker<base::internal::BindState<void (mojo::SimpleWatcher::*)(int, unsigned int, mojo::HandleSignalsState const&), base::WeakPtr<mojo::SimpleWatcher>, int, unsigned int, mojo::HandleSignalsState>, void ()>::RunImpl<void (mojo::SimpleWatcher::*)(int, unsigned int, mojo::HandleSignalsState const&), std::__1::tuple<base::WeakPtr<mojo::SimpleWatcher>, int, unsigned int, mojo::HandleSignalsState>, 0ul, 1ul, 2ul, 3ul>(void (mojo::SimpleWatcher::*&&)(int, unsigned int, mojo::HandleSignalsState const&), std::__1::tuple<base::WeakPtr<mojo::SimpleWatcher>, int, unsigned int, mojo::HandleSignalsState>&&, std::__1::integer_sequence<unsigned long, 0ul, 1ul, 2ul, 3ul>) base/bind_internal.h:672 (services_unittests+0x52d53c5) #32 base::internal::Invoker<base::internal::BindState<void (mojo::SimpleWatcher::*)(int, unsigned int, mojo::HandleSignalsState const&), base::WeakPtr<mojo::SimpleWatcher>, int, unsigned int, mojo::HandleSignalsState>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641:12 (services_unittests+0x52d526e) #33 Run base/callback.h:97:12 (services_unittests+0x50da94c) #34 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x50da94c) #35 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x51139e1) #36 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x5113144) #37 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x5113144) #38 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x519fec4) #39 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x6440f26) #40 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x51125b0) #41 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x512a16e) #42 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x5129cb1) #43 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x5129b15) #44 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x51a0ab1) Previous write of size 8 at 0x7b5400002588 by thread T11: #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x1d2b72e) #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (services_unittests+0x273dda8) #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x273dda8) #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x273dda8) #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x273dda8) #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x273dda8) #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (services_unittests+0x273dda8) #7 ~__vector_base buildtools/third_party/libc++/trunk/include/vector:464 (services_unittests+0x273dda8) #8 ~vector buildtools/third_party/libc++/trunk/include/vector:555 (services_unittests+0x273dda8) #9 perfetto::TraceConfig::~TraceConfig() third_party/perfetto/src/tracing/core/trace_config.cc:36 (services_unittests+0x273dda8) #10 ~__tuple_leaf buildtools/third_party/libc++/trunk/include/tuple:170:7 (services_unittests+0x4f59e83) #11 ~__tuple_impl buildtools/third_party/libc++/trunk/include/tuple:364 (services_unittests+0x4f59e83) #12 ~tuple buildtools/third_party/libc++/trunk/include/tuple:469 (services_unittests+0x4f59e83) #13 ~BindState base/bind_internal.h:854 (services_unittests+0x4f59e83) #14 base::internal::BindState<tracing::ConsumerHost::EnableTracing(mojo::InterfaceRequest<tracing::mojom::TracingSessionHost>, mojo::InterfacePtr<tracing::mojom::TracingSessionClient>, perfetto::TraceConfig const&, tracing::mojom::TracingClientPriority)::$_2, base::WeakPtr<tracing::ConsumerHost>, mojo::InterfaceRequest<tracing::mojom::TracingSessionHost>, mojo::InterfacePtr<tracing::mojom::TracingSessionClient>, perfetto::TraceConfig, tracing::mojom::TracingClientPriority>::Destroy(base::internal::BindStateBase const*) base/bind_internal.h:857 (services_unittests+0x4f59e83) #15 Destruct base/callback_internal.cc:29:3 (services_unittests+0x505c5ec) #16 Release base/memory/ref_counted.h:407 (services_unittests+0x505c5ec) #17 Release base/memory/scoped_refptr.h:297 (services_unittests+0x505c5ec) #18 ~scoped_refptr base/memory/scoped_refptr.h:209 (services_unittests+0x505c5ec) #19 base::internal::CallbackBase::~CallbackBase() base/callback_internal.cc:84 (services_unittests+0x505c5ec) #20 tracing::PerfettoService::RequestTracingSession(tracing::mojom::TracingClientPriority, base::OnceCallback<void ()>) services/tracing/perfetto/perfetto_service.cc (services_unittests+0x4f5f7f9) #21 tracing::ConsumerHost::EnableTracing(mojo::InterfaceRequest<tracing::mojom::TracingSessionHost>, mojo::InterfacePtr<tracing::mojom::TracingSessionClient>, perfetto::TraceConfig const&, tracing::mojom::TracingClientPriority) services/tracing/perfetto/consumer_host.cc:504:13 (services_unittests+0x4f57182) #22 tracing::ThreadedPerfettoService::EnableTracingOnSequence(perfetto::TraceConfig const&) services/tracing/perfetto/consumer_host_unittest.cc:138:16 (services_unittests+0x25f6d63) #23 Invoke<void (tracing::ThreadedPerfettoService::*)(const perfetto::TraceConfig &), tracing::ThreadedPerfettoService *, perfetto::TraceConfig> base/bind_internal.h:499:12 (services_unittests+0x25f6ea0) #24 MakeItSo<void (tracing::ThreadedPerfettoService::*)(const perfetto::TraceConfig &), tracing::ThreadedPerfettoService *, perfetto::TraceConfig> base/bind_internal.h:599 (services_unittests+0x25f6ea0) #25 RunImpl<void (tracing::ThreadedPerfettoService::*)(const perfetto::TraceConfig &), std::__1::tuple<base::internal::UnretainedWrapper<tracing::ThreadedPerfettoService>, perfetto::TraceConfig>, 0, 1> base/bind_internal.h:672 (services_unittests+0x25f6ea0) #26 base::internal::Invoker<base::internal::BindState<void (tracing::ThreadedPerfettoService::*)(perfetto::TraceConfig const&), base::internal::UnretainedWrapper<tracing::ThreadedPerfettoService>, perfetto::TraceConfig>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x25f6ea0) #27 Run base/callback.h:97:12 (services_unittests+0x513698f) #28 base::(anonymous namespace)::PostTaskAndReplyRelay::RunTaskAndPostReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:97 (services_unittests+0x513698f) #29 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x5137047) #30 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x5137047) #31 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x5137047) #32 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x5137047) #33 Run base/callback.h:97:12 (services_unittests+0x50da94c) #34 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x50da94c) #35 base::internal::TaskTracker::RunContinueOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:741:19 (services_unittests+0x5113981) #36 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:762:7 (services_unittests+0x5112fb4) #37 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x5112fb4) #38 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x519fec4) #39 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x6440f26) #40 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x51125b0) #41 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x512a16e) #42 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x5129cb1) #43 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x5129b15) #44 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x51a0ab1) Thread T12 'ThreadPoolForeg' (tid=26386, running) created by thread T11 at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x1cbbc5b) #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+0x51a0556) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x51a0415) #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x512933d) #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x511f07e) #5 void base::internal::ThreadGroupImpl::ScopedWorkersExecutor::WorkerContainer::ForEachWorker<base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl()::'lambda0'(base::internal::WorkerThread*)>(base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl()::'lambda0'(base::internal::WorkerThread*)) base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x511f07e) #6 FlushImpl base/task/thread_pool/thread_group_impl.cc:184:23 (services_unittests+0x511a8e7) #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::Flush(base::internal::CheckedLock*) base/task/thread_pool/thread_group_impl.cc:122 (services_unittests+0x511a8e7) #8 base::internal::ThreadGroupImpl::WorkerThreadDelegateImpl::GetWork(base::internal::WorkerThread*) base/task/thread_pool/thread_group_impl.cc:599:12 (services_unittests+0x511a419) #9 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:308:51 (services_unittests+0x512a120) #10 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x5129cb1) #11 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x5129b15) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x51a0ab1) Thread T11 'ThreadPoolForeg' (tid=26384, 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:989:3 (services_unittests+0x1cbbc5b) #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+0x51a0556) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x51a0415) #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x512933d) #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x511f07e) #5 void base::internal::ThreadGroupImpl::ScopedWorkersExecutor::WorkerContainer::ForEachWorker<base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl()::'lambda0'(base::internal::WorkerThread*)>(base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl()::'lambda0'(base::internal::WorkerThread*)) base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x511f07e) #6 FlushImpl base/task/thread_pool/thread_group_impl.cc:184:23 (services_unittests+0x5118c3d) #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103 (services_unittests+0x5118c3d) #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+0x5118bd2) #9 base::internal::ThreadPoolImpl::Start(base::ThreadPool::InitParams const&, base::WorkerThreadObserver*) base/task/thread_pool/thread_pool_impl.cc:192:11 (services_unittests+0x510e105) #10 base::test::ScopedTaskEnvironment::InitializeThreadPool() base/test/scoped_task_environment.cc:411:30 (services_unittests+0x644005f) #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+0x643f9d6) #12 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<void>() base/test/scoped_task_environment.h:161:9 (services_unittests+0x1d2cce8) #13 TracingConsumerTest services/tracing/perfetto/consumer_host_unittest.cc:284:7 (services_unittests+0x25f7f20) #14 TracingConsumerTest_PrivacyFilterConfigInJson_Test services/tracing/perfetto/consumer_host_unittest.cc:622 (services_unittests+0x25f7f20) #15 testing::internal::TestFactoryImpl<tracing::TracingConsumerTest_PrivacyFilterConfigInJson_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (services_unittests+0x25f7f20) #16 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2fae00f) #17 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688 (services_unittests+0x2fae00f) #18 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2faed96) #19 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2fc1186) #20 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2fc05e9) #21 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2fc05e9) #22 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x6446c92) #23 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x6446c92) #24 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x21d47a8) #25 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x21d47a8) #26 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x21d47a8) #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+0x21d47a8) #28 Run base/callback.h:97:12 (services_unittests+0x64520d8) #29 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x64520d8) #30 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x6451ee7) #31 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x21d43de) SUMMARY: ThreadSanitizer: heap-use-after-free services/tracing/public/cpp/perfetto/perfetto_traced_process.h:52:46 in data_source_id ================== [26118:26384:0524/175049.787964:10982033702:ERROR:consumer_host.cc(255)] Timed out waiting for processes to ack BeginTracing: tracing_service_impl.cc: Tracing session 1 ended, total sessions:0 [ OK ] TracingConsumerTest.PrivacyFilterConfigInJson (164 ms) [ RUN ] TracingConsumerTest.TestConsumerPriority tracing_service_impl.cc: Configured tracing, #sources:1, duration:0 ms, #buffers:1, total buffer size:32768 KB, total sessions:1 tracing_service_impl.cc: Configured tracing, #sources:1, duration:0 ms, #buffers:1, total buffer size:32768 KB, total sessions:2 tracing_service_impl.cc: Configured tracing, #sources:1, duration:0 ms, #buffers:1, total buffer size:32768 KB, total sessions:3 tracing_service_impl.cc: Configured tracing, #sources:1, duration:0 ms, #buffers:1, total buffer size:32768 KB, total sessions:4 tracing_service_impl.cc: Tracing session 3 ended, total sessions:3 tracing_service_impl.cc: Tracing session 4 ended, total sessions:2 tracing_service_impl.cc: Tracing session 2 ended, total sessions:1 tracing_service_impl.cc: Tracing session 1 ended, total sessions:0 [ OK ] TracingConsumerTest.TestConsumerPriority (38 ms) [----------] 4 tests from TracingConsumerTest (1427 ms total) [----------] 6 tests from JsonTraceExporterTest [ RUN ] JsonTraceExporterTest.TestNoTraceEvents [ OK ] JsonTraceExporterTest.TestNoTraceEvents (0 ms) [ RUN ] JsonTraceExporterTest.TestBasic [ OK ] JsonTraceExporterTest.TestBasic (0 ms) [ RUN ] JsonTraceExporterTest.TestAllTraceEventButFlagsAndArgs [ OK ] JsonTraceExporterTest.TestAllTraceEventButFlagsAndArgs (0 ms) [ RUN ] JsonTraceExporterTest.TestAddFlagsAllButIdFlagsAndPhaseScope [ OK ] JsonTraceExporterTest.TestAddFlagsAllButIdFlagsAndPhaseScope (0 ms) [ RUN ] JsonTraceExporterTest.TestAddFlagsJustIdFlags [ OK ] JsonTraceExporterTest.TestAddFlagsJustIdFlags (0 ms) [ RUN ] JsonTraceExporterTest.TestAddFlagsJustPhaseScope [ OK ] JsonTraceExporterTest.TestAddFlagsJustPhaseScope (1 ms) [----------] 6 tests from JsonTraceExporterTest (3 ms total) [----------] Global test environment tear-down [==========] 10 tests from 2 test suites ran. (1432 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 4 warnings [ RUN ] TracingConsumerTest.PrivacyFilterConfig tracing_service_impl.cc: Configured tracing, #sources:1, duration:0 ms, #buffers:1, total buffer size:32768 KB, total sessions:1 tracing_service_impl.cc: Tracing session 1 ended, total sessions:0 [ OK ] TracingConsumerTest.PrivacyFilterConfig (28 ms) ================================================================================