viz_unittests failed here:
https://uberchromegw.corp.google.com/i/chromium.memory/builders/Linux%20Chromium%20OS%20ASan%20LSan%20Tests%20%281%29/builds/23580
FindIt found https://chromium-review.googlesource.com/c/chromium/src/+/654444 with 94% accuracy and the failure does match. Here is the failure output:
==9683==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7fc435808398 at pc 0x000000736f66 bp 0x7ffe2cd694a0 sp 0x7ffe2cd69498
READ of size 8 at 0x7fc435808398 thread T0
#0 0x736f65 in end buildtools/third_party/libc++/trunk/include/vector:1481:30
#1 0x736f65 in viz::(anonymous namespace)::CollectResources(std::__1::vector<viz::ReturnedResource, std::__1::allocator<viz::ReturnedResource> >*, std::__1::vector<viz::ReturnedResource, std::__1::allocator<viz::ReturnedResource> > const&, cc::BlockingTaskRunner*) components/viz/service/display/gl_renderer_unittest.cc:1925
#2 0x3680f76 in Run base/callback.h:92:12
#3 0x3680f76 in cc::DisplayResourceProvider::DeleteAndReturnUnusedResourcesToChild(std::__1::__hash_map_iterator<std::__1::__hash_iterator<std::__1::__hash_node<std::__1::__hash_value_type<int, cc::DisplayResourceProvider::Child>, void*>*> >, cc::ResourceProvider::DeleteStyle, std::__1::vector<unsigned int, std::__1::allocator<unsigned int> > const&) cc/resources/display_resource_provider.cc:255
#4 0x367dfbf in cc::DisplayResourceProvider::DestroyChildInternal(std::__1::__hash_map_iterator<std::__1::__hash_iterator<std::__1::__hash_node<std::__1::__hash_value_type<int, cc::DisplayResourceProvider::Child>, void*>*> >, cc::ResourceProvider::DeleteStyle) cc/resources/display_resource_provider.cc:145:3
#5 0x367d6d0 in cc::DisplayResourceProvider::~DisplayResourceProvider() cc/resources/display_resource_provider.cc:35:5
#6 0x367e10d in cc::DisplayResourceProvider::~DisplayResourceProvider() cc/resources/display_resource_provider.cc:33:53
#7 0x773e07 in operator() buildtools/third_party/libc++/trunk/include/memory:2272:5
#8 0x773e07 in reset buildtools/third_party/libc++/trunk/include/memory:2585
#9 0x773e07 in ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2539
#10 0x773e07 in viz::(anonymous namespace)::GLRendererTest_DCLayerOverlaySwitch_Test::TestBody() components/viz/service/display/gl_renderer_unittest.cc:2450
#11 0xa91bcc in HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc:2456:12
#12 0xa91bcc in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2472
#13 0xa939d4 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2654:11
#14 0xa94d36 in testing::TestCase::Run() third_party/googletest/src/googletest/src/gtest.cc:2772:28
#15 0xaaa7f6 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:4677:43
#16 0xaa9d78 in HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc:2456:12
#17 0xaa9d78 in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4285
#18 0x1739465 in RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2237:46
#19 0x1739465 in base::TestSuite::Run() base/test/test_suite.cc:270
#20 0x173d5c0 in Run base/callback.h:92:12
#21 0x173d5c0 in base::(anonymous namespace)::LaunchUnitTestsInternal(base::RepeatingCallback<int ()> const&, unsigned long, int, bool, base::RepeatingCallback<void ()> const&) base/test/launcher/unit_test_launcher.cc:216
#22 0x173d1c9 in base::LaunchUnitTests(int, char**, base::RepeatingCallback<int ()> const&) base/test/launcher/unit_test_launcher.cc:475:10
#23 0x531ff0 in main components/viz/test/run_all_unittests.cc:15:10
#24 0x7fc439684f44 in __libc_start_main /build/eglibc-SvCtMH/eglibc-2.19/csu/libc-start.c:287
Address 0x7fc435808398 is located in stack of thread T0 at offset 920 in frame
#0 0x7707df in viz::(anonymous namespace)::GLRendererTest_DCLayerOverlaySwitch_Test::TestBody() components/viz/service/display/gl_renderer_unittest.cc:2343
Comment 1 by brucedaw...@chromium.org
, Sep 11 2017