google / sanitizers

AddressSanitizer, ThreadSanitizer, MemorySanitizer
Other
11.35k stars 1.02k forks source link

how run ASAN with android studio #1025

Open wangguijie opened 5 years ago

wangguijie commented 5 years ago

hello Thank you first. I try to use ASAN with android studio , but it does not work. Can you tell how to use ASAN with Android studio? Thank you

kcc commented 5 years ago

@eugenis , so we have anything better than https://source.android.com/devices/tech/debug/asan ?

oncealong commented 5 years ago

@kcc is there a code sample about Android? I read and follow many articles, but all didn't work. I want to get a work copy, and learn from it.

LovelyLittleDemon commented 5 years ago

Thank you !! I used ASAN on android studio, and it works. ASAN do not support memory leaks and threadsanitize on android . Will they support in the future ? Thank you all~~~ ASAN on android APP: https://github.com/LovelyLittleDemon/CMemoryLeaks

LovelyLittleDemon commented 5 years ago

wangguijie is my another ID, and this ID is the new one

kcc commented 5 years ago

We want to have lsan and tsan in Android, but we don't have any timeline for that. I suggest you to follow https://source.android.com/devices/tech/debug/asan and post what exactly doesn't work for you, here.

LovelyLittleDemon commented 5 years ago

Thank you kcc I used ASAN on android studio, and it works. But Isan and tsan do not work. lsan and tsan are good tools of native memory check. It would be great if they support android. We are looking forward to use them on android. I hope you can support this as soon as possible. Thank you