Comment #6 on issue 320 by [email protected]: Unable to use asan_device_setup.sh on android
http://code.google.com/p/address-sanitizer/issues/detail?id=320

Hi Eugenis,

I run an android userdebug emulator which built by AOSP code with PLATFORM_VERSION=4.4.3.43.43.43.
And, run the asan_device_setup from compiler-rt project with version 210259.

After emulator re-start, it shows below fatal log.
F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 2578 (app_process.rea)

Could you help to correct my testing steps?
Thanks a lot.

Here shows more information about my testing.
[emulator build version]
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=4.4.3.43.43.43
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.5.0-46-generic-x86_64-with-Ubuntu-12.10-quantal
HOST_BUILD_TYPE=release
BUILD_ID=AOSP
OUT_DIR=out

[/system/bin in emulator]
$ adb shell ls -l /system/bin | grep app_process
-rwxr-xr-x root     shell         160 2014-07-13 23:59 app_process
-rwxr-xr-x root     shell       13664 2014-07-13 23:59 app_process.real
-rwxr-xr-x root     shell       13664 2014-07-04 07:37 app_process32
$ adb shell cat /system/bin/app_process
#!/system/bin/sh
ASAN_OPTIONS=start_deactivated=1,alloc_dealloc_mismatch=0 \
LD_PRELOAD=libclang_rt.asan-arm-android.so \
exec /system/bin/app_process.real $@

$ adb shell cat /system/bin/asanwrapper
#!/system/bin/sh
LD_PRELOAD=libclang_rt.asan-arm-android.so \
exec $@

[logcat from emulator]
1. start emulator successfully
2. run command at device time "07-13 23:59:09"
$ ./asan_device_setup --lib android-ndk-r9d/toolchains/llvm-3.3/prebuilt/linux-x86_64/lib/clang/3.3/lib/linux/libclang_rt.asan-arm-android.so
3. emulator cannot boot up successfully
07-13 23:59:04.757 2453 2453 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 2453 (app_process.rea) 07-13 23:59:09.649 2606 2606 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 2606 (app_process.rea) 07-13 23:59:14.585 2728 2728 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 2728 (app_process.rea) 07-13 23:59:19.501 2849 2849 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 2849 (app_process.rea)

Attachments:
        emulator.log  236 KB

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to