Граф коммитов

1547 Коммитов

Автор SHA1 Сообщение Дата
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
Chris Peterson c4dff4f83d Bug 1402666 - Part 3: Replace Replace(NS_LITERAL_STRING("")) with ReplaceLiteral(u""). r=erahm
MozReview-Commit-ID: Ji6UdG32RF4

--HG--
extra : rebase_source : 1565a1e99f40785dad0d0d7652e42222dcdf8881
extra : source : c57e906ba75fda4745134ef8307589e28f4c8d70
2017-09-15 19:32:55 -07:00
Chris Peterson 45aa2a8e8e Bug 870698 - Part 2: Replace Append("") with AppendLiteral(""). r=erahm
MozReview-Commit-ID: CrkIP4iHP1U

--HG--
extra : rebase_source : 5dc4e91a3f1860773c199f1abf3f66479218834a
extra : intermediate-source : ba51cc79847f2b43ba616f4a5d2bbc6958ca9f6d
extra : source : 1fda2fa990cc918c748ffa14fcc5dbe13fe3bdc3
2017-09-03 22:14:11 -07:00
Chris Manchester d3b657984e Bug 1398897 - Move breakpad include munging to moz.build r=glandium
Unfortunately this also needs to be kept in Makefile.in to handle
other consumers of INCLUDES while we transition them.

MozReview-Commit-ID: 9OYlu6Jv1XZ

--HG--
extra : rebase_source : 719200501a93e836a03a64b5e1cd950a8f2e696a
2017-09-20 12:43:24 -07:00
Kartikaya Gupta b4ad327a0e Bug 1390488 - Pass the childProcessTmpDir from the parent process to the GPU process. r=froydnj
The GPU process doesn't have the directory service enabled, so it can't find
a tmp dir to put its .extra files for crash reports. Even if we do enable the
directory service, we still don't get the correct "content process tmp dir" in
the GPU process, because the UUID baked into that folder is passed via the
preferences service, and that isn't initialized in the GPU process either.
Rather than unneccessarily initialize all this stuff in the GPU process just
to get one folder name, we can pass that folder name directly in the argv list.

See comments 12-19 on the bug for further discussion of the various solutions
attempted/explored.

MozReview-Commit-ID: 1sFg27hIe7S

--HG--
extra : rebase_source : 78eb600a58fed45800b9df8303cc4d6898d96ae9
2017-09-13 11:26:25 -04:00
Sebastian Hengst 3066457971 Backed out changeset b80e267bdf30 (bug 1390488) 2017-09-13 16:36:56 +02:00
Kartikaya Gupta 36b2d6e26d Bug 1390488 - Pass the childProcessTmpDir from the parent process to the GPU process. r=froydnj
The GPU process doesn't have the directory service enabled, so it can't find
a tmp dir to put its .extra files for crash reports. Even if we do enable the
directory service, we still don't get the correct "content process tmp dir" in
the GPU process, because the UUID baked into that folder is passed via the
preferences service, and that isn't initialized in the GPU process either.
Rather than unneccessarily initialize all this stuff in the GPU process just
to get one folder name, we can pass that folder name directly in the argv list.

See comments 12-19 on the bug for further discussion of the various solutions
attempted/explored.

MozReview-Commit-ID: 1sFg27hIe7S

--HG--
extra : rebase_source : 62ff819c5b03f642cd4b9af7c89c84b790397372
2017-09-13 10:18:15 -04:00
Chris Manchester c0a229d4c3 Bug 1386876 - Replace all uses of DISABLE_STL_WRAPPING with a template, remove DISABLE_STL_WRAPPING. r=glandium
MozReview-Commit-ID: FMEtb5PY7iP

--HG--
extra : rebase_source : 3cdee7528846462c758e623d6bcd2e6e17dbabff
2017-09-11 11:33:26 -07:00
Carl Corcoran e2e4c246fa bug 1380254: Don't send StackTraces field to Socorro; r=gsvelto
MozReview-Commit-ID: 3K5I5ZQam7q

--HG--
extra : rebase_source : 9a089624c8656a136c16f24c3bf9cc002f3f131a
2017-08-28 08:43:24 +02:00
Tom Ritter a1a3b5d895 Bug 1391685 Copy missing WideToMBCPto minidump-analyzer standalone program for gcc build r=gsvelto
MozReview-Commit-ID: 3S5poDINhH3

--HG--
extra : rebase_source : d5d3404c6ef618a7875557b37b19b131e948c763
2017-08-29 12:15:02 -05:00
Tom Ritter 0ee8dd24bc Bug 1391685 Fix casing of objbase.h for MinGW build r=gsvelto
MozReview-Commit-ID: EJ5ow8av5cB

--HG--
extra : rebase_source : 79d3f69096350e67918ae05da6638a3a30cb92a5
2017-08-18 13:15:40 -05:00
Gabriele Svelto dfafcce6ea Bug 1380252 - Send only the crashing thread's stack in crash pings; r=ted.mielczarek
This modifies the minidump analyzer to only output the crashing thread's stack
when invoked. This reduces the raw size of the crash ping by 50% to 70%
depending on the program state when the crash occurred. The minidump-analyzer
can still produce the complete output when invoked with the '--full' option.

MozReview-Commit-ID: 8KaITWqfBKR

--HG--
extra : rebase_source : b71bd47ea1df4fa8fa3da013aef2612a073a42d2
2017-08-16 18:20:40 +02:00
Gabriele Svelto f9e235a70c bug 1376574 - Do not use fork() for launching the crashreporter on Mac since that might crash too; r=ted
MozReview-Commit-ID: BX1ig3rtoIr

--HG--
extra : rebase_source : 504e32ad3a068af4e3d466fac8bb60d6fab2409b
2017-06-27 23:39:30 +02:00
Emilio Cobos Álvarez 9183fd421b Bug 1394149: Fix remaining uses of ucontext in breakpad-client. r=ted
MozReview-Commit-ID: 5tP7fXsI7dQ

--HG--
extra : rebase_source : ff106a725e42093f9957403fcb14b9804990c3b5
2017-08-27 00:21:10 +02:00
Ted Mielczarek 6121dea7c8 bug 1392312 - fix filename mapping in symbolstore.py on Windows. r=chmanchester
symbolstore.py processes filenames in FILE lines of symbol files to encode
information about the source repository they came from, or to mark
known generated source files. It also reads the dist/include install
manifest so it can map header files from there back to their source locations.

These mappings were broken on Windows because symbolstore.py first passes
filenames into `FixFilenameCase`, which calls `GetFinalPathNameByHandleW`,
which breaks things in two ways:
1) It returns paths with an uppercase drive letter, and source paths from
   elsewhere have a lowercase drive letter.
2) It resolves symlinks, and on Taskcluster Windows builds the whole build
   is done within a symlinked directory so paths directly from the srcdir
   and objdir won't match those canonicalized paths.

This patch adds a `normpath` function to symbolstore.py and moves the
contents of `FixFilenameCase` into it on Windows, and just makes it
an alias for `os.path.normpath` everywhere else. It then uses it everywhere
we deal with paths that will be compared against source file paths from symbol
files so that all paths are canonicalized the same and we can do simple
string matching from there.

Additionally, this patch adds a check to the functional test to verify
that header files from dist/include are correctly mapped to the source
repository. Unfortunately there is still not a test for generated files
because they only appear in the libxul symbol file, and dumping symbols
from libxul is too slow to invoke as part of a unit test.

MozReview-Commit-ID: Dx3z1BZcIvc

--HG--
extra : rebase_source : 80179bbea58a804344a56ef27f438ada76e7fe77
2017-08-23 13:14:37 -04:00
Cervantes Yu 7d0d416f10 Bug 1390143 - Generate the parent minidump synchronously to keep parent process's stack when creating paired minidumps. r=gsvelto
Bug 1360308 offloads IO operations from the main thread when we create paired minidumps.
This breaks the symmetry of paired minidumps: the thread stacks of the parent minidump
doesn't correspond to the thread stacks in the child minidumps and renders the parent
stack useless. This patch moves generation of the parent minidump back to the main
thread to keep the context of the parent process when creating paired minidumps. Child
minidump is still created asynchronously.

MozReview-Commit-ID: 9RmBAuXMPSX
2017-08-25 11:12:34 +08:00
Mark Banner a53020d022 Bug 1392098 - Enable the new ESLint no-useless-run-test rule across the tree. r=mossop
MozReview-Commit-ID: 35MaseieNUk

--HG--
extra : rebase_source : 98eaec6a67fd3b30ea6b0be641f26c3911012fab
2017-08-20 18:52:05 +01:00
Wes Kocher 88c4efea2a Merge inbound to m-c a=merge
MozReview-Commit-ID: 7PZEeFIzle5
2017-08-21 16:39:56 -07:00
Cervantes Yu 102fb1453d Bug 1320134 - Part 4: Remove the debug patches for running out of TLS slots on Windows. r=froydnj
Revert revision f760842b14a2, 051b765ca8f2 and 01125b5142e5 since the original
bug that we run out of TLS slots on Windows is no longer showing up after
firefox55. It should have been fixed elsewhere, very likely in the rust part.

MozReview-Commit-ID: 9j5hFSGT3OE
2017-08-21 16:24:29 +08:00
Sebastian Hengst 5455dc84e5 Backed out changeset 7bde9d6e783a (bug 1333126) for permafailing browser-chrome's browser/base/content/test/plugins/browser_pluginCrashReportNonDeterminism.js on OS X 10.10 debug. r=backout 2017-08-20 20:11:57 +02:00
Sebastian Hengst 5c0990d31e Backed out changeset 5872274ff102 (bug 1333126) 2017-08-20 20:11:01 +02:00
Carl Corcoran bbf7c0b952 Bug 1333126: adding tests; r=gsvelto
MozReview-Commit-ID: BNv54jtWf7k

--HG--
extra : rebase_source : e89ea6927ef3cae3d95f46ee5f69f62d04a12f00
2017-08-06 08:46:50 +02:00
Carl Corcoran 03ac54b366 Bug 1333126: use win64 PE unwind metadata to improve client-side stack walking; r=gsvelto
MozReview-Commit-ID: GDARnPSemyu

--HG--
extra : rebase_source : 2b727cd57c5bddbc2959fa096dea102eeff7d41f
2017-08-06 08:45:58 +02:00
Phil Ringnalda 366675feaa Merge m-c to autoland
MozReview-Commit-ID: GCxEZcmHL2w
2017-08-19 15:34:44 -07:00
Ted Mielczarek 865f3f2c5e bug 1259832 - replace generated source file names in symbol files. r=chmanchester
Now that builds are uploading generated source files to an S3 bucket,
symbolstore.py can alter the FILE lines in symbol files to record the
URLs where those generated source files can be found. We currently record
files from the hg repository as `hg:<repo>:<path>:<revision>`, so here we
record generated files as `s3:<bucket>:<path>:` and expect that Socorro
will map that to the S3 bucket in a sensible way.

This patch does not change source server indexing, which allows Microsoft
debuggers to fetch source files for a build. That will be handled in a
followup.

MozReview-Commit-ID: 1g14smF0fo8

--HG--
extra : rebase_source : a5b42251278e6ecc4d57e374c423738de325f8e5
extra : source : 7781a37a4db0378b06ef3ad377e18be37e63ad83
2017-08-09 14:36:52 -04:00
Sylvestre Ledru 49b77df09a Bug 1387569 - Also enable -Wno-implicit-fallthrough for gcc in google-breakpad (exists from gcc 7) r=ted
MozReview-Commit-ID: HTEL8UJE6wb

--HG--
extra : rebase_source : 3debf712593e771351910fb539bcf610cbc97a62
2017-08-19 21:50:09 +02:00
Phil Ringnalda 1ca83fd296 Backed out 5 changesets (bug 1387569) for Windows static build bustage
Backed out changeset eeda521ba0ad (bug 1387569)
Backed out changeset 8d23caf2ccc7 (bug 1387569)
Backed out changeset b5f969313f81 (bug 1387569)
Backed out changeset f642bc883aa5 (bug 1387569)
Backed out changeset 20151eabffea (bug 1387569)

MozReview-Commit-ID: IH0XXePvhiL
2017-08-19 12:20:26 -07:00
Sylvestre Ledru 10dec6fbee Bug 1387569 - Also enable -Wno-implicit-fallthrough for gcc in google-breakpad (exists from gcc 7) r=ted
MozReview-Commit-ID: HTEL8UJE6wb

--HG--
extra : rebase_source : b61d3bf0a07e743e10774b8f06b9a46b42029ab3
2017-08-19 20:38:35 +02:00
Sebastian Hengst e8a5a15718 Backed out changeset 9e1a17f94c93 (bug 1387569) 2017-08-19 20:22:00 +02:00
Sylvestre Ledru 8692c8594b Bug 1387569 - Also enable -Wno-implicit-fallthrough for gcc in google-breakpad (exists from gcc 7) r=ted
MozReview-Commit-ID: HTEL8UJE6wb

--HG--
extra : rebase_source : 7ceb0d2de780188e5f8efbc281bc512436aa1fd8
2017-08-19 19:34:54 +02:00
Eric Rahm 0938982c90 Bug 1389598 - Part 4: Remove remaining gonk refs. r=froydnj
--HG--
extra : rebase_source : 063c7f95dda063eafabfa1921366bd1957b8fe73
2017-08-11 17:45:18 -07:00
Emilio Cobos Álvarez ec48f33efd Bug 1385667: Use ucontext_t consistently in breakpad-client. r=ted
MozReview-Commit-ID: AJhzJdNXP0f

--HG--
extra : rebase_source : 49a8d4c2159869a0a33ab0a84b6692251a2bfd35
2017-08-19 20:14:25 +02:00
Ted Mielczarek 90080d65c7 bug 1388820 - remove repo manifest support from symbolstore.py. r=chmanchester
MozReview-Commit-ID: LbDc6YKGpqX

--HG--
extra : rebase_source : 780467dc43d6f001946310879e71a6400e005eef
extra : source : 6b4f89f34b11bcb987511cdb6923920d2596f001
2017-08-09 13:36:07 -04:00
Wes Kocher 729a622270 Backed out changeset 6b4f89f34b11 (bug 1388820) for apparently scheduling nightlies on every push/platform a=backout
MozReview-Commit-ID: GtNGyHS3m7f
2017-08-16 17:26:21 -07:00
Wes Kocher 749da2f3e6 Backed out 4 changesets (bug 1259832) for apparently scheduling nightlies on every push/platform a=backout
Backed out changeset 7781a37a4db0 (bug 1259832)
Backed out changeset 73bf88110b38 (bug 1259832)
Backed out changeset 14d18d7cf454 (bug 1259832)
Backed out changeset a02695cbf576 (bug 1259832)

MozReview-Commit-ID: 4Tf6jBcvKLq
2017-08-16 17:26:08 -07:00
Ted Mielczarek 25150baea1 bug 1259832 - replace generated source file names in symbol files. r=chmanchester
Now that builds are uploading generated source files to an S3 bucket,
symbolstore.py can alter the FILE lines in symbol files to record the
URLs where those generated source files can be found. We currently record
files from the hg repository as `hg:<repo>:<path>:<revision>`, so here we
record generated files as `s3:<bucket>:<path>:` and expect that Socorro
will map that to the S3 bucket in a sensible way.

This patch does not change source server indexing, which allows Microsoft
debuggers to fetch source files for a build. That will be handled in a
followup.

MozReview-Commit-ID: 1g14smF0fo8

--HG--
extra : rebase_source : 78344e2435cc2379d4b202b71851d1112236066b
2017-08-09 14:36:52 -04:00
Ted Mielczarek 3237c93073 bug 1388820 - remove repo manifest support from symbolstore.py. r=chmanchester
MozReview-Commit-ID: LbDc6YKGpqX

--HG--
extra : rebase_source : 09a253226fbd8dd25a4bdd6f3337dea7df109fa1
2017-08-09 13:36:07 -04:00
Sebastian Hengst 56c035fa36 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4cZJ3qFjvPY
2017-08-12 23:49:21 +02:00
Wes Kocher ef0d82bb2b Merge m-c to inbound, a=merge
MozReview-Commit-ID: HSkzFTcnhOy
2017-08-11 13:25:37 -07:00
Sylvestre Ledru 3ba96071c8 Bug 1387002 - Replace .size() by .empty() when applicable in crashreporter/ r=ted
MozReview-Commit-ID: DNh3Pe3FYxG

--HG--
extra : rebase_source : e9239ccfcd470e2536b27420bc5f5b0d8c0eca5f
2017-08-03 12:07:24 +02:00
Sylvestre Ledru 920e276e58 Bug 1385563 - Resource leak - Close the file descriptor r=ted
MozReview-Commit-ID: Kxl6lEFGsUH

--HG--
extra : rebase_source : 6e3225e8a0b35be52093a6ca8555deb8111a9502
2017-07-29 12:40:21 +02:00
David Major 3a098c8e70 Bug 1380200 - Increase Breakpad's memory reserve size due to xul.dll inflation. r=ted 2017-07-21 09:10:00 -04:00
Sebastian Hengst d9b72a81ca Backed out changeset c3a77d62c05d (bug 1333126) for failing own xpcshell tests test_crash_win64cfi_* on Windows 10 x64. r=backout 2017-08-07 18:06:27 +02:00
Sebastian Hengst 4a0c9a1197 Backed out changeset 64be5fefcba3 (bug 1333126) 2017-08-07 18:04:48 +02:00
Carl Corcoran daca571abe Bug 1333126: adding tests; r=gsvelto
MozReview-Commit-ID: BNv54jtWf7k

--HG--
extra : rebase_source : b2054fd2828e6452a7cd4ced8ed8d1f64cbbc5c3
2017-08-06 08:46:50 +02:00
Carl Corcoran 1846ea009c Bug 1333126: use win64 PE unwind metadata to improve client-side stack walking; r=gsvelto
MozReview-Commit-ID: GDARnPSemyu

--HG--
extra : rebase_source : d14766715d1032db1a4dc489b3f55219e4529277
2017-08-06 08:45:58 +02:00
Sebastian Hengst a9b93ab9cf Backed out changeset 7f10bba58580 (bug 1333126) for eslint failures in toolkit/crashreporter/test/unit/head_win64cfi.js (strings must use doublequotes). r=backout 2017-08-07 14:03:30 +02:00
Sebastian Hengst f63869ab14 Backed out changeset 4d92e459f9ab (bug 1333126) 2017-08-07 14:02:59 +02:00
Carl Corcoran 5591814b07 Bug 1333126: adding tests; r=gsvelto
MozReview-Commit-ID: BNv54jtWf7k

--HG--
extra : rebase_source : c0b5de847560ade95776834d2ed8468a426be53d
2017-08-06 08:46:50 +02:00
Carl Corcoran 0b2ac04a9a Bug 1333126: use win64 PE unwind metadata to improve client-side stack walking; r=gsvelto
MozReview-Commit-ID: GDARnPSemyu

--HG--
extra : rebase_source : d14766715d1032db1a4dc489b3f55219e4529277
2017-08-06 08:45:58 +02:00
Masatoshi Kimura 8b713b2b0f Bug 1375125 - Stop using nsILocalFile in the tree. r=froydnj
This mechanically replaces nsILocalFile with nsIFile in
*.js, *.jsm, *.sjs, *.html, *.xul, *.xml, and *.py.

MozReview-Commit-ID: 4ecl3RZhOwC

--HG--
extra : rebase_source : 412880ea27766118c38498d021331a3df6bccc70
2017-08-04 17:49:22 +09:00
Rajesh Kathiriya 48e6bc2124 Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8
MozReview-Commit-ID: FadrI2li43G

--HG--
extra : rebase_source : b455e846ab79c8141150517e67e542e3e06d630e
2017-07-25 23:45:41 +05:30
Sebastian Hengst 804a36e668 Backed out changeset f5922a7ed25a (bug 1374620) for failing eslint at telemetry/tests/unit/test_TelemetrySend.js:358: ["os"] is better written in dot notation. r=backout 2017-07-31 14:44:34 +02:00
Rajesh Kathiriya 22dfa54ef4 Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8
MozReview-Commit-ID: FadrI2li43G

--HG--
extra : rebase_source : 5992bdde34bcc2421350433bc8c1e498a6bba848
2017-07-25 23:45:41 +05:30
Ralph Giles 8032440a7b Bug 1385503 - Correct rust srcdir url again. r=gps
The 'src' subdir needs to be part of the path *after*
the blob/commit_id section of the url, so we need to
no strip it from the prefix when we match.

MozReview-Commit-ID: 9HA3a7d8kh4

--HG--
extra : rebase_source : 6a558c06085844cd7b664c1c65a6e5023ecbb423
2017-07-28 17:04:39 -07:00
Nathan Froyd 320fa56056 Bug 1384220 - remove --with-crashreporter-enable-percent configure option; r=ted.mielczarek
This option was added ~decade ago; AFAICT from bug archaeology, the
option was added to prevent our servers from being overwhelmed.
Somewhere over the years, however, we obtained more capable servers and
the option disappeared from mozconfigs.  It seems moderately unlikely
that we'll have a need for this option again, and we could reintroduce
this patch very easily in any event.  Let's go ahead and remove it.
2017-07-26 11:16:43 -04:00
Nicholas Nethercote 2a4f265a62 Bug 1381727 (part 2) - Remove SmprintfFree(). r=glandium.
It's just a complex wrapper for free(), or equivalent function. (In practice,
all the uses end up in free().)

--HG--
extra : rebase_source : 247ea8458aa57319bd1c8366115a9b4f39ed5a33
2017-07-25 09:09:25 +10:00
Nicholas Nethercote 20df43a549 Bug 1382099 - Remove MOZ_WIDGET_GONK from toolkit/. r=glandium.
--HG--
extra : rebase_source : 709744b24104b463c8dc4cbe215d2250e7c1a9f5
2017-07-19 18:38:48 +10:00
J. Ryan Stinnett 50ecb4bb87 Bug 1379857 - Record Rust panics for child process crashes. r=dmajor
Install crash reporter's panic hook in child processes (and also delay the main
process installation until we know crash reporter is enabled).

When collecting child crash annotations, read the Rust panic message if it
exists.

MozReview-Commit-ID: Gfp2E8IHjw8

--HG--
extra : rebase_source : 9e261f399e7c54fc262a1500cf2514ddd1012406
2017-07-12 14:41:19 -05:00
Chris Manchester 5cb678d0e7 Bug 1304042 - Fail the build if running dsymutil fails. r=mshal
MozReview-Commit-ID: 9ROIRpuoVGR

--HG--
extra : rebase_source : 4fc696f8b658a0a494d4ae9690e8a7cd5b6e3554
2017-07-13 11:57:50 -07:00
Brad Werth 47c4736962 Bug 1059424 Part 3: Simplify DynamicImages::GetDyldAllImageInfosPointer now that we are minimum macOS 10.9. r=mstange
MozReview-Commit-ID: EMJwpU7LetP

--HG--
extra : rebase_source : 80d00d5165aa9c70ce71db7cb88d53c4ff06870d
2017-07-10 15:44:37 -07:00
Ralph Giles 50b5412f42 Bug 1379382 - Correct rust srcdir url. r=gps
We were prefix-matching the rust srcdir when hyperlinking
symbols, but then appending the relative source path to
the top level repo url, resulting in broken links.

Instead, link to the srcdir url at github.

MozReview-Commit-ID: 33tSMM96Vie

--HG--
extra : rebase_source : 13d5638d4029e40077c0ba8de34a64d3ff9e92be
2017-07-08 08:00:27 -07:00
Sylvestre Ledru 4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
Perry Jiang 3f8ea432d9 Bug 1377868 - .dmp.ignore files should not cause other crash reports to be ignored. r=felipe
MozReview-Commit-ID: Lvebn8uLoYd
2017-07-03 14:48:40 -07:00
Nicholas Nethercote 3e439bb4f8 Bug 1376638 - Minimize uses of prmem.h. r=glandium.
It's silly to use prmem.h within Firefox code given that in our configuration
its functions are just wrappers for malloc() et al. (Indeed, in some places we
mix PR_Malloc() with free(), or malloc() with PR_Free().)

This patch removes all uses, except for the places where we need to use
PR_Free() to free something allocated by another NSPR function; in those cases
I've added a comment explaining which function did the allocation.

--HG--
extra : rebase_source : 0f781bca68b5bf3c4c191e09e277dfc8becffa09
2017-06-30 19:05:41 -07:00
Ted Mielczarek e9db7838e4 bug 1275424 - hardcode Rust source paths in symbolstore.py. r=gps
This gives us source file names with repository info in our generated
symbol files, so that crash reports on crash-stats can link to the
correct source files for files from the Rust standard library.

I've hardcoded the source paths that the Rust project uses, which is
not my favorite thing, but there's no simple way to get this information
otherwise.

MozReview-Commit-ID: 6SeaMqH8xfc

--HG--
extra : rebase_source : 227a52db42b3f86378d744e68b4d88d2d8ba9757
2017-06-23 16:19:49 -04:00
Bill McCloskey f115503a0b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book 259377b6ab merge mozilla-inbound to mozilla-central a=merge 2017-06-26 13:25:51 +02:00
Perry Jiang 80ef003d65 Bug 862178 - Remove main thread I/O from CrashSubmit.jsm and KeyValuParser.jsm, replacing with OS.File. r=gsvelto
MozReview-Commit-ID: 6WIvz15Xtp3

--HG--
extra : rebase_source : 274136cf40459f012776213b18e51f9062d68eb5
2017-06-19 17:04:03 -07:00
Florian Quèze 2924991bf6 Bug 1368456 - remove Promise.jsm imports in tests, r=mconley. 2017-06-23 11:25:52 +02:00
Cervantes Yu 7ef2a81770 Bug 1360308 - Part 3: Support off-main-thread I/O in CrashReporter::CreateMinidumpsAndPair(). r=gsvelto
This moves the I/O operations of writing minidumps in CrashReporter::CreateMinidumpsAndPair()
off the main thread and use callbacks to notify the completion of the operations.

MozReview-Commit-ID: 9wpTDDUp9GN
2017-06-22 18:53:10 +08:00
Nathan Froyd 452dc60022 Bug 1372670 - part 4 - use nsIThreadManager::dispatchToMainThread more from JS; r=florian
We did an automated conversion for many of these in another bug, but
these instances were either missed or have been added since then.
2017-06-21 12:59:28 -04:00
Nathan Froyd 27c58cf89f Bug 1372670 - part 3 - add spinEventLoopUntil to nsIThreadManager; r=erahm,florian 2017-06-21 12:59:28 -04:00
Carsten "Tomcat" Book 8a1350b5a6 Backed out changeset 4f6302a98ae4 (bug 1372405)
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Bill McCloskey 6b3e84ed5f Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Cervantes Yu 2719860fe4 Bug 1286802 - Part 7: Don't generate overlapping app memory regions in the crash dump. r=ted
This deduplicates/merges app memory regions so that we don't generate overlapping
memory regions in the minidump. We need to do this because older version of
dbghelp.dll (e.g. that on Windows 7) doesn't handle overlaps in its memory list,
which causes xpcshell bustages.

The test bustages are fixed by sorting and merging app memory regions before
adding to the input to the MinidumpWriteDump callback. Memory regions on the thread
stack is also excluded because thread stack memory is included in the minidump
by default.

