Closed
Bug 595167
Opened 16 years ago
Closed 16 years ago
Make Breakpad client libs work on Android
Categories
(Toolkit :: Crash Reporting, defect)
Tracking
()
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| fennec | 2.0b2+ | --- |
People
(Reporter: ted, Assigned: ted)
References
Details
Attachments
(1 file, 2 obsolete files)
|
86.63 KB,
patch
|
Details | Diff | Splinter Review |
The first step in getting crash reporting working on Android will be making sure the Breakpad libs build and work on Android.
| Assignee | ||
Comment 1•16 years ago
|
||
Progress report:
I've got the Breakpad client code compiling and linking for Android, and I had Vivien run it for me on a Nexus One (it fails to run on my Tegra for some reason). It's failing a bunch of unit tests, but that's not surprising. There's a bit more work to make all the unit tests pass, I'd estimate maybe another week once I get an N1 to test on.
| Assignee | ||
Comment 2•16 years ago
|
||
I fixed some assumptions in the unit tests and most of them pass now (thanks to Vivien for running it again). There are just a few failing tests which I'll be unable to diagnose until I get a device that can run the tests, but it's probably working well enough now that I can try building fennec with it and seeing what happens.
Current patch is here:
http://hg.mozilla.org/users/tmielczarek_mozilla.com/breakpad-mq/file/511553dc4d22/android
| Assignee | ||
Comment 3•16 years ago
|
||
I built Fennec with this patch, and was able to get a minidump out using "Crash me now!" There are still some issues, but that's very promising!
| Assignee | ||
Comment 4•16 years ago
|
||
| Assignee | ||
Comment 5•16 years ago
|
||
Actually some bits of this patch ostensibly belong on bug 595171. I just mashed them up so I could test on device, since the Breakpad unittests don't run on my Tegra.
| Assignee | ||
Comment 6•16 years ago
|
||
This is working, but File ID calculation is failing for some reason. It works in the unit tests, whether I run them as a straight C++ program, or loaded into an Android app using JNI, but fails when run inside of Fennec. That needs to be fixed since otherwise we can't match modules up to symbol files.
| Assignee | ||
Comment 7•16 years ago
|
||
Ah, I fixed it. I think this is working well enough to work on getting patches upstream.
| Assignee | ||
Comment 8•16 years ago
|
||
The longer explanation is that instead of taking a full Breakpad update snapshot, I just ported my patch on top of the existing Breakpad code in mozilla-central. Unfortunately the file ID code there exhibited a bug that the upstream code didn't, since the upstream code had since been changed.
| Assignee | ||
Comment 9•16 years ago
|
||
Upstream patch up for review:
http://breakpad.appspot.com/212001/show
| Assignee | ||
Updated•16 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 10•16 years ago
|
||
linux_syscall_support.h got split out into its own repository, since it's shared with Chromium as well, and I had to patch it too:
http://codereview.chromium.org/3656004
| Assignee | ||
Updated•16 years ago
|
Attachment #481880 -
Attachment is obsolete: true
| Assignee | ||
Comment 11•16 years ago
|
||
| Assignee | ||
Comment 12•16 years ago
|
||
Comment on attachment 482864 [details] [diff] [review]
Make Breakpad client libs work on Android
These are just the Breakpad changes, merged to our local Breakpad snapshot (the upstream patch doesn't apply cleanly).
Updated•16 years ago
|
tracking-fennec: --- → 2.0b2+
| Assignee | ||
Comment 13•16 years ago
|
||
This landed upstream:
http://code.google.com/p/google-breakpad/source/detail?r=716
I'll leave this bug open until we land it in m-c.
tracking-fennec: 2.0b2+ → ---
| Assignee | ||
Comment 15•16 years ago
|
||
No, that was probably just bugzilla screwing me.
| Assignee | ||
Updated•16 years ago
|
Attachment #482864 -
Attachment is obsolete: true
| Assignee | ||
Comment 16•16 years ago
|
||
Comment 17•16 years ago
|
||
pushed http://hg.mozilla.org/mozilla-central/rev/ca8226c47fea
with two follow ups for bustage fixes:
http://hg.mozilla.org/mozilla-central/rev/df5fd0d9d783 and
http://hg.mozilla.org/mozilla-central/rev/7b324b328cbc
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 18•16 years ago
|
||
What was failing that you had to check those fixes in? An Android build, or a desktop Linux build? (I'll need to make sure those wind up upstream.)
Comment 19•16 years ago
|
||
(In reply to comment #18)
> What was failing that you had to check those fixes in? An Android build, or a
> desktop Linux build? (I'll need to make sure those wind up upstream.)
> http://hg.mozilla.org/mozilla-central/rev/df5fd0d9d783
fixes http://tinderbox.mozilla.org/showlog.cgi?log=Mobile/1287621662.1287625046.2209.gz which effected all linux builders
> http://hg.mozilla.org/mozilla-central/rev/7b324b328cbc
fixes http://tinderbox.mozilla.org/showlog.cgi?log=Mobile/1287625133.1287625394.3995.gz which effected half of the maemo builders (filed bug 606179 for the inconsistency)
| Assignee | ||
Comment 20•16 years ago
|
||
(In reply to comment #17)
> http://hg.mozilla.org/mozilla-central/rev/7b324b328cbc
I upstreamed a fix for this (not exactly the same patch, but it fixes it):
http://code.google.com/p/google-breakpad/source/detail?r=718
| Assignee | ||
Comment 21•16 years ago
|
||
(In reply to comment #17)
> pushed http://hg.mozilla.org/mozilla-central/rev/ca8226c47fea
> with two follow ups for bustage fixes:
> http://hg.mozilla.org/mozilla-central/rev/df5fd0d9d783 and
Posted this one for upstream review here:
http://codereview.chromium.org/4053002
You need to log in
before you can comment on or make changes to this bug.
Description
•