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 = XdgVersionStableTest/WaylandWindowTest.DeleteWindowFromOnStateUpdateDuringSurfaceConfigure/0 [==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from XdgVersionStableTest/WaylandWindowTest [ RUN ] XdgVersionStableTest/WaylandWindowTest.DeleteWindowFromOnStateUpdateDuringSurfaceConfigure/0 [2207:2207:WARNING:ui/ozone/platform/wayland/gpu/wayland_buffer_manager_gpu.cc:456] Failed to initialize drm render node handle. [2207:2207:WARNING:ui/ozone/platform/wayland/common/wayland_object.cc:119] Binding to wl_shm version 1 but version 2 is available. [2207:2207:WARNING:ui/ozone/platform/wayland/common/wayland_object.cc:119] Binding to zwp_pointer_gestures_v1 version 1 but version 3 is available. [2207:2207:WARNING:ui/ozone/platform/wayland/host/wayland_surface.cc:200] Server doesn't support wp_content_type_v1 [2207:2207: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(0x77a6c840d7c0, 0x7756c83f9900) 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(0x77a6c840d7c0, 0x7756c83f8e80, 0x77a6c8417d9c pointing to "", 0x7756c83f9000) 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. ================================================================= ==2207==ERROR: AddressSanitizer: heap-use-after-free on address 0x7826c83e73f8 at pc 0x62522d947ad9 bp 0x7fff0e5e4c20 sp 0x7fff0e5e43f0 WRITE of size 48 at 0x7826c83e73f8 thread T0 #0 0x62522d947ad8 in __asan_memset (/chromium/chromium/src/out/asan/ozone_unittests+0x2aeead8) (BuildId: 952c30c61ffc9535) #1 0x62522ff7636d in ui::WaylandWindow::ProcessPendingConfigureState(unsigned int) ui/ozone/platform/wayland/host/wayland_window.cc:1329:28 #2 0x62522dcec5f0 in ui::WaylandWindowTest_DeleteWindowFromOnStateUpdateDuringSurfaceConfigure_Test::TestBody() ui/ozone/platform/wayland/host/wayland_window_unittest.cc:515:11 #3 0x62522e87700b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #4 0x62522e879c67 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #5 0x62522e87bd63 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #6 0x62522e8ab1aa in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #7 0x62522e8a9c7e in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #8 0x625230cad5ec in base::TestSuite::Run() base/test/test_suite.cc:440:16 #9 0x62522d985a51 in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #10 0x625230cb5f7b in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #11 0x625230cb589b in base::LaunchUnitTests(int, char**, base::OnceCallback, unsigned long) base/test/launcher/unit_test_launcher.cc:337:10 #12 0x62522d98530b in main mojo/core/test/run_all_unittests.cc:30:10 #13 0x7a96c9c23249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) 0x7826c83e73f8 is located 120 bytes inside of 1056-byte region [0x7826c83e7380,0x7826c83e77a0) freed by thread T0 here: #0 0x62522d984856 in operator delete(void*, unsigned long) (/chromium/chromium/src/out/asan/ozone_unittests+0x2b2b856) (BuildId: 952c30c61ffc9535) #1 0x62522ddb127f in base::internal::BindLambdaForTestingHelper::Run(ui::WaylandWindowTest_DeleteWindowFromOnStateUpdateDuringSurfaceConfigure_Test::TestBody()::$_0 const&) third_party/libc++/src/include/__memory/unique_ptr.h:74:5 #2 0x62522ddb13a0 in base::internal::Invoker, base::internal::BindState, bool ()>::Run(base::internal::BindStateBase*) base/functional/bind_internal.h:673:12 #3 0x6252300b801f in base::RepeatingCallback::Run() const & base/functional/callback.h:346:12 #4 0x6252300b7bc2 in ui::MockWaylandPlatformWindowDelegate::OnStateUpdate(ui::PlatformWindowDelegate::State const&, ui::PlatformWindowDelegate::State const&) ui/ozone/platform/wayland/test/mock_wayland_platform_window_delegate.cc:66:36 #5 0x62522ff788bd in ui::WaylandWindow::MaybeApplyLatestStateRequest(bool) ui/ozone/platform/wayland/host/wayland_window.cc:1599:33 #6 0x62522ff77675 in ui::WaylandWindow::RequestState(ui::PlatformWindowDelegate::State, long, bool) ui/ozone/platform/wayland/host/wayland_window.cc:1427:3 #7 0x62522ff7635d in ui::WaylandWindow::ProcessPendingConfigureState(unsigned int) ui/ozone/platform/wayland/host/wayland_window.cc:1343:3 #8 0x62522dcec5f0 in ui::WaylandWindowTest_DeleteWindowFromOnStateUpdateDuringSurfaceConfigure_Test::TestBody() ui/ozone/platform/wayland/host/wayland_window_unittest.cc:515:11 #9 0x62522e87700b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #10 0x62522e879c67 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #11 0x62522e87bd63 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #12 0x62522e8ab1aa in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #13 0x62522e8a9c7e in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #14 0x625230cad5ec in base::TestSuite::Run() base/test/test_suite.cc:440:16 #15 0x62522d985a51 in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #16 0x625230cb5f7b in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #17 0x625230cb589b in base::LaunchUnitTests(int, char**, base::OnceCallback, unsigned long) base/test/launcher/unit_test_launcher.cc:337:10 #18 0x62522d98530b in main mojo/core/test/run_all_unittests.cc:30:10 #19 0x7a96c9c23249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) previously allocated by thread T0 here: #0 0x62522d983c51 in operator new(unsigned long) (/chromium/chromium/src/out/asan/ozone_unittests+0x2b2ac51) (BuildId: 952c30c61ffc9535) #1 0x62522ff937c1 in ui::WaylandWindow::Create(ui::PlatformWindowDelegate*, ui::WaylandConnection*, ui::PlatformWindowInitProperties) third_party/libc++/src/include/__memory/unique_ptr.h:756:26 #2 0x6252300b76fa in ui::MockWaylandPlatformWindowDelegate::CreateWaylandWindow(ui::WaylandConnection*, ui::PlatformWindowInitProperties) ui/ozone/platform/wayland/test/mock_wayland_platform_window_delegate.cc:47:17 #3 0x62522df3f582 in ui::WaylandTestBase::SetUp() ui/ozone/platform/wayland/test/wayland_test.cc:81:17 #4 0x62522dda5de5 in ui::WaylandWindowTest::SetUp() ui/ozone/platform/wayland/host/wayland_window_unittest.cc:212:18 #5 0x62522e876ea1 in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #6 0x62522e879c67 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #7 0x62522e87bd63 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #8 0x62522e8ab1aa in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #9 0x62522e8a9c7e in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #10 0x625230cad5ec in base::TestSuite::Run() base/test/test_suite.cc:440:16 #11 0x62522d985a51 in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #12 0x625230cb5f7b in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #13 0x625230cb589b in base::LaunchUnitTests(int, char**, base::OnceCallback, unsigned long) base/test/launcher/unit_test_launcher.cc:337:10 #14 0x62522d98530b in main mojo/core/test/run_all_unittests.cc:30:10 #15 0x7a96c9c23249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) SUMMARY: AddressSanitizer: heap-use-after-free (/chromium/chromium/src/out/asan/ozone_unittests+0x2aeead8) (BuildId: 952c30c61ffc9535) in __asan_memset Shadow bytes around the buggy address: 0x7826c83e7100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7826c83e7180: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc 0x7826c83e7200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc 0x7826c83e7280: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7826c83e7300: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x7826c83e7380: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd[fd] 0x7826c83e7400: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x7826c83e7480: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x7826c83e7500: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x7826c83e7580: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x7826c83e7600: 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 ==2207==ADDITIONAL INFO ==2207==Note: Please include this section with the ASan report. Task trace: ==2207==END OF ADDITIONAL INFO ==2207==ABORTING [1/1] XdgVersionStableTest/WaylandWindowTest.DeleteWindowFromOnStateUpdateDuringSurfaceConfigure/0 (CRASHED) 1 test crashed: XdgVersionStableTest/WaylandWindowTest.DeleteWindowFromOnStateUpdateDuringSurfaceConfigure/0 (../../ui/ozone/platform/wayland/host/wayland_window_unittest.cc:492) Tests took 0 seconds.