-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[LSAN] LeakSanitizer false positive on macOS Aarch64 #115992
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
Comments
Not sure if this is the right way to do it, but CC @vitalybuka in case you know something? It would be nice to get this fixed so that we can release LeakSanitizer on |
There is https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer#suppressions For permanent solution maybe
However I don't work on OSX, and I am not sure if permanent suppression is appropriate solution. CC @wrotki @yln If you know who is interested in lsan at Apple. |
Thanks for the pointers. I've opened #117478 to fix it that way, but still interested to hear from the others if there's a better way! |
This is done by passing special options to ASAN. However; a suppression file is required for this platform as there is what seems to be a false positive coming from an OS library: llvm/llvm-project#115992
This is done by passing special options to ASAN. However; a suppression file is required for this platform as there is what seems to be a false positive coming from an OS library: llvm/llvm-project#115992
This is done by passing special options to ASAN. However; a suppression file is required for this platform as there is what seems to be a false positive coming from an OS library: llvm/llvm-project#115992 PR: #17
This is done by passing special options to ASAN. However; a suppression file is required for this platform as there is what seems to be a false positive coming from an OS library: llvm/llvm-project#115992 PR: #17
This is done by passing special options to ASAN. However; a suppression file is required for this platform as there is what seems to be a false positive coming from an OS library: llvm/llvm-project#115992 PR: #17
Building and running any program with LeakSanitizer or with AddressSanitizer's
detect_leaks=1
shows a leak in the system librarylibobjc.A.dylib
on Aarch64.I tested this in a virtual machine as well, this problem is present in at least macOS 13.5, macOS 14.7 and macOS 15.1.
It may be an actual issue in the OS (though I doubt it), but ideally LeakSanitizer should filter it out anyhow, since it's not actionable for the user.
Full backtrace on macOS 15.1 (build 24B2083)
Same for
clang -fsanitize=address foo.c && ASAN_OPTIONS=detect_leaks=1 ./a.out
.Clang version:
I'm using the Clang from Homebrew here, because Apple's bundled Clang does not have LeakSanitizer enabled. The problem also reproduces with the Clang from Nixpkgs, and with
rustc
.Do tell me if there's something else I can do to help resolve this!
Originally reported in rust-lang/rust#121624.
See also:
The text was updated successfully, but these errors were encountered: