Asan build for android

241 views
Skip to first unread message

Sobir Yorov

unread,
Dec 13, 2021, 1:13:16 PM12/13/21
to Chromium-dev
Hi everyone,

I have some question about asan build for android:
1. I found a build - https://ci.chromium.org/p/chromium/builders/ci/android-asan, which perhaps are used for regular running tests with asan, am I true?
2. Are you running tests on a real device or an emulator? It seems you run tests on real device, because you don't specify target_cpu (x86, x86_64) in the gn args and by default it's arm? Maybe you have emulators with arm/arm64?
3. I built locally tests with is_asan = true, target_cpu = x86, target_os = android. The components_unittests failed in a runtime due to not enough memory for loading libraries (4GB RAM not enough). Do you have such problems on running tests on an arm or 4GB RAM in a device is enough?
4. Can you share the configurations info (cpu, RAM, storage and so on) of your devices, which are used to run tests with asan?

PS. It all needs to run tests with asan in Yandex browser.

Haiyang Pan

unread,
Dec 13, 2021, 5:24:52 PM12/13/21
to ya.sobi...@gmail.com, Chromium-dev
Hello,

On Mon, Dec 13, 2021 at 10:13 AM Sobir Yorov <ya.sobi...@gmail.com> wrote:
Hi everyone,

I have some question about asan build for android:
1. I found a build - https://ci.chromium.org/p/chromium/builders/ci/android-asan, which perhaps are used for regular running tests with asan, am I true?

Yes, this is correct :)
 
2. Are you running tests on a real device or an emulator? It seems you run tests on real device, because you don't specify target_cpu (x86, x86_64) in the gn args and by default it's arm? Maybe you have emulators with arm/arm64? 
3. I built locally tests with is_asan = true, target_cpu = x86, target_os = android. The components_unittests failed in a runtime due to not enough memory for loading libraries (4GB RAM not enough). Do you have such problems on running tests on an arm or 4GB RAM in a device is enough?
4. Can you share the configurations info (cpu, RAM, storage and so on) of your devices, which are used to run tests with asan?

For #2, #3, and #4, the tests are run on real devices, i.e. Nexus 5X (see config.).
target_cpu defaults to "arm" when the target_os is "android".

Nexus 5X has 2GB RAM and runs components_unittests fine so I guess it is not due to the memory size of the device.
You can try following this doc to compile and run tests with asan.


PS. It all needs to run tests with asan in Yandex browser.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/ff002127-10d3-4043-962f-1a1488e5cbb7n%40chromium.org.


--
Best,
Haiyang
Reply all
Reply to author
Forward
0 new messages