Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New 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
What steps will reproduce the problem?
1. browse https://code.google.com/p/address-sanitizer/wiki/Android
2. it says there is a script can be used to prepare device to run ASan
applications
3. the link leads to nothing
What is the expected output? What do you see instead?
I expect the "new way", to preload ASan runtime library into zygote
process, is ready to be run with ndk app.
I found the r202245 in compiler-rt project removed the .sh extension.
However, by using asan_device_setup, the emulator could not be started
successfully.
I do some modification as attached asan_device_setup.patch.
The modified asan_device_setup could start emulator successfully.
But, I am not sure if it is the correct way to preload ASan runtime library
into zygote process.
[try asan's new way on ndk app: OK]
I write a heap-use-after-free app as attached.
The log_ndk_ap.txt shows good report on detecting heap-use-after-free.
Here shows the emulator related version.
PLATFORM_VERSION=4.4
HOST_OS_EXTRA=Linux-3.5.0-29-generic-x86_64-with-Ubuntu-12.04-precise
BUILD_ID=KRT16M
libclang_rt.asan-arm-android.so is extracted from android-ndk-r9d
May I know if it is a good time to try asan on android now?
Does my modification meet your expected?
Thanks a lot.
Attachments:
asan_device_setup.patch 2.7 KB
asan_device_setup 5.5 KB
com.example.hellojni.apk 5.9 KB
log_ndk_ap.txt 406 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.