Warning: Unused argument: --single-process-tests Warning: eglBindAPI failed with EGL_BAD_PARAMETER - While trying to discover a BackendType::OpenGL adapter. at CheckEGL (../../third_party/dawn/src/dawn/native/opengl/UtilsEGL.cpp:100) Warning: maxDynamicUniformBuffersPerPipelineLayout artificially reduced from 72 to 16 to fit dynamic offset allocation limit. Warning: maxDynamicStorageBuffersPerPipelineLayout artificially reduced from 64 to 16 to fit dynamic offset allocation limit. Info: Testing configuration --------------------- UseWire: false Implicit device synchronization: disabled Run suppressed tests: false BackendValidation: disabled BeginCaptureOnStartup: false System adapters: - "SwiftShader Device (Subzero)" - "SwiftShader driver 5.0.0 [Selected]" type: CPU, backend: Vulkan, compatibilityMode: false vendorId: 0x1AE0, deviceId: 0xC0DE vendorName: google, architecture: swiftshader - "Null backend" - " [Selected]" type: CPU, backend: Null, compatibilityMode: false vendorId: 0x0000, deviceId: 0x0000 - "ANGLE (Google, Vulkan 1.3.0 (SwiftShader Device (Subzero) (0x0000C0DE)), SwiftShader driver-5.0.0)" - "OpenGL version OpenGL ES 3.1 (ANGLE 2.1.27436 git hash: 07f101fbae2d) [Selected]" type: CPU, backend: OpenGLES, compatibilityMode: true vendorId: 0x0000, deviceId: 0xC0DE Note: Google Test filter = VulkanImageWrappingDoubleCloseTest.*ExternalImageType_0* [==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from VulkanImageWrappingDoubleCloseTest [ RUN ] VulkanImageWrappingDoubleCloseTest.StaleFdDoubleCloseOnExportFailure/Vulkan_SwiftShader_Device__Subzero__ExternalImageType_0_UseDedicatedAllocation_0_DetectDedicatedAllocation_0 [POC] Submit #1 done. mExternalSemaphoreHandle = fd 54 [POC] Submit #2 failed in OnAfterSubmit (device lost). fcntl(54, F_GETFD) = -1 errno=9 (slot free) [POC] Victim pipe placed at fd 54; write() succeeded. [POC] After texture destruction: write(54) = -1, errno = 9 <-- VICTIM FD WAS CLOSED BY ~ImportedTextureBase (BUG CONFIRMED) ../../third_party/dawn/src/dawn/tests/white_box/VulkanImageWrappingTests.cpp:1191: Failure Expected equality of these values: w Which is: -1 1 BUG: ~ImportedTextureBase performed a stale-FD double-close and closed an unrelated file descriptor (fd 54). Stack trace: #0 0x558ee79850a6 (/chromium/chromium/src/out/asan/dawn_end2end_tests+0x32f40a5) ================================================================= ==2245==ERROR: AddressSanitizer: heap-use-after-free on address 0x7c299785ebe0 at pc 0x7be994468622 bp 0x7ffdbd178360 sp 0x7ffdbd178358 READ of size 8 at 0x7c299785ebe0 thread T0 #0 0x7be994468621 in std::__Cr::__tree_iterator*, long> std::__Cr::__tree, std::__Cr::allocator>::find(VkCommandBuffer_T* const&) gen/third_party/libc++/src/include/__tree:950:54 #1 0x7be9944684e5 in unsigned long std::__Cr::__tree, std::__Cr::allocator>::__erase_unique(VkCommandBuffer_T* const&) gen/third_party/libc++/src/include/__tree:2074:18 #2 0x7be99446710d in vk::CommandPool::freeCommandBuffers(unsigned int, VkCommandBuffer_T* const*) gen/third_party/libc++/src/include/set:771:79 #3 0x558ee88ad4f6 in dawn::native::vulkan::Queue::DestroyImpl(dawn::native::DestroyReason) third_party/dawn/src/dawn/native/vulkan/QueueVk.cpp:66:13 #4 0x558ee84936fe in dawn::native::DeviceBase::Destroy(dawn::native::DestroyReason) third_party/dawn/src/dawn/native/Device.cpp:656:17 #5 0x558ee8492d79 in dawn::native::DeviceBase::WillDropLastExternalRef() third_party/dawn/src/dawn/native/Device.cpp:491:9 #6 0x558ee8331efe in dawn::native::NativeDeviceRelease(WGPUDeviceImpl*) third_party/dawn/src/dawn/common/RefCountedWithExternalCount.h:59:13 #7 0x558ee79835b0 in dawn::native::vulkan::(anonymous namespace)::VulkanImageWrappingUsageTests::~VulkanImageWrappingUsageTests() gen/third_party/dawn/include/dawn/webgpu_cpp.h:9280:9 #8 0x558ee798531d in non-virtual thunk to dawn::native::vulkan::(anonymous namespace)::VulkanImageWrappingDoubleCloseTest_StaleFdDoubleCloseOnExportFailure_Test::~VulkanImageWrappingDoubleCloseTest_StaleFdDoubleCloseOnExportFailure_Test() third_party/dawn/src/dawn/tests/white_box/VulkanImageWrappingTests.cpp:1119:1 #9 0x558ee8224665 in testing::TestInfo::Run() third_party/googletest/src/googletest/include/gtest/gtest.h:335:24 #10 0x558ee8226833 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #11 0x558ee825680a in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #12 0x558ee825526e in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #13 0x558ee995a92c in base::TestSuite::Run() base/test/test_suite.cc:440:16 #14 0x558ee7a83713 in (anonymous namespace)::RunHelper(base::TestSuite*) gpu/dawn_end2end_tests_main.cc:18:22 #15 0x558ee7a83aae in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:673:12 #16 0x558ee9bd395b in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #17 0x558ee9bd4208 in base::LaunchUnitTestsWithOptions(int, char**, unsigned long, int, bool, base::RepeatingCallback, base::OnceCallback) base/test/launcher/unit_test_launcher.cc:360:10 #18 0x558ee7a83545 in main gpu/dawn_end2end_tests_main.cc:36:12 #19 0x7fe9983c4249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) 0x7c299785ebe0 is located 16 bytes inside of 40-byte region [0x7c299785ebd0,0x7c299785ebf8) freed by thread T0 here: #0 0x558ee6640ac6 in free (/chromium/chromium/src/out/asan/dawn_end2end_tests+0x1fafac6) (BuildId: 9ea490ea07d404b1) #1 0x7be9944db264 in vkDestroyCommandPool third_party/swiftshader/src/Vulkan/VkDestroy.hpp:66:3 #2 0x558ee88ad545 in dawn::native::vulkan::Queue::DestroyImpl(dawn::native::DestroyReason) third_party/dawn/src/dawn/native/vulkan/QueueVk.cpp:68:9 #3 0x558ee84936fe in dawn::native::DeviceBase::Destroy(dawn::native::DestroyReason) third_party/dawn/src/dawn/native/Device.cpp:656:17 #4 0x558ee8492d79 in dawn::native::DeviceBase::WillDropLastExternalRef() third_party/dawn/src/dawn/native/Device.cpp:491:9 #5 0x558ee8331efe in dawn::native::NativeDeviceRelease(WGPUDeviceImpl*) third_party/dawn/src/dawn/common/RefCountedWithExternalCount.h:59:13 #6 0x558ee79835b0 in dawn::native::vulkan::(anonymous namespace)::VulkanImageWrappingUsageTests::~VulkanImageWrappingUsageTests() gen/third_party/dawn/include/dawn/webgpu_cpp.h:9280:9 #7 0x558ee798531d in non-virtual thunk to dawn::native::vulkan::(anonymous namespace)::VulkanImageWrappingDoubleCloseTest_StaleFdDoubleCloseOnExportFailure_Test::~VulkanImageWrappingDoubleCloseTest_StaleFdDoubleCloseOnExportFailure_Test() third_party/dawn/src/dawn/tests/white_box/VulkanImageWrappingTests.cpp:1119:1 #8 0x558ee8224665 in testing::TestInfo::Run() third_party/googletest/src/googletest/include/gtest/gtest.h:335:24 #9 0x558ee8226833 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #10 0x558ee825680a in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #11 0x558ee825526e in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #12 0x558ee995a92c in base::TestSuite::Run() base/test/test_suite.cc:440:16 #13 0x558ee7a83713 in (anonymous namespace)::RunHelper(base::TestSuite*) gpu/dawn_end2end_tests_main.cc:18:22 #14 0x558ee7a83aae in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:673:12 #15 0x558ee9bd395b in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #16 0x558ee9bd4208 in base::LaunchUnitTestsWithOptions(int, char**, unsigned long, int, bool, base::RepeatingCallback, base::OnceCallback) base/test/launcher/unit_test_launcher.cc:360:10 #17 0x558ee7a83545 in main gpu/dawn_end2end_tests_main.cc:36:12 #18 0x7fe9983c4249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) previously allocated by thread T0 here: #0 0x558ee6640d64 in malloc (/chromium/chromium/src/out/asan/dawn_end2end_tests+0x1fafd64) (BuildId: 9ea490ea07d404b1) #1 0x7be99496bf1d in sw::allocateZeroOrPoison(unsigned long, unsigned long) third_party/swiftshader/src/System/Memory.cpp:81:42 #2 0x7be9944db17b in VkResult vk::ObjectBase>::Create(VkAllocationCallbacks const*, VkCommandPoolCreateInfo const*, VkNonDispatchableHandle*) third_party/swiftshader/src/Vulkan/VkObject.hpp:58:23 #3 0x7be9944db069 in vkCreateCommandPool third_party/swiftshader/src/Vulkan/libVulkan.cpp:2799:9 #4 0x558ee88a9fd7 in dawn::native::vulkan::Queue::BeginVkCommandBuffer() third_party/dawn/src/dawn/native/vulkan/QueueVk.cpp:257:13 #5 0x558ee88a5ff1 in dawn::native::vulkan::Queue::PrepareRecordingContext() third_party/dawn/src/dawn/native/vulkan/QueueVk.cpp:198:31 #6 0x558ee88a7dd6 in dawn::native::vulkan::Queue::SubmitPendingCommandsImpl() third_party/dawn/src/dawn/native/vulkan/QueueVk.cpp:368:14 #7 0x558ee88a69bd in dawn::native::vulkan::Queue::SubmitImpl(unsigned int, dawn::native::CommandBufferBase* const*) third_party/dawn/src/dawn/native/vulkan/QueueVk.cpp:106:14 #8 0x558ee85aae28 in dawn::native::QueueBase::SubmitInternal(unsigned int, dawn::native::CommandBufferBase* const*) third_party/dawn/src/dawn/native/Queue.cpp:672:14 #9 0x558ee85aa800 in dawn::native::QueueBase::APISubmit(unsigned int, dawn::native::CommandBufferBase* const*) third_party/dawn/src/dawn/native/Queue.cpp:171:25 #10 0x558ee83331aa in dawn::native::NativeQueueSubmit(WGPUQueueImpl*, unsigned long, WGPUCommandBufferImpl* const*) gen/third_party/dawn/src/dawn/native/ProcTable.cpp:1410:15 #11 0x558ee7967a6b in dawn::native::vulkan::(anonymous namespace)::VulkanImageWrappingUsageTests::ClearImage(wgpu::Device, wgpu::Texture, wgpu::Color) gen/third_party/dawn/include/dawn/webgpu_cpp.h:9540:5 #12 0x558ee7983fec in dawn::native::vulkan::(anonymous namespace)::VulkanImageWrappingDoubleCloseTest_StaleFdDoubleCloseOnExportFailure_Test::TestBody() third_party/dawn/src/dawn/tests/white_box/VulkanImageWrappingTests.cpp:1139:5 #13 0x558ee8221a7b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #14 0x558ee8224727 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #15 0x558ee8226833 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #16 0x558ee825680a in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #17 0x558ee825526e in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #18 0x558ee995a92c in base::TestSuite::Run() base/test/test_suite.cc:440:16 #19 0x558ee7a83713 in (anonymous namespace)::RunHelper(base::TestSuite*) gpu/dawn_end2end_tests_main.cc:18:22 #20 0x558ee7a83aae in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:673:12 #21 0x558ee9bd395b in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #22 0x558ee9bd4208 in base::LaunchUnitTestsWithOptions(int, char**, unsigned long, int, bool, base::RepeatingCallback, base::OnceCallback) base/test/launcher/unit_test_launcher.cc:360:10 #23 0x558ee7a83545 in main gpu/dawn_end2end_tests_main.cc:36:12 #24 0x7fe9983c4249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) SUMMARY: AddressSanitizer: heap-use-after-free gen/third_party/libc++/src/include/__tree:950:54 in std::__Cr::__tree_iterator*, long> std::__Cr::__tree, std::__Cr::allocator>::find(VkCommandBuffer_T* const&) Shadow bytes around the buggy address: 0x7c299785e900: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd 0x7c299785e980: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd 0x7c299785ea00: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fa 0x7c299785ea80: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fa 0x7c299785eb00: fa fa fd fd fd fd fd fd fa fa 00 00 00 00 00 00 =>0x7c299785eb80: fa fa fd fd fd fd fd fd fa fa fd fd[fd]fd fd fa 0x7c299785ec00: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fa 0x7c299785ec80: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fa 0x7c299785ed00: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fd 0x7c299785ed80: fa fa 00 00 00 00 00 00 fa fa fd fd fd fd fd fd 0x7c299785ee00: fa fa fd fd fd fd fd fd fa fa 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 ==2245==ADDITIONAL INFO ==2245==Note: Please include this section with the ASan report. Task trace: ==2245==END OF ADDITIONAL INFO ==2245==ABORTING