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

1782 Коммитов

Автор SHA1 Сообщение Дата
Noemi Erli 839b4f2f72 Backed out changeset f5c3925fab83 (bug 1576748) for bustage in symbolstore.py 2019-08-27 18:03:42 +03:00
Nathan Froyd 86440591dc Bug 1576748 - make symbolstore.py complain loudly if expected output isn't found; r=nalexander
This change surfaces errors faster, and ensures that we don't silently
end up with empty crashreporter symbols if `dump_syms` can't run for
some reason.

Differential Revision: https://phabricator.services.mozilla.com/D43520

--HG--
extra : moz-landing-system : lando
2019-08-27 14:30:53 +00:00
Nicholas Nethercote adb9edf389 Bug 1574388 - Implement PHC on Mac. r=gsvelto,glandium
But it is not yet enabled; bug 1576515 will do that.

Differential Revision: https://phabricator.services.mozilla.com/D42264

--HG--
extra : moz-landing-system : lando
2019-08-25 23:16:05 +00:00
Dustin J. Mitchell 48511543d2 Bug 1566365 - log output when test fails r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D42855

--HG--
extra : moz-landing-system : lando
2019-08-22 20:35:37 +00:00
Gabriele Svelto 303c5ce8d0 Bug 1566855 - Submit incomplete crashes by synthesizing a minimal .extra file with sensible crash annotations r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D42575

--HG--
rename : toolkit/crashreporter/test/browser/browser_aboutCrashesResubmit.js => toolkit/crashreporter/test/browser/browser_aboutCrashesIncomplete.js
extra : moz-landing-system : lando
2019-08-20 20:54:35 +00:00
Mike Hommey 66d7fe943e Bug 1575420 - Replace MOZ_WIDGET_TOOLKIT value of "gtk3" with "gtk". r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D42765

--HG--
extra : moz-landing-system : lando
2019-08-21 12:25:42 +00:00
Razvan Maries 3be1d4cc62 Backed out changeset 2b1ffc8004d5 (bug 1035892) for causing bug 1574515. a=backout 2019-08-19 18:04:05 +03:00
Gabriele Svelto f4e2add6c3 Bug 1035892 - Handle 64-bit addresses for EXC_BAD_ACCESS exceptions on Mac r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D24356

--HG--
extra : moz-landing-system : lando
2019-08-15 19:44:15 +00:00
Jed Davis 51bcb910f3 Bug 1426526 - Remove references to the old Chromium temporary file prefix. r=gsvelto,florian
With the removal of the old Chromium file_util code, we should no longer
be using temporary files with names starting with "org.chromium.", so the
crash reporter and main thread I/O test no longer need to recognize that
prefix.

Differential Revision: https://phabricator.services.mozilla.com/D34629

--HG--
extra : moz-landing-system : lando
2019-08-14 22:48:43 +00:00
Gabriele Svelto beb62c4c31 Bug 1282776 - Finalize crash reports for child process crashes happening too early r=froydnj
This changes the way crash reports for child processes happening too early
during the child process' startup. Before bug 1547698 we wrote a partial
.extra file with those crashes that lacked the process type. The user would
not be notified of those crashes until she restarted Firefox and even when
submitted those crashes would be erroneously labeled as browser crashes.

After bug 1547698 we stopped writing .extra files entirely for those crashes
which left orphaned .dmp files among the pending crash reports.

This patch does three things to improve the situation:

* It writes a partial .extra file so that the crashes are detected at the next
  startup. So the user is still not notified directly of these crashes but she
  can report them later.
* It adds the process type to the .extra file so that the crash reporters are
  labelled correctly.
* It fixes a leak in the `pidToMinidump` hash-map. Since the crashes were
  not finalized the `ChildProcessData` strucutre associated with them would
  never be fred.

Differential Revision: https://phabricator.services.mozilla.com/D40810

--HG--
extra : moz-landing-system : lando
2019-08-09 14:23:19 +00:00
Brian Hackett 793df565cd Bug 1570089 Part 2 - Associate replaying process crash reports with their own pid, r=gsvelto.
Depends on D39925

Differential Revision: https://phabricator.services.mozilla.com/D39926

--HG--
extra : moz-landing-system : lando
2019-08-01 11:41:58 +00:00
Gabriele Svelto 50f416564f Bug 1570789 - Remove the unused field from GeckoView/Fennec crash reports r=nalexander,agi
Differential Revision: https://phabricator.services.mozilla.com/D40331

--HG--
extra : moz-landing-system : lando
2019-08-02 08:26:05 +00:00
Nicholas Nethercote e38691d6e6 Bug 1569862 - Implement PHC on Windows. r=glandium
The most important part is the `GetPHCAddrInfo()` function in
`exception_handler.cc`, which extracts a crash address from an
`EXCEPTION_POINTERS` object.

The commit also changes the code so that it works if MozStackWalk() returns an
empty stack trace. This happens in practice on Windows on automation sometimes,
I'm not sure why.

The rest of the commit is just plumbing and the smoothing over of minor
platform differences.

Differential Revision: https://phabricator.services.mozilla.com/D39841

--HG--
extra : moz-landing-system : lando
2019-08-02 00:33:04 +00:00
Jed Davis 6b2b3d2faa Bug 1511556 - Don't leak crash annotation pipes when the crash reporter is disabled. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D38953

--HG--
extra : moz-landing-system : lando
2019-07-23 16:04:05 +00:00
Nicholas Nethercote 38dbbfcffc Bug 1523276 - Implement PHC, a probabilistic heap checker. r=glandium,gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D25021

--HG--
extra : rebase_source : 86e94499f746b18a596130341692c6a9992d4867
2019-07-03 09:26:11 +10:00
Sylvestre Ledru 90fac8fa22 Bug 1562642 - Part 3 - Add missing MPL2 headers in browser & toolkit r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D37217

--HG--
extra : moz-landing-system : lando
2019-07-10 12:03:37 +00:00
Andreea Pavel b698eeec56 Backed out changeset 3d59cb02b6ff (bug 1562642) for eslint failure on a CLOSED TREE 2019-07-10 14:44:29 +03:00
Sylvestre Ledru fd95abf361 Bug 1562642 - Part 3 - Add missing MPL2 headers in browser & toolkit r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D37217

--HG--
extra : moz-landing-system : lando
2019-07-10 11:15:25 +00:00
shindli a060733df8 Backed out changeset b59c9bfa328d (bug 1541603) for causing xpcshell failure in toolkit/crashreporter/test/unit_ipc/test_content_annotation.js CLOSED TREE 2019-07-09 02:10:29 +03:00
mandy cheang b5650ccc80 Bug 1541603 - remove creation of minidumps folder on startup, create it lazily in crash reporter. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D36370

--HG--
extra : moz-landing-system : lando
2019-07-08 18:25:09 +00:00
Alvina Waseem 627ccdaaa3 Bug 1558372 - Fixed Crash Reporter on Mac. r=snorp,froydnj,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D35877

--HG--
extra : moz-landing-system : lando
2019-06-27 19:51:04 +00:00
Sylvestre Ledru fc2eb5393c Bug 1562642 - Part 2 - Add missing MPL2 headers r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D37146

--HG--
extra : moz-landing-system : lando
2019-07-08 09:27:47 +00:00
Victor Porof 30de4722a3 Bug 1561435 - Format toolkit/crashreporter/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36054

--HG--
extra : source : 0b29c27eb14e47c44674fc7aa8e90f74e4430233
2019-07-05 11:15:04 +02:00
Andrew McCreight f3d1db0145 Bug 1560977 - Annotate crash reports if Fission is enabled. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D36530

--HG--
extra : moz-landing-system : lando
2019-07-02 21:08:55 +00:00
Martin Stransky 14cac6b6f3 Bug 1561859 - [Wayland] Expose active DRM on Wayland in about:support & telemetry, r=kats
Differential Revision: https://phabricator.services.mozilla.com/D36248

--HG--
extra : moz-landing-system : lando
2019-07-02 09:17:22 +00:00
shindli 8152cee1b1 Backed out changeset 6e378fbef555 (bug 1561859) for gtest crashes on libwayland-client.so.0.3.0 CLOSED TREE 2019-07-01 18:57:33 +03:00
Martin Stransky f785fa7021 Bug 1561859 - [Wayland] Expose active DRM on Wayland in about:support & telemetry, r=kats
Differential Revision: https://phabricator.services.mozilla.com/D36248

--HG--
extra : moz-landing-system : lando
2019-07-01 13:44:14 +00:00
Narcis Beleuzu a89b67e772 Backed out 15 changesets (bug 1479960, bug 1426526, bug 1534780, bug 1536697) for toolchain bustages on UniquePtrExtensions.h . CLOSED TREE
Backed out changeset a8518ea4b594 (bug 1479960)
Backed out changeset 7172762c4b87 (bug 1536697)
Backed out changeset 2ea5ccb8f3a1 (bug 1426526)
Backed out changeset d892a888fe9c (bug 1426526)
Backed out changeset 2c4d12bdfec3 (bug 1479960)
Backed out changeset 8a322064cf6d (bug 1479960)
Backed out changeset 47d387b6cd4a (bug 1479960)
Backed out changeset 8332565a6943 (bug 1479960)
Backed out changeset 9d7f1835f96f (bug 1479960)
Backed out changeset 0aa8af4965c5 (bug 1479960)
Backed out changeset 036809330a51 (bug 1479960)
Backed out changeset 39e18373e3d3 (bug 1479960)
Backed out changeset 6c2b995a9d30 (bug 1479960)
Backed out changeset 3c2b31744645 (bug 1534780)
Backed out changeset 26bb00a94d5d (bug 1534780)
2019-06-28 22:42:00 +03:00
Gabriele Svelto 74276da797 Bug 1536221 - Re-enable mochitests and xpcshell tests that depend on the crash reporter on Windows/AArch64 r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D35995

--HG--
extra : moz-landing-system : lando
2019-06-26 13:15:24 +00:00
Jed Davis 142fe6ae22 Bug 1426526 - Remove references to the old Chromium temporary file prefix. r=gsvelto,florian
With the removal of the old Chromium file_util code, we should no longer
be using temporary files with names starting with "org.chromium.", so the
crash reporter and main thread I/O test no longer need to recognize that
prefix.

Differential Revision: https://phabricator.services.mozilla.com/D34629

--HG--
extra : moz-landing-system : lando
2019-06-20 22:40:42 +00:00
Ciure Andrei 72f3f971fb Backed out 15 changesets (bug 1479960, bug 1426526, bug 1534780, bug 1536697) for causing build bustages CLOSED TREE
Backed out changeset 5645e0cc3915 (bug 1479960)
Backed out changeset a7c09894c6a0 (bug 1536697)
Backed out changeset 510f03381af9 (bug 1426526)
Backed out changeset 7cf4735a088f (bug 1426526)
Backed out changeset 41080844e645 (bug 1479960)
Backed out changeset fdba3c5f8fd0 (bug 1479960)
Backed out changeset 26a8ebcb2db4 (bug 1479960)
Backed out changeset d0d383e5bae1 (bug 1479960)
Backed out changeset c418095bb7b7 (bug 1479960)
Backed out changeset 7b78b1945532 (bug 1479960)
Backed out changeset c47d47d4073d (bug 1479960)
Backed out changeset 71253b62a633 (bug 1479960)
Backed out changeset ae525f20bdbb (bug 1479960)
Backed out changeset 7fba719355d7 (bug 1534780)
Backed out changeset 771db331860a (bug 1534780)
2019-06-20 19:54:57 +03:00
Jed Davis 1ad12afe4e Bug 1426526 - Remove references to the old Chromium temporary file prefix. r=gsvelto,florian
With the removal of the old Chromium file_util code, we should no longer
be using temporary files with names starting with "org.chromium.", so the
crash reporter and main thread I/O test no longer need to recognize that
prefix.

Differential Revision: https://phabricator.services.mozilla.com/D34629

--HG--
extra : moz-landing-system : lando
2019-06-17 02:20:08 +00:00
Gabriele Svelto c4d9ffe88a Bug 1555954 - Serialize content processes' exception-time annotations in binary format when sending them to the main process r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D33376

--HG--
extra : moz-landing-system : lando
2019-06-18 19:19:33 +00:00
Gabriele Svelto 4ca4d77829 Bug 1558554 - Properly detect low-commit space scenarios on Windows r=dmajor
This uses GetPerformanceInformation() to measure how much commit space is
available globally. Previously we relied on GlobalMemoryStatusEx() but in
spite of the function name the commit-space values it returns are
*per process* and thus unreliable. Available physical memory measurement has
also been removed since it was never used and we don't plan on using it
anytime soon.

Differential Revision: https://phabricator.services.mozilla.com/D35018

--HG--
extra : moz-landing-system : lando
2019-06-14 20:56:41 +00:00
Jan Varga 82fad8077a Bug 1542572 - Add more temporary logging to LocalStorageShutdownTimeout crash annotation; r=asuth dr=chutten
Differential Revision: https://phabricator.services.mozilla.com/D34295
2019-06-09 21:46:34 +02:00
Sylvestre Ledru 4c5d57afc4 Bug 1524194 - Do not add stack pointer to clobber list r=gsvelto
Cherry-pick upstream patch to address a build issue with gcc 9

https://chromium.googlesource.com/linux-syscall-support/+/8048ece6c16c91acfe0d36d1d3cc0890ab6e945c

Differential Revision: https://phabricator.services.mozilla.com/D34316

--HG--
extra : moz-landing-system : lando
2019-06-14 07:14:08 +00:00
Christoph Kerschbaumer 4c50a83f11 Bug 1497195: Apply Meta CSP to about:crashes.
Differential Revision: https://phabricator.services.mozilla.com/D34125

--HG--
extra : moz-landing-system : lando
2019-06-07 09:50:48 +00:00
Nicholas Nethercote f6f463d037 Bug 1556891 - Remove unused defines from nsExceptionHandler.cpp. r=gsvelto
Depends on D33737

Differential Revision: https://phabricator.services.mozilla.com/D33738

--HG--
extra : moz-landing-system : lando
2019-06-05 06:42:52 +00:00
Nicholas Nethercote 6a60a35c6e Bug 1556891 - Remove `base` argument from `XP_TTOA` and `XP_STOA`. r=gsvelto
It's ignored on non-Windows platforms, and all callsites use 10.

Differential Revision: https://phabricator.services.mozilla.com/D33737

--HG--
extra : moz-landing-system : lando
2019-06-05 06:43:19 +00:00
Gabriele Svelto 76021a664b Bug 1555917 - Exception handler and crash reporter client cleanup r=froydnj
This patch includes multiple changes cleaning up various aspects of the crash
reporter client and exception handler:

* Some Unix-specific code was moved out from the base crashreporter client
  code and into the appropriate platform implementation
* Functions used to open files in the crashreporter client now accept C++
  `std::ios` flags instead of unreadable booleans
* Useless character conversion routines were removed from the
  minidump-analyzer
* Crash annotations are not serialized into a huge string anymore every time
  they change. They are all written out individually during an exception.
* `WriteEscapedMozCrashReason()` uses the exception-safe `my_strlen()` instead
  of plain `strlen()`
* The Windows-specific DLL-blocklist shutdown was removed from the Linux &
  macOS Breakpad callbacks
* The `CrashReporterHost`, `CrashReporterClient` and
  `CrashReporterMetadataShmem` classes now take `nsACString` references
  instead of `nsCString` ones since they never modify their contents

Differential Revision: https://phabricator.services.mozilla.com/D33267

--HG--
extra : moz-landing-system : lando
2019-05-31 21:54:03 +00:00
Andrew Osmond fd0fefd13a Bug 1554540 - Expose window protocol (X11, Wayland) in nsIGfxInfo and about:support. r=kats,stransky,flod
Differential Revision: https://phabricator.services.mozilla.com/D32651
2019-05-28 06:40:34 -04:00
Gabriele Svelto a7067c8900 Bug 1553226 - Don't attempt to read annotations associated with Flash process crashes r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D32133

--HG--
extra : moz-landing-system : lando
2019-05-22 13:04:41 +00:00
Gabriele Svelto 207d6d9722 Bug 1544881 - Ignore empty ranges when parsing DW_TAG_inlined_subroutine tags as they break the assumptions required during line assignment r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D31764

--HG--
extra : moz-landing-system : lando
2019-05-20 11:49:40 +00:00
Gabriele Svelto 6b8e7aca2f Bug 1547698 - Reorganize the code used to write the annotations upon a main process crash r=froydnj
Annotation on main process crashes are written to both the .extra file
(for crash submission) and to the event file so that the browser can
detect the crash when restarting even if the crash report files have
been deleted.

This patch factorizes all the code that writes to both files, cutting
down all the duplicate calls, and fixes an issue with the
BreakpadReserveAddress and BreakpadReserveSize annotations which were
not written to the event file.

Differential Revision: https://phabricator.services.mozilla.com/D31247

--HG--
extra : moz-landing-system : lando
2019-05-18 16:19:57 +00:00
Gabriele Svelto 9f9c7c8211 Bug 1547698 - Refactor the code that writes the .extra file for a content process crash or hang r=froydnj
Upon a content process crash or hang crash annotations were incrementally
written into the .extra file starting with the exception handler callback and
then in a number of different places before the file was ready for submission.
This had a number of downsides: since the annotations were directly added to
the file it was impossible to tell which ones were already written at a
certain point in time, additionally some were written twice or even thrice.
The code doing the writing would also behave differently depending on the
contents of the file, the parameters passed to it and the contents of global
variables.

This change overhauls the whole process by keeping the annotations into a
temporary per-crash annotation table which is filled with all the required
annotations before being written out in a single pass when they are ready.

The annotations are gathered from the main process annotation table, the
per-process one (held by the CrashReporterHost) and exception-time specific
ones.

The resulting annotations are slightly different than before the patch: first
of all there are no more duplicate entries in the .extra file and secondly all
content/plugin process hangs annotations are properly filtered, before
annotations that were main process-only would leak into them.

Differential Revision: https://phabricator.services.mozilla.com/D31069

--HG--
extra : moz-landing-system : lando
2019-05-18 16:19:55 +00:00
Gabriele Svelto ac81f9bda7 Bug 1547698 - Remove unused and non-public bits from the exception handler r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D31066

--HG--
extra : moz-landing-system : lando
2019-05-15 13:09:31 +00:00
Andrew Osmond 3a7c78906a Bug 1544105 - Part 2. Add new gfx driver vendor field to telemetry and about:support. r=jrmuizel,chutten,flod data-r=bmiroglio
Expose the driver vendor information (applies to Linux only at this
moment) to crash report telemetry and about:support. This will be useful
when debugging issues to know specifically what driver is in use.

Also expose the monitor information for Linux. Part 1 provides an
implementation to get the monitor information on said platform.

Differential Revision: https://phabricator.services.mozilla.com/D29472
2019-05-03 18:26:06 -04:00
Mihai Alexandru Michis 25a6b02677 Backed out 2 changesets (bug 1544105) for leaks in mda tests and failing browser_Troubleshoot.js CLOSED TREE
Backed out changeset eca7ee42af96 (bug 1544105)
Backed out changeset a8cd879f02ce (bug 1544105)
2019-05-03 23:19:03 +03:00
Andrew Osmond 580726465f Bug 1544105 - Part 2. Add new gfx driver vendor field to telemetry and about:support. r=jrmuizel,chutten,flod data-r=bmiroglio
Expose the driver vendor information (applies to Linux only at this
moment) to crash report telemetry and about:support. This will be useful
when debugging issues to know specifically what driver is in use.

Also expose the monitor information for Linux. Part 1 provides an
implementation to get the monitor information on said platform.

Differential Revision: https://phabricator.services.mozilla.com/D29472
2019-05-03 15:03:28 -04:00
Daniel Varga 2b81f4d301 Backed out 2 changesets (bug 1544105) for build bustages. On a CLOSED TREE
Backed out changeset 215c2693d281 (bug 1544105)
Backed out changeset 16d5af6fd55c (bug 1544105)
2019-05-03 19:12:48 +03:00