MozReview-Commit-ID: 541vzG0b0kC
2017-06-20 15:01:37 +08:00
Cervantes Yu c5cd0f339c Bug 1286802 - Part 6: Implement CrashGenerationServer::set_include_context_heap() for OOP crash generation. r=ted
MozReview-Commit-ID: 2W0VATExXmE
2017-06-20 15:01:18 +08:00
Cervantes Yu 28be2f1f7d Bug 1286802 - Part 5: Implement ExceptionHandler::set_include_context_heap() for inprocess crash generation. r=ted
MozReview-Commit-ID: AOrGlMjnNjE
2017-06-20 15:01:05 +08:00
Cervantes Yu 18ccb25d49 Bug 1286802 - Part 4: Implemention of including heap regions from the crashing context. r=ted
This patch is the core part of including heap regions using the registers of
the crashing context to be used by in-process and out-of-process crash
generations. It works as follows:

When a crash happens, the ExceptionHandler or CrashGenerationServer uses the register
values in the crash contex as candidates for heap regions. If a value "looks like"
a pointer to some data on the heap, we register a region around the value using a
preallocated AppMemory instance. Then in the "MemoryCallback" type of MinidumpCallback,
we register the memory regions for inclusion in the minidump.

MozReview-Commit-ID: BEik3lRJJkj
2017-06-20 15:00:47 +08:00
Cervantes Yu d52aeedecb Bug 1286802 - Part 3: Add empty set_include_context_heap() implementation to ExceptionHandler and CrashGenerationServer. r=ted
MozReview-Commit-ID: 5GBzvyvNPDa
2017-06-20 15:00:32 +08:00
Cervantes Yu 8b323a48e2 Bug 1286802 - Part 2: Refactor google_breakpad::ExceptionHandler for including heap regions. r=ted
This moves type definitions and minidump callback to minidump_callback.{h|cpp},
which will be used by google_breakpad::ExceptionHandler for in-process crash
generation, and by googld_breakpad::CrashGenerationServer for out-of-process
crash generation.

MozReview-Commit-ID: AMsQHSUTYNx
2017-06-20 15:00:16 +08:00
Cervantes Yu b65e8a1203 Bug 1286802 - Part 1: Add minidump_callback.{h|cpp} to Windows breakpad client. r=ted
MozReview-Commit-ID: 5Vpk4jWC63v
2017-06-20 14:59:48 +08:00
Carsten "Tomcat" Book ea1b86680c Backed out changeset 9846de3bd954 (bug 1372405)
--HG--
extra : rebase_source : 5d4a48e8ec394c329994689d938d2a6e9b2752b0
2017-06-20 08:27:02 +02:00
Bill McCloskey 4592152411 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Masatoshi Kimura 3231cb3535 Bug 1372886 - Remove dead parameters from nsIConverterInputStream.init(). r=hsivonen
MozReview-Commit-ID: GliLHLsUWjt

--HG--
extra : rebase_source : 50d3f4680a498125ddf600b0d64f6740b0229f80
2017-06-17 19:30:09 +09:00
Ted Mielczarek 1e95e2ff3b bug 1302078 - re-enable test_crash_rust_panic.js on win64. r=dmajor
MozReview-Commit-ID: CgbWgxjcoJh

--HG--
extra : rebase_source : d6e87698602a9d53ae8dabdadf00fa39a9271e86
2017-06-14 11:54:59 -04:00
Gabriele Svelto 049e3bf229 Bug 1294025 - Fix the broken promise chain when recording a crash submission attempt; r=bsmedberg
MozReview-Commit-ID: IkXh14Tta7z

--HG--
extra : rebase_source : d71b66ff59590dd08d25320a732c820135cf07ee
2017-06-12 12:00:56 +02:00
Ehsan Akhgari 7fa4662253 Bug 1370609 - Avoid reading the version of dbghelp.dll on startup; r=ted
We will do the same thing for all versions of this DLL that ship
on the versions of Windows that we support, so this currently
only serves as a way to slow down startup.
2017-06-08 12:38:05 -04:00
Sylvestre Ledru bc5b6f4ff4 Bug 1366882 - Fix a resource leak - CID 221217 - r=ted
MozReview-Commit-ID: G3THkXZN9GA

--HG--
extra : rebase_source : 1a55c4fd3a6b57af4ba1743c755865d7a5d03d69
2017-05-22 23:23:08 +02:00
Gabriele Svelto e3b7a2cb05 Bug 1370215 - Add the AsyncShutdownTimeout and ShutdownProgress annotations to the crash ping sent via the crashreporter client; r=ted
This also removes the TelemetrySessionId field from the whitelist because that
field is already manually stripped and moved into the ping's root node.
Putting it in the whitelist is redundant.

MozReview-Commit-ID: B3WAyCSHoyR

--HG--
extra : rebase_source : 9729399a1e1c45cf1646498379d68684985134ce
2017-06-05 14:50:44 +02:00
Masatoshi Kimura e6640b566c Bug 1370061 - turn off more warnings in crashreporter code. r=ted.mielczarek
MozReview-Commit-ID: CfOXtWThTU1

--HG--
extra : rebase_source : e0e536d45a9a800333e0d8ff2cff993f39e6bdcd
2017-06-04 17:38:14 +09:00
Gabriele Svelto 43c10532d4 Bug 1353168 - Add a crash annotation to distinguish between web, file and extension content processes; r=bsmedberg
This adds the RemoteType annotation to a content crash report so that we can
distinguish between content processes that crashed while running remote, local
or extension code. The annotation is passed along the others to Socorro by the
crashreporter and is also whitelisted for inclusion in the crash ping.

MozReview-Commit-ID: 4avo0IWfMGf

--HG--
extra : rebase_source : 8d03f7e166b5762a5ce7cab13c2101302b4f1d2f
2017-06-01 11:16:11 +02:00
Nathan Froyd 226efb3707 Bug 1369788 - turn off more warnings in crashreporter code; r=ted.mielczarek
These mostly occur in code we don't even care about (MIPS!), but we
might as well turn them off everywhere for third-party code.
2017-06-02 17:07:17 -04:00
Gabriele Svelto 3148018ed7 Bug 1359326 - Run the minidump analyzer directly from the CrashService code; r=bsmedberg
This patch removes the C++ code used to run the minidump analyzer when a
content process crashes, and replaces it with JS code within the CrashService
object. This removes the need for a separate shutdown blocker in C++ code and
allows end-to-end testing of the crash service functionality. Additionally
the exception handler code can be simplified since it's now only used to run
the crash reporter client.

The test added to test_crash_service.js covers computing the minidump SHA256
hash (bug 1322611) and of the minidump analyzer itself (bug 1280477).

MozReview-Commit-ID: LO5w839NHev
2017-05-11 14:03:50 +02:00
Markus Stange 482d9344e2 Bug 1367591 - Process gDelayedAnnotations on Windows and Mac as well, not just on Linux. r=jdm
MozReview-Commit-ID: LQrU8NTdj7V

--HG--
extra : rebase_source : 61b49accf70bac556f3e8a813e985ae71bd25b48
2017-05-28 22:30:22 -04:00
Ted Mielczarek 3c549ea316 bug 1262812 - use fallback strings in CrashSubmit.jsm so submitting crashes from about:crashes works on Android. r=mconley
MozReview-Commit-ID: 3aw17aFysu4

--HG--
extra : rebase_source : b99c39cececca21d604387658ac9453671c20026
2017-05-24 11:07:41 -04:00
Jim Chen 117a60442d Bug 1360321 - 1. Update linux_syscall_support.h in Breakpad; r=ted
The last update left out a couple lines that should have been taken out,
which only affected AArch64 builds.

MozReview-Commit-ID: 6PTz2y4U2iD
2017-05-17 13:06:21 -04:00
Cervantes Yu 686a8d81ef Bug 1365203 - Test cases for annotating name of base::Thread in the crash reporter. r=gsvelto
MozReview-Commit-ID: Es8ikFOj8iF

--HG--
extra : rebase_source : 35fa348ed0a944194a1197873ba33c239633d3f5
extra : amend_source : 4e41cc823dc6c85279f9dbd49ef7adcd0a8d12b3
2017-05-17 14:25:28 +08:00
Florian Quèze 97f401c644 Bug 1362882 - script-generated patch to switch from Promise.defer() to new Promise() where it's straightforward, rs=Mossop. 2017-05-12 14:55:27 +02:00
Florian Quèze 16530fa1e3 Bug 1353542 - smaller script-generated patch converting remaining generators that are likely tasks (actual generators were identified by hand and whitelisted), r=Mossop. 2017-05-12 14:45:01 +02:00
Florian Quèze 5e3539e504 Bug 1353542 - massive script-generated patch converting Task.async and Task.spawn calls, and generators clearly identifiable as tasks, rs=Mossop. 2017-05-12 14:42:39 +02:00
Carsten "Tomcat" Book fdc689ba16 merge mozilla-inbound to mozilla-central a=merge 2017-05-05 15:17:26 +02:00
Jim Chen 055a903128 Bug 1360291 - Detect NDK version number; r=nalexander
Detect the NDK major/minor version numbers, and feed that to Breakpad.
For AArch64, some Breakpad headers try to workaround NDK oddities by
checking the ANDROID_NDK_MAJOR_VERSION and ANDROID_NDK_MINOR_VERSION
macros.
2017-05-04 19:19:31 -04:00
Wes Kocher 9a6937d9cb Bug 1361417 - Update moz.build crash reporter bug components r=bsmedberg
MozReview-Commit-ID: IJgNTLI4K5w

--HG--
extra : rebase_source : c93a49e6e8ca9284f0084c86f0a551c0a076ee6f
2017-05-02 09:44:42 -07:00