Open Bug 1293677 Opened 8 years ago Updated 2 years ago

ASAN on android

Categories

(Firefox Build System :: Android Studio and Gradle Integration, defect)

defect

Tracking

(Not tracked)

People

(Reporter: nical, Unassigned)

References

(Depends on 1 open bug)

Details

Has anyone tried to run address sanitizer builds of firefox on android? It would be great to have it running on try, especially with the late spike of mysterious jemalloc crashes in the webgl test suit on android in bug 1293249.
Flags: needinfo?(nfroyd)
Blocks: 1293249
I have never tried. Maybe snorp has?
Sigh, bugzilla...
Flags: needinfo?(nfroyd)
Flags: needinfo?(snorp)
I have never tried, but I fantasize about it. It's a thing: https://source.android.com/devices/tech/debug/asan.html Step 1) build with clang
Flags: needinfo?(snorp)
(In reply to James Willcox (:snorp) (jwillcox@mozilla.com) from comment #3) > I have never tried, but I fantasize about it. It's a thing: > https://source.android.com/devices/tech/debug/asan.html > > Step 1) build with clang This is totally a thing. You just need to hack around bug 1255210, and specify clang as CC and CXX with -gcc-toolchain arguments.
(Bug 1163171 tracks building Fennec with clang.)
Component: Untriaged → Build Config & IDE Support
Product: Core → Firefox for Android
Depends on: 1482167, 1004021
Depends on: 1526533
Depends on: 1527103

Kim any idea who could potentially work on this?

Flags: needinfo?(kmoir)

I don't have anyone who can look at this for a couple of weeks, perhaps someone on erahm's team could take a look?

erahm is out this week, but I don't think anybody on our team is free until at least after the all hands. Jesse Schwartzentruber appears to be looking at x86-64 android asan builds in bug 1482167, though.

(In reply to Nathan Froyd [:froydnj] from comment #8)

erahm is out this week, but I don't think anybody on our team is free until at least after the all hands. Jesse Schwartzentruber appears to be looking at x86-64 android asan builds in bug 1482167, though.

Yes, it seems like the fuzzing team would want to take a look at this. We can assist if they run into issues.

Product: Firefox for Android → Firefox Build System

Sylvestre is this something that would fit on your team's roadmap?

Flags: needinfo?(sledru)

(In reply to (Away until 2020) David Bolter [:davidb] (NeedInfo me for attention) from comment #10)

Sylvestre is this something that would fit on your team's roadmap?

We have builds now, is the request for tests to be run with said builds, or something else?

Yeah, we have now asan support for Android. Truber & Tyson worked on it.
We were close to have Firefox for Android support. Now, we need to work on the next steps (geckoview examples?)

We can meet in Berlin to discuss about that if you want!

Flags: needinfo?(sledru)
Flags: needinfo?(kmoir)

The Android fuzzing build I created is here: https://firefox-ci-tc.services.mozilla.com/tasks/index/gecko.v2.mozilla-central.latest.mobile/android-x86_64-fuzzing-asan

It requires at least an Android 8.1 emulator. I tried packaging an AVD to add to mozrunner, but it didn't work on the first try, and it wasn't blocking me (fuzzing doesn't use mozrunner) so I dropped it. I think that's what would be needed to run tests against it.

Tyson is working on porting our fuzzing automation to use geckoview_example from that build instead of Fennec.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.