Closed Bug 1155908 Opened 9 years ago Closed 9 years ago

[e10s] Plugin crash reports should include the content process minidump

Categories

(Core Graveyard :: Plug-ins, defect)

x86_64
All
defect
Not set
normal

Tracking

(e10s+, firefox40 verified)

VERIFIED FIXED
mozilla40
Tracking Status
e10s + ---
firefox40 --- verified

People

(Reporter: jimm, Assigned: jimm)

Details

Attachments

(1 file, 6 obsolete files)

Currently we get the plugin and browser process, and occasionally 3rd party flash processes, but we don't get the content process. Need to fix this for doing plugin crash/hang analysis.
Summary: [e10s] Plugin crash reports should include the content process stack → [e10s] Plugin crash reports should include the content process minidump
Attached patch patch (obsolete) — Splinter Review
Attached patch patch (obsolete) — Splinter Review
Attachment #8594330 - Attachment is obsolete: true
Attachment #8594331 - Flags: review?(wmccloskey)
Will this work correctly in the non-e10s case?
(In reply to Benjamin Smedberg  [:bsmedberg] from comment #4)
> Will this work correctly in the non-e10s case?

The code added is in PluginModuleChromeParent, so I think it doesn't get called. I'll check to be sure though.
Comment on attachment 8594331 [details] [diff] [review]
patch

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

Yeah, I think this will break non-e10s. PluginModuleChromeParent is used for OOP plugins in non-e10s and mContentParent will be null there. I think you just need a null check.

Also, the code is Windows-only, and I think it would be easy to generalize. CreateFlashMinidump could be renamed to CreateAdditionalPluginMinidump or something. It could use ScopedProcessHandle and stop using a DWORD for the pid. Then I think it would work on all platforms.
Attachment #8594331 - Flags: review?(wmccloskey)
(In reply to Bill McCloskey (:billm) from comment #6)
> Comment on attachment 8594331 [details] [diff] [review]
> patch
> 
> Review of attachment 8594331 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Yeah, I think this will break non-e10s. PluginModuleChromeParent is used for
> OOP plugins in non-e10s and mContentParent will be null there. I think you
> just need a null check.

Ah yes, the module names threw me. Added a check for mContentParent around this.

> Also, the code is Windows-only, and I think it would be easy to generalize.

Are you sure? I don't see any windows ifdef'ing around this code block.
> > Also, the code is Windows-only, and I think it would be easy to generalize.
> 
> Are you sure? I don't see any windows ifdef'ing around this code block.

Oh I see, MOZ_CRASHREPORTER_INJECTOR only turns on for windows via configure. Will update.

http://mxr.mozilla.org/mozilla-central/source/configure.in#6057
Attached patch patch v.2 (obsolete) — Splinter Review
https://treeherder.mozilla.org/#/jobs?repo=try&revision=e2d6449911ee
Attachment #8594331 - Attachment is obsolete: true
Attachment #8595346 - Flags: review?(wmccloskey)
Comment on attachment 8595346 [details] [diff] [review]
patch v.2

wrong patch
Attachment #8595346 - Attachment is obsolete: true
Attachment #8595346 - Flags: review?(wmccloskey)
Attached patch patch v.2 (obsolete) — Splinter Review
Attachment #8595350 - Flags: review?(wmccloskey)
Comment on attachment 8595350 [details] [diff] [review]
patch v.2

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

::: dom/plugins/ipc/PluginModuleParent.cpp
@@ +1119,5 @@
>    if (processId == 0) {
>      return false;
>    }
>  
>    base::ProcessHandle handle;

Please use ScopedProcessHandle.

@@ +1231,1 @@
>            }

Something seems wrong with the indentation here. Can you please fix?
Attachment #8595350 - Flags: review?(wmccloskey) → review+
Attached patch patch (r=billm) (obsolete) — Splinter Review
- updated per comments
Attachment #8595350 - Attachment is obsolete: true
Attached patch patch (r=billm) (obsolete) — Splinter Review
Attachment #8595925 - Attachment is obsolete: true
Attached patch patch (r=billm)Splinter Review
Attachment #8595927 - Attachment is obsolete: true
Keywords: checkin-needed
sorry had to back this out for bustage like https://treeherder.mozilla.org/logviewer.html#?job_id=9216872&repo=mozilla-inbound
Flags: needinfo?(jmathies)
try again, with an ifdef MOZ_CRASHREPORTER around CreatePluginMinidump:

https://treeherder.mozilla.org/#/jobs?repo=try&revision=16818c3af8f3
Flags: needinfo?(jmathies)
https://hg.mozilla.org/mozilla-central/rev/6c7ff528de78
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
I think we need to verify that it works in both e10s and non-e10s cases. Jim, who's the right person for that?
Flags: qe-verify+
Keywords: qawanted
(In reply to Benjamin Smedberg  [:bsmedberg] from comment #23)
> I think we need to verify that it works in both e10s and non-e10s cases.
> Jim, who's the right person for that?

I've verified reports are showing up for both in the 24th build.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: