Closed Bug 872786 Opened 11 years ago Closed 8 years ago

Gather more information when minidumps fail

Categories

(Core :: XPCOM, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: roc, Unassigned)

Details

Attachments

(1 file)

Seems like we could at least call GetLastError and report that. Maybe there are other things we can do too.
Attached patch fixSplinter Review
Assignee: nobody → roc
Attachment #750257 - Flags: review?(ted)
Yeah, it worked :-). Can we take this patch? :-)
This patch would also help collect information for bug 872996.
In what way do we get info from this in the crash report? That is, in what way (annotation?) will this appear in the report sent to crash-stats (Socorro)?
This is not sent at all with the crash report, it's simply information printed to stderr, so only useful for crashes encountered in automation.
We could probably get the information into a crash report, but we could take this first.
Comment on attachment 750257 [details] [diff] [review]
fix

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

So, as-written I don't think I'd take this patch. It only provides value in the automated testing case, since it's just spewing this to stderr. Additionally, I'm not sure upstream Breakpad would really want this since it doesn't add value in reporting.

If we were going to take this, I think we could do it purely in Mozilla code. nsExceptionHandler.cpp already has a filter callback that gets the EXCEPTION_POINTERS object before a minidump is written:
http://mxr.mozilla.org/mozilla-central/source/toolkit/crashreporter/nsExceptionHandler.cpp#748

and then the Minidump callback gets a succeeded value indicating whether the dump was written successfully:
http://mxr.mozilla.org/mozilla-central/source/toolkit/crashreporter/nsExceptionHandler.cpp#405

So we could store the exception info in the former and print it in the latter if !succeeded.
Attachment #750257 - Flags: review?(ted) → review-
Assignee: roc → nobody
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: