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

Test 'TracingConsumerTest.PrivacyFilterConfig' completed with the following status(es): 'CRASH','SUCCESS' Test 'TracingConsumerTest.PrivacyFilterConfig' had the following logs when run: ================================================================================ [ RUN ] TracingConsumerTest.PrivacyFilterConfig tracing_service_impl.cc: Configured tracing, #sources:1, duration:0 ms, #buffers:1, total buffer size:32768 KB, total sessions:1 ================================================================= ==651==ERROR: AddressSanitizer: heap-use-after-free on address 0x616000010ea7 at pc 0x000117fd3a1b bp 0x70000b704110 sp 0x70000b704108 READ of size 1 at 0x616000010ea7 thread T11 #0 0x117fd3a1a 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&) ??:0:0 #1 0x119175db9 in tracing::ProducerClient::NewDataSourceAdded(tracing::PerfettoTracedProcess::DataSourceBase const*) ??:0:0 #2 0x1191750ca in tracing::ProducerClient::BindClientAndHostPipesOnSequence(mojo::InterfaceRequest<tracing::mojom::ProducerClient>, mojo::InterfacePtrInfo<tracing::mojom::ProducerHost>) ??:0:0 #3 0x119178fdc 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*) ??:0:0 #4 0x11822883e in base::TaskAnnotator::RunTask(char const*, base::PendingTask*) ??:0:0 #5 0x1182c8238 in base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) ??:0:0 #6 0x1182c66f1 in base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) ??:0:0 #7 0x1183fcda9 in base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) ??:0:0 #8 0x11d914215 in base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) ??:0:0 #9 0x1182c4dc5 in base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) ??:0:0 #10 0x1182eab5a in base::internal::WorkerThread::RunWorker() ??:0:0 #11 0x1182ea0c5 in base::internal::WorkerThread::RunPooledWorker() ??:0:0 #12 0x1183fde8d in base::(anonymous namespace)::ThreadFunc(void*) ??:0:0 #13 0x7fff7c12f660 in _pthread_body ??:0:0 #14 0x7fff7c12f50c in _pthread_start ??:0:0 #15 0x7fff7c12ebf8 in thread_start ??:0:0 0x616000010ea7 is located 39 bytes inside of 576-byte region [0x616000010e80,0x6160000110c0) freed by thread T7 here: #0 0x1301cfd56 in __asan_memmove ??:0:0 #1 0x10fce1c9d in tracing::MockProducer::~MockProducer() ??:0:0 #2 0x11822883e in base::TaskAnnotator::RunTask(char const*, base::PendingTask*) ??:0:0 #3 0x1182c80e8 in base::internal::TaskTracker::RunContinueOnShutdown(base::internal::Task*) ??:0:0 #4 0x1182c66df in base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) ??:0:0 #5 0x1183fcda9 in base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) ??:0:0 #6 0x11d914215 in base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) ??:0:0 #7 0x1182c4dc5 in base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) ??:0:0 #8 0x1182eab5a in base::internal::WorkerThread::RunWorker() ??:0:0 #9 0x1182e9d05 in base::internal::WorkerThread::RunBackgroundPooledWorker() ??:0:0 #10 0x1183fde8d in base::(anonymous namespace)::ThreadFunc(void*) ??:0:0 #11 0x7fff7c12f660 in _pthread_body ??:0:0 #12 0x7fff7c12f50c in _pthread_start ??:0:0 #13 0x7fff7c12ebf8 in thread_start ??:0:0 previously allocated by thread T7 here: #0 0x1301cfc0d in __asan_memmove ??:0:0 #1 0x117fcf8e9 in operator new(unsigned long) ??:0:0 #2 0x10fce0f2b 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) ??:0:0 #3 0x10fc9085e 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) ??:0:0 #4 0x10fc90d0c 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*) ??:0:0 #5 0x11822883e in base::TaskAnnotator::RunTask(char const*, base::PendingTask*) ??:0:0 #6 0x1182c80e8 in base::internal::TaskTracker::RunContinueOnShutdown(base::internal::Task*) ??:0:0 #7 0x1182c66df in base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) ??:0:0 #8 0x1183fcda9 in base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) ??:0:0 #9 0x11d914215 in base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) ??:0:0 #10 0x1182c4dc5 in base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) ??:0:0 #11 0x1182eab5a in base::internal::WorkerThread::RunWorker() ??:0:0 #12 0x1182e9d05 in base::internal::WorkerThread::RunBackgroundPooledWorker() ??:0:0 #13 0x1183fde8d in base::(anonymous namespace)::ThreadFunc(void*) ??:0:0 #14 0x7fff7c12f660 in _pthread_body ??:0:0 #15 0x7fff7c12f50c in _pthread_start ??:0:0 #16 0x7fff7c12ebf8 in thread_start ??:0:0 Thread T11 created by T0 here: #0 0x1301c9dea in __sanitizer_weak_hook_memcmp ??:0:0 #1 0x1183fd3a1 in base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) ??:0:0 #2 0x1182e89ac in base::internal::WorkerThread::Start(base::WorkerThreadObserver*) ??:0:0 #3 0x1182d9d9d 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*)) ??:0:0 #4 0x1182ccd1d in base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() ??:0:0 #5 0x1182cc90d in base::internal::ThreadGroupImpl::Start(int, int, base::TimeDelta, scoped_refptr<base::TaskRunner>, base::WorkerThreadObserver*, base::internal::ThreadGroup::WorkerEnvironment, base::Optional<base::TimeDelta>) ??:0:0 #6 0x1182e2832 in base::internal::ThreadPoolImpl::Start(base::ThreadPool::InitParams const&, base::WorkerThreadObserver*) ??:0:0 #7 0x11d910829 in base::test::ScopedTaskEnvironment::InitializeThreadPool() ??:0:0 #8 0x11d90fc4f 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) ??:0:0 #9 0x10fc96ac2 in testing::internal::TestFactoryImpl<tracing::TracingConsumerTest_PrivacyFilterConfig_Test>::CreateTest() ??:0:0 #10 0x112314b73 in testing::TestInfo::Run() ??:0:0 #11 0x112316476 in testing::TestSuite::Run() ??:0:0 #12 0x112343d66 in testing::internal::UnitTestImpl::RunAllTests() ??:0:0 #13 0x11234296c in testing::UnitTest::Run() ??:0:0 #14 0x11d92429a in base::TestSuite::Run() ??:0:0 #15 0x11d9700ba in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) ??:0:0 #16 0x11d96fc71 in base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) ??:0:0 #17 0x10f2f5273 in main ??:0:0 #18 0x7fff7be17014 in start ??:0:0 Thread T7 created by T0 here: #0 0x1301c9dea in __sanitizer_weak_hook_memcmp ??:0:0 #1 0x1183fd3a1 in base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) ??:0:0 #2 0x1182e89ac in base::internal::WorkerThread::Start(base::WorkerThreadObserver*) ??:0:0 #3 0x1182d9d9d 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*)) ??:0:0 #4 0x1182ccd1d in base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() ??:0:0 #5 0x1182cc90d in base::internal::ThreadGroupImpl::Start(int, int, base::TimeDelta, scoped_refptr<base::TaskRunner>, base::WorkerThreadObserver*, base::internal::ThreadGroup::WorkerEnvironment, base::Optional<base::TimeDelta>) ??:0:0 #6 0x1182e292c in base::internal::ThreadPoolImpl::Start(base::ThreadPool::InitParams const&, base::WorkerThreadObserver*) ??:0:0 #7 0x11d910829 in base::test::ScopedTaskEnvironment::InitializeThreadPool() ??:0:0 #8 0x11d90fc4f 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) ??:0:0 #9 0x10fc96992 in testing::internal::TestFactoryImpl<tracing::TracingConsumerTest_NotifiesOnTracingEnabledWaitsForProducerAndInitializedPids_Test>::CreateTest() ??:0:0 #10 0x112314b73 in testing::TestInfo::Run() ??:0:0 #11 0x112316476 in testing::TestSuite::Run() ??:0:0 #12 0x112343d66 in testing::internal::UnitTestImpl::RunAllTests() ??:0:0 #13 0x11234296c in testing::UnitTest::Run() ??:0:0 #14 0x11d92429a in base::TestSuite::Run() ??:0:0 #15 0x11d9700ba in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) ??:0:0 #16 0x11d96fc71 in base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) ??:0:0 #17 0x10f2f5273 in main ??:0:0 #18 0x7fff7be17014 in start ??:0:0 SUMMARY: AddressSanitizer: heap-use-after-free (/b/s/w/ir/out/Release/./services_unittests:x86_64+0x109895a1a) Shadow bytes around the buggy address: 0x1c2c00002180: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x1c2c00002190: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x1c2c000021a0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x1c2c000021b0: fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa fa 0x1c2c000021c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x1c2c000021d0: fd fd fd fd[fd]fd fd fd fd fd fd fd fd fd fd fd 0x1c2c000021e0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x1c2c000021f0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x1c2c00002200: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x1c2c00002210: fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa 0x1c2c00002220: 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 ==651==ABORTING [ RUN ] TracingConsumerTest.PrivacyFilterConfig tracing_service_impl.cc: Configured tracing, #sources:1, duration:0 ms, #buffers:1, total buffer size:32768 KB, total sessions:1 tracing_service_impl.cc: Tracing session 1 ended, total sessions:0 [ OK ] TracingConsumerTest.PrivacyFilterConfig (20 ms) ================================================================================