Closed Bug 1236343 Opened 9 years ago Closed 9 years ago

Allow Windows dump_syms to work with unregistered msdiaNNN.dll

Categories

(Toolkit :: Crash Reporting, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla47
Tracking Status
firefox46 --- affected
firefox47 --- fixed

People

(Reporter: poiru, Assigned: poiru)

References

Details

Attachments

(1 file)

For VS2015, we will *not* install VS2015 onto the builders. Instead, we will use tooltool to download a packaged VS install like we do with clang. dump_syms does not like this because its `CoCreateInstance(CLSID_DiaSource)` relies on msdia140.dll being registered on the system. The DIA SDK includes a helpful NoRegCoCreate function that allows one to load and use msdia140.dll as long as its in the path. We should use it.
Because tools/windows/symupload/symupload.cc uses `nullptr` (which requires VS2010), the CLSID comparison is only performed for msdia100.dll and later. When compiling with an older (or future) CLSID_DiaSource, we retain the existing behaviour (i.e. fail if CoCreateInstance fails). --- ted, this is a patch for Breakpad master. Can you review and land it for me? I can adjust and land the patch for mozilla-central after that.
Attachment #8703427 - Flags: review?(ted)
I think we require VC2013 or newer to build Breakpad now, but I'm not 100% sure. Can you upload this patch to http://codereview.chromium.org/ ? The Google folks don't like it when I review patches in Bugzilla. :-/
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #2) > I think we require VC2013 or newer to build Breakpad now, but I'm not 100% > sure. Can you upload this patch to > http://codereview.chromium.org/ ? The Google folks don't like it when I > review patches in Bugzilla. :-/ Done: https://codereview.chromium.org/1601513002
Attachment #8703427 - Flags: review?(ted)
https://hg.mozilla.org/integration/mozilla-inbound/rev/16f3d1ce559a0c9efe5068ae8fc7a84e959b52e5 Bug 1236343 - Cherry-pick upstream Breakpad commit "Try loading msdiaNNN.dll if CoCreateInstance(CLSID_DiaSource) fails". r=ted
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: