New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 856312 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

exo_unittests SurfaceTest.SetCropAndBufferTransform flakily leaks

Project Member Reported by thakis@chromium.org, Jun 25 2018

Issue description

https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/Linux%20Chromium%20OS%20ASan%20LSan%20Tests%20%281%29/28033

https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/Linux%20Chromium%20OS%20ASan%20LSan%20Tests%20%281%29/28037

https://logs.chromium.org/v/?s=chromium%2Fbuildbucket%2Fcr-buildbucket.appspot.com%2F8942824347206563072%2F%2B%2Fsteps%2Fexo_unittests%2F0%2Flogs%2FSurfaceTest.SetCropAndBufferTransform__x2f_1%2F0


==12103==ERROR: LeakSanitizer: detected memory leaks
Indirect leak of 120 byte(s) in 1 object(s) allocated from:
    #0 0x51c8f2 in operator new(unsigned long) /b/build/slave/linux_upload_clang/build/src/third_party/llvm/compiler-rt/lib/asan/asan_new_delete.cc:106:3
    #1 0x7794b3 in make_unique<exo::Buffer::Texture, ui::ContextFactory *&, viz::ContextProvider *, gfx::GpuMemoryBuffer *, const unsigned int &, const unsigned int &, base::TimeDelta &> buildtools/third_party/libc++/trunk/include/memory:3114:28
    #2 0x7794b3 in exo::Buffer::ProduceTransferableResource(exo::LayerTreeFrameSinkHolder*, bool, viz::TransferableResource*) components/exo/buffer.cc:441
    #3 0x7f78a0 in exo::Surface::UpdateResource(exo::LayerTreeFrameSinkHolder*) components/exo/surface.cc:787:35
    #4 0x7f72d9 in exo::Surface::AppendSurfaceHierarchyContentsToFrame(gfx::Point const&, float, exo::LayerTreeFrameSinkHolder*, viz::CompositorFrame*) components/exo/surface.cc:636:5
    #5 0x80087d in exo::SurfaceTreeHost::SubmitCompositorFrame() components/exo/surface_tree_host.cc:245:18
    #6 0x7d6319 in exo::ShellSurfaceBase::OnSurfaceCommit() components/exo/shell_surface_base.cc:798:3
    #7 0x7f3713 in exo::Surface::Commit() components/exo/surface.cc:479:16
    #8 0x6e7d02 in exo::(anonymous namespace)::SurfaceTest_SetCropAndBufferTransform_Test::TestBody() components/exo/surface_unittest.cc:547:12
    #9 0x2d75ea2 in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc
    #10 0x2d77e04 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2667:11
    #11 0x2d791d6 in testing::TestCase::Run() third_party/googletest/src/googletest/src/gtest.cc:2785:28
    #12 0x2d9e8d6 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5047:43
    #13 0x2d9db25 in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc
    #14 0x302480a in RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2329:46
    #15 0x302480a in base::TestSuite::Run() base/test/test_suite.cc:275
    #16 0x3029dcb in Run base/callback.h:99:12
    #17 0x3029dcb in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225
    #18 0x302ae21 in base::LaunchUnitTestsSerially(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:585:10
    #19 0x52042a in main components/exo/test/run_all_unittests.cc:20:10
    #20 0x7fc4f728df44 in __libc_start_main /build/eglibc-ripdx6/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 88 byte(s) in 1 object(s) allocated from:
    #0 0x51c8f2 in operator new(unsigned long) /b/build/slave/linux_upload_clang/build/src/third_party/llvm/compiler-rt/lib/asan/asan_new_delete.cc:106:3
    #1 0x7799bb in BindRepeating<void (exo::Buffer::*)(std::__1::unique_ptr<exo::Buffer::Texture, std::__1::default_delete<exo::Buffer::Texture> >, const base::RepeatingCallback<void ()> &), base::WeakPtr<exo::Buffer>, base::internal::PassedWrapper<std::__1::unique_ptr<exo::Buffer::Texture, std::__1::default_delete<exo::Buffer::Texture> > >, base::RepeatingCallback<void ()> > base/bind.h:260:23
    #2 0x7799bb in Bind<void (exo::Buffer::*)(std::__1::unique_ptr<exo::Buffer::Texture, std::__1::default_delete<exo::Buffer::Texture> >, const base::RepeatingCallback<void ()> &), base::WeakPtr<exo::Buffer>, base::internal::PassedWrapper<std::__1::unique_ptr<exo::Buffer::Texture, std::__1::default_delete<exo::Buffer::Texture> > >, base::RepeatingCallback<void ()> > base/bind.h:272
    #3 0x7799bb in exo::Buffer::ProduceTransferableResource(exo::LayerTreeFrameSinkHolder*, bool, viz::TransferableResource*) components/exo/buffer.cc:469
    #4 0x7f78a0 in exo::Surface::UpdateResource(exo::LayerTreeFrameSinkHolder*) components/exo/surface.cc:787:35
    #5 0x7f72d9 in exo::Surface::AppendSurfaceHierarchyContentsToFrame(gfx::Point const&, float, exo::LayerTreeFrameSinkHolder*, viz::CompositorFrame*) components/exo/surface.cc:636:5
    #6 0x80087d in exo::SurfaceTreeHost::SubmitCompositorFrame() components/exo/surface_tree_host.cc:245:18
    #7 0x7d6319 in exo::ShellSurfaceBase::OnSurfaceCommit() components/exo/shell_surface_base.cc:798:3
    #8 0x7f3713 in exo::Surface::Commit() components/exo/surface.cc:479:16
    #9 0x6e7d02 in exo::(anonymous namespace)::SurfaceTest_SetCropAndBufferTransform_Test::TestBody() components/exo/surface_unittest.cc:547:12
    #10 0x2d75ea2 in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc
    #11 0x2d77e04 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2667:11
    #12 0x2d791d6 in testing::TestCase::Run() third_party/googletest/src/googletest/src/gtest.cc:2785:28
    #13 0x2d9e8d6 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5047:43
    #14 0x2d9db25 in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc
    #15 0x302480a in RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2329:46
    #16 0x302480a in base::TestSuite::Run() base/test/test_suite.cc:275
    #17 0x3029dcb in Run base/callback.h:99:12
    #18 0x3029dcb in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225
    #19 0x302ae21 in base::LaunchUnitTestsSerially(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:585:10
    #20 0x52042a in main components/exo/test/run_all_unittests.cc:20:10
    #21 0x7fc4f728df44 in __libc_start_main /build/eglibc-ripdx6/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 72 byte(s) in 1 object(s) allocated from:
    #0 0x51c8f2 in operator new(unsigned long) /b/build/slave/linux_upload_clang/build/src/third_party/llvm/compiler-rt/lib/asan/asan_new_delete.cc:106:3
    #1 0x2e3d136 in base::internal::WeakReferenceOwner::GetRef() const base/memory/weak_ptr.cc:56:13
    #2 0x7e8406 in AsWeakPtr base/memory/weak_ptr.h:341:45
    #3 0x7e8406 in exo::Surface::Attach(exo::Buffer*) components/exo/surface.cc:234
    #4 0x6e7cad in exo::(anonymous namespace)::SurfaceTest_SetCropAndBufferTransform_Test::TestBody() components/exo/surface_unittest.cc:543:12
    #5 0x2d75ea2 in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc
    #6 0x2d77e04 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2667:11
    #7 0x2d791d6 in testing::TestCase::Run() third_party/googletest/src/googletest/src/gtest.cc:2785:28
    #8 0x2d9e8d6 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5047:43
    #9 0x2d9db25 in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc
    #10 0x302480a in RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2329:46
    #11 0x302480a in base::TestSuite::Run() base/test/test_suite.cc:275
    #12 0x3029dcb in Run base/callback.h:99:12
    #13 0x3029dcb in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225
    #14 0x302ae21 in base::LaunchUnitTestsSerially(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:585:10
    #15 0x52042a in main components/exo/test/run_all_unittests.cc:20:10
    #16 0x7fc4f728df44 in __libc_start_main /build/eglibc-ripdx6/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 72 byte(s) in 1 object(s) allocated from:
    #0 0x51c8f2 in operator new(unsigned long) /b/build/slave/linux_upload_clang/build/src/third_party/llvm/compiler-rt/lib/asan/asan_new_delete.cc:106:3
    #1 0x2e9e8ce in make_unique<base::SequenceCheckerImpl::Core> buildtools/third_party/libc++/trunk/include/memory:3114:28
    #2 0x2e9e8ce in base::SequenceCheckerImpl::CalledOnValidSequence() const base/sequence_checker_impl.cc:42
    #3 0x2e3ca28 in base::internal::WeakReference::Flag::Invalidate() base/memory/weak_ptr.cc:20:3
    #4 0x2e3cf61 in Invalidate base/memory/weak_ptr.cc:63:12
    #5 0x2e3cf61 in base::internal::WeakReferenceOwner::~WeakReferenceOwner() base/memory/weak_ptr.cc:50
    #6 0x778b66 in ~CancelableCallbackImpl base/cancelable_callback.h:72:37
    #7 0x778b66 in exo::Buffer::~Buffer() components/exo/buffer.cc:405
    #8 0x6f018b in operator() buildtools/third_party/libc++/trunk/include/memory:2321:5
    #9 0x6f018b in reset buildtools/third_party/libc++/trunk/include/memory:2634
    #10 0x6f018b in ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2588
    #11 0x6f018b in exo::(anonymous namespace)::SurfaceTest_SetCropAndBufferTransform_Test::TestBody() components/exo/surface_unittest.cc:714
    #12 0x2d75ea2 in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc
    #13 0x2d77e04 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2667:11
    #14 0x2d791d6 in testing::TestCase::Run() third_party/googletest/src/googletest/src/gtest.cc:2785:28
    #15 0x2d9e8d6 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5047:43
    #16 0x2d9db25 in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc
    #17 0x302480a in RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2329:46
    #18 0x302480a in base::TestSuite::Run() base/test/test_suite.cc:275
    #19 0x3029dcb in Run base/callback.h:99:12
    #20 0x3029dcb in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225
    #21 0x302ae21 in base::LaunchUnitTestsSerially(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:585:10
    #22 0x52042a in main components/exo/test/run_all_unittests.cc:20:10
    #23 0x7fc4f728df44 in __libc_start_main /build/eglibc-ripdx6/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 72 byte(s) in 1 object(s) allocated from:
    #0 0x51c8f2 in operator new(unsigned long) /b/build/slave/linux_upload_clang/build/src/third_party/llvm/compiler-rt/lib/asan/asan_new_delete.cc:106:3
    #1 0x2e3d136 in base::internal::WeakReferenceOwner::GetRef() const base/memory/weak_ptr.cc:56:13
    #2 0x77779d in GetWeakPtr base/memory/weak_ptr.h:310:45
    #3 0x77779d in exo::Buffer::Texture::ScheduleWaitForRelease(base::TimeDelta) components/exo/buffer.cc:349
    #4 0x77656e in exo::Buffer::Texture::ReleaseWhenQueryResultIsAvailable(base::RepeatingCallback<void ()> const&) components/exo/buffer.cc:329:3
    #5 0x775f02 in exo::Buffer::Texture::ReleaseTexImage(base::RepeatingCallback<void ()> const&, gpu::SyncToken const&, bool) components/exo/buffer.cc:278:7
    #6 0x7b69a1 in Run base/callback.h:99:12
    #7 0x7b69a1 in exo::LayerTreeFrameSinkHolder::ReclaimResources(std::__1::vector<viz::ReturnedResource, std::__1::allocator<viz::ReturnedResource> > const&) components/exo/layer_tree_frame_sink_holder.cc:134
    #8 0x312d42b in aura::LayerTreeFrameSinkLocal::ReclaimResources(std::__1::vector<viz::ReturnedResource, std::__1::allocator<viz::ReturnedResource> > const&) ui/aura/local/layer_tree_frame_sink_local.cc:144:12
    #9 0x68b36af in viz::SurfaceResourceHolder::UnrefResources(std::__1::vector<viz::ReturnedResource, std::__1::allocator<viz::ReturnedResource> > const&) components/viz/service/frame_sinks/surface_resource_holder.cc:68:12
    #10 0x69082e4 in viz::Surface::UnrefFrameResourcesAndRunCallbacks(base::Optional<viz::Surface::FrameData>) components/viz/service/surfaces/surface.cc:516:20
    #11 0x69076bb in viz::Surface::~Surface() components/viz/service/surfaces/surface.cc:42:3
    #12 0x6930bea in operator() buildtools/third_party/libc++/trunk/include/memory:2321:5
    #13 0x6930bea in reset buildtools/third_party/libc++/trunk/include/memory:2634
    #14 0x6930bea in ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2588
    #15 0x6930bea in viz::SurfaceManager::DestroySurfaceInternal(viz::SurfaceId const&) components/viz/service/surfaces/surface_manager.cc:577
    #16 0x692780a in viz::SurfaceManager::GarbageCollectSurfaces() components/viz/service/surfaces/surface_manager.cc:244:5
    #17 0x692afd0 in viz::SurfaceManager::InvalidateFrameSinkId(viz::FrameSinkId const&) components/viz/service/surfaces/surface_manager.cc:173:3
    #18 0x6889e7a in viz::FrameSinkManagerImpl::InvalidateFrameSinkId(viz::FrameSinkId const&) components/viz/service/frame_sinks/frame_sink_manager_impl.cc:122:20
    #19 0x670d861 in viz::HostFrameSinkManager::InvalidateFrameSinkId(viz::FrameSinkId const&) components/viz/host/host_frame_sink_manager.cc:90:24
    #20 0x524b085 in ui::Compositor::~Compositor() ui/compositor/compositor.cc:259:30
    #21 0x524c8ad in ui::Compositor::~Compositor() ui/compositor/compositor.cc:231:27
    #22 0x31217cc in aura::WindowTreeHostPlatform::~WindowTreeHostPlatform() ui/aura/window_tree_host_platform.cc:86:3
    #23 0x6d4f830 in ~AshWindowTreeHostPlatform ash/host/ash_window_tree_host_platform.cc:51:55
    #24 0x6d4f830 in ash::AshWindowTreeHostPlatform::~AshWindowTreeHostPlatform() ash/host/ash_window_tree_host_platform.cc:51
    #25 0x6d68c62 in operator() buildtools/third_party/libc++/trunk/include/memory:2321:5
    #26 0x6d68c62 in reset buildtools/third_party/libc++/trunk/include/memory:2634
    #27 0x6d68c62 in ash::RootWindowController::~RootWindowController() ash/root_window_controller.cc:287
    #28 0x6d2c078 in ash::WindowTreeHostManager::Shutdown() ash/display/window_tree_host_manager.cc:229:3
    #29 0x6dc3d95 in ash::Shell::~Shell() ash/shell.cc:904:30
    #30 0x6dc910d in ash::Shell::~Shell() ash/shell.cc:720:17
    #31 0x6cf3058 in ash::AshTestHelper::TearDown() ash/test/ash_test_helper.cc:301:5
    #32 0x6cef876 in ash::AshTestBase::TearDown() ash/test/ash_test_base.cc:199:21
    #33 0x6cf238 in exo::(anonymous namespace)::SurfaceTest::TearDown() components/exo/surface_unittest.cc:49:24
    #34 0x2d77e04 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2667:11
    #35 0x2d791d6 in testing::TestCase::Run() third_party/googletest/src/googletest/src/gtest.cc:2785:28
    #36 0x2d9e8d6 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5047:43
    #37 0x2d9db25 in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc
