Commit Graph

1450 Commits

Author SHA1 Message Date
Florian Quèze
22c55eb7b7 Bug 1421992 - Hand written cleanup patch to make tests pass after removing obsolete xpcshell functions. r=Gijs,ochameau a=Aryx 2017-12-21 11:11:57 +01:00
Florian Quèze
0f55cd45be Bug 1421992 - script-generated patch to replace do_execute_soon, do_print and do_register_cleanup with executeSoon, info and registerCleanupFunction, rs=Gijs. 2017-12-21 11:10:23 +01:00
Florian Quèze
032c961e0a Bug 1421992 - script-generated patch to replace do_check_* functions with their Assert.* equivalents, rs=Gijs. 2017-12-21 11:08:17 +01:00
Ted Mielczarek
ba1efb86a4 bug 1423881 - Upload symbols by sending URL to symbol artifact. r=peterbe
The symbol-upload task currently downloads the symbols-full.zip artifact
from the build task and then uploads it to the symbol server. These zip
files can be very large (>1GB) so we spend a lot of time doing that.

Now that we're uploading to Tecken instead of Socorro, we can instead
just send the URL of the artifact to Tecken's upload API and ask it to
fetch that directly:
https://tecken.readthedocs.io/en/latest/upload.html#upload-by-download-url

This should make the symbol upload task a fair bit faster.

MozReview-Commit-ID: 8HcbgrWYT1O

--HG--
extra : rebase_source : 4e8f7a28c956befb3e291e8be4d41a2b6728e5cd
2017-12-08 16:01:07 -05:00
Tom Prince
5929951297 Bug 1424651: Fix upload_symbols.py documentation; r=ted.mielczarek
MozReview-Commit-ID: 83HDjkcLnkt

--HG--
extra : rebase_source : be4ca306e6a8ab24d7b997850b37830d31de4565
2017-12-10 23:01:05 -07:00
Tom Prince
63d7350f64 Bug 1424651: Re-allow specifying symbol upload symbol token via a file; r=ted.mielczarek
MozReview-Commit-ID: 26hFYFV3O23

--HG--
extra : rebase_source : 25a5abe0cbbf5abe78e22f17d05813bff173032b
2017-12-10 22:58:55 -07:00
Tom Prince
48c6c42626 Bug 1424651: Factor out getting taskcluster secret; r=ted.mielczarek
MozReview-Commit-ID: LxAqPJ6Mnxu

--HG--
extra : rebase_source : 708a34583363b0432e706f5ebb03877ca2f6a1d3
2017-12-10 22:53:47 -07:00
Dorel Luca
2f271a1136 Backed out 4 changesets (bug 1424651) as requested by tomprice r=backout on a CLOSED TREE
Backed out changeset 10ebf78f32bb (bug 1424651)
Backed out changeset 746d96792d18 (bug 1424651)
Backed out changeset 6038fb7b458c (bug 1424651)
Backed out changeset 189fd4f1df41 (bug 1424651)
2017-12-12 06:33:18 +02:00
Tom Prince
5114ba73fd Bug 1424651: Fix upload_symbols.py documentation; r=ted.mielczarek
MozReview-Commit-ID: 83HDjkcLnkt

--HG--
extra : rebase_source : e6b7294fd8a7b6a022803c2b52bdc38847695d45
2017-12-10 23:01:05 -07:00
Tom Prince
b63ad1d09a Bug 1424651: Re-allow specifying symbol upload symbol token via a file; r=ted.mielczarek
MozReview-Commit-ID: 26hFYFV3O23

--HG--
extra : rebase_source : e952bfb6c78cba203a98e07e1b5434a0e3a0d9fe
2017-12-10 22:58:55 -07:00
Tom Prince
76b8dc239d Bug 1424651: Factor out getting taskcluster secret; r=ted.mielczarek
MozReview-Commit-ID: LxAqPJ6Mnxu

--HG--
extra : rebase_source : 00e79126852b4459d66579199ade21b5f87cdf20
2017-12-10 22:53:47 -07:00
Mike Hommey
e0bbb4aa9e Bug 1423802 - Handle stdc++compat and STLPORT_LIBS at the emitter level. r=nalexander
Bug 1256642 introduced magic at the emitter level to determine whether a
binary contains C++ sources and should be linked with the C compiler or
the C++ compiler.

Unfortunately, the Binary() moz.build template always adds C++ OS
libraries on Android (through STLPORT_LIBS), and C++ libraries on Linux
(stdc++compat).

The latter only ends up forcing every Binary() to be linked with the C++
linker, which is unfortunate, but doesn't cause much problems. The
former, however, involving OS libraries, the magic from bug 1256642
doesn't kick in, so we end up trying to link C++ OS libraries with the C
linker. Which ends up failing, because the libraries in STLPORT_LIBS
require -lm, which, while it's added by the C++ compiler when linking,
is not when the linkage is driven by the C compiler.

Because the fallible library, linked to all GeckoBinary()s is a C++
library, we still ended up linking with the C++ compiler on Android, so
this wasn't actually causing any problem... until I tried to remove that
fallible library in bug 1423803.

Anyways, the core problem is that moz.build evaluation is happening too
early to know whether any C++ sources are being linked together, so
there is no way the Binary() template can do the right thing. So this
change moves the logic to the emitter.

This also changes the type of STLPORT_LIBS to a list.

--HG--
extra : rebase_source : a70ddf7a132f94dc10e7e1db94ae80fb8d7a269f
2017-12-07 12:15:32 +09:00
Gabriele Svelto
de6c5e7aa0 Bug 1424304 - Workaround to allow the crashreporter to launch correctly on Fennec; r=ted.mielczarek
MozReview-Commit-ID: EELVnTZF4Tv

--HG--
extra : rebase_source : 30909d6fe207ac1680df07162b982455ba1d0b7f
2017-12-08 18:25:40 +01:00
Ted Mielczarek
df253cc5c7 bug 1422740 - change upload-symbols tasks to use in-tree lint image. r=gps
This change makes upload-symbols tasks use run-task and the in-tree lint
image instead of the private upload-symbols image. A prior change changed
the script to get the token it needs from a Taskcluster secret, so it's no
longer necessary to use the private docker image containing the token.

MozReview-Commit-ID: 6QugVB4chE0

--HG--
extra : rebase_source : e13d29c2a88e055247da374cffa9ea153548749d
2017-12-06 06:39:46 -05:00
Ted Mielczarek
2ac06b8c4f bug 1422740 - Change upload_symbols script to fetch token from Taskcluster secrets service. r=gps
This change fixes symbol upload to use a token stored in the Taskcluster
secrets service instead of the token stored in the private Docker image.

Additionally, it changes the script to upload symbols to the Tecken staging
server when run on try so that the upload-symbols tasks can be tested on
try now. In the future there are plans to allow try tasks to upload symbols
to a separate storage area on the production Tecken instance.

MozReview-Commit-ID: BeZGiiwuGp8

--HG--
extra : rebase_source : ee4c680410822e94c3001d07242f69378703659f
2017-12-05 10:18:55 -05:00
Sylvestre Ledru
a9961096c0 Bug 1394734 - Simplify various corner cases r=glandium
MozReview-Commit-ID: 4s4JdXZPvmv

--HG--
extra : rebase_source : c8f663c99442d41db5f81ac5fe1aa1f47fd5ed82
2017-12-07 22:10:19 +01:00
Sylvestre Ledru
4591d82b23 Bug 1394734 - Replace CONFIG['CLANG*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: HbF5oT5HW6f

--HG--
extra : rebase_source : eca479b6ae4bff7f600d1cdb39e11ac2057e4e79
2017-12-07 22:09:38 +01:00
Sylvestre Ledru
5de63ef061 Bug 1394734 - Replace CONFIG['MSVC'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: 5orfnoude7h

--HG--
extra : rebase_source : 1ed9a6b56e1d27221a07624767a7fb0e6147117f
2017-12-08 13:46:13 +01:00
Sylvestre Ledru
9bfe27d903 Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: 7duJk2gSd4m

--HG--
extra : rebase_source : 7312fe276e561e8c034a5f6749774ae812727f9c
2017-12-07 22:09:15 +01:00
Adam Gashlin
3531136866 Bug 379290 - Add env var to auto submit crashes r=gsvelto
MozReview-Commit-ID: HguIy4GKMb0

--HG--
extra : rebase_source : ae9f9b5276f8b7c8cb448999ce13bd0a13c8eee2
2017-12-07 08:47:29 -08:00
Cosmin Sabou
c191e25cf5 Merge mozilla-inbound to mozilla-central r=merge a=merge 2017-12-08 11:56:44 +02:00
Eric Rahm
07c97a5afe Bug 1423773 - Part 1: Remove usage of nsStringGlue.h. r=glandium
This removes an unnecessary level of indirection by replacing all
nsStringGlue.h instances with just nsString.h.

--HG--
extra : rebase_source : 340989240af4018f3ebfd92826ae11b0cb46d019
2017-12-06 16:52:51 -08:00
Ted Mielczarek
bb33981f16 bug 1422735 - Change symbol upload URL from Socorro to Tecken. r=nalexander
MozReview-Commit-ID: BBs6G8dFfPz

--HG--
extra : rebase_source : d67541929441ea057709afbc7e6f12b51a9341cc
2017-12-06 06:28:41 -05:00
Marco Castelluccio
8740f91903 Bug 1420947 - Mark test_crash_win64cfi_* as failing on Windows coverage builds until they are fixed. r=jmaher 2017-12-04 10:19:04 +01:00
Jan Beich
1ce52b89d1 Bug 1419959 - Unbreak build on Tier3 platforms after bug 1402519. r=gsvelto
MozReview-Commit-ID: 8NNtuRkfbJe

--HG--
extra : rebase_source : 01f7008135fcc8cb93ae2bdd39b7a2bf23e1c794
2017-11-24 02:31:42 +00:00
Gabriele Svelto
5ff191810d Bug 1402519 - When the crash reporter code is disabled at configure time replace it with a dummy implementation; r=ted.mielczarek
MozReview-Commit-ID: F5QbaI1LlmZ

--HG--
extra : rebase_source : f05c929911d27dc1598bc040df54022cd90aa06a
2017-11-14 14:49:33 +01:00
shindli
fb855aa7ba Backed out 16 changesets (bug 1402519) for conflicts during merge r=backout on a CLOSED TREE
Backed out changeset 07fcf163241a (bug 1402519)
Backed out changeset c6d2ad45d8e2 (bug 1402519)
Backed out changeset 8a3caca61294 (bug 1402519)
Backed out changeset 01425eae2c48 (bug 1402519)
Backed out changeset cf298d3815de (bug 1402519)
Backed out changeset e1964f4389cd (bug 1402519)
Backed out changeset f405337f3569 (bug 1402519)
Backed out changeset a76356fd3359 (bug 1402519)
Backed out changeset d3bb350d1c34 (bug 1402519)
Backed out changeset 9d3bfd9f932c (bug 1402519)
Backed out changeset e3dd6e5b073f (bug 1402519)
Backed out changeset e801b0c00134 (bug 1402519)
Backed out changeset 8a4139fa5dca (bug 1402519)
Backed out changeset 8d01c14ac1ca (bug 1402519)
Backed out changeset 24e0dcd01898 (bug 1402519)
Backed out changeset f8fdf450613f (bug 1402519)
2017-11-23 00:11:44 +02:00
Gabriele Svelto
014408d0f5 Bug 1402519 - When the crash reporter code is disabled at configure time replace it with a dummy implementation; r=ted.mielczarek
MozReview-Commit-ID: F5QbaI1LlmZ

--HG--
extra : rebase_source : 37aacdebc4307a21ff4f2ae27d1b031adc25737c
2017-11-14 14:49:33 +01:00
Mark Banner
a34654023f Bug 1417940 - Change various instances of manually calling getService to use Services.jsm in toolkit/. r=mossop
MozReview-Commit-ID: 8eEhjFZc4mT

--HG--
extra : rebase_source : 10341495d85dae45f2efbe3af6ad11b0c0214104
2017-11-09 16:36:57 +00:00
Dan Banner
b2e847755c Bug 1367704 - Enable the semi ESLint rule across the tree. r=standard8
MozReview-Commit-ID: GrlcOI9K2hJ

--HG--
extra : rebase_source : 6574cf3c67eb11733ffd9999c260f71c8551abc4
2017-05-28 19:57:46 +01:00
Andreea Pavel
d377351feb Backed out 1 changesets (bug 1417940) for failing browser-chrome browser/components/contextualidentity/test/browser/browser_aboutURLs.js r=backout on a CLOSED TREE
Backed out changeset 2c2f807e23b5 (bug 1417940)
2017-11-17 18:08:45 +02:00
Mark Banner
4831d3ed89 Bug 1417940 - Change various instances of manually calling getService to use Services.jsm in toolkit/. r=mossop
MozReview-Commit-ID: 8eEhjFZc4mT

--HG--
extra : rebase_source : fa73ef148c0ea38226e11824e683daab43f2c0b8
2017-11-09 16:36:57 +00:00
Dan Horák
39611d7830 bug 1411516 - list missing 64-bit arches in Breakpad's bundled curl. r=ted
MozReview-Commit-ID: KNc8fUoCAEA

--HG--
extra : amend_source : c034faf81fd818adcba0748e3b704db1eaa5fe14
2017-10-25 08:36:47 +00:00
Carl Corcoran
52e98f4308 Bug 1333126 - Use win64 PE unwind metadata to improve client-side stack walking; r=gsvelto
This includes tests that cover both regular CFI stack walking as well as
pathological corner cases.


MozReview-Commit-ID: GDARnPSemyu

--HG--
extra : source : 1b65c0b41ac31f3645b2318b47072a1100c13183
2017-08-06 08:46:50 +02:00
Nathan Froyd
53f5554183 Bug 1401226 - don't throw away errors from running file in symbolstore.py; r=ted.mielczarek
We want symbolstore.py to fail, preferably loudly, if we can't find the
necessary tools, and throwing away errors here runs counter to that
goal.  Dumper is a base class for Dumper_Win32, where we probably don't
have file(1), but Dumper_Win32 shouldn't be calling RunFileCommand.
2017-11-09 13:52:47 -04:00
Cervantes Yu
688b2f09c8 Bug 1415103 - Remove dead code in crash reporting. r=gsvelto
This removes dead code using headlessClient and lastRunCrashID in crash
reporting. headlessClient is unconditional now. nsIXULRuntime.lastRunCrashID
is not used anymore so remove code for implementing it.


MozReview-Commit-ID: AU4bUeIx3O0
2017-11-08 11:49:37 +08:00
Chris H-C
09a409370c bug 1410143 - Whitelist ipc_channel_error for crash pings data-r?rweiss r=gsvelto
At present it is difficult to determine whether a crash ping is from a
shutdownkill or not. By including ipc_channel_error we will be able to figure
that out.

We also as a bonus get additional insight into ipc channel error types that
lead to crashes.

MozReview-Commit-ID: FepLsSS2tAI

--HG--
extra : rebase_source : 8c17bdd63f7fadb9829df63fe50c044a020b183e
2017-10-20 14:49:14 -04:00
Csoregi Natalia
7e090b227f Backed out 1 changesets (bug 1333126) for failing Browser Chrome Tests on Windows10 browser_pluginCrashCommentAndURL.js r=backout a=backout
Backed out changeset fe038577ea44 (bug 1333126)
2017-11-06 15:30:27 +02:00
Carl Corcoran
93108533b8 Bug 1333126 - Use win64 PE unwind metadata to improve client-side stack walking; r=gsvelto
This includes tests that cover both regular CFI stack walking as well as
pathological corner cases.


MozReview-Commit-ID: GDARnPSemyu

--HG--
extra : rebase_source : 99920e03174824020e4b80269c44f34b93b0364a
extra : source : 0560939928bb0f2fe019fa800fe8ee7663db4b8f
2017-08-06 08:46:50 +02:00
Gabriele Svelto
52fdc1a5fd Bug 1412756 - Do not throw exceptions when the 'Crash Reports/pending' directory is missing; r=mconley
MozReview-Commit-ID: 2tFfgiGeGSl

--HG--
extra : rebase_source : da4ba2d33986fb5d90ad50d0792ca735dcb45c81
2017-10-30 12:24:39 +01:00
Gabriele Svelto
04f14d4827 Bug 1402153 - Remove dead code from the crash reporter; r=ted.mielczarek
MozReview-Commit-ID: Gsg4d5hntb4

--HG--
extra : rebase_source : 391458e3feec1903b74f234c3b8522efa73ccfe7
2017-10-11 23:33:56 +02:00
Adam Gashlin
c9def865c8 Bug 1401400 - Part 1. Option to analyze all threads. r=gsvelto
MozReview-Commit-ID: HYSslbqnJuM
2017-10-17 15:02:18 -07:00
Mark Banner
4de6bf22b1 Bug 1411368 - Automatically fix no-multi-spaces issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: H5YVp3rnzGo

--HG--
extra : rebase_source : 5b45b6c0df834131812d094e975047eaad374e06
2017-10-26 11:47:01 +01:00
Chris Manchester
c86173526a Bug 1403346 - Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=glandium
MozReview-Commit-ID: 1G2o4fy74cf
2017-10-25 15:12:09 -07:00
Ted Mielczarek
b1d07be115 bug 1407368 - remove workarounds in google-breakpad/src/common. r=mshal
MozReview-Commit-ID: 3HT8PoT1IpT

--HG--
extra : rebase_source : 3c6d4eeb4985dc23c1678e1919f390faa7c91c73
extra : histedit_source : 6557e063e8fe75dd95f41e86c000c6d3ebdb4cdf
2017-10-17 19:45:13 -04:00
Ted Mielczarek
2c59757b3c bug 1407368 - rename Breakpad's src/common/memory.h. r=gsvelto
memory.h conflicts with a system header, so we have workarounds to
change include paths to work around this.

This is mostly a cherry-pick of this upstream commit:
8bb3d55af7

..but the patch was applied separately to toolkit/crashreporter/google-breakpad
and toolkit/crashreporter/breakpad-client since we've forked the latter,
and there's also one other fixup of a source file included.

MozReview-Commit-ID: HH92HZG7y9n

--HG--
rename : toolkit/crashreporter/google-breakpad/src/common/memory.h => toolkit/crashreporter/google-breakpad/src/common/memory_allocator.h
rename : toolkit/crashreporter/google-breakpad/src/common/memory_unittest.cc => toolkit/crashreporter/google-breakpad/src/common/memory_allocator_unittest.cc
extra : rebase_source : d321475099f000482689d6a6fb8629274ee19a65
extra : histedit_source : d526c27d952dbe73aee87e24701e2a862e1ca3d2
2017-10-17 19:44:36 -04:00
Dan Banner
7caa92d5d8 Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01:00
Stephen A Pohl
2f3be75987 Bug 1405151: Ensure that crashes appear correctly in Socorro in the case of SIGABRT crashes on macOS. r=ted 2017-10-13 16:29:22 -04:00
David Major
1bdf579613 Bug 1405713 - Reorder sourcepath normalization to fix srcsrv. r=ted
--HG--
extra : rebase_source : c6dcc7e24081e83b60ee4838dc299417a55e5a64
2017-10-10 09:19:00 -04:00
Mike Shal
9e6798ac00 Bug 1402012 - Update buildconfig.py to use PartialConfigEnvironment; r=glandium
By using the PartialConfigEnvironment, the clients of buildconfig will
depend on config.statusd/ files instead of config.status directly.
Clients can access substs and defines using buildconfig.substs['FOO'] or
buildconfig.defines['BAR'], and then collect file-level dependencies for
make using buildconfig.get_dependencies(). All GENERATED_FILES rules
already make use of this because file_generate.py automatically includes
these dependencies (along with all python modules loaded).

As a result of this commit, re-running configure will no longer cause
the world to be rebuilt. Although config.status is updated, no build
steps use config.status directly and instead depend on values in
config.statusd/, which are written with FileAvoidWrite. Since those
files are not official targets according to the make backend, make won't
try to continually rebuild the backend when those files are out of date.
And since they are FileAvoidWrite, make will only re-run dependent steps
if the actual configure value has changed.

As a result of using JSON to load data from the config.statusd
directory, substs can be unicode (instead of a bare string type).
generate_certdata.py converts the subst manually to a string so the
value can be exported to the environment without issue on Windows.

Additionally, patching the buildconfig.substs dict no longer works, so
the unit-symbolstore.py test was modified to patch the underlying
buildconfig.substs._dict instead.

The other files that needed to be modified make use of all the defines
for the preprocessor. Those that are used during 'mach build' now use
buildconfig.defines['ALLDEFINES'], which maps to a special
FileAvoidWrite file generated for the PartialConfigEnvironment.

MozReview-Commit-ID: 2pJ4s3TVeS8

--HG--
extra : rebase_source : d6bb0208483f9f043e7be1b36907ca13243985f8
2017-08-24 22:52:01 -04:00