Commit Graph

2407 Commits

Author SHA1 Message Date
serge-sans-paille
d7f7a937b6 Bug 1826758 - Make toolkit/crashreporter/minidump-analyzer buildable outside of a unified build environment r=andi
Differential Revision: https://phabricator.services.mozilla.com/D174883
2023-04-18 09:42:15 +00:00
serge-sans-paille
7ba465f2db Bug 1826754 - Make toolkit/crashreporter/client buildable outside of a unified build environment r=andi
Differential Revision: https://phabricator.services.mozilla.com/D174880
2023-04-18 09:42:14 +00:00
Jens Stutte
ca12388a58 Bug 1825917 - Have a ShutdownReason annotation and identify OS shutdown on Windows. r=xpcom-reviewers,gstoll,nika
Differential Revision: https://phabricator.services.mozilla.com/D174899
2023-04-17 14:03:48 +00:00
Stanca Serban
cefd926755 Backed out 9 changesets (bug 1826760, bug 1826758, bug 1826752, bug 1826756, bug 1826759, bug 1826761, bug 1826757, bug 1826753, bug 1826754) for causing bp-hybrid bustages in ClearKeyDecryptionManager.cpp.
CLOSED TREE

Backed out changeset 210012222277 (bug 1826761)
Backed out changeset e364bb149efa (bug 1826760)
Backed out changeset e456e2f9966c (bug 1826759)
Backed out changeset 2b6ff545f4a3 (bug 1826758)
Backed out changeset 95fe1de8ba00 (bug 1826757)
Backed out changeset f8af52d7f2a1 (bug 1826756)
Backed out changeset 2646e773f098 (bug 1826754)
Backed out changeset 58d5d74b1835 (bug 1826753)
Backed out changeset 8567e6595acc (bug 1826752)
2023-04-17 13:52:39 +03:00
serge-sans-paille
21176abc21 Bug 1826758 - Make toolkit/crashreporter/minidump-analyzer buildable outside of a unified build environment r=andi
Differential Revision: https://phabricator.services.mozilla.com/D174883
2023-04-17 10:11:56 +00:00
serge-sans-paille
f160bee67c Bug 1826754 - Make toolkit/crashreporter/client buildable outside of a unified build environment r=andi
Differential Revision: https://phabricator.services.mozilla.com/D174880
2023-04-17 10:11:56 +00:00
Emily McDonough
b7613100f9 Bug 1828228 - Add missing headers for non-unified build in toolkit/ r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D175538
2023-04-15 00:52:54 +00:00
Tooru Fujisawa
611bc49dcf Bug 1821308 - Part 2: Convert ctypes.jsm consumers to use ESM. r=Standard8,geckoview-reviewers,application-update-reviewers,credential-management-reviewers,sgalich,bytesized,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D173811
2023-04-11 01:25:15 +00:00
Alex Franchuk
22d0f39eef Bug 1823692 - Storing the memory around the instruction IP is broken in 32-bit Linux builds r=gsvelto,glandium,supply-chain-reviewers
Using the newer version of the crash-context crate corrects the 32-bit Linux context structure,
which was the cause of the IP memory not being stored (among possibly other 32-bit Linux issues).

Differential Revision: https://phabricator.services.mozilla.com/D174314
2023-04-06 13:38:54 +00:00
serge-sans-paille
e000a97464 Bug 1824519 - Make toolkit/crashreporter/test/ buildable outside of a unified build environment r=andi
Differential Revision: https://phabricator.services.mozilla.com/D173619
2023-03-30 13:48:35 +00:00
Mike Hommey
696a4577d8 Bug 1824320 - Use mozpack.executable instead of relying on the file program. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D173919
2023-03-30 00:38:07 +00:00
blessingpeters
751e4466a7 Bug 1670436 - Prevent localized strings from being truncated in the crash reporter client r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D172823
2023-03-17 15:52:45 +00:00
Gabriele Svelto
c3e2cc38ef Bug 1822460 - Do not run the sandbox crash test on release/beta as sandbox violations do not terminate the process on those builds r=gerard-majax
Differential Revision: https://phabricator.services.mozilla.com/D172676
2023-03-15 13:55:01 +00:00
aniket
4a9d4aed87 Bug 1820882 - Convert consumers of toolkit/crashreporter to import ES modules directly r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D172545
2023-03-15 11:14:22 +00:00
Gabriele Svelto
a4b115ad0e Bug 1820768 - Add a test covering crash generation for sandbox violations; r=gerard-majax
Differential Revision: https://phabricator.services.mozilla.com/D171862
2023-03-14 11:46:11 +00:00
Gabriele Svelto
88e237ba34 Bug 1819969 - Correctly convert signal information receieved by a child process when generating a crash report; r=gerard-majax
This adds an explicit conversion between the siginfo_t structure provided by
Breakpad and the signalfd_siginfo one required by minidump-writer.

Differential Revision: https://phabricator.services.mozilla.com/D172256
2023-03-14 11:46:10 +00:00
Alexandre Lissy
c22c48c16e Bug 1763819 - Allow a bit more attempts for crash reporter pipe connections r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D172265
2023-03-11 17:03:37 +00:00
Alexandre Lissy
7c08125e9e Bug 1763819 - Always teardown crashreporter annotation faclilities r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D172264
2023-03-11 17:03:36 +00:00
Marian-Vasile Laza
1b5ca21a5c Backed out 2 changesets (bug 1819969, bug 1820768) for bc failures on browser_content_crashes.js. CLOSED TREE
Backed out changeset 78a80851c017 (bug 1820768)
Backed out changeset a6cfb7f7b3c9 (bug 1819969)
2023-03-10 21:46:55 +02:00
Gabriele Svelto
6bd6805d37 Bug 1820768 - Add a test covering crash generation for sandbox violations; r=gerard-majax
Differential Revision: https://phabricator.services.mozilla.com/D171862
2023-03-10 16:57:54 +00:00
Gabriele Svelto
a1ae0e0133 Bug 1819969 - Correctly convert signal information receieved by a child process when generating a crash report; r=gerard-majax
This adds an explicit conversion between the siginfo_t structure provided by
Breakpad and the signalfd_siginfo one required by minidump-writer.

Differential Revision: https://phabricator.services.mozilla.com/D172256
2023-03-10 16:57:54 +00:00
Gabriele Svelto
1efe6235e6 Bug 1819657 - Re-try removing minidumps generated during xpcshell tests to avoid intermittent failures on Windows r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D171367
2023-03-01 20:40:26 +00:00
Steven Michaud
586ba286bf Bug 1814852 - Add support for dyld and __DATA_DIRTY,__crash_info to Breakpad. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D170383
2023-02-21 20:54:44 +00:00
Barret Rennie
019daed1af Bug 1725615 - Port osfile.jsm usage to IOUtils in toolkit/crashreporter/ r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D163057
2023-02-17 06:34:30 +00:00
Andi-Bogdan Postelnicu
d7e8a09c21 Bug 1519636 - Reformat recent changes to the Google coding style. r=glandium
Updated with clang-format version 15.0.5 (taskcluster-MKK8dHUpQkGfPLA793lizg)
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D168658
2023-02-13 15:02:07 +00:00
Dana Keeler
7b68ee0cfc Bug 1813279 - re-enable tests that were disabled unconditionally by bug 1805919 r=jschanck
Bug 1805919 skipped tests that fail in MSIX builds, but inadvertantly
unconditionally skipped a number of tests.

Differential Revision: https://phabricator.services.mozilla.com/D168186
2023-01-28 20:26:40 +00:00
Mark Banner
166d8573cb Bug 1811796 - Automatically replace Cu.reportError with console.error (most of toolkit). r=mossop,credential-management-reviewers,dimi
Depends on D167518

Differential Revision: https://phabricator.services.mozilla.com/D167519
2023-01-23 18:09:03 +00:00
Chris Peterson
eb00c7365e Bug 1807583 - Enable -Wtautological-constant-in-range-compare warnings. r=firefox-build-system-reviewers,glandium
There are no -Wtautological-constant-in-range-compare warnings in C or C++ code in mozilla-central, so we can enable this warning.

However, the -Wtautological-constant-in-range-compare flag also enables -Wtautological-value-range-compare warnings and there are some -Wtautological-value-range-compare warnings in some third-party C code.

I filed https://bugs.chromium.org/p/google-breakpad/issues/detail?id=859 for the Google Breakpad warning.

---

toolkit/crashreporter/google-breakpad/src/third_party/libdisasm/ia32_invariant.c:112:30 [-Wtautological-value-range-compare] result of comparison of 3-bit unsigned value == 101 is always false

js/src/zydis/Zydis/Decoder.c:2200:43 [-Wtautological-value-range-compare] result of comparison of 2-bit unsigned value < 4 is always true
js/src/zydis/Zydis/Decoder.c:2213:43 [-Wtautological-value-range-compare] result of comparison of 2-bit unsigned value < 4 is always true
js/src/zydis/Zydis/Decoder.c:2226:43 [-Wtautological-value-range-compare] result of comparison of 2-bit unsigned value < 4 is always true
js/src/zydis/Zydis/Decoder.c:3650:46 [-Wtautological-value-range-compare] result of comparison of 3-bit unsigned value < 8 is always true
js/src/zydis/Zydis/SharedData.c:119:47 [-Wtautological-value-range-compare] result of comparison of 15-bit unsigned value != 65535 is always true

third_party/aom/aom_dsp/intrapred.c:94:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true
third_party/aom/aom_dsp/intrapred.c:123:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true
third_party/aom/aom_dsp/intrapred.c:152:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true
third_party/aom/aom_dsp/intrapred.c:413:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true
third_party/aom/aom_dsp/intrapred.c:444:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true
third_party/aom/aom_dsp/intrapred.c:475:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true

Differential Revision: https://phabricator.services.mozilla.com/D165522
2023-01-20 04:53:27 +00:00
Gijs Kruitbosch
38016dd0ff Bug 1810995 - update BrowserTestUtils.loadURI consumers to use loadURIString (automated) - toolkit/ - r=Standard8,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D167151
2023-01-19 20:16:41 +00:00
Noemi Erli
cf1f195897 Backed out changeset d9c33212d62e (bug 1807583) for causing build bustage CLOSED TREE 2023-01-18 09:02:54 +02:00
Chris Peterson
4a90b146bd Bug 1807583 - Enable -Wtautological-constant-in-range-compare warnings. r=firefox-build-system-reviewers,glandium
There are no -Wtautological-constant-in-range-compare warnings in C or C++ code in mozilla-central, so we can enable this warning.

However, the -Wtautological-constant-in-range-compare flag also enables -Wtautological-value-range-compare warnings and there are some -Wtautological-value-range-compare warnings in some third-party C code.

I filed https://bugs.chromium.org/p/google-breakpad/issues/detail?id=859 for the Google Breakpad warning.

---

toolkit/crashreporter/google-breakpad/src/third_party/libdisasm/ia32_invariant.c:112:30 [-Wtautological-value-range-compare] result of comparison of 3-bit unsigned value == 101 is always false

js/src/zydis/Zydis/Decoder.c:2200:43 [-Wtautological-value-range-compare] result of comparison of 2-bit unsigned value < 4 is always true
js/src/zydis/Zydis/Decoder.c:2213:43 [-Wtautological-value-range-compare] result of comparison of 2-bit unsigned value < 4 is always true
js/src/zydis/Zydis/Decoder.c:2226:43 [-Wtautological-value-range-compare] result of comparison of 2-bit unsigned value < 4 is always true
js/src/zydis/Zydis/Decoder.c:3650:46 [-Wtautological-value-range-compare] result of comparison of 3-bit unsigned value < 8 is always true
js/src/zydis/Zydis/SharedData.c:119:47 [-Wtautological-value-range-compare] result of comparison of 15-bit unsigned value != 65535 is always true

third_party/aom/aom_dsp/intrapred.c:94:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true
third_party/aom/aom_dsp/intrapred.c:123:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true
third_party/aom/aom_dsp/intrapred.c:152:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true
third_party/aom/aom_dsp/intrapred.c:413:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true
third_party/aom/aom_dsp/intrapred.c:444:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true
third_party/aom/aom_dsp/intrapred.c:475:3 [-Wtautological-value-range-compare] result of comparison of 4-bit unsigned value < 31 is always true

Differential Revision: https://phabricator.services.mozilla.com/D165522
2023-01-18 02:04:53 +00:00
Ben Hearsum
6c520ec6c8 Bug 1805919: disable tests that are currently failing against MSIX packages. r=jmaher,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D165754
2023-01-11 14:45:03 +00:00
Gabriele Svelto
2075a2a0a9 Bug 1793784 - Replace the minidump_writer_linux crate with the minidump-writer crate r=glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D158669
2023-01-10 22:14:30 +00:00
Ryan VanderMeulen
9274f4e6f3 Backed out changeset 8b644e916589 (bug 1752703) for causing Android startup crashes (bug 1807716) 2023-01-04 09:34:28 -05:00
Sylvestre Ledru
11543ba854 Bug 1802290 - Remove +x permissions on more files r=linter-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D165841
2023-01-03 08:17:50 +00:00
Mike Hommey
ccf47dadd4 Bug 1806123 - Split the symbols.zip upload into chunks. r=bdk,firefox-build-system-reviewers,ahochheiden
Reworked from original patch by Ben Dean-Kawamura.

This avoids hitting the 2GB limit that both the requests library and the
server have.

Differential Revision: https://phabricator.services.mozilla.com/D165036
2022-12-30 23:37:56 +00:00
Mike Hommey
6b254e276a Bug 1806123 - Move zip files cleanup outwards. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D165725
2022-12-30 23:37:55 +00:00
Ben Dean-Kawamura
c6c481dd0a Bug 1806123 - Refactoring upload_symbols.py r=glandium
The functionality is the same, but the code is now split into several
functions. This is preparation for more changes to fix bug 1806123.

Differential Revision: https://phabricator.services.mozilla.com/D165035
2022-12-30 23:37:55 +00:00
Mike Hommey
5a1f78d80c Bug 1807204 - Parallelize zip creation before uploading symbols. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D165449
2022-12-28 23:43:07 +00:00
Marco Castelluccio
f69e697461 Bug 1801836 - Remove no longer necessary 'from __future__' imports. r=linter-reviewers,glandium,webdriver-reviewers,perftest-reviewers,geckoview-reviewers,jld,ahal,owlish,afinder DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D165395
2022-12-23 22:45:46 +00:00
Mark Banner
8730eec697 Bug 1806359 - Convert telemetry imports to direct ES imports. r=necko-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,janerik,mconley,sgalich,bytesized,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D165002
2022-12-23 12:37:07 +00:00
Mark Banner
8ff997068a Bug 1806306 - Convert AsyncShutdown imports to direct ES imports. r=mak,webdriver-reviewers,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D164981
2022-12-23 12:37:06 +00:00
Iulian Moraru
a3886ee2d9 Bug 1804359 - fix for build bustages related to uuid part 2. CLOSED TREE 2022-12-22 12:27:14 +02:00
Mike Hommey
4f24e132f8 Bug 1804359 - Update uuid to 1.x. r=emilio,janerik,webdriver-reviewers,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D164008
2022-12-22 09:11:10 +00:00
Gabriele Svelto
2cb8a79c25 Bug 1752703 - Move the pthread_thread_create() interposer under mozglue and prepare for having a single place where we place interposer functions r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D164470
2022-12-21 10:24:41 +00:00
Sandor Molnar
0ad99cb2f6 Backed out 3 changesets (bug 1752703) for causing spider-monkey bustages.
Backed out changeset 6b8d96806ae6 (bug 1752703)
Backed out changeset afbd8f714804 (bug 1752703)
Backed out changeset 1adb41e2eb9b (bug 1752703)
2022-12-20 10:31:04 +02:00
Gabriele Svelto
63bfefbbe7 Bug 1752703 - Move the pthread_thread_create() interposer under mozglue and prepare for having a single place where we place interposer functions r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D164470
2022-12-20 08:07:37 +00:00
Nick Alexander
4152c551cc Bug 1794054 - Re-enable test_crash_backgroundtask_moz_crash.js on Windows. r=bytesized
Differential Revision: https://phabricator.services.mozilla.com/D164833
2022-12-15 17:59:07 +00:00
Sandor Molnar
c8085bc124 Backed out 4 changesets (bug 1805427) for causing xpc failures in toolkit/components/extensions/test/xpcshell/test_ext_scripting_persistAcrossSessions.js CLOSED TREE
Backed out changeset 9231b82f6a8b (bug 1805427)
Backed out changeset 9308ede8e265 (bug 1805427)
Backed out changeset b1c44a7274c5 (bug 1805427)
Backed out changeset 39a8c4bff42f (bug 1805427)
2022-12-15 18:43:29 +02:00
Chris H-C
37e15535e6 Bug 1805427 - Update Glean to 52.0.0, uuid to 1.0 r=glandium,janerik,webdriver-reviewers,supply-chain-reviewers
Depends on D164603

Differential Revision: https://phabricator.services.mozilla.com/D164604
2022-12-15 14:04:54 +00:00