Indirect leak of 72 byte(s) in 1 object(s) allocated from:
    #0 0x51c8f2 in operator new(unsigned long) /b/build/slave/linux_upload_clang/build/src/third_party/llvm/compiler-rt/lib/asan/asan_new_delete.cc:106:3
    #1 0x2e9e8ce in make_unique<base::SequenceCheckerImpl::Core> buildtools/third_party/libc++/trunk/include/memory:3114:28
    #2 0x2e9e8ce in base::SequenceCheckerImpl::CalledOnValidSequence() const base/sequence_checker_impl.cc:42
    #3 0x2e3cdca in IsValid base/memory/weak_ptr.cc:26:3
    #4 0x2e3cdca in base::internal::WeakReference::is_valid() const base/memory/weak_ptr.cc:44
    #5 0x77d4e4 in get base/memory/weak_ptr.h:243:17
    #6 0x77d4e4 in operator bool base/memory/weak_ptr.h:256
    #7 0x77d4e4 in IsCancelled<base::WeakPtr<exo::Buffer::Texture>> base/bind_internal.h:937
    #8 0x77d4e4 in ApplyCancellationTraitsImpl<void (exo::Buffer::Texture::*)(), std::__1::tuple<base::WeakPtr<exo::Buffer::Texture> >, 0> base/bind_internal.h:734
    #9 0x77d4e4 in bool base::internal::ApplyCancellationTraits<base::internal::BindState<void (exo::Buffer::Texture::*)(), base::WeakPtr<exo::Buffer::Texture> > >(base::internal::BindStateBase const*) base/bind_internal.h:745
    #10 0x2df8fb3 in IsCancelled base/callback_internal.h:89:12
    #11 0x2df8fb3 in base::internal::CallbackBase::IsCancelled() const base/callback_internal.cc:62
    #12 0x2e44354 in base::MessageLoop::DoWork() base/message_loop/message_loop.cc:361:27
    #13 0x2faaca0 in base::MessagePumpLibevent::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_libevent.cc:210:31
    #14 0x2e41684 in base::MessageLoop::Run(bool) base/message_loop/message_loop.cc:271:12
    #15 0x2e9667d in base::RunLoop::Run() base/run_loop.cc:102:14
    #16 0x2e97b62 in base::RunLoop::RunUntilIdle() base/run_loop.cc:115:3
    #17 0x6cf307a in ash::AshTestHelper::TearDown() ash/test/ash_test_helper.cc:305:19
    #18 0x6cef876 in ash::AshTestBase::TearDown() ash/test/ash_test_base.cc:199:21
    #19 0x6cf238 in exo::(anonymous namespace)::SurfaceTest::TearDown() components/exo/surface_unittest.cc:49:24
    #20 0x2d77e04 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2667:11
    #21 0x2d791d6 in testing::TestCase::Run() third_party/googletest/src/googletest/src/gtest.cc:2785:28
    #22 0x2d9e8d6 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5047:43
    #23 0x2d9db25 in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc
    #24 0x302480a in RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2329:46
    #25 0x302480a in base::TestSuite::Run() base/test/test_suite.cc:275
    #26 0x3029dcb in Run base/callback.h:99:12
    #27 0x3029dcb in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225
    #28 0x302ae21 in base::LaunchUnitTestsSerially(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:585:10
    #29 0x52042a in main components/exo/test/run_all_unittests.cc:20:10
    #30 0x7fc4f728df44 in __libc_start_main /build/eglibc-ripdx6/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 72 byte(s) in 1 object(s) allocated from:
    #0 0x51c8f2 in operator new(unsigned long) /b/build/slave/linux_upload_clang/build/src/third_party/llvm/compiler-rt/lib/asan/asan_new_delete.cc:106:3
    #1 0x2e9e8ce in make_unique<base::SequenceCheckerImpl::Core> buildtools/third_party/libc++/trunk/include/memory:3114:28
    #2 0x2e9e8ce in base::SequenceCheckerImpl::CalledOnValidSequence() const base/sequence_checker_impl.cc:42
    #3 0x2e3cdca in IsValid base/memory/weak_ptr.cc:26:3
    #4 0x2e3cdca in base::internal::WeakReference::is_valid() const base/memory/weak_ptr.cc:44
    #5 0x7e8b49 in get base/memory/weak_ptr.h:243:17
    #6 0x7e8b49 in operator bool base/memory/weak_ptr.h:256
    #7 0x7e8b49 in exo::Surface::BufferAttachment::Reset(base::WeakPtr<exo::Buffer>) components/exo/surface.cc:774
    #8 0x7e8446 in exo::Surface::Attach(exo::Buffer*) components/exo/surface.cc:234:19
    #9 0x6e7cad in exo::(anonymous namespace)::SurfaceTest_SetCropAndBufferTransform_Test::TestBody() components/exo/surface_unittest.cc:543:12
    #10 0x2d75ea2 in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc
    #11 0x2d77e04 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2667:11
    #12 0x2d791d6 in testing::TestCase::Run() third_party/googletest/src/googletest/src/gtest.cc:2785:28
    #13 0x2d9e8d6 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5047:43
    #14 0x2d9db25 in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc
    #15 0x302480a in RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2329:46
    #16 0x302480a in base::TestSuite::Run() base/test/test_suite.cc:275
    #17 0x3029dcb in Run base/callback.h:99:12
    #18 0x3029dcb in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225
    #19 0x302ae21 in base::LaunchUnitTestsSerially(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:585:10
    #20 0x52042a in main components/exo/test/run_all_unittests.cc:20:10
    #21 0x7fc4f728df44 in __libc_start_main /build/eglibc-ripdx6/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 72 byte(s) in 1 object(s) allocated from:
    #0 0x51c8f2 in operator new(unsigned long) /b/build/slave/linux_upload_clang/build/src/third_party/llvm/compiler-rt/lib/asan/asan_new_delete.cc:106:3
    #1 0x2e3d136 in base::internal::WeakReferenceOwner::GetRef() const base/memory/weak_ptr.cc:56:13
    #2 0x77bb54 in GetWeakPtr base/memory/weak_ptr.h:310:45
    #3 0x77bb54 in MakeForwarder<> base/cancelable_callback.h:108
    #4 0x77bb54 in base::internal::CancelableCallbackImpl<base::RepeatingCallback<void ()> >::callback() const base/cancelable_callback.h:99
    #5 0x7799b1 in exo::Buffer::ProduceTransferableResource(exo::LayerTreeFrameSinkHolder*, bool, viz::TransferableResource*) components/exo/buffer.cc:471:58
    #6 0x7f78a0 in exo::Surface::UpdateResource(exo::LayerTreeFrameSinkHolder*) components/exo/surface.cc:787:35
    #7 0x7f72d9 in exo::Surface::AppendSurfaceHierarchyContentsToFrame(gfx::Point const&, float, exo::LayerTreeFrameSinkHolder*, viz::CompositorFrame*) components/exo/surface.cc:636:5
    #8 0x80087d in exo::SurfaceTreeHost::SubmitCompositorFrame() components/exo/surface_tree_host.cc:245:18
    #9 0x7d6319 in exo::ShellSurfaceBase::OnSurfaceCommit() components/exo/shell_surface_base.cc:798:3
    #10 0x7f3713 in exo::Surface::Commit() components/exo/surface.cc:479:16
    #11 0x6e7d02 in exo::(anonymous namespace)::SurfaceTest_SetCropAndBufferTransform_Test::TestBody() components/exo/surface_unittest.cc:547:12
    #12 0x2d75ea2 in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc
    #13 0x2d77e04 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2667:11
    #14 0x2d791d6 in testing::TestCase::Run() third_party/googletest/src/googletest/src/gtest.cc:2785:28
    #15 0x2d9e8d6 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5047:43
    #16 0x2d9db25 in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc
    #17 0x302480a in RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2329:46
    #18 0x302480a in base::TestSuite::Run() base/test/test_suite.cc:275
    #19 0x3029dcb in Run base/callback.h:99:12
    #20 0x3029dcb in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225
    #21 0x302ae21 in base::LaunchUnitTestsSerially(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:585:10
    #22 0x52042a in main components/exo/test/run_all_unittests.cc:20:10
    #23 0x7fc4f728df44 in __libc_start_main /build/eglibc-ripdx6/eglibc-2.19/csu/libc-start.c:287
Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x51c8f2 in operator new(unsigned long) /b/build/slave/linux_upload_clang/build/src/third_party/llvm/compiler-rt/lib/asan/asan_new_delete.cc:106:3
    #1 0x77bb99 in BindRepeating<void (base::internal::CancelableCallbackImpl<base::RepeatingCallback<void ()> >::*&)(), base::WeakPtr<base::internal::CancelableCallbackImpl<base::RepeatingCallback<void ()> > > > base/bind.h:260:23
    #2 0x77bb99 in MakeForwarder<> base/cancelable_callback.h:108
    #3 0x77bb99 in base::internal::CancelableCallbackImpl<base::RepeatingCallback<void ()> >::callback() const base/cancelable_callback.h:99
    #4 0x7799b1 in exo::Buffer::ProduceTransferableResource(exo::LayerTreeFrameSinkHolder*, bool, viz::TransferableResource*) components/exo/buffer.cc:471:58
    #5 0x7f78a0 in exo::Surface::UpdateResource(exo::LayerTreeFrameSinkHolder*) components/exo/surface.cc:787:35
    #6 0x7f72d9 in exo::Surface::AppendSurfaceHierarchyContentsToFrame(gfx::Point const&, float, exo::LayerTreeFrameSinkHolder*, viz::CompositorFrame*) components/exo/surface.cc:636:5
    #7 0x80087d in exo::SurfaceTreeHost::SubmitCompositorFrame() components/exo/surface_tree_host.cc:245:18
    #8 0x7d6319 in exo::ShellSurfaceBase::OnSurfaceCommit() components/exo/shell_surface_base.cc:798:3
    #9 0x7f3713 in exo::Surface::Commit() components/exo/surface.cc:479:16
    #10 0x6e7d02 in exo::(anonymous namespace)::SurfaceTest_SetCropAndBufferTransform_Test::TestBody() components/exo/surface_unittest.cc:547:12
    #11 0x2d75ea2 in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc
    #12 0x2d77e04 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2667:11
    #13 0x2d791d6 in testing::TestCase::Run() third_party/googletest/src/googletest/src/gtest.cc:2785:28
    #14 0x2d9e8d6 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5047:43
    #15 0x2d9db25 in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc
    #16 0x302480a in RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2329:46
    #17 0x302480a in base::TestSuite::Run() base/test/test_suite.cc:275
    #18 0x3029dcb in Run base/callback.h:99:12
    #19 0x3029dcb in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225
    #20 0x302ae21 in base::LaunchUnitTestsSerially(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:585:10
    #21 0x52042a in main components/exo/test/run_all_unittests.cc:20:10
    #22 0x7fc4f728df44 in __libc_start_main /build/eglibc-ripdx6/eglibc-2.19/csu/libc-start.c:287
SUMMARY: AddressSanitizer: 704 byte(s) leaked in 9 allocation(s).
[ RUN      ] SurfaceTest.SetCropAndBufferTransform/1

 

Sign in to add a comment