Skip to content

Debugging Memory Leaks page references non-existent sanitizer flag #957

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

Closed
ADKaster opened this issue Apr 4, 2025 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@ADKaster
Copy link

ADKaster commented Apr 4, 2025

Describe the bug

The overview section mentions that on linux, there is a sanitizer=leak option to swiftc. This option does not exist, as LeakSanitizer is a component of AddressSanitizer. The section below valgrind on AddressSanitizer mentions how to ensure LSAN is enabled on linux.

To Reproduce

Steps to reproduce the behavior:

https://www.swift.org/documentation/server/guides/memory-leaks-and-usage.html#tools-and-techniques

On Linux: Swift has built-in LeakSanitizer support that can be enabled using the -sanitize=leak compiler flag.

Expected behavior

Document the LSAN integration with sanitize=address as explained more fully later in the document

Actual behavior

Misleading documentation overview

@ADKaster ADKaster added the bug Something isn't working label Apr 4, 2025
@ADKaster
Copy link
Author

ADKaster commented Apr 4, 2025

Closed by #959

@ADKaster ADKaster closed this as completed Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant