-
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
AddressSanitizer tool on Android 6.0.1 #698
Comments
What's your lunch target? On Tue, Jul 12, 2016 at 12:37 AM, dragonltx [email protected]
|
my lunch target is 21:aosp_shamu-userdebug There aren't any libraries in $ANDROID_PRODUCT_OUT/data/lib. |
Could you try the master branch? On Tue, Jul 12, 2016 at 6:42 PM, dragonltx [email protected] wrote:
|
Ok!Let me have a try and feed back! |
I test master branch: do you have any ideas? |
PLATFORM_VERSION_CODENAME=REL OUT_DIR=out |
Yes, that looks familiar. On Mon, Jul 18, 2016 at 12:50 AM, dragonltx [email protected]
|
I sync and build with "make USE_CLANG_PLATFORM_BUILD:=true SANITIZE_TARGET=address -j16",it succeed! but the crash stack from the logcat looks like the version build without asan: not like this with asan: 0xaef03b32 is located 0 bytes to the right of 690-byte region [0xaef03880,0xaef03b32) am i something wrong? and which binary(https://developers.google.com/android/nexus/drivers#shamumob30o) do you build with the master branch? |
Does this happen early during boot? /data is mounted quite late, and Did you flash the userdata partition? /system/lib/libstagefright_soft_avcdec.so is a library built w/o ASan. It's Hmm, I see you ran "./stagefright", probably from shell. Was it built with On Tue, Jul 19, 2016 at 4:28 AM, dragonltx [email protected] wrote:
|
As for the binaries, the master branch needs "preview" blobs from On Tue, Jul 19, 2016 at 11:36 AM, Evgenii Stepanov <
|
yeah! You are right!stagefright wasn't built with asan! I build with asan,and the crash logcat is right with asan! Thanks a lot! |
Looks resolved. Please re-open if not. |
I meet same problems like dragonltx. i pull -b android-6.0.0_r1 from android srouce code and download the nexus5 's device driver,then i directly build my Android 6.0.1_r46 source code with below commands: |
According to the below link,I build the whole Android 6.0.1_r46 system, but it seems the AddressSanitizer can't work.
https://source.android.com/devices/tech/debug/asan.html#sanitize_target
the above link which mentioned 2 build command, so I build my Android 6.0.1_r46 source code with below commands:
make -j16
make USE_CLANG_PLATFORM_BUILD:=true SANITIZE_TARGET=address -j16
The build got success, but after I flash the both userdata and system images to my device, I can't find the '/data/lib' path, I also can't find the path '/system/lib/asan' from the device.
Can this tool work on Android 6.0.1 and how to make it work?
The text was updated successfully, but these errors were encountered: