Skip to content

Conversation

tex3d
Copy link
Contributor

@tex3d tex3d commented Jun 3, 2025

Address-sanitizer reports a leak coming from the dynamic shared library loading code, though dlopen() is paired with dlclose(). This leak doesn't manifest on main yet because dxc adds dxcompiler directly to target_link_libraries (which it shouldn't have to), and dxil is loaded within that library. A PR to remove dxil loading from dxcompiler exposes the leak when dxc loads dxil dynamically.

This change adds a suppressions file for LSAN to suppress the leak in the loader code that happens under call_init. This also changes the Linux_Clang_Release build to RelWithDebInfo so symbols are present.

address-sanitizer reports a leak coming from the dynamic shared library loading code, though dlopen() is paired with dlclose().
This leak doesn't manifest on main yet because dxc adds dxcompiler directly to target_link_libraries (which it shouldn't have to), and dxil is loaded within that library.
A PR to remove dxil loading from dxcompiler exposes the leak when dxc loads dxil dynamically.

This change adds a suppressions file for LSAN to suppress the leak in the loader code that happens under call_init.
To make this work, it must also change the Release build to RelWithDebInfo so symbols are present, which are required to resolve the function name we match in the suppressions file.
@tex3d tex3d merged commit 296d4ae into microsoft:main Jun 4, 2025
13 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in HLSL Roadmap Jun 4, 2025
@tex3d tex3d deleted the lsan-suppression branch June 4, 2025 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants