Closed Bug 1711418 Opened 4 years ago Closed 4 years ago

Add the OOMAllocationSize field to crashes captured by WER

Categories

(Toolkit :: Crash Reporting, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: gsvelto, Assigned: gsvelto)

References

Details

Attachments

(2 files)

This requires reading the crashed process memory so we'll have to add a pointer to the allocation to the data we pass to the WER runtime exception module. It might be useful to fix bug 1709277 first but not strictly necessary.

Assignee: nobody → gsvelto
Status: NEW → ASSIGNED

This patch adds a new field to the structures that WER reads from a
crashed process. This field contains a pointer to the global variable
that records the size of the last failed annotation.

When WER intercepts a crash it will use this address to read the
variable. If it's not zero it will add the corresponding annotation
to the crash report.

Depends on D116449

Pushed by gsvelto@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/02cf2dc4c3c8 Factorize the code that reads/writes memory to/from other processes r=KrisWright https://hg.mozilla.org/integration/autoland/rev/4cc2cb3653f2 Record the OOM allocation size in WER crashes r=KrisWright
Pushed by gsvelto@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/58092e594233 Factorize the code that reads/writes memory to/from other processes r=KrisWright https://hg.mozilla.org/integration/autoland/rev/d747dd950198 Record the OOM allocation size in WER crashes r=KrisWright

Backed out for causing build bustages on nsEmbedFunctions.cpp.

Push with failures

Failure log

Backout link

Flags: needinfo?(gsvelto)
Flags: needinfo?(gsvelto)
Pushed by gsvelto@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c7f6137316ba Factorize the code that reads/writes memory to/from other processes r=KrisWright https://hg.mozilla.org/integration/autoland/rev/f4c05da73b4c Record the OOM allocation size in WER crashes r=KrisWright
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
Regressions: 1716470
No longer regressions: 1716470
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: