Need help with chromium asan build for android

376 views
Skip to first unread message

RA

unread,
Jul 18, 2025, 2:09:47 PMJul 18
to Chromium-dev
Hello,

I've tried building chromium asan for android x86 and it successfully installs but when I open, it gives this error message saying `your device couldn't open Chrome. To fix this issue, download the latest chrome update from your app store`

my gn args are:
target_os = "android"
target_cpu = "x86"
use_remoteexec = false
is_component_build = false
is_asan = true

I've attached logs during opening chromium and gn_logs after installation.
gn_logs.txt
Screenshot 2025-07-18 223552.png
logcat.txt

Alesandro Ortiz

unread,
Aug 20, 2025, 2:33:33 PMAug 20
to Chromium-dev, RA
Hello,

I've tried this in the past and have also run into the same issue on Android. I had a similar issue on WIndows but that was resolved by disabling component builds. Since it's disabled here, not sure why it's not working.

Re-reading that old thread, maybe try setting is_debug to false? That's also mentioned here for Android: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/asan.md#building-on-android

Hopefully someone else in group has some insights into why this isn't working on Android or if there's better docs somewhere.

Regards,
Alesandro

Alesandro Ortiz

unread,
Aug 20, 2025, 2:45:20 PMAug 20
to Chromium-dev, Alesandro Ortiz, RA
Looking at the logcat you attached, seems like someone had nearly identical issue in 2022, but it's unclear how they resolved it (if at all): https://issues.chromium.org/issues/40852256

They suspected OOM but might have been red herring in logs.

Regards,
Alesandro

RA

unread,
Oct 4, 2025, 4:19:07 PMOct 4
to Chromium-dev, Alesandro Ortiz, RA
For anyone reading this chromium ASAN is no longer supported, but hwasan is supported but guess what arm64 isn't supported either and hwasan needs an arm architecture. So as of my knowledge there's no possible way to test for any memory issues. AAAAAAAAAAAaaarghhhhh!!!!!!!!!!!!Screenshot 2025-10-05 014554.png
download.png

RA

unread,
Oct 5, 2025, 2:49:08 PMOct 5
to Chromium-dev, RA, Alesandro Ortiz
Strangely enough, the build started running for some reason tonight. Will update here in case the build is successful, until then I will post the links to issue stating the discontinuation of is_asan flag.  Clank and WebView crash on startup if built with asan [441905843] - Chromium

gn args used (that is currently running): 
is_debug = false
is_hwasan=true 
target_os = "android" 
target_cpu = "arm64" 
dcheck_is_configurable=false 
dcheck_always_on=false 
v8_enable_sandbox=false 
symbol_level=2


Also yesterday's log for arm64 
Screenshot 2025-10-05 014858.png
Reply all
Reply to author
Forward
0 new messages