-
Notifications
You must be signed in to change notification settings - Fork 1k
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
ASAN is crashing app_process on Android #1101
Comments
Does the arm failure look the same? |
I rechecked again and only x86_64 is affected. |
yeah, only the system calls that bionic actually uses tend to be allowed by seccomp. if we'd have caught this during P development we'd probably have added an exception -- we already have several just for sanitizers [open/readlink/stat64] -- but at this point it's too late for adding stat to be any use anyway. (note that bionic doesn't use stat64 itself either: whenever there's an *at variant of a system call, bionic only uses that, because that's all that's supported on arm64 and we try to ensure that everything goes through the same codepaths where possible.) |
@eugenis I am using following wrap.sh script: ---- new stack ---- backtrace: |
that's not the same issue. ARM system call 214 is setgid32. i don't think the code in question should be run if you're actually using wrap.sh, though (because that code is for cloning the zygote, not for running as a new process). |
@eugenis
|
I have a similar issue trying to run Asan on a Samsung tablet. As reported above, the PID is not the actual PID of my application which continues for a short time before abort()ing on a thrown exception, even though the exception is caught in my code and works fine when Asan is disabled. But perhaps this secondary exception problem is a result of the first issue I am reporting here regarding the app process being terminated? 2020-03-30 15:10:53.423 8498-8498/? A/libc: Fatal signal 31 (SIGSYS), code 1 (SYS_SECCOMP) in tid 8498 (main), pid 8498 (main) |
I have a similar issue trying to run Asan on a xiaomi tablet. backtrace: |
Hi,
I tried ASAN on arm & x86 (emulators) but it always fails. I'm using the
wrap.sh
technique to loadlibclang_rt.asan-x86_64-android.so
.If needed I can upload the .apk somewhere.
Here is the backtrace on x86_64 emulator:
The text was updated successfully, but these errors were encountered: