ci(amd64/clang/lsan): attempt to fix lsan
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
a19e095a8e
commit
49596c31f3
2 changed files with 11 additions and 3 deletions
|
@ -231,8 +231,12 @@ void Instance::initialize_instance()
|
||||||
|
|
||||||
void Instance::load_library()
|
void Instance::load_library()
|
||||||
{
|
{
|
||||||
library = dlopen("libvulkan.so", RTLD_NOW | RTLD_LOCAL | RTLD_NODELETE);
|
library = dlopen("libvulkan.so.1", RTLD_NOW | RTLD_LOCAL);
|
||||||
ensure(library, "Failed to dlopen libvulkan.so");
|
if(!library)
|
||||||
|
{
|
||||||
|
library = dlopen("libvulkan.so", RTLD_NOW | RTLD_LOCAL | RTLD_NODELETE);
|
||||||
|
}
|
||||||
|
ensure(library, "Failed to dlopen vulkan library");
|
||||||
|
|
||||||
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
|
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
|
||||||
vk_get_instance_proc_address = reinterpret_cast<PFN_vkGetInstanceProcAddr>(
|
vk_get_instance_proc_address = reinterpret_cast<PFN_vkGetInstanceProcAddr>(
|
||||||
|
@ -248,6 +252,10 @@ void Instance::unload_library()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// calling dlclose causes many issues with runtime analyzers
|
||||||
|
// eg. https://github.com/google/sanitizers/issues/89
|
||||||
|
// with no noticable gains, so we just don't bother closing it.
|
||||||
|
|
||||||
// dlclose(library);
|
// dlclose(library);
|
||||||
// library = nullptr;
|
// library = nullptr;
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ cmake . \
|
||||||
-GNinja \
|
-GNinja \
|
||||||
-DCMAKE_LINKER_TYPE=MOLD \
|
-DCMAKE_LINKER_TYPE=MOLD \
|
||||||
-DENABLE_UNIT_TESTS=ON \
|
-DENABLE_UNIT_TESTS=ON \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Debug \
|
||||||
-DCMAKE_CXX_FLAGS=" \
|
-DCMAKE_CXX_FLAGS=" \
|
||||||
-fsanitize=leak \
|
-fsanitize=leak \
|
||||||
-g \
|
-g \
|
||||||
|
|
Loading…
Add table
Reference in a new issue