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 ================================================================= ==22480==ERROR: AddressSanitizer: heap-use-after-free on address 0x616000020da7 at pc 0x564722204084 bp 0x7fcecc5031f0 sp 0x7fcecc5031e8 READ of size 1 at 0x616000020da7 thread T14 (ThreadPoolForeg) #0 0x564722204083 in __is_long ./../../buildtools/third_party/libc++/trunk/include/string:1426:39 #1 0x564722204083 in __get_pointer ./../../buildtools/third_party/libc++/trunk/include/string:1520:0 #2 0x564722204083 in data ./../../buildtools/third_party/libc++/trunk/include/string:1248:0 #3 0x564722204083 in 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:0 #4 0x564722ecbf18 in set_name ./../../third_party/perfetto/include/perfetto/tracing/core/data_source_descriptor.h:67:51 #5 0x564722ecbf18 in tracing::ProducerClient::NewDataSourceAdded(tracing::PerfettoTracedProcess::DataSourceBase const*) ./../../services/tracing/public/cpp/perfetto/producer_client.cc:92:0 #6 0x564722ecb1f2 in tracing::ProducerClient::BindClientAndHostPipesOnSequence(mojo::InterfaceRequest<tracing::mojom::ProducerClient>, mojo::InterfacePtrInfo<tracing::mojom::ProducerHost>) ./../../services/tracing/public/cpp/perfetto/producer_client.cc:82:5 #7 0x564722ecf898 in 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 #8 0x564722ecf898 in 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:0 #9 0x564722ecf898 in 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:0 #10 0x564722ecf898 in 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:0 #11 0x564722394ba2 in Run ./../../base/callback.h:97:12 #12 0x564722394ba2 in base::TaskAnnotator::RunTask(char const*, base::PendingTask*) ./../../base/task/common/task_annotator.cc:143:0 #13 0x56472241cf03 in base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) ./../../base/task/thread_pool/task_tracker.cc:747:19 #14 0x56472241b4b3 in RunTaskWithShutdownBehavior ./../../base/task/thread_pool/task_tracker.cc:765:7 #15 0x56472241b4b3 in base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) ./../../base/task/thread_pool/task_tracker.cc:593:0 #16 0x56472255be11 in base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) ./../../base/task/thread_pool/task_tracker_posix.cc:24:16 #17 0x5647270b3a5d in base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) ./../../base/test/scoped_task_environment.cc:689:46 #18 0x5647224197e2 in base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) ./../../base/task/thread_pool/task_tracker.cc:455:5 #19 0x564722451959 in base::internal::WorkerThread::RunWorker() ./../../base/task/thread_pool/worker_thread.cc:320:34 #20 0x564722450e0c in base::internal::WorkerThread::RunPooledWorker() ./../../base/task/thread_pool/worker_thread.cc:222:3 #21 0x56472255d90b in base::(anonymous namespace)::ThreadFunc(void*) ./../../base/threading/platform_thread_posix.cc:81:13 #22 0x7fcedc88f6b9 in start_thread ??:0:0 0x616000020da7 is located 39 bytes inside of 576-byte region [0x616000020d80,0x616000020fc0) freed by thread T11 (ThreadPoolForeg) here: #0 0x564719f1e8bd in operator delete(void*) _asan_rtl_:3 #1 0x56471b55c300 in operator() ./../../buildtools/third_party/libc++/trunk/include/memory:2338:5 #2 0x56471b55c300 in reset ./../../buildtools/third_party/libc++/trunk/include/memory:2651:0 #3 0x56471b55c300 in ~unique_ptr ./../../buildtools/third_party/libc++/trunk/include/memory:2605:0 #4 0x56471b55c300 in ~MockProducer ./../../services/tracing/perfetto/test_utils.cc:265:0 #5 0x56471b55c300 in tracing::MockProducer::~MockProducer() ./../../services/tracing/perfetto/test_utils.cc:263:0 #6 0x564722394ba2 in Run ./../../base/callback.h:97:12 #7 0x564722394ba2 in base::TaskAnnotator::RunTask(char const*, base::PendingTask*) ./../../base/task/common/task_annotator.cc:143:0 #8 0x56472241cda3 in base::internal::TaskTracker::RunContinueOnShutdown(base::internal::Task*) ./../../base/task/thread_pool/task_tracker.cc:741:19 #9 0x56472241b222 in RunTaskWithShutdownBehavior ./../../base/task/thread_pool/task_tracker.cc:762:7 #10 0x56472241b222 in base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) ./../../base/task/thread_pool/task_tracker.cc:593:0 #11 0x56472255be11 in base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) ./../../base/task/thread_pool/task_tracker_posix.cc:24:16 #12 0x5647270b3a5d in base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) ./../../base/test/scoped_task_environment.cc:689:46 #13 0x5647224197e2 in base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) ./../../base/task/thread_pool/task_tracker.cc:455:5 #14 0x564722451959 in base::internal::WorkerThread::RunWorker() ./../../base/task/thread_pool/worker_thread.cc:320:34 #15 0x564722450e0c in base::internal::WorkerThread::RunPooledWorker() ./../../base/task/thread_pool/worker_thread.cc:222:3 #16 0x56472255d90b in base::(anonymous namespace)::ThreadFunc(void*) ./../../base/threading/platform_thread_posix.cc:81:13 #17 0x7fcedc88f6b9 in start_thread ??:0:0 previously allocated by thread T9 (ThreadPoolForeg) here: #0 0x564719f1e05d in operator new(unsigned long) _asan_rtl_:3 #1 0x56471b55b92c in make_unique<tracing::TestDataSource, const std::__1::basic_string<char> &, unsigned long &> ./../../buildtools/third_party/libc++/trunk/include/memory:3131:28 #2 0x56471b55b92c in tracing::MockProducer::MockProducer(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, perfetto::TracingService*, base::OnceCallback<void ()>, base::OnceCallback<void ()>, unsigned long) ./../../services/tracing/perfetto/test_utils.cc:254:0 #3 0x56471b50b303 in make_unique<tracing::MockProducer, std::__1::basic_string<char>, const std::__1::basic_string<char> &, perfetto::TracingService *, base::OnceCallback<void ()>, base::OnceCallback<void ()>, unsigned long &> ./../../buildtools/third_party/libc++/trunk/include/memory:3131:32 #4 0x56471b50b303 in tracing::ThreadedPerfettoService::CreateProducerOnSequence(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>, unsigned long) ./../../services/tracing/perfetto/consumer_host_unittest.cc:115:0 #5 0x56471b50b79a in Invoke<void (tracing::ThreadedPerfettoService::*)(const std::__1::basic_string<char> &, base::OnceCallback<void ()>, base::OnceCallback<void ()>, unsigned long), tracing::ThreadedPerfettoService *, std::__1::basic_string<char>, base::RepeatingCallback<void ()>, base::OnceCallback<void ()>, unsigned long> ./../../base/bind_internal.h:499:12 #6 0x56471b50b79a in MakeItSo<void (tracing::ThreadedPerfettoService::*)(const std::__1::basic_string<char> &, base::OnceCallback<void ()>, base::OnceCallback<void ()>, unsigned long), tracing::ThreadedPerfettoService *, std::__1::basic_string<char>, base::RepeatingCallback<void ()>, base::OnceCallback<void ()>, unsigned long> ./../../base/bind_internal.h:599:0 #7 0x56471b50b79a in RunImpl<void (tracing::ThreadedPerfettoService::*)(const std::__1::basic_string<char> &, base::OnceCallback<void ()>, base::OnceCallback<void ()>, unsigned long), std::__1::tuple<base::internal::UnretainedWrapper<tracing::ThreadedPerfettoService>, std::__1::basic_string<char>, base::RepeatingCallback<void ()>, base::OnceCallback<void ()>, unsigned long>, 0, 1, 2, 3, 4> ./../../base/bind_internal.h:672:0 #8 0x56471b50b79a in base::internal::Invoker<base::internal::BindState<void (tracing::ThreadedPerfettoService::*)(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>, unsigned long), base::internal::UnretainedWrapper<tracing::ThreadedPerfettoService>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, base::RepeatingCallback<void ()>, base::OnceCallback<void ()>, unsigned long>, void ()>::RunOnce(base::internal::BindStateBase*) ./../../base/bind_internal.h:641:0 #9 0x564722394ba2 in Run ./../../base/callback.h:97:12 #10 0x564722394ba2 in base::TaskAnnotator::RunTask(char const*, base::PendingTask*) ./../../base/task/common/task_annotator.cc:143:0 #11 0x56472241cda3 in base::internal::TaskTracker::RunContinueOnShutdown(base::internal::Task*) ./../../base/task/thread_pool/task_tracker.cc:741:19 #12 0x56472241b222 in RunTaskWithShutdownBehavior ./../../base/task/thread_pool/task_tracker.cc:762:7 #13 0x56472241b222 in base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) ./../../base/task/thread_pool/task_tracker.cc:593:0 #14 0x56472255be11 in base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) ./../../base/task/thread_pool/task_tracker_posix.cc:24:16 #15 0x5647270b3a5d in base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) ./../../base/test/scoped_task_environment.cc:689:46 #16 0x5647224197e2 in base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) ./../../base/task/thread_pool/task_tracker.cc:455:5 #17 0x564722451959 in base::internal::WorkerThread::RunWorker() ./../../base/task/thread_pool/worker_thread.cc:320:34 #18 0x564722450e0c in base::internal::WorkerThread::RunPooledWorker() ./../../base/task/thread_pool/worker_thread.cc:222:3 #19 0x56472255d90b in base::(anonymous namespace)::ThreadFunc(void*) ./../../base/threading/platform_thread_posix.cc:81:13 #20 0x7fcedc88f6b9 in start_thread ??:0:0 Thread T14 (ThreadPoolForeg) created by T0 here: #0 0x564719ee010a in pthread_create _asan_rtl_:3 #1 0x56472255cb5c in base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) ./../../base/threading/platform_thread_posix.cc:120:13 #2 0x56472244f585 in base::internal::WorkerThread::Start(base::WorkerThreadObserver*) ./../../base/task/thread_pool/worker_thread.cc:68:3 #3 0x56472243873f in operator() ./../../base/task/thread_pool/thread_group_impl.cc:185:15 #4 0x56472243873f in 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:0 #5 0x5647224299b3 in FlushImpl ./../../base/task/thread_pool/thread_group_impl.cc:184:23 #6 0x5647224299b3 in base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() ./../../base/task/thread_pool/thread_group_impl.cc:103:0 #7 0x56472242970a in 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 #8 0x56472240f845 in base::internal::ThreadPoolImpl::Start(base::ThreadPool::InitParams const&, base::WorkerThreadObserver*) ./../../base/task/thread_pool/thread_pool_impl.cc:192:11 #9 0x5647270b16c4 in base::test::ScopedTaskEnvironment::InitializeThreadPool() ./../../base/test/scoped_task_environment.cc:411:30 #10 0x5647270b0b48 in 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 #11 0x56471b50b9a8 in TracingConsumerTest ./../../services/tracing/perfetto/consumer_host_unittest.cc:284:7 #12 0x56471b50b9a8 in TracingConsumerTest_DeleteConsumerWhenReceiving_Test ./../../services/tracing/perfetto/consumer_host_unittest.cc:448:0 #13 0x56471b50b9a8 in testing::internal::TestFactoryImpl<tracing::TracingConsumerTest_DeleteConsumerWhenReceiving_Test>::CreateTest() ./../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460:0 #14 0x56471d2dfc3d in HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> ./../../third_party/googletest/src/googletest/src/gtest.cc:0:0 #15 0x56471d2dfc3d in testing::TestInfo::Run() ./../../third_party/googletest/src/googletest/src/gtest.cc:2688:0 #16 0x56471d2e13c6 in testing::TestSuite::Run() ./../../third_party/googletest/src/googletest/src/gtest.cc:2828:28 #17 0x56471d30b016 in testing::internal::UnitTestImpl::RunAllTests() ./../../third_party/googletest/src/googletest/src/gtest.cc:5285:44 #18 0x56471d309ad1 in HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> ./../../third_party/googletest/src/googletest/src/gtest.cc:0:0 #19 0x56471d309ad1 in testing::UnitTest::Run() ./../../third_party/googletest/src/googletest/src/gtest.cc:4873:0 #20 0x5647270c0c86 in RUN_ALL_TESTS ./../../third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 #21 0x5647270c0c86 in base::TestSuite::Run() ./../../base/test/test_suite.cc:316:0 #22 0x5647270d937c in Run ./../../base/callback.h:97:12 #23 0x5647270d937c in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) ./../../base/test/launcher/unit_test_launcher.cc:158:0 #24 0x5647270d8e1d in base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) ./../../base/test/launcher/unit_test_launcher.cc:508:10 #25 0x56471ab187a4 in main ./../../services/test/run_all_unittests.cc:97:10 #26 0x7fced6bab82f in __libc_start_main ??:0:0 Thread T11 (ThreadPoolForeg) created by T10 (ThreadPoolForeg) here: #0 0x564719ee010a in pthread_create _asan_rtl_:3 #1 0x56472255cb5c in base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) ./../../base/threading/platform_thread_posix.cc:120:13 #2 0x56472244f585 in base::internal::WorkerThread::Start(base::WorkerThreadObserver*) ./../../base/task/thread_pool/worker_thread.cc:68:3 #3 0x56472243873f in operator() ./../../base/task/thread_pool/thread_group_impl.cc:185:15 #4 0x56472243873f in 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:0 #5 0x56472242dbb5 in FlushImpl ./../../base/task/thread_pool/thread_group_impl.cc:184:23 #6 0x56472242dbb5 in base::internal::ThreadGroupImpl::ScopedWorkersExecutor::Flush(base::internal::CheckedLock*) ./../../base/task/thread_pool/thread_group_impl.cc:122:0 #7 0x56472242d28c in base::internal::ThreadGroupImpl::WorkerThreadDelegateImpl::GetWork(base::internal::WorkerThread*) ./../../base/task/thread_pool/thread_group_impl.cc:599:12 #8 0x5647224518f1 in base::internal::WorkerThread::RunWorker() ./../../base/task/thread_pool/worker_thread.cc:308:51 #9 0x564722450e0c in base::internal::WorkerThread::RunPooledWorker() ./../../base/task/thread_pool/worker_thread.cc:222:3 #10 0x56472255d90b in base::(anonymous namespace)::ThreadFunc(void*) ./../../base/threading/platform_thread_posix.cc:81:13 #11 0x7fcedc88f6b9 in start_thread ??:0:0 Thread T10 (ThreadPoolForeg) created by T9 (ThreadPoolForeg) here: #0 0x564719ee010a in pthread_create _asan_rtl_:3 #1 0x56472255cb5c in base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) ./../../base/threading/platform_thread_posix.cc:120:13 #2 0x56472244f585 in base::internal::WorkerThread::Start(base::WorkerThreadObserver*) ./../../base/task/thread_pool/worker_thread.cc:68:3 #3 0x56472243873f in operator() ./../../base/task/thread_pool/thread_group_impl.cc:185:15 #4 0x56472243873f in 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:0 #5 0x56472242dbb5 in FlushImpl ./../../base/task/thread_pool/thread_group_impl.cc:184:23 #6 0x56472242dbb5 in base::internal::ThreadGroupImpl::ScopedWorkersExecutor::Flush(base::internal::CheckedLock*) ./../../base/task/thread_pool/thread_group_impl.cc:122:0 #7 0x56472242d28c in base::internal::ThreadGroupImpl::WorkerThreadDelegateImpl::GetWork(base::internal::WorkerThread*) ./../../base/task/thread_pool/thread_group_impl.cc:599:12 #8 0x5647224518f1 in base::internal::WorkerThread::RunWorker() ./../../base/task/thread_pool/worker_thread.cc:308:51 #9 0x564722450e0c in base::internal::WorkerThread::RunPooledWorker() ./../../base/task/thread_pool/worker_thread.cc:222:3 #10 0x56472255d90b in base::(anonymous namespace)::ThreadFunc(void*) ./../../base/threading/platform_thread_posix.cc:81:13 #11 0x7fcedc88f6b9 in start_thread ??:0:0 Thread T9 (ThreadPoolForeg) created by T0 here: #0 0x564719ee010a in pthread_create _asan_rtl_:3 #1 0x56472255cb5c in base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) ./../../base/threading/platform_thread_posix.cc:120:13 #2 0x56472244f585 in base::internal::WorkerThread::Start(base::WorkerThreadObserver*) ./../../base/task/thread_pool/worker_thread.cc:68:3 #3 0x56472243873f in operator() ./../../base/task/thread_pool/thread_group_impl.cc:185:15 #4 0x56472243873f in 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:0 #5 0x5647224299b3 in FlushImpl ./../../base/task/thread_pool/thread_group_impl.cc:184:23 #6 0x5647224299b3 in base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() ./../../base/task/thread_pool/thread_group_impl.cc:103:0 #7 0x56472242970a in 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 #8 0x56472240f845 in base::internal::ThreadPoolImpl::Start(base::ThreadPool::InitParams const&, base::WorkerThreadObserver*) ./../../base/task/thread_pool/thread_pool_impl.cc:192:11 #9 0x5647270b16c4 in base::test::ScopedTaskEnvironment::InitializeThreadPool() ./../../base/test/scoped_task_environment.cc:411:30 #10 0x5647270b0b48 in 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 #11 0x56471b50af48 in TracingConsumerTest ./../../services/tracing/perfetto/consumer_host_unittest.cc:284:7 #12 0x56471b50af48 in TracingConsumerTest_ReceiveTestPackets_Test ./../../services/tracing/perfetto/consumer_host_unittest.cc:427:0 #13 0x56471b50af48 in testing::internal::TestFactoryImpl<tracing::TracingConsumerTest_ReceiveTestPackets_Test>::CreateTest() ./../../third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460:0 #14 0x56471d2dfc3d in HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> ./../../third_party/googletest/src/googletest/src/gtest.cc:0:0 #15 0x56471d2dfc3d in testing::TestInfo::Run() ./../../third_party/googletest/src/googletest/src/gtest.cc:2688:0 #16 0x56471d2e13c6 in testing::TestSuite::Run() ./../../third_party/googletest/src/googletest/src/gtest.cc:2828:28 #17 0x56471d30b016 in testing::internal::UnitTestImpl::RunAllTests() ./../../third_party/googletest/src/googletest/src/gtest.cc:5285:44 #18 0x56471d309ad1 in HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> ./../../third_party/googletest/src/googletest/src/gtest.cc:0:0 #19 0x56471d309ad1 in testing::UnitTest::Run() ./../../third_party/googletest/src/googletest/src/gtest.cc:4873:0 #20 0x5647270c0c86 in RUN_ALL_TESTS ./../../third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 #21 0x5647270c0c86 in base::TestSuite::Run() ./../../base/test/test_suite.cc:316:0 #22 0x5647270d937c in Run ./../../base/callback.h:97:12 #23 0x5647270d937c in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) ./../../base/test/launcher/unit_test_launcher.cc:158:0 #24 0x5647270d8e1d in base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) ./../../base/test/launcher/unit_test_launcher.cc:508:10 #25 0x56471ab187a4 in main ./../../services/test/run_all_unittests.cc:97:10 #26 0x7fced6bab82f in __libc_start_main ??:0:0 SUMMARY: AddressSanitizer: heap-use-after-free (/b/s/w/ir/out/Release/services_unittests+0x132ad083) Shadow bytes around the buggy address: 0x0c2c7fffc160: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c2c7fffc170: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c2c7fffc180: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c2c7fffc190: fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa fa 0x0c2c7fffc1a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x0c2c7fffc1b0: fd fd fd fd[fd]fd fd fd fd fd fd fd fd fd fd fd 0x0c2c7fffc1c0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c2c7fffc1d0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c2c7fffc1e0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c2c7fffc1f0: fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa 0x0c2c7fffc200: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb Shadow gap: cc ==22480==ABORTING [ 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 (46 ms) ================================================================================