Closed Bug 689178 Opened 13 years ago Closed 4 years ago

Remove crash-reporter hooks to externally provide library mappings

Categories

(Toolkit :: Crash Reporting, defect)

ARM
Android
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

Attachments

(4 files)

Currently, our custom Android linker feeds the crash reporter with the information it needs to find our ashmem-backed libraries. As we're going to move to dynamically loading libraries when they are needed, the full list won't be available when the crashreporter is initialized like it currently is.

However, the linker keeps all the necessary info in the DT_DEBUG info that is mainly used for debuggers. This info is currently kept in a MD_LINUX_DSO_DEBUG section of the minidump (which is currently not enabled on android builds), but this info could be used to fill the modules list.
Depends on: 689184
Blocks: 725231
This needs to land at the same time as bug 725231.
Attachment #745865 - Flags: review?(ted)
With breakpad taking mappings from data provided by the linker, that workaround is not needed anymore.
Attachment #745919 - Flags: review?(ted)
Comment on attachment 745865 [details] [diff] [review]
Remove crash-reporter hooks to externally provide library mappings

Review of attachment 745865 [details] [diff] [review]:
-----------------------------------------------------------------

Guess I should review your upstream patches!
Attachment #745865 - Flags: review?(ted) → review+
Comment on attachment 745919 [details] [diff] [review]
Disable elfhack workaround from bug 822584

Review of attachment 745919 [details] [diff] [review]:
-----------------------------------------------------------------

Are you sure you're never going to need this again? I guess it's not a lot of code to put back if you do.
Attachment #745919 - Flags: review?(ted) → review+
Can you give me the ordering of how they apply? I've reviewed a few of them but I can't ever remember what order they apply in, so I'm never sure if I can land them without reviewing others first. Sorry for the ridiculous delay.
Flags: needinfo?(ted)
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #8)
> Can you give me the ordering of how they apply?

The exact order in which they appear in comment 7.
Blocks: 927480

This is a rebase of a 7-year-old patch that was r=ted. The hooks are not
used as of bug 725231.

This is a rebase of a 7-year-old patch that was r=ted. The main part of
the patch was actually already removed in bug 1389598.

Summary: Use DT_DEBUG information to enumerate library mappings → Remove crash-reporter hooks to externally provide library mappings
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/50c02f803046
Remove crash-reporter hooks to externally provide library mappings. r=gsvelto
https://hg.mozilla.org/integration/autoland/rev/39a6155cb418
Remove remainder of elfhack workaround from bug 822584. r=froydnj
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
Regressions: 1651090
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: