-
Notifications
You must be signed in to change notification settings - Fork 273
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] [NDK R25c] [Android-13] multi-thread with asan fatal error : signal 4 (SIGILL), code 2 (ILL_ILLOPN) #1848
Comments
that's a PAC failure, no? i think you have some generated code here:
that's incorrect? |
If it turns out to be something else, we will need a repro case. |
device list : only some device cause error
repo :
steps:
when remove this thread error gone : https://github.com/DaydreamCoding/neon-intrinsics-test/blob/feature/ndk_r25_asan/test/image-warpTest.cpp#L15
|
What about #1848 (comment)? |
all devices are ARMv9 |
Yes, only armv9 supports PAC, and this looks like a PAC failure in generated code in your app. afaict the only docs that cover this are https://developer.android.com/ndk/guides/abis#armv9_enabling_pac_and_bti_for_cc. I've filed a bug (http://b/272807546, couldn't find a public component for it, sorry) for documenting that better. |
ILL_ILLOPN on arm64 is always PAC. Not sure why the top frame is in ASan? |
...and before you argue "no, PAC is an armv8.3 feature!", yes, that's strictly true, but it wasn't implemented in any of Arm's core before the armv9 cores (except for Apple's iPhone SoCs, which don't use Arm's cores).
i think because they're saying it only reproduces with asan? here's the code they link to:
|
only failure with NDK R25 asan library (libclang_rt.asan-aarch64-android.so), use system library or others are normaly run
if build if if
yes, only use thread + asan library (NDK R25) failure, use system library or others are normaly run |
Description
use asan in Android-13 with multi-thread fatal error
NDK R22b pass
NDK R25c error
Affected versions
r25
Canary version
No response
Host OS
Mac
Host OS version
macOS 13.2.1
Affected ABIs
arm64-v8a
Build system
CMake
Other build system
No response
minSdkVersion
33
Device API level
No response
The text was updated successfully, but these errors were encountered: