Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Debug builds for the Flame, and also ASan, Valgrind builds

23 views
Skip to first unread message

Gary Kwong

unread,
Jul 15, 2014, 8:50:47 PM7/15/14
to mozilla...@lists.mozilla.org
Hi all,

Currently our builds using Mozilla-TWQA's B2G Flash Tool [1] flash only
opt builds.

How useful do developers think it would be to have debug eng builds as
well? [2] This will enable assertions and probably make it easier to
debug gaia-ui-tests, as well as look out for seccomp violations.

Also, it would be nice to have ASan support [3] for Firefox OS to help
find security issues. That being said, Valgrind support is underway, but
I could find some work at Github [4] from some months back.

-Gary

[1] https://github.com/Mozilla-TWQA/B2G-flash-tool
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1039053
[3] https://bugzilla.mozilla.org/show_bug.cgi?id=1039056
[4] https://github.com/mozilla-b2g/valgrind

Kyle Huey

unread,
Jul 16, 2014, 1:47:36 AM7/16/14
to Gary Kwong, mozilla...@lists.mozilla.org
> _______________________________________________
> dev-b2g mailing list
> dev...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-b2g

I've been using a debug build on my Nexus 5 for a few days now and
it's surprisingly stable.

Not sure how useful the builds are to people without symbols though.

- Kyle

Kyle Machulis

unread,
Jul 16, 2014, 5:27:59 PM7/16/14
to Gary Kwong, mozilla...@lists.mozilla.org
We've had FxOS valgrind support for over a year, though it does require me manually updating the repo (which I'm hoping to do this week). However, that was only for the Nexus 4/5 because they were the only things with enough RAM. The new valgrind work on the flame is happening because (from my understanding) we have more control over the kernel and therefore can possibly operate in 1gb.

Eric Rahm

unread,
Jul 16, 2014, 6:31:15 PM7/16/14
to mozilla...@lists.mozilla.org
I managed to run valgrind on my Flame while looking into DMD issues
without doing anything particularly special.

-e

Eric Rahm

unread,
Jul 16, 2014, 6:38:01 PM7/16/14
to mozilla...@lists.mozilla.org
I've been using them recently as well. It would definitely be nice if we
provided builds, but as Kyle noted we should probably provide the
symbols as well.

+1 for ASan (and it's buddy LSan). I believe we'll need to update to a
newer version of GCC (support was added in 4.8.0) to be able to enable
it. I seem to recall a discussion about using a more modern GCC, but I'm
not sure what came of that.

-e

Gary Kwong

unread,
Jul 16, 2014, 7:41:00 PM7/16/14
to Eric Rahm
> +1 for ASan (and it's buddy LSan).

What's the status of MSan? (the 3rd buddy) Is there any work on that for
Desktop Firefox as well? Would it also be useful for Firefox OS?

-Gary

Eric Rahm

unread,
Jul 16, 2014, 7:50:39 PM7/16/14
to mozilla...@lists.mozilla.org
My understanding is MSan is llvm, linux x86_64 only, generally making it
a no-go 3 different ways. It claims to be a subset of Valgrind's
memcheck, so in theory we should get more coverage from valgrind
(although with a much greater slow down).

-e
0 new messages