IMPORTANT DEBUGGING NOTE: batches of tests are run inside their own process. For debugging a test inside a debugger, use the --gtest_filter= flag along with --single-process-tests. Using sharding settings from environment. This is shard 0/1 Using 1 parallel jobs. Note: Google Test filter = DesktopWindowTreeHostPlatformTest.RestoreSurvivesSynchronousCloseDuringBoundsChange [==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from DesktopWindowTreeHostPlatformTest [ RUN ] DesktopWindowTreeHostPlatformTest.RestoreSurvivesSynchronousCloseDuringBoundsChange (views_unittests:2901): dbind-WARNING **: 00:31:52.726: Couldn't connect to accessibility bus: Failed to connect to socket /run/user/104146510/at-spi/bus_20: No such file or directory ================================================================= ==2901==ERROR: AddressSanitizer: heap-use-after-free on address 0x71e6e09f1880 at pc 0x5ca75f1722e9 bp 0x7ffed88290f0 sp 0x7ffed88290e8 READ of size 8 at 0x71e6e09f1880 thread T0 #0 0x5ca75f1722e8 in views::DesktopWindowTreeHostPlatform::Restore() ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc:693:3 #1 0x5ca74fe53804 in views::DesktopWindowTreeHostPlatformTest_RestoreSurvivesSynchronousCloseDuringBoundsChange_Test::TestBody() ui/views/widget/desktop_aura/desktop_window_tree_host_platform_unittest.cc:833:18 #2 0x5ca7501513cb in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #3 0x5ca750154027 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #4 0x5ca750156123 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #5 0x5ca75018556a in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #6 0x5ca75018403e in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #7 0x5ca75f595a1c in base::TestSuite::Run() base/test/test_suite.cc:440:16 #8 0x5ca74ff14f61 in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #9 0x5ca75f59d3db in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #10 0x5ca75f59ccfb in base::LaunchUnitTests(int, char**, base::OnceCallback, unsigned long) base/test/launcher/unit_test_launcher.cc:337:10 #11 0x5ca74ff1468d in views::ViewsTestSuite::RunTests() ui/views/views_test_suite.cc:39:10 #12 0x5ca74f619904 in main ui/views/run_all_unittests_main.cc:10:44 #13 0x7466e2045249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) 0x71e6e09f1880 is located 0 bytes inside of 808-byte region [0x71e6e09f1880,0x71e6e09f1ba8) freed by thread T0 here: #0 0x5ca74e6fba91 in operator delete(void*) (/chromium/chromium/src/out/asan/views_unittests+0x8b69a91) (BuildId: bc3e04025d7ff4f4) #1 0x5ca75f13f8ac in views::DesktopNativeWidgetAura::OnHostClosed() third_party/libc++/src/include/__memory/unique_ptr.h:74:5 #2 0x5ca75f177551 in views::DesktopWindowTreeHostPlatform::OnClosed() ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc:1035:32 #3 0x5ca75f16da44 in views::DesktopWindowTreeHostPlatform::CloseNow() ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc:450:22 #4 0x5ca75f06bd31 in views::Widget::CloseNow() ui/views/widget/widget.cc:1050:21 #5 0x5ca75f07b47f in void base::ObserverList::Notify(T, views::Widget* const&, gfx::Rect const&) third_party/libc++/src/include/__type_traits/invoke.h:90:27 #6 0x5ca75f07ac72 in views::Widget::OnNativeWidgetMove() ui/views/widget/widget.cc:2061:14 #7 0x5ca75f14ebd4 in views::DesktopNativeWidgetAura::OnHostMovedInPixels(aura::WindowTreeHost*) ui/views/widget/desktop_aura/desktop_native_widget_aura.cc:1666:30 #8 0x5ca76025639b in void base::ObserverList::Notify(T, aura::WindowTreeHost* const&) third_party/libc++/src/include/__type_traits/invoke.h:90:27 #9 0x5ca760255cf5 in aura::WindowTreeHost::OnHostMovedInPixels() ui/aura/window_tree_host.cc:590:14 #10 0x5ca76025fb37 in aura::WindowTreeHostPlatform::OnBoundsChanged(ui::PlatformWindowDelegate::BoundsChange const&) ui/aura/window_tree_host_platform.cc:276:5 #11 0x5ca75f15bea5 in views::DesktopWindowTreeHostLinux::OnBoundsChanged(ui::PlatformWindowDelegate::BoundsChange const&) ui/views/widget/desktop_aura/desktop_window_tree_host_linux.cc:420:34 #12 0x5ca75f172210 in views::DesktopWindowTreeHostPlatform::Restore() ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc:692:22 #13 0x5ca74fe53804 in views::DesktopWindowTreeHostPlatformTest_RestoreSurvivesSynchronousCloseDuringBoundsChange_Test::TestBody() ui/views/widget/desktop_aura/desktop_window_tree_host_platform_unittest.cc:833:18 #14 0x5ca7501513cb in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #15 0x5ca750154027 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #16 0x5ca750156123 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #17 0x5ca75018556a in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #18 0x5ca75018403e in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #19 0x5ca75f595a1c in base::TestSuite::Run() base/test/test_suite.cc:440:16 #20 0x5ca74ff14f61 in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #21 0x5ca75f59d3db in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #22 0x5ca75f59ccfb in base::LaunchUnitTests(int, char**, base::OnceCallback, unsigned long) base/test/launcher/unit_test_launcher.cc:337:10 #23 0x5ca74ff1468d in views::ViewsTestSuite::RunTests() ui/views/views_test_suite.cc:39:10 #24 0x5ca74f619904 in main ui/views/run_all_unittests_main.cc:10:44 #25 0x7466e2045249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) previously allocated by thread T0 here: #0 0x5ca74e6fb251 in operator new(unsigned long) (/chromium/chromium/src/out/asan/views_unittests+0x8b69251) (BuildId: bc3e04025d7ff4f4) #1 0x5ca75f15cf03 in views::DesktopWindowTreeHost::Create(views::internal::NativeWidgetDelegate*, views::DesktopNativeWidgetAura*) ui/views/widget/desktop_aura/desktop_window_tree_host_platform.h:40:3 #2 0x5ca75f141e9f in views::DesktopNativeWidgetAura::InitNativeWidget(views::Widget::InitParams) ui/views/widget/desktop_aura/desktop_native_widget_aura.cc:607:11 #3 0x5ca75f05b960 in views::Widget::Init(views::Widget::InitParams) ui/views/widget/widget.cc:566:19 #4 0x5ca74fe424fd in views::(anonymous namespace)::CreateWidgetWithNativeWidget() ui/views/widget/desktop_aura/desktop_window_tree_host_platform_unittest.cc:130:11 #5 0x5ca74fe53611 in views::DesktopWindowTreeHostPlatformTest_RestoreSurvivesSynchronousCloseDuringBoundsChange_Test::TestBody() ui/views/widget/desktop_aura/desktop_window_tree_host_platform_unittest.cc:820:36 #6 0x5ca7501513cb in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #7 0x5ca750154027 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #8 0x5ca750156123 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #9 0x5ca75018556a in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #10 0x5ca75018403e in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #11 0x5ca75f595a1c in base::TestSuite::Run() base/test/test_suite.cc:440:16 #12 0x5ca74ff14f61 in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #13 0x5ca75f59d3db in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #14 0x5ca75f59ccfb in base::LaunchUnitTests(int, char**, base::OnceCallback, unsigned long) base/test/launcher/unit_test_launcher.cc:337:10 #15 0x5ca74ff1468d in views::ViewsTestSuite::RunTests() ui/views/views_test_suite.cc:39:10 #16 0x5ca74f619904 in main ui/views/run_all_unittests_main.cc:10:44 #17 0x7466e2045249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) SUMMARY: AddressSanitizer: heap-use-after-free ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc:693:3 in views::DesktopWindowTreeHostPlatform::Restore() Shadow bytes around the buggy address: 0x71e6e09f1600: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x71e6e09f1680: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x71e6e09f1700: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x71e6e09f1780: fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa 0x71e6e09f1800: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x71e6e09f1880:[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x71e6e09f1900: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x71e6e09f1980: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x71e6e09f1a00: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x71e6e09f1a80: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x71e6e09f1b00: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 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 ==2901==ADDITIONAL INFO ==2901==Note: Please include this section with the ASan report. Task trace: ==2901==END OF ADDITIONAL INFO ==2901==ABORTING [1/1] DesktopWindowTreeHostPlatformTest.RestoreSurvivesSynchronousCloseDuringBoundsChange (CRASHED) 1 test crashed: DesktopWindowTreeHostPlatformTest.RestoreSurvivesSynchronousCloseDuringBoundsChange (../../ui/views/widget/desktop_aura/desktop_window_tree_host_platform_unittest.cc:816) Tests took 0 seconds.