Closed Bug 1438209 Opened 7 years ago Closed 7 years ago

Disabling crash reporter crashes on startup in [struct ParamTraits<mozilla::ipc::TransportDescriptor>::Read]

Categories

(Toolkit :: Crash Reporting, defect, P1)

x86_64
Windows
defect

Tracking

()

RESOLVED FIXED
mozilla60
Tracking Status
firefox60 --- fixed

People

(Reporter: u557094, Assigned: Alex_Gaynor)

References

Details

Attachments

(1 file)

STR: - Add `ac_add_options --disable-crashreporter` to your .mozconfig - Build for Windows (I tested a win64 build on Windows 10, using MSVC2017) - ./mach build && ./mach run Result - Always crashes in this release assertion https://hg.mozilla.org/mozilla-central/file/bcc0a91dd43f/ipc/glue/Transport_win.h#l80 When removing `ac_add_options --disable-crashreporter` again, there is no such crash. I bisected this to first occur due to https://hg.mozilla.org/mozilla-central/rev/bcc0a91dd43f which was added via bug 1407693 (Part 2), therefore CC'ing people involved there.
I suspect what needs to happen is these few lines https://hg.mozilla.org/mozilla-central/rev/bcc0a91dd43f#l1.101 need to be wrapped in an `if (!CrashReporter::IsDummy())`, but I won't be able to verify with a Windows machine until tomorrow.
Alex, yep, wrapping like that makes the crash go away for me.
Cool. If you're up for uploading a patch that does that, I (or probably :gsvelto) can review it and get this landed!
Sorry, but I feel not comfortable to provide such a patch, since I don't actually know what it does and how it fixes things specifically, nor do I know anything of the code it touches, and therefore cannot determine if it actually fixes the bug itself (or what the actual bug is for that matter), or merely hides it. I only blindly applied your suggestion. My intuition tells me that aResult->mDestinationProcessId as used in the assertion might have a bogus value (e.g. never actually gets set up, or gets set to a garbage value) and thus should be fixed to always have a sane value (even if only to a sentinel value), but that's only intuition and you actually have worked with the code and written a bunch of it, so you're in a better position to diagnose what's going on and what needs to change.
Assignee: nobody → agaynor
Priority: -- → P1
Comment on attachment 8951263 [details] Bug 1438209 - fixed Windows builds with the crashreporter disabled; Redirecting to Ted since I'm on PTO.
Attachment #8951263 - Flags: review?(gsvelto) → review?(ted)
Comment on attachment 8951263 [details] Bug 1438209 - fixed Windows builds with the crashreporter disabled; https://reviewboard.mozilla.org/r/220522/#review226870
Attachment #8951263 - Flags: review?(ted) → review+
Thanks Ted!
Keywords: checkin-needed
Pushed by csabou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ea26341dbc8a fixed Windows builds with the crashreporter disabled; r=ted
Keywords: checkin-needed
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: