-
Notifications
You must be signed in to change notification settings - Fork 258
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
[Bug]: Build Crash With Asan On, clang++: error: clang frontend command failed with exit code 139 #1978
Comments
We need these files to investigate further. |
A workaround is to use |
Also note that upstream no longer supports ASan for Android (HWASan is better in pretty much every way for API 34+). It's not likely that this bug is Android specific so upstream may still want to fix the crash, but if you have an API 34 device available, you're probably better off just switching to HWASan? |
Hello, I tried use attribute((no_sanitize("address"))) to disable asan check for this function, but NDK still crashes during the compiling. I tried this attribute in a helloworld Demo, when this demo compling works fine, I can actually disable the particular function asan check. However, it doesn't work in the particular function in my project . |
The crash is in the llvm's register allocator. Can you provide preprocessed file that resulted in the error? See https://releases.llvm.org/8.0.0/docs/HowToSubmitABug.html#front-end-bugs on how to provide a preprocessed file. TLDR: add |
If this fails with r26b, uploading the files in |
Description
In a complex C/C++ image processing project involving opencl and dsp, using CMakeLists+Linux, when I turned on the Asan detection compilation option(add_definitions("-fsanitize=address")), the NDK reported the following error. When I close Asan option, it compiles smoothly. I tried from r19c to 26b version, it doesn't work anyway.
The error log points to a function called "FastLoopCl", which is a host cpp function of an opencl that is written the same way as hundreds of other opencl host functions in my project, which runs stably and correctly when the asan compilation option is not enabled.
I tried to annotate this function, and it works and succeed in compiling.
I also tried to annotate a part of this function, but it dosen't work. It cant point to a specific part of codes which leads to the crash. It seems to trigger randomly.
The most obvious error log is: clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation).
So have any friends encountered the same problem? How can I fix it?
Sorry I can't provide a simple test case. I cant reproduce this error in a simple test case anyway.
The error log is as below:
//=====================================================================================================
Upstream bug
No response
Commit to cherry-pick
No response
Affected versions
r26
Canary version
No response
Host OS
Linux
Host OS version
Ubuntu18.04
Affected ABIs
arm64-v8a
The text was updated successfully, but these errors were encountered: