Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilers: allow combining address and leak sanitizers #14128

Closed
wants to merge 1 commit into from

Conversation

pks-t
Copy link
Contributor

@pks-t pks-t commented Jan 12, 2025

We do not currently allow combining the address and leak sanitizers with one another. This mode is officially documented as supported by at least LLVm though, as documented in 1:

LeakSanitizer is a run-time memory leak detector. It can be combined
with AddressSanitizer to get both memory error and leak detection,
or used in a stand-alone mode.

Add the combination to the list of allowed sanitizers.

We do not currently allow combining the address and leak sanitizers with
one another. This mode is officially documented as supported by at least
LLVm though, as documented in [1]:

    LeakSanitizer is a run-time memory leak detector. It can be combined
    with AddressSanitizer to get both memory error and leak detection,
    or used in a stand-alone mode.

Add the combination to the list of allowed sanitizers.

[1]: https://clang.llvm.org/docs/LeakSanitizer.html

Signed-off-by: Patrick Steinhardt <ps@pks.im>
@pks-t pks-t force-pushed the pks-sanitize-address-and-leak branch from 95d16eb to 6569e76 Compare January 12, 2025 20:01
@eli-schwartz
Copy link
Member

The main problem with this is that it isn't ambitious enough. :D See #12648

@pks-t
Copy link
Contributor Author

pks-t commented Jan 12, 2025

The main problem with this is that it isn't ambitious enough. :D See #12648

@eli-schwartz Ah, perfect! I was pondering whether to convert the option to an array as it doesn't feel like it is well-maintainable going forward. It feels like that PR is mostly stale by now? If so I may try to have a look at whether I am able to fix remaining issues with Cuda there.

@pks-t
Copy link
Contributor Author

pks-t commented Jan 12, 2025

In any case, let me close this PR in favor of that other one.

@pks-t pks-t closed this Jan 12, 2025
@pks-t pks-t deleted the pks-sanitize-address-and-leak branch January 12, 2025 20:25
@eli-schwartz
Copy link
Member

It feels like that PR is mostly stale by now? If so I may try to have a look at whether I am able to fix remaining issues with Cuda there.

If you could figure out the test failures there, that would be fantastic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants