Note: Google Test filter = *HandleToplevelConfigureSurvivesSyncCloseOnDeactivate* [==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from XdgVersionStableTest/WaylandWindowTest [ RUN ] XdgVersionStableTest/WaylandWindowTest.HandleToplevelConfigureSurvivesSyncCloseOnDeactivate/0 [122943:122943:WARNING:ui/ozone/platform/wayland/gpu/wayland_buffer_manager_gpu.cc:456] Failed to initialize drm render node handle. [122943:122943:WARNING:ui/ozone/platform/wayland/common/wayland_object.cc:119] Binding to wl_shm version 1 but version 2 is available. [122943:122943:WARNING:ui/ozone/platform/wayland/common/wayland_object.cc:119] Binding to zwp_pointer_gestures_v1 version 1 but version 3 is available. [122943:122943:WARNING:ui/ozone/platform/wayland/host/wayland_surface.cc:200] Server doesn't support wp_content_type_v1 [122943:122943:WARNING:ui/ozone/platform/wayland/host/wayland_surface.cc:214] Server doesn't support wp_color_management_surface_v1. GMOCK WARNING: Uninteresting mock function call - returning directly. Function call: TokenCommit(0x7899d160c3c0, 0x7849d15f9900) NOTE: You can safely ignore the above warning unless this call should not happen. Do not suppress it by adding an EXPECT_CALL() if you don't mean to enforce the call. See https://github.com/google/googletest/blob/main/docs/gmock_cook_book.md#knowing-when-to-expect-useoncall for details. GMOCK WARNING: Uninteresting mock function call - returning directly. Function call: Activate(0x7899d160c3c0, 0x7849d15f8e80, 0x7899d1617d9c pointing to "", 0x7849d15f9000) NOTE: You can safely ignore the above warning unless this call should not happen. Do not suppress it by adding an EXPECT_CALL() if you don't mean to enforce the call. See https://github.com/google/googletest/blob/main/docs/gmock_cook_book.md#knowing-when-to-expect-useoncall for details. ================================================================= ==122943==ERROR: AddressSanitizer: heap-use-after-free on address 0x7919d15e6c4a at pc 0x5b2144fc8b75 bp 0x7ffd91e93bf0 sp 0x7ffd91e93be8 READ of size 1 at 0x7919d15e6c4a thread T0 #0 0x5b2144fc8b74 in ui::WaylandToplevelWindow::HandleToplevelConfigureWithOrigin(int, int, int, int, ui::WaylandWindow::WindowStates const&) ui/ozone/platform/wayland/host/wayland_toplevel_window.cc:570:25 #1 0x5b2144fc7347 in ui::WaylandToplevelWindow::HandleToplevelConfigure(int, int, ui::WaylandWindow::WindowStates const&) ui/ozone/platform/wayland/host/wayland_toplevel_window.cc:468:3 #2 0x5b2142d2e71c in ui::WaylandWindowTest_HandleToplevelConfigureSurvivesSyncCloseOnDeactivate_Test::TestBody() ui/ozone/platform/wayland/host/wayland_window_unittest.cc:5463:15 #3 0x5b21437fe48b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #4 0x5b21438010e7 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #5 0x5b21438031e3 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #6 0x5b214383262a in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #7 0x5b21438310fe in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #8 0x5b2145c1ad5c in base::TestSuite::Run() base/test/test_suite.cc:440:16 #9 0x5b2142916c91 in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #10 0x5b2145c236eb in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #11 0x5b2145c2300b in base::LaunchUnitTests(int, char**, base::OnceCallback, unsigned long) base/test/launcher/unit_test_launcher.cc:337:10 #12 0x5b214291654b in main mojo/core/test/run_all_unittests.cc:30:10 #13 0x7b89d2e1c249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) 0x7919d15e6c4a is located 714 bytes inside of 1056-byte region [0x7919d15e6980,0x7919d15e6da0) freed by thread T0 here: #0 0x5b2142915a96 in operator delete(void*, unsigned long) (/chromium/chromium/src/out/asan/ozone_unittests+0x2a8ba96) (BuildId: 3e4594b7055cabfd) #1 0x5b2142de4094 in testing::internal::FunctionMocker::InvokeWith(std::__Cr::tuple&&) third_party/libc++/src/include/__functional/function.h:502:12 #2 0x5b2142dba453 in ui::MockPlatformWindowDelegate::OnActivationChanged(bool) third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h:1548:12 #3 0x5b2144fc8946 in ui::WaylandToplevelWindow::HandleToplevelConfigureWithOrigin(int, int, int, int, ui::WaylandWindow::WindowStates const&) ui/ozone/platform/wayland/host/wayland_toplevel_window.cc:569:3 #4 0x5b2144fc7347 in ui::WaylandToplevelWindow::HandleToplevelConfigure(int, int, ui::WaylandWindow::WindowStates const&) ui/ozone/platform/wayland/host/wayland_toplevel_window.cc:468:3 #5 0x5b2142d2e71c in ui::WaylandWindowTest_HandleToplevelConfigureSurvivesSyncCloseOnDeactivate_Test::TestBody() ui/ozone/platform/wayland/host/wayland_window_unittest.cc:5463:15 #6 0x5b21437fe48b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #7 0x5b21438010e7 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #8 0x5b21438031e3 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #9 0x5b214383262a in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #10 0x5b21438310fe in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #11 0x5b2145c1ad5c in base::TestSuite::Run() base/test/test_suite.cc:440:16 #12 0x5b2142916c91 in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #13 0x5b2145c236eb in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #14 0x5b2145c2300b in base::LaunchUnitTests(int, char**, base::OnceCallback, unsigned long) base/test/launcher/unit_test_launcher.cc:337:10 #15 0x5b214291654b in main mojo/core/test/run_all_unittests.cc:30:10 #16 0x7b89d2e1c249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) previously allocated by thread T0 here: #0 0x5b2142914e91 in operator new(unsigned long) (/chromium/chromium/src/out/asan/ozone_unittests+0x2a8ae91) (BuildId: 3e4594b7055cabfd) #1 0x5b2144ffbe81 in ui::WaylandWindow::Create(ui::PlatformWindowDelegate*, ui::WaylandConnection*, ui::PlatformWindowInitProperties) third_party/libc++/src/include/__memory/unique_ptr.h:756:26 #2 0x5b214462144a in ui::MockWaylandPlatformWindowDelegate::CreateWaylandWindow(ui::WaylandConnection*, ui::PlatformWindowInitProperties) ui/ozone/platform/wayland/test/mock_wayland_platform_window_delegate.cc:47:17 #3 0x5b2142ec8462 in ui::WaylandTestBase::SetUp() ui/ozone/platform/wayland/test/wayland_test.cc:81:17 #4 0x5b2142d31065 in ui::WaylandWindowTest::SetUp() ui/ozone/platform/wayland/host/wayland_window_unittest.cc:212:18 #5 0x5b21437fe321 in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #6 0x5b21438010e7 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #7 0x5b21438031e3 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #8 0x5b214383262a in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #9 0x5b21438310fe in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #10 0x5b2145c1ad5c in base::TestSuite::Run() base/test/test_suite.cc:440:16 #11 0x5b2142916c91 in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #12 0x5b2145c236eb in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #13 0x5b2145c2300b in base::LaunchUnitTests(int, char**, base::OnceCallback, unsigned long) base/test/launcher/unit_test_launcher.cc:337:10 #14 0x5b214291654b in main mojo/core/test/run_all_unittests.cc:30:10 #15 0x7b89d2e1c249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) SUMMARY: AddressSanitizer: heap-use-after-free ui/ozone/platform/wayland/host/wayland_toplevel_window.cc:570:25 in ui::WaylandToplevelWindow::HandleToplevelConfigureWithOrigin(int, int, int, int, ui::WaylandWindow::WindowStates const&) Shadow bytes around the buggy address: 0x7919d15e6980: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x7919d15e6a00: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x7919d15e6a80: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x7919d15e6b00: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x7919d15e6b80: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd =>0x7919d15e6c00: fd fd fd fd fd fd fd fd fd[fd]fd fd fd fd fd fd 0x7919d15e6c80: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x7919d15e6d00: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x7919d15e6d80: fd fd fd fd fa fa fa fa fa fa fa fa fa fa fa fa 0x7919d15e6e00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7919d15e6e80: 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 ==122943==ADDITIONAL INFO ==122943==Note: Please include this section with the ASan report. Task trace: ==122943==END OF ADDITIONAL INFO ==122943==ABORTING