Warning: vkCreateInstance: Found no drivers! Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:106) 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 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. Warning: Unused argument: --single-process-tests Warning: Unused argument: --test-launcher-output=/tmp/scoped_dirw5zTlO/P9kWcW/test_results.xml Warning: Unused argument: --test-launcher-retries-left=0 Warning: vkCreateInstance: Found no drivers! Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:106) 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 = Vulkan/VulkanCommandPoolDoubleDestroyTest.DoubleDestroyOnExportSemaphoreFailure/Vulkan_SwiftShader_Device__Subzero__Backend_OpaqueFD__OpaqueFDFence_LayerCount_1 [==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from Vulkan/VulkanCommandPoolDoubleDestroyTest [ RUN ] Vulkan/VulkanCommandPoolDoubleDestroyTest.DoubleDestroyOnExportSemaphoreFailure/Vulkan_SwiftShader_Device__Subzero__Backend_OpaqueFD__OpaqueFDFence_LayerCount_1 Warning: vkCreateInstance: Found no drivers! Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:106) [POC] FD table exhausted (524236 dups), submitting... [POC] FD table restored, destroying device... ================================================================= ==1846==ERROR: AddressSanitizer: heap-use-after-free on address 0x7bce51c48da0 at pc 0x7b8e4e868622 bp 0x7ffc59d02e20 sp 0x7ffc59d02e18 READ of size 8 at 0x7bce51c48da0 thread T0 #0 0x7b8e4e868621 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 0x7b8e4e8684e5 in unsigned long std::__Cr::__tree, std::__Cr::allocator>::__erase_unique(VkCommandBuffer_T* const&) gen/third_party/libc++/src/include/__tree:2074:18 #2 0x7b8e4e86710d in vk::CommandPool::freeCommandBuffers(unsigned int, VkCommandBuffer_T* const*) gen/third_party/libc++/src/include/set:771:79 #3 0x55910c8d56b6 in dawn::native::vulkan::Queue::DestroyImpl(dawn::native::DestroyReason) third_party/dawn/src/dawn/native/vulkan/QueueVk.cpp:66:13 #4 0x55910c4bb8be in dawn::native::DeviceBase::Destroy(dawn::native::DestroyReason) third_party/dawn/src/dawn/native/Device.cpp:656:17 #5 0x55910c358d12 in dawn::native::NativeDeviceDestroy(WGPUDeviceImpl*) gen/third_party/dawn/src/dawn/native/ProcTable.cpp:941:15 #6 0x55910b8150e0 in dawn::DawnTestBase::DestroyDevice(wgpu::Device) gen/third_party/dawn/include/dawn/webgpu_cpp.h:9090:5 #7 0x55910ba00411 in dawn::native::vulkan::(anonymous namespace)::VulkanCommandPoolDoubleDestroyTest_DoubleDestroyOnExportSemaphoreFailure_Test::TestBody() third_party/dawn/src/dawn/tests/white_box/SharedTextureMemoryTests_opaquefd.cpp:597:5 #8 0x55910c249c3b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #9 0x55910c24c8e7 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #10 0x55910c24e9f3 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #11 0x55910c27e9ca in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #12 0x55910c27d42e in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #13 0x55910d982aec in base::TestSuite::Run() base/test/test_suite.cc:440:16 #14 0x55910baab8c3 in (anonymous namespace)::RunHelper(base::TestSuite*) gpu/dawn_end2end_tests_main.cc:18:22 #15 0x55910baabc5e in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:673:12 #16 0x55910dbfbb1b in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #17 0x55910dbfc3c8 in base::LaunchUnitTestsWithOptions(int, char**, unsigned long, int, bool, base::RepeatingCallback, base::OnceCallback) base/test/launcher/unit_test_launcher.cc:360:10 #18 0x55910baab6f5 in main gpu/dawn_end2end_tests_main.cc:36:12 #19 0x7f8e52894249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) 0x7bce51c48da0 is located 16 bytes inside of 40-byte region [0x7bce51c48d90,0x7bce51c48db8) freed by thread T0 here: #0 0x55910a669386 in free (/chromium/chromium/src/out/asan/dawn_end2end_tests+0x1faf386) (BuildId: 88fd4ec2cdb942d2) #1 0x7b8e4e8db264 in vkDestroyCommandPool third_party/swiftshader/src/Vulkan/VkDestroy.hpp:66:3 #2 0x55910c8d5705 in dawn::native::vulkan::Queue::DestroyImpl(dawn::native::DestroyReason) third_party/dawn/src/dawn/native/vulkan/QueueVk.cpp:68:9 #3 0x55910c4bb8be in dawn::native::DeviceBase::Destroy(dawn::native::DestroyReason) third_party/dawn/src/dawn/native/Device.cpp:656:17 #4 0x55910c358d12 in dawn::native::NativeDeviceDestroy(WGPUDeviceImpl*) gen/third_party/dawn/src/dawn/native/ProcTable.cpp:941:15 #5 0x55910b8150e0 in dawn::DawnTestBase::DestroyDevice(wgpu::Device) gen/third_party/dawn/include/dawn/webgpu_cpp.h:9090:5 #6 0x55910ba00411 in dawn::native::vulkan::(anonymous namespace)::VulkanCommandPoolDoubleDestroyTest_DoubleDestroyOnExportSemaphoreFailure_Test::TestBody() third_party/dawn/src/dawn/tests/white_box/SharedTextureMemoryTests_opaquefd.cpp:597:5 #7 0x55910c249c3b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #8 0x55910c24c8e7 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #9 0x55910c24e9f3 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #10 0x55910c27e9ca in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #11 0x55910c27d42e in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #12 0x55910d982aec in base::TestSuite::Run() base/test/test_suite.cc:440:16 #13 0x55910baab8c3 in (anonymous namespace)::RunHelper(base::TestSuite*) gpu/dawn_end2end_tests_main.cc:18:22 #14 0x55910baabc5e in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:673:12 #15 0x55910dbfbb1b in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #16 0x55910dbfc3c8 in base::LaunchUnitTestsWithOptions(int, char**, unsigned long, int, bool, base::RepeatingCallback, base::OnceCallback) base/test/launcher/unit_test_launcher.cc:360:10 #17 0x55910baab6f5 in main gpu/dawn_end2end_tests_main.cc:36:12 #18 0x7f8e52894249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) previously allocated by thread T0 here: #0 0x55910a669624 in malloc (/chromium/chromium/src/out/asan/dawn_end2end_tests+0x1faf624) (BuildId: 88fd4ec2cdb942d2) #1 0x7b8e4ed6bf1d in sw::allocateZeroOrPoison(unsigned long, unsigned long) third_party/swiftshader/src/System/Memory.cpp:81:42 #2 0x7b8e4e8db17b in VkResult vk::ObjectBase>::Create(VkAllocationCallbacks const*, VkCommandPoolCreateInfo const*, VkNonDispatchableHandle*) third_party/swiftshader/src/Vulkan/VkObject.hpp:58:23 #3 0x7b8e4e8db069 in vkCreateCommandPool third_party/swiftshader/src/Vulkan/libVulkan.cpp:2799:9 #4 0x55910c8d2197 in dawn::native::vulkan::Queue::BeginVkCommandBuffer() third_party/dawn/src/dawn/native/vulkan/QueueVk.cpp:257:13 #5 0x55910c8ce1b1 in dawn::native::vulkan::Queue::PrepareRecordingContext() third_party/dawn/src/dawn/native/vulkan/QueueVk.cpp:198:31 #6 0x55910c8cdd29 in dawn::native::vulkan::Queue::Initialize() third_party/dawn/src/dawn/native/vulkan/QueueVk.cpp:92:14 #7 0x55910c8cdb5a in dawn::native::vulkan::Queue::Create(dawn::native::vulkan::Device*, dawn::native::QueueDescriptor const*, unsigned int) third_party/dawn/src/dawn/native/vulkan/QueueVk.cpp:79:21 #8 0x55910c877b5a in dawn::native::vulkan::Device::Initialize(dawn::native::UnpackedPtr const&) third_party/dawn/src/dawn/native/vulkan/DeviceVk.cpp:190:28 #9 0x55910c876cb5 in dawn::native::vulkan::Device::Create(dawn::native::AdapterBase*, dawn::native::UnpackedPtr const&, dawn::native::TogglesState const&, dawn::Ref&&) third_party/dawn/src/dawn/native/vulkan/DeviceVk.cpp:92:22 #10 0x55910c8bfcb7 in dawn::native::vulkan::PhysicalDevice::CreateDeviceImpl(dawn::native::AdapterBase*, dawn::native::UnpackedPtr const&, dawn::native::TogglesState const&, dawn::Ref&&) third_party/dawn/src/dawn/native/vulkan/PhysicalDeviceVk.cpp:1253:12 #11 0x55910c5a70ba in dawn::native::PhysicalDeviceBase::CreateDevice(dawn::native::AdapterBase*, dawn::native::UnpackedPtr const&, dawn::native::TogglesState const&, dawn::Ref&&) third_party/dawn/src/dawn/native/PhysicalDevice.cpp:87:12 #12 0x55910c3b2a6b in dawn::native::AdapterBase::CreateDeviceInternal(dawn::native::DeviceDescriptor const*, dawn::Ref) third_party/dawn/src/dawn/native/Adapter.cpp:330:26 #13 0x55910c3b1931 in dawn::native::AdapterBase::CreateDevice(dawn::native::DeviceDescriptor const*) third_party/dawn/src/dawn/native/Adapter.cpp:350:19 #14 0x55910c3b15e8 in dawn::native::AdapterBase::APICreateDevice(dawn::native::DeviceDescriptor const*) third_party/dawn/src/dawn/native/Adapter.cpp:252:32 #15 0x55910b810229 in dawn::DawnTestBase::CreateDeviceImpl(std::__Cr::basic_string, std::__Cr::allocator>, WGPUDeviceDescriptor const*) third_party/dawn/src/dawn/tests/DawnTest.cpp:1484:41 #16 0x55910b82654b in dawn::DawnTestBase::DawnTestBase(AdapterTestParam const&)::$_1::__invoke(WGPUAdapterImpl*, WGPUDeviceDescriptor const*, WGPURequestDeviceCallbackInfo) third_party/dawn/src/dawn/tests/DawnTest.cpp:1013:44 #17 0x55910e496534 in wgpuAdapterRequestDevice gen/third_party/dawn/src/dawn/dawn_proc.cpp:88:12 #18 0x55910b811e84 in dawn::DawnTestBase::CreateDevice(std::__Cr::basic_string, std::__Cr::allocator>) gen/third_party/dawn/include/dawn/webgpu_cpp.h:8602:19 #19 0x55910b8139b3 in dawn::DawnTestBase::SetUp() third_party/dawn/src/dawn/tests/DawnTest.cpp:1655:14 #20 0x55910b8b157d in dawn::SharedTextureMemoryTests::SetUp() third_party/dawn/src/dawn/tests/DawnTest.h:883:43 #21 0x55910c249ad1 in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #22 0x55910c24c8e7 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #23 0x55910c24e9f3 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #24 0x55910c27e9ca in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #25 0x55910c27d42e in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #26 0x55910d982aec in base::TestSuite::Run() base/test/test_suite.cc:440:16 #27 0x55910baab8c3 in (anonymous namespace)::RunHelper(base::TestSuite*) gpu/dawn_end2end_tests_main.cc:18:22 #28 0x55910baabc5e in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:673:12 #29 0x55910dbfbb1b in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 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: 0x7bce51c48b00: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fa 0x7bce51c48b80: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fa 0x7bce51c48c00: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fa 0x7bce51c48c80: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fa 0x7bce51c48d00: fa fa 00 00 00 00 00 00 fa fa 00 00 00 02 00 00 =>0x7bce51c48d80: fa fa fd fd[fd]fd fd fa fa fa fd fd fd fd fd fa 0x7bce51c48e00: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fd 0x7bce51c48e80: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fa 0x7bce51c48f00: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd 0x7bce51c48f80: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd 0x7bce51c49000: 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 ==1846==ADDITIONAL INFO ==1846==Note: Please include this section with the ASan report. Task trace: ==1846==END OF ADDITIONAL INFO ==1846==ABORTING