-
Notifications
You must be signed in to change notification settings - Fork 259
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
[FR] clang compiler driver should reject unsupported sanitizers #1958
Comments
msan is not one of the supported sanitizers on Android. See google/sanitizers#1381. If you're debugging memory initialization issues, you can use the options in https://source.android.com/docs/security/test/memory-safety/zero-initialized-memory#zero-initialized-userspace to |
(see also https://developer.android.com/ndk/guides/hwasan which is the main thing we use within Android to find memory errors --- i certainly do all my development with hwasan enabled.) |
@pirama-arumuga-nainar @enh-google Thanks you for answers/recommendations! Then, if msan is not supported, should NDK maybe give some explicit error about it? I can imagine that you'll periodically get tickets from impatient users (like I am :)). I guess that you see no point in tweaking clang driver to reject
I haven't tried this but assume it should work as NDK already has supplemental linker scripts for libc++. |
It rarely has much to do with what we want. It's about what LLVM will accept. They might accept that? @pirama-arumuga-nainar? |
(@appujee filed an internal bug that mentions that iOS/macOS already has an equivalent check.) |
That's promising then. I'll retitle this bug for that. |
Is ASAN still not supported? I just burned a good amount of time on this, because: This page suggests that it is supported, except for arm64 platform development (I'm using the 16k pages emulator). This page also says it's supported. This page says it's not supported, but still documents how to use it and does not say it is broken. This page says hwasan is supported only for arm64. Is there no longer any way to do msan in any form on an emulator? Maybe as a part of this bug, the docs I found could be updated as well? |
Description
Getting this with
-fsanitize=memory
:Not sure if it is bug or conscious choice for r26, so opening as FR.
Can we have msan rt lib in NDK?
The text was updated successfully, but these errors were encountered: