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

Test 'TracingConsumerTest.DeleteConsumerWhenReceiving' completed with the following status(es): 'CRASH','SUCCESS' Test 'TracingConsumerTest.DeleteConsumerWhenReceiving' had the following logs when run: ================================================================================ [ RUN ] TracingConsumerTest.DeleteConsumerWhenReceiving 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=26082) Read of size 1 at 0x7b5400002aa7 by thread T14: #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 0x7b5400002aa0 by thread T10: #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 tracing::TestDataSource::~TestDataSource() services/tracing/perfetto/test_utils.cc:28:33 (services_unittests+0x26137e0) #2 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x2615c07) #3 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x2615c07) #4 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x2615c07) #5 ~MockProducer services/tracing/perfetto/test_utils.cc:265 (services_unittests+0x2615c07) #6 tracing::MockProducer::~MockProducer() services/tracing/perfetto/test_utils.cc:263 (services_unittests+0x2615c07) #7 base::DeleteHelper<tracing::MockProducer>::DoDelete(void const*) base/sequenced_task_runner_helpers.h:24:5 (services_unittests+0x25f96b7) #8 Invoke<void (*)(const void *), const void *> base/bind_internal.h:399:12 (services_unittests+0x50c3cf5) #9 MakeItSo<void (*)(const void *), const void *> base/bind_internal.h:599 (services_unittests+0x50c3cf5) #10 RunImpl<void (*)(const void *), std::__1::tuple<const void *>, 0> base/bind_internal.h:672 (services_unittests+0x50c3cf5) #11 base::internal::Invoker<base::internal::BindState<void (*)(void const*), void const*>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x50c3cf5) #12 Run base/callback.h:97:12 (services_unittests+0x50da94c) #13 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x50da94c) #14 base::internal::TaskTracker::RunContinueOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:741:19 (services_unittests+0x5113981) #15 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:762:7 (services_unittests+0x5112fb4) #16 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) #17 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) #18 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) #19 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x51125b0) #20 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x512a16e) #21 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x5129cb1) #22 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x5129b15) #23 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x51a0ab1) Thread T14 'ThreadPoolForeg' (tid=26190, running) created by thread T13 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 T10 'ThreadPoolForeg' (tid=26174, finished) created by thread T9 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) 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=26082) Read of size 8 at 0x7b5400002a90 by thread T14: #0 __get_long_pointer buildtools/third_party/libc++/trunk/include/string:1508:34 (services_unittests+0x50255ab) #1 __get_pointer buildtools/third_party/libc++/trunk/include/string:1520 (services_unittests+0x50255ab) #2 data buildtools/third_party/libc++/trunk/include/string:1248 (services_unittests+0x50255ab) #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+0x50255ab) #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 0x7b5400002a90 by thread T10: #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 tracing::TestDataSource::~TestDataSource() services/tracing/perfetto/test_utils.cc:28:33 (services_unittests+0x26137e0) #2 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x2615c07) #3 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x2615c07) #4 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x2615c07) #5 ~MockProducer services/tracing/perfetto/test_utils.cc:265 (services_unittests+0x2615c07) #6 tracing::MockProducer::~MockProducer() services/tracing/perfetto/test_utils.cc:263 (services_unittests+0x2615c07) #7 base::DeleteHelper<tracing::MockProducer>::DoDelete(void const*) base/sequenced_task_runner_helpers.h:24:5 (services_unittests+0x25f96b7) #8 Invoke<void (*)(const void *), const void *> base/bind_internal.h:399:12 (services_unittests+0x50c3cf5) #9 MakeItSo<void (*)(const void *), const void *> base/bind_internal.h:599 (services_unittests+0x50c3cf5) #10 RunImpl<void (*)(const void *), std::__1::tuple<const void *>, 0> base/bind_internal.h:672 (services_unittests+0x50c3cf5) #11 base::internal::Invoker<base::internal::BindState<void (*)(void const*), void const*>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x50c3cf5) #12 Run base/callback.h:97:12 (services_unittests+0x50da94c) #13 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x50da94c) #14 base::internal::TaskTracker::RunContinueOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:741:19 (services_unittests+0x5113981) #15 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:762:7 (services_unittests+0x5112fb4) #16 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) #17 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) #18 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) #19 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x51125b0) #20 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x512a16e) #21 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x5129cb1) #22 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x5129b15) #23 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x51a0ab1) Thread T14 'ThreadPoolForeg' (tid=26190, running) created by thread T13 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 T10 'ThreadPoolForeg' (tid=26174, finished) created by thread T9 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) SUMMARY: ThreadSanitizer: heap-use-after-free buildtools/third_party/libc++/trunk/include/string:1508:34 in __get_long_pointer ================== ================== WARNING: ThreadSanitizer: heap-use-after-free (pid=26082) Read of size 8 at 0x7b5400002a98 by thread T14: #0 __get_long_size buildtools/third_party/libc++/trunk/include/string:1488:34 (services_unittests+0x50255b7) #1 size buildtools/third_party/libc++/trunk/include/string:953 (services_unittests+0x50255b7) #2 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+0x50255b7) #3 set_name third_party/perfetto/include/perfetto/tracing/core/data_source_descriptor.h:67:51 (services_unittests+0x5609b55) #4 tracing::ProducerClient::NewDataSourceAdded(tracing::PerfettoTracedProcess::DataSourceBase const*) services/tracing/public/cpp/perfetto/producer_client.cc:92 (services_unittests+0x5609b55) #5 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) #6 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) #7 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) #8 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) #9 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) #10 Run base/callback.h:97:12 (services_unittests+0x50da94c) #11 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x50da94c) #12 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x51139e1) #13 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x5113144) #14 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) #15 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) #16 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) #17 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x51125b0) #18 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x512a16e) #19 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x5129cb1) #20 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x5129b15) #21 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x51a0ab1) Previous write of size 8 at 0x7b5400002a98 by thread T10: #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 tracing::TestDataSource::~TestDataSource() services/tracing/perfetto/test_utils.cc:28:33 (services_unittests+0x26137e0) #2 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x2615c07) #3 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x2615c07) #4 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x2615c07) #5 ~MockProducer services/tracing/perfetto/test_utils.cc:265 (services_unittests+0x2615c07) #6 tracing::MockProducer::~MockProducer() services/tracing/perfetto/test_utils.cc:263 (services_unittests+0x2615c07) #7 base::DeleteHelper<tracing::MockProducer>::DoDelete(void const*) base/sequenced_task_runner_helpers.h:24:5 (services_unittests+0x25f96b7) #8 Invoke<void (*)(const void *), const void *> base/bind_internal.h:399:12 (services_unittests+0x50c3cf5) #9 MakeItSo<void (*)(const void *), const void *> base/bind_internal.h:599 (services_unittests+0x50c3cf5) #10 RunImpl<void (*)(const void *), std::__1::tuple<const void *>, 0> base/bind_internal.h:672 (services_unittests+0x50c3cf5) #11 base::internal::Invoker<base::internal::BindState<void (*)(void const*), void const*>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x50c3cf5) #12 Run base/callback.h:97:12 (services_unittests+0x50da94c) #13 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x50da94c) #14 base::internal::TaskTracker::RunContinueOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:741:19 (services_unittests+0x5113981) #15 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:762:7 (services_unittests+0x5112fb4) #16 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) #17 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) #18 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) #19 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x51125b0) #20 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x512a16e) #21 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x5129cb1) #22 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x5129b15) #23 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x51a0ab1) Thread T14 'ThreadPoolForeg' (tid=26190, running) created by thread T13 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 T10 'ThreadPoolForeg' (tid=26174, finished) created by thread T9 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) SUMMARY: ThreadSanitizer: heap-use-after-free buildtools/third_party/libc++/trunk/include/string:1488:34 in __get_long_size ================== ================== WARNING: ThreadSanitizer: heap-use-after-free (pid=26082) Read of size 8 at 0x7b08000220c0 by thread T14: #0 memcpy /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:801:5 (services_unittests+0x1cc5f07) #1 copy buildtools/third_party/libc++/trunk/include/__string:225:50 (services_unittests+0x5025750) #2 __grow_by_and_replace buildtools/third_party/libc++/trunk/include/string:2160 (services_unittests+0x5025750) #3 std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::assign(char const*, unsigned long) buildtools/third_party/libc++/trunk/include/string:2221 (services_unittests+0x5025750) #4 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:9 (services_unittests+0x50255c6) #5 set_name third_party/perfetto/include/perfetto/tracing/core/data_source_descriptor.h:67:51 (services_unittests+0x5609b55) #6 tracing::ProducerClient::NewDataSourceAdded(tracing::PerfettoTracedProcess::DataSourceBase const*) services/tracing/public/cpp/perfetto/producer_client.cc:92 (services_unittests+0x5609b55) #7 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) #8 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) #9 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) #10 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) #11 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) #12 Run base/callback.h:97:12 (services_unittests+0x50da94c) #13 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x50da94c) #14 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x51139e1) #15 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x5113144) #16 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) #17 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) #18 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) #19 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x51125b0) #20 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x512a16e) #21 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x5129cb1) #22 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x5129b15) #23 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x51a0ab1) Previous write of size 8 at 0x7b08000220c0 by thread T10: #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+0x5607e0a) #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x5607e0a) #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x5607e0a) #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x5607e0a) #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x5607e0a) #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (services_unittests+0x5607e0a) #7 ~basic_string buildtools/third_party/libc++/trunk/include/string:2138 (services_unittests+0x5607e0a) #8 tracing::PerfettoTracedProcess::DataSourceBase::~DataSourceBase() services/tracing/public/cpp/perfetto/perfetto_traced_process.cc:25 (services_unittests+0x5607e0a) #9 ~TestDataSource services/tracing/perfetto/test_utils.cc:28:33 (services_unittests+0x26137d8) #10 tracing::TestDataSource::~TestDataSource() services/tracing/perfetto/test_utils.cc:28 (services_unittests+0x26137d8) #11 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x2615c07) #12 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x2615c07) #13 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x2615c07) #14 ~MockProducer services/tracing/perfetto/test_utils.cc:265 (services_unittests+0x2615c07) #15 tracing::MockProducer::~MockProducer() services/tracing/perfetto/test_utils.cc:263 (services_unittests+0x2615c07) #16 base::DeleteHelper<tracing::MockProducer>::DoDelete(void const*) base/sequenced_task_runner_helpers.h:24:5 (services_unittests+0x25f96b7) #17 Invoke<void (*)(const void *), const void *> base/bind_internal.h:399:12 (services_unittests+0x50c3cf5) #18 MakeItSo<void (*)(const void *), const void *> base/bind_internal.h:599 (services_unittests+0x50c3cf5) #19 RunImpl<void (*)(const void *), std::__1::tuple<const void *>, 0> base/bind_internal.h:672 (services_unittests+0x50c3cf5) #20 base::internal::Invoker<base::internal::BindState<void (*)(void const*), void const*>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x50c3cf5) #21 Run base/callback.h:97:12 (services_unittests+0x50da94c) #22 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x50da94c) #23 base::internal::TaskTracker::RunContinueOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:741:19 (services_unittests+0x5113981) #24 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:762:7 (services_unittests+0x5112fb4) #25 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) #26 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) #27 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) #28 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x51125b0) #29 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x512a16e) #30 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x5129cb1) #31 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x5129b15) #32 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x51a0ab1) Thread T14 'ThreadPoolForeg' (tid=26190, running) created by thread T13 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 T10 'ThreadPoolForeg' (tid=26174, finished) created by thread T9 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) SUMMARY: ThreadSanitizer: heap-use-after-free buildtools/third_party/libc++/trunk/include/__string:225:50 in copy ================== ================== WARNING: ThreadSanitizer: heap-use-after-free (pid=26082) Write of size 8 at 0x7b5400002a88 by thread T14: #0 tracing::PerfettoTracedProcess::DataSourceBase::StartTracingWithID(unsigned long, tracing::PerfettoProducer*, perfetto::DataSourceConfig const&) services/tracing/public/cpp/perfetto/perfetto_traced_process.cc:31:19 (services_unittests+0x5607e58) #1 tracing::ProducerClient::StartDataSource(unsigned long, perfetto::DataSourceConfig const&, base::OnceCallback<void ()>) services/tracing/public/cpp/perfetto/producer_client.cc:136:20 (services_unittests+0x560a27b) #2 StartDataSource services/tracing/perfetto/test_utils.cc:99:19 (services_unittests+0x26141dc) #3 non-virtual thunk to tracing::MockProducerClient::StartDataSource(unsigned long, perfetto::DataSourceConfig const&, base::OnceCallback<void ()>) services/tracing/perfetto/test_utils.cc (services_unittests+0x26141dc) #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:1259:13 (services_unittests+0x55aefdf) #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::DispatchNextMessageInQueue() mojo/public/cpp/bindings/lib/connector.cc:555:17 (services_unittests+0x52a066b) #15 Invoke<bool (mojo::Connector::*)(), base::WeakPtr<mojo::Connector>> base/bind_internal.h:499:12 (services_unittests+0x52a2f62) #16 Invoke<base::internal::IgnoreResultHelper<bool (mojo::Connector::*)()>, base::WeakPtr<mojo::Connector> > base/bind_internal.h:544 (services_unittests+0x52a2f62) #17 MakeItSo<base::internal::IgnoreResultHelper<bool (mojo::Connector::*)()>, base::WeakPtr<mojo::Connector>> base/bind_internal.h:619 (services_unittests+0x52a2f62) #18 RunImpl<base::internal::IgnoreResultHelper<bool (mojo::Connector::*)()>, std::__1::tuple<base::WeakPtr<mojo::Connector> >, 0> base/bind_internal.h:672 (services_unittests+0x52a2f62) #19 base::internal::Invoker<base::internal::BindState<base::internal::IgnoreResultHelper<bool (mojo::Connector::*)()>, base::WeakPtr<mojo::Connector> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x52a2f62) #20 Run base/callback.h:97:12 (services_unittests+0x50da94c) #21 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x50da94c) #22 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x51139e1) #23 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x5113144) #24 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) #25 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) #26 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) #27 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x51125b0) #28 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x512a16e) #29 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x5129cb1) #30 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x5129b15) #31 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x51a0ab1) Previous write of size 8 at 0x7b5400002a88 by thread T10: #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 tracing::TestDataSource::~TestDataSource() services/tracing/perfetto/test_utils.cc:28:33 (services_unittests+0x26137e0) #2 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x2615c07) #3 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x2615c07) #4 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x2615c07) #5 ~MockProducer services/tracing/perfetto/test_utils.cc:265 (services_unittests+0x2615c07) #6 tracing::MockProducer::~MockProducer() services/tracing/perfetto/test_utils.cc:263 (services_unittests+0x2615c07) #7 base::DeleteHelper<tracing::MockProducer>::DoDelete(void const*) base/sequenced_task_runner_helpers.h:24:5 (services_unittests+0x25f96b7) #8 Invoke<void (*)(const void *), const void *> base/bind_internal.h:399:12 (services_unittests+0x50c3cf5) #9 MakeItSo<void (*)(const void *), const void *> base/bind_internal.h:599 (services_unittests+0x50c3cf5) #10 RunImpl<void (*)(const void *), std::__1::tuple<const void *>, 0> base/bind_internal.h:672 (services_unittests+0x50c3cf5) #11 base::internal::Invoker<base::internal::BindState<void (*)(void const*), void const*>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x50c3cf5) #12 Run base/callback.h:97:12 (services_unittests+0x50da94c) #13 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x50da94c) #14 base::internal::TaskTracker::RunContinueOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:741:19 (services_unittests+0x5113981) #15 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:762:7 (services_unittests+0x5112fb4) #16 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) #17 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) #18 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) #19 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x51125b0) #20 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x512a16e) #21 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x5129cb1) #22 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x5129b15) #23 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x51a0ab1) Thread T14 'ThreadPoolForeg' (tid=26190, running) created by thread T13 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 T10 'ThreadPoolForeg' (tid=26174, finished) created by thread T9 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) SUMMARY: ThreadSanitizer: heap-use-after-free services/tracing/public/cpp/perfetto/perfetto_traced_process.cc:31:19 in tracing::PerfettoTracedProcess::DataSourceBase::StartTracingWithID(unsigned long, tracing::PerfettoProducer*, perfetto::DataSourceConfig const&) ================== ================== WARNING: ThreadSanitizer: heap-use-after-free (virtual call vs free) (pid=26082) Read of size 8 at 0x7b5400002a80 by thread T14: #0 tracing::PerfettoTracedProcess::DataSourceBase::StartTracingWithID(unsigned long, tracing::PerfettoProducer*, perfetto::DataSourceConfig const&) services/tracing/public/cpp/perfetto/perfetto_traced_process.cc:32:3 (services_unittests+0x5607e64) #1 tracing::ProducerClient::StartDataSource(unsigned long, perfetto::DataSourceConfig const&, base::OnceCallback<void ()>) services/tracing/public/cpp/perfetto/producer_client.cc:136:20 (services_unittests+0x560a27b) #2 StartDataSource services/tracing/perfetto/test_utils.cc:99:19 (services_unittests+0x26141dc) #3 non-virtual thunk to tracing::MockProducerClient::StartDataSource(unsigned long, perfetto::DataSourceConfig const&, base::OnceCallback<void ()>) services/tracing/perfetto/test_utils.cc (services_unittests+0x26141dc) #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:1259:13 (services_unittests+0x55aefdf) #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::DispatchNextMessageInQueue() mojo/public/cpp/bindings/lib/connector.cc:555:17 (services_unittests+0x52a066b) #15 Invoke<bool (mojo::Connector::*)(), base::WeakPtr<mojo::Connector>> base/bind_internal.h:499:12 (services_unittests+0x52a2f62) #16 Invoke<base::internal::IgnoreResultHelper<bool (mojo::Connector::*)()>, base::WeakPtr<mojo::Connector> > base/bind_internal.h:544 (services_unittests+0x52a2f62) #17 MakeItSo<base::internal::IgnoreResultHelper<bool (mojo::Connector::*)()>, base::WeakPtr<mojo::Connector>> base/bind_internal.h:619 (services_unittests+0x52a2f62) #18 RunImpl<base::internal::IgnoreResultHelper<bool (mojo::Connector::*)()>, std::__1::tuple<base::WeakPtr<mojo::Connector> >, 0> base/bind_internal.h:672 (services_unittests+0x52a2f62) #19 base::internal::Invoker<base::internal::BindState<base::internal::IgnoreResultHelper<bool (mojo::Connector::*)()>, base::WeakPtr<mojo::Connector> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x52a2f62) #20 Run base/callback.h:97:12 (services_unittests+0x50da94c) #21 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x50da94c) #22 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x51139e1) #23 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x5113144) #24 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) #25 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) #26 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) #27 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x51125b0) #28 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x512a16e) #29 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x5129cb1) #30 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x5129b15) #31 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x51a0ab1) Previous write of size 8 at 0x7b5400002a80 by thread T10: #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 tracing::TestDataSource::~TestDataSource() services/tracing/perfetto/test_utils.cc:28:33 (services_unittests+0x26137e0) #2 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x2615c07) #3 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x2615c07) #4 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x2615c07) #5 ~MockProducer services/tracing/perfetto/test_utils.cc:265 (services_unittests+0x2615c07) #6 tracing::MockProducer::~MockProducer() services/tracing/perfetto/test_utils.cc:263 (services_unittests+0x2615c07) #7 base::DeleteHelper<tracing::MockProducer>::DoDelete(void const*) base/sequenced_task_runner_helpers.h:24:5 (services_unittests+0x25f96b7) #8 Invoke<void (*)(const void *), const void *> base/bind_internal.h:399:12 (services_unittests+0x50c3cf5) #9 MakeItSo<void (*)(const void *), const void *> base/bind_internal.h:599 (services_unittests+0x50c3cf5) #10 RunImpl<void (*)(const void *), std::__1::tuple<const void *>, 0> base/bind_internal.h:672 (services_unittests+0x50c3cf5) #11 base::internal::Invoker<base::internal::BindState<void (*)(void const*), void const*>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x50c3cf5) #12 Run base/callback.h:97:12 (services_unittests+0x50da94c) #13 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x50da94c) #14 base::internal::TaskTracker::RunContinueOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:741:19 (services_unittests+0x5113981) #15 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:762:7 (services_unittests+0x5112fb4) #16 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) #17 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) #18 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) #19 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x51125b0) #20 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x512a16e) #21 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x5129cb1) #22 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x5129b15) #23 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x51a0ab1) Thread T14 'ThreadPoolForeg' (tid=26190, running) created by thread T13 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 T10 'ThreadPoolForeg' (tid=26174, finished) created by thread T9 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) SUMMARY: ThreadSanitizer: heap-use-after-free (virtual call vs free) services/tracing/public/cpp/perfetto/perfetto_traced_process.cc:32:3 in tracing::PerfettoTracedProcess::DataSourceBase::StartTracingWithID(unsigned long, tracing::PerfettoProducer*, perfetto::DataSourceConfig const&) ================== Pure virtual function called! Received signal 6 #0 0x564d088a0b88 (/b/s/w/ir/out/Release/services_unittests+0x1cd9b87) #1 0x564d0bd4f5c1 (/b/s/w/ir/out/Release/services_unittests+0x51885c0) #2 0x564d0bc281f0 (/b/s/w/ir/out/Release/services_unittests+0x50611ef) #3 0x564d0bd4efdc (/b/s/w/ir/out/Release/services_unittests+0x5187fdb) #4 0x564d08889904 (/b/s/w/ir/out/Release/services_unittests+0x1cc2903) #5 0x564d088bfead (/b/s/w/ir/out/Release/services_unittests+0x1cf8eac) #6 0x7f9061a47330 (/lib/x86_64-linux-gnu/libpthread-2.19.so+0x1032f) #7 0x7f905bdcec37 (/lib/x86_64-linux-gnu/libc-2.19.so+0x36c36) #8 0x7f905bdd2028 (/lib/x86_64-linux-gnu/libc-2.19.so+0x3a027) #9 0x564d08888837 (/b/s/w/ir/out/Release/services_unittests+0x1cc1836) #10 0x564d0bbf0ec3 (/b/s/w/ir/out/Release/services_unittests+0x5029ec2) #11 0x564d0bbf2d0d (/b/s/w/ir/out/Release/services_unittests+0x502bd0c) #12 0x564d0c1cee74 (/b/s/w/ir/out/Release/services_unittests+0x5607e73) #13 0x564d0c1d127c (/b/s/w/ir/out/Release/services_unittests+0x560a27b) #14 0x564d091db1dd (/b/s/w/ir/out/Release/services_unittests+0x26141dc) #15 0x564d0c175fe0 (/b/s/w/ir/out/Release/services_unittests+0x55aefdf) #16 0x564d0c1d2562 (/b/s/w/ir/out/Release/services_unittests+0x560b561) #17 0x564d0be6dd80 (/b/s/w/ir/out/Release/services_unittests+0x52a6d7f) #18 0x564d0be6d7fb (/b/s/w/ir/out/Release/services_unittests+0x52a67fa) #19 0x564d0be71d5b (/b/s/w/ir/out/Release/services_unittests+0x52aad5a) #20 0x564d0be6fa4b (/b/s/w/ir/out/Release/services_unittests+0x52a8a4a) #21 0x564d0be7a4c7 (/b/s/w/ir/out/Release/services_unittests+0x52b34c6) #22 0x564d0be79516 (/b/s/w/ir/out/Release/services_unittests+0x52b2515) #23 0x564d0be71d5b (/b/s/w/ir/out/Release/services_unittests+0x52aad5a) #24 0x564d0be67bed (/b/s/w/ir/out/Release/services_unittests+0x52a0bec) #25 0x564d0be6766c (/b/s/w/ir/out/Release/services_unittests+0x52a066b) #26 0x564d0be69f63 (/b/s/w/ir/out/Release/services_unittests+0x52a2f62) #27 0x564d0bca194d (/b/s/w/ir/out/Release/services_unittests+0x50da94c) #28 0x564d0bcda9e2 (/b/s/w/ir/out/Release/services_unittests+0x51139e1) #29 0x564d0bcda145 (/b/s/w/ir/out/Release/services_unittests+0x5113144) #30 0x564d0bd66ec5 (/b/s/w/ir/out/Release/services_unittests+0x519fec4) #31 0x564d0d007f27 (/b/s/w/ir/out/Release/services_unittests+0x6440f26) #32 0x564d0bcd95b1 (/b/s/w/ir/out/Release/services_unittests+0x51125b0) #33 0x564d0bcf116f (/b/s/w/ir/out/Release/services_unittests+0x512a16e) #34 0x564d0bcf0cb2 (/b/s/w/ir/out/Release/services_unittests+0x5129cb1) #35 0x564d0bcf0b16 (/b/s/w/ir/out/Release/services_unittests+0x5129b15) #36 0x564d0bd67ab2 (/b/s/w/ir/out/Release/services_unittests+0x51a0ab1) #37 0x564d08882bbd (/b/s/w/ir/out/Release/services_unittests+0x1cbbbbc) #38 0x7f9061a3f184 (/lib/x86_64-linux-gnu/libpthread-2.19.so+0x8183) #39 0x7f905be9603d (/lib/x86_64-linux-gnu/libc-2.19.so+0xfe03c) r8: 00007f90526ff700 r9: 00007f90526ff700 r10: 0000000000000008 r11: 0000000000000206 r12: 0000000000000001 r13: 00007b08000220c0 r14: 0000564d07749b34 r15: 00007b3c000d0020 di: 00000000000065e2 si: 000000000000664e bp: 0000000000000000 bx: 00007f90526bfb80 dx: 0000000000000006 ax: 0000000000000000 cx: 00007f905bdcec37 sp: 00007f90526bca78 ip: 00007f905bdcec37 efl: 0000000000000206 cgf: 0000000000000033 erf: 0000000000000000 trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000 [end of stack trace] Calling _exit(1). Core file will not be generated. ThreadSanitizer: reported 6 warnings [ RUN ] TracingConsumerTest.DeleteConsumerWhenReceiving 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.DeleteConsumerWhenReceiving (49 ms) ================================================================================