-
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
libclang_rt.asan-arm-android.so crash on nexus 5 Android 4.4.4 #732
Comments
@bending1 please post code snippets, not screenshots. |
@yugr helloworld.cpp I call this function in APK directly. When launch the APK, met the crash, |
LOCAL_PATH := $(call my-dir) If i compile a executable, it works. But compile shared library, it doesn't work. |
Please provide a repro and re-open if still an issue. |
hi,
i use ndk to compile my shared library with below paraments, when run the APP, met the crash.
LOCAL_CFLAGS := -fsanitize=address -fno-omit-frame-pointer
LOCAL_LDFLAGS := -fsanitize=address
LOCAL_ARM_MODE := arm
from the backtrace, the crash in libclang_rt.asan-arm-android.so, it seems met null pointer.
backtrace:
#00 pc 00000000
#1 pc 0008c5d8 /system/lib/libclang_rt.asan-arm-android.so
#2 pc 0008db34 /system/lib/libclang_rt.asan-arm-android.so
#3 pc 0008da80 /system/lib/libclang_rt.asan-arm-android.so
#4 pc 0007f520 /system/lib/libclang_rt.asan-arm-android.so
#5 pc 00000600 /data/app-lib/com.example.inlinehookdemo-1/libhelloworld.so
#6 pc 0000274d /system/bin/link
Someone can tell me what's wrong with me? Thank you!
ndk version: r13d
device: nexus5 Android4.4.4
The text was updated successfully, but these errors were encountered: