Closed Bug 1449835 Opened 7 years ago Closed 7 years ago

nsTestCrasher.cpp does not compile for MinGW x64

Categories

(Toolkit :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox-esr60 --- fixed
firefox61 --- fixed

People

(Reporter: tjr, Assigned: tjr)

References

Details

Attachments

(2 files)

nsTestCrasher.cpp uses an assembly file that doesn't compile for MinGW x64.
Can we find a way to make this work on MinGW instead of just disabling the feature?
Flags: needinfo?(tom)
So, as I understand it, this code is testing that the Call Frame Information is correct in different crash scenarios for breakpad? I don't think this is useful for MinGW at all - we don't ship this to users so we're not getting stacks from them; I don't know if the CFI fixup is needed on MinGW; MinGW generates DWARF info, not pdbs; we don't have any symbols on MinGW at all right now because the DWARF debug info it generates is (we think) bigger than Windows dll size limit. In theory I suppose one could port the assembly to a syntax gcc would understand; but I don't know how to do that right now and it doesn't seem like a good investment of time.
Flags: needinfo?(tom)
Comment on attachment 8963462 [details] Bug 1449835 Do not compile Windows x64 Crash Test Assembly for MinGW https://reviewboard.mozilla.org/r/232384/#review240552 Sorry for the delay but this seems fine to me!
Comment on attachment 8963462 [details] Bug 1449835 Do not compile Windows x64 Crash Test Assembly for MinGW https://reviewboard.mozilla.org/r/232386/#review238746 ::: commit-message-c9306:3 (Diff revision 2) > +Bug 1449835 Do not compile Windows x64 Crash Test Assembly for MinGW r?ccorcoran > + > +The assembly file uses the wrong syntax and MinGW cannot compile it. Would it be possible instead to adapt the code to build properly under mingw?
Attachment #8963462 - Flags: review?(ccorcoran) → review+
Sorry for that last comment... still getting used to reviewboard :x
Keywords: checkin-needed
Hi, When I was trying to land this patch, I've encountered the following error: hg import https://reviewboard-hg.mozilla.org/gecko/rev/2c202e2490dba8223fecd7268e978a5cb614dae4 applying https://reviewboard-hg.mozilla.org/gecko/rev/2c202e2490dba8223fecd7268e978a5cb614dae4 patching file toolkit/crashreporter/test/nsTestCrasher.cpp Hunk #4 FAILED at 112 Hunk #6 FAILED at 167 2 out of 7 hunks FAILED -- saving rejects to file toolkit/crashreporter/test/nsTestCrasher.cpp.rej abort: patch failed to apply Can you please take a look?
Flags: needinfo?(tom)
MozReview also says it doesn't have the proper reviews needed for Autoland to push it.
Keywords: checkin-needed
Comment on attachment 8963462 [details] Bug 1449835 Do not compile Windows x64 Crash Test Assembly for MinGW https://reviewboard.mozilla.org/r/232386/#review241972 r=me for the moz.build bits.
Attachment #8963462 - Flags: review+
Okay, rebased, and should be landable.
Flags: needinfo?(tom)
Whiteboard: checkin-needed
Pushed by aiakab@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3c498706ccf3 Do not compile Windows x64 Crash Test Assembly for MinGW r=ccorcoran,froydnj
Whiteboard: checkin-needed
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Attached patch esr60.patchSplinter Review
[Approval Request Comment] This is one of several MinGW Build patches I'd like to land in esr60 for Tor. It will prevent them from carrying their own patches for the lifetime of esr60 and will enable us to keep the MinGW build functioning and know if/when/how it was broken by new commits into esr60. This commit only affects the MinGW build configuration, so it is low-risk.
Attachment #8976255 - Flags: approval-mozilla-esr60?
Comment on attachment 8976255 [details] [diff] [review] esr60.patch mingw build fix, approved for 60.1esr
Attachment #8976255 - Flags: approval-mozilla-esr60? → approval-mozilla-esr60+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: