Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sentry Patches #1

Open
wants to merge 547 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
547 commits
Select commit Hold shift + click to select a range
b670429
Merge pull request #76 from supervacuus/meta/update
Swatinem Dec 14, 2022
f7b5e00
[util] New class ScopedSpinGuard
bhamiltoncx Dec 14, 2022
1a7918b
[client] New class LengthDelimitedRingBuffer
bhamiltoncx Dec 15, 2022
0e7dae4
Roll gn to 5e19d2fb.
Dec 16, 2022
62a0099
[ios] Support --gtest_filter for iOS tests
bhamiltoncx Dec 16, 2022
bd479a1
[ios] Fix --gtest_filter for non-xcuitest targets
bhamiltoncx Dec 20, 2022
a41e599
[fuchsia] Update crashpad location
jayzhuang Jan 3, 2023
2103586
mac: Don’t cater to gcc-4.2 libstdc++ brokenness
markmentovai Jan 4, 2023
a0b4e88
[snapshot] Use Fuchsia specific header
jayzhuang Jan 4, 2023
43eac93
[fuchsia] Import buildconfig from fuchsia
jayzhuang Jan 5, 2023
1e10a23
Update header includes for /base/functional in Crashpad
Jan 12, 2023
4edb2bb
fix: upload crashes on linux (#75)
BogdanLivadariu Jan 17, 2023
918fd31
fix: Avoid accidentally mutating `CONTEXT` when stack walking (#77)
Swatinem Jan 17, 2023
84627e1
[fuchsia] Temporarily disable hwasan from crashpad tests
PiJoules Jan 17, 2023
a0ab0e2
mingw: Add missing MINIDUMP_THREAD_NAME / MINIDUMP_THREAD_NAME_LIST d…
past-due Jan 25, 2023
ad2e043
Mac: Look for crash annotations in __DATA_DIRTY on macOS 13+
speednoisemovement Jan 26, 2023
3dc58f4
mingw: Add missing GetThreadDescription definition
past-due Jan 26, 2023
cc4a6ae
win32: Ensure InitializeContext2 definition availability
past-due Jan 26, 2023
85b7d3d
Mac: more robust __crash_info on 13+
speednoisemovement Jan 27, 2023
b66ab3f
mingw: WER support
past-due Jan 26, 2023
817cb65
third_party/zlib/CMakeLists.txt: Modernize crashpad_zlib interface
past-due Jan 26, 2023
59b37de
Improve MSVC / MINGW compile definition parity
past-due Jan 28, 2023
c11d49d
Add a mask to MinidumpCrashpadInfo to indicate valid pointer addresses.
Jan 6, 2023
8071d30
[client] Clean up types and code style in LengthDelimitedRingBuffer
bhamiltoncx Jan 27, 2023
28354d1
[ios] New class ScopedVMMap
bhamiltoncx Jan 30, 2023
9158eb7
handle `num_handled_exceptions == 0` case
vnagarnaik Jan 31, 2023
3215ed9
[client] Optionally support ScopedSpinGuard in Annotation
bhamiltoncx Jan 31, 2023
212b8f6
[client] New RingBufferAnnotation
bhamiltoncx Jan 31, 2023
c7d9c71
[ios] Support guarding concurrent reads and writes to Annotations
bhamiltoncx Jan 31, 2023
08ec71c
dbghelp.h: Silence Wzero-length-array
past-due Feb 3, 2023
981e164
[CMake] Adjust crashpad_compat link command
past-due Feb 3, 2023
486c293
fix: make sure we reuse already found libcurl
supervacuus Feb 4, 2023
3a3c1f3
Merge pull request #79 from supervacuus/fix/curl_found_crashpad_linux
supervacuus Feb 6, 2023
5886ae4
[CMake] Make process_reader_win define overrides more conditional
past-due Feb 6, 2023
e39c0b6
Merge pull request #78 from past-due/mingw-patches-1
supervacuus Feb 6, 2023
ad3404f
Merge branch 'main' of https://chromium.googlesource.com/crashpad/cra…
supervacuus Feb 6, 2023
3af012a
Add new sources to build-scripts
supervacuus Feb 6, 2023
ec99257
Merge pull request #80 from supervacuus/meta/update
supervacuus Feb 7, 2023
0adab59
ios: Validate exception code buffer size before read.
Feb 15, 2023
485805c
Fix test that relied on NDEBUG always disabling DCHECK
bhamiltoncx Feb 15, 2023
04b2ab5
port: fix non-glibc desktop linux build
Feb 15, 2023
70e0f92
Fix StringPiece compile issue in Chromium.
Feb 16, 2023
3e87272
win: Only process up to EXCEPTION_MAXIMUM_PARAMETERS in an EXCEPTION_…
rsesek Feb 22, 2023
448d2d9
Add dump_minidump_annotations
Feb 24, 2023
ee62397
fix: remove the OpenSSL dependency for Linux
supervacuus Feb 27, 2023
7a997fb
Report exception number in metadata on CrOS.
mutexlox Feb 21, 2023
9830fbf
ios: Suppress log-if-missing for kSourceVersion intermediate dump key.
Feb 27, 2023
2237d97
Merge pull request #81 from supervacuus/fix/remove_openssl_dep_on_linux
supervacuus Feb 28, 2023
90bba04
Fix some accidental uses of argument-dependent lookup
davidben Feb 28, 2023
707d0d4
Restrict new crash_reporter flag to valid versions
mutexlox Mar 3, 2023
3e54a2c
ios: Support minimum deployment targets of iOS15
Mar 2, 2023
322eaa5
Use thread_local instead of ThreadLocalStorage::Slot.
pkasting Mar 7, 2023
3cd7b5b
ios: Fix crash in ObjcExceptionPreprocessor.
Mar 13, 2023
d5b2eea
Fix another argument-dependent-lookup dependency
davidben Feb 28, 2023
eeb3cad
Raise extra-memory cap in ProcessSnapshotTest.CrashpadInfoChild
randomascii Mar 17, 2023
fdf7b9e
Skip tests that create symbol links when not allowed
randomascii Mar 18, 2023
c21292d
Fix iOS test with libc++ exception throw change.
Mar 17, 2023
4773a37
Crashpad: Adding PAC bit stripping to stack sanitization.
Apr 4, 2023
ada8dfa
ios: Always reset IOSIntermediateDumpWriter file descriptor on close.
Apr 10, 2023
0e3758b
pac_helper: test for __has_feature macro
stha09 Apr 12, 2023
3a6bc8c
[tests] Disable clang optimization on the infinite recursion function.
ZequanWu Apr 21, 2023
07827d9
Remove `base/cxx17_backports.h` from the code in third_patry/crashpad
gz83 Apr 25, 2023
7f9c460
Merge branch 'main' of https://chromium.googlesource.com/crashpad/cra…
supervacuus Apr 29, 2023
fbd4abe
Add PAC helper to Linux utils build.
supervacuus May 3, 2023
56b62ee
Add dump_minidump_annotations to tools build.
supervacuus May 3, 2023
fc014d9
Add tools to CI build
supervacuus May 4, 2023
36b0f0d
Fix windows tool build
supervacuus May 4, 2023
1904ae1
Merge pull request #82 from supervacuus/meta/update
Swatinem May 4, 2023
53c2ede
meta: Add codeowners
ashwoods May 4, 2023
3b82866
Merge pull request #83 from getsentry/add-codeowners
supervacuus May 4, 2023
a280d65
Update linux-syscall-support (LSS) version
thomasgales May 5, 2023
3307c7c
Fix ASan failures for MinidumpCrashpadInfoWriter
thomasgales May 5, 2023
8525d53
Fix broken doc links
thomasgales May 17, 2023
e67d687
Fix compiler error with msvc on non-unicode system
xyz1001 May 19, 2023
dc77935
Initial e2e implementation macOS
supervacuus May 20, 2023
96b7d5f
Make http_proxy work on Windows
supervacuus May 22, 2023
3bc2282
Fix up http-proxy pass through from client to handler on Linux
supervacuus May 22, 2023
af58387
Make sure dispatch_semaphore_signal is called when request errors
supervacuus May 22, 2023
e29852c
Make the ios-build happy about the proxy-settings.
supervacuus May 22, 2023
98412e9
Add --http-proxy to run_with_crashpad tool
supervacuus May 22, 2023
1103dfc
ios: Add fallbacks to try_free_default and claimed_address in forbidd…
May 20, 2023
fb12516
Make sure that iOS doesn't use the proxy.
supervacuus May 22, 2023
f72392e
Fall back on deprecated NSURLConnection when not using an HTTP-proxy.
supervacuus May 22, 2023
7041349
Return the request success state
supervacuus May 22, 2023
402d431
Update mini_chromium
thomasgales May 24, 2023
3cdef1c
Merge pull request #86 from supervacuus/feat/handler_http_proxy_support
supervacuus May 27, 2023
514169d
Merge pull request #85 from xyz1001/getsentry
supervacuus May 27, 2023
1fdbd37
ios: More deflaking handler forbidden allocators.
May 30, 2023
788b72f
Remove Mac OS X Server support
eran-rom Jun 2, 2023
25f724d
[fuchsia] Add fp registers to x86 context
thomasgales Jun 6, 2023
656fc62
[snapshot] Suppress function type mismatch UB
PiJoules Jun 7, 2023
825cec1
feat: add response body to error log...
supervacuus Jun 12, 2023
4f5dd67
[riscv] Add RISC-V Linux support
thomasgales Jun 8, 2023
2cf938a
[riscv][fuchsia] Add RISC-V Fuchsia support
thomasgales Jun 9, 2023
9464ef5
[fuchsia] Don't build crashpad_database_util
thomasgales Jun 13, 2023
a540e58
[fuchsia] Remove/replace outdated bug references
thomasgales Jun 14, 2023
432ff49
Merge pull request #87 from getsentry/feat/crashpad_curl_response_bod…
supervacuus Jun 15, 2023
dcdccf5
[fuchsia][arm64] Don't query for fp registers
thomasgales Jun 15, 2023
7e5b8ab
Disable fastfail end_to_end tests on Windows
quidity Jun 23, 2023
bc1e904
SetErrorMode() in fastfail tests
quidity Jun 23, 2023
a5e1796
Catch heap corruption failures on Windows
quidity Jun 23, 2023
87e1883
[Fuchsia] Replace checking out gn SDK with core
Jun 28, 2023
9e37dc4
Convert Crashpad to use ARC
Jun 30, 2023
00ce1f9
Disable PtraceBroker.SameBitness
Jul 5, 2023
dcba40c
[inspect] Route InspectSink in crashpad
Jul 11, 2023
3df478b
Remove redundant ARC configuration in Crashpad
Jul 26, 2023
8dcf2b2
[fuchsia] Don't build CaptureContext
thomasgales Jul 25, 2023
ca6d64d
[fuchsia][mac] Fix build errors
thomasgales Aug 2, 2023
b1e66e3
Add SetLastChanceExceptionHandler to implement permissive MTE mode
Aug 2, 2023
ce7f0f1
Revert "Add SetLastChanceExceptionHandler to implement permissive MTE…
Aug 3, 2023
617429d
Remove ARC boilerplate in Crashpad
Aug 3, 2023
8132af7
Roll crashpad/third_party/mini_chromium/mini_chromium/ e009af846..d1b…
pkasting Aug 4, 2023
419f995
Ban [w]ctype.h: crashpad
pkasting Aug 3, 2023
343aa69
Revert "[fuchsia][mac] Fix build errors"
thomasgales Aug 4, 2023
77c1ad2
Add support for linux-arm64
markmentovai Aug 8, 2023
3f3b7a8
Roll crashpad/third_party/mini_chromium/mini_chromium/ 2035d204b..a72…
thomasgales Aug 8, 2023
43d04a8
Update comment for new file location
Aug 16, 2023
6a9e2e6
Adjust to movement of base/ files to base/apple
Aug 16, 2023
13e3acc
Roll mini_chromium, adjust to more files in base/apple
Aug 17, 2023
50ce155
[fuchsia] Move //zircon/public/lib/zx to //zircon/system/ulib/zx
digit-android Aug 7, 2023
a736f7d
Roll mini_chromium putting /base/apple files into base::apple::
Aug 21, 2023
52c427a
tests: stop using legacy gtest APIs
vapier Aug 22, 2023
ea0496c
Roll crashpad/third_party/mini_chromium/mini_chromium/ 0c540fd54..10f…
thomasgales Aug 29, 2023
a7cfe95
Reland "Add SetLastChanceExceptionHandler to implement permissive MTE…
Aug 31, 2023
d25c332
[ssci] Added Shipped field to READMEs
anneredulla Aug 29, 2023
8da335f
mac: Fix build with deployment target ≥ 11
markmentovai Sep 19, 2023
b606087
Merge branch 'main' of https://chromium.googlesource.com/crashpad/cra…
supervacuus Sep 28, 2023
6366a47
Update mini_chromium
supervacuus Sep 28, 2023
a9f5249
Fix remaining base::mac reference in http_transport_mac
supervacuus Sep 28, 2023
0e7a4f6
Use one FirstChanceHandler type per OS
supervacuus Sep 28, 2023
ac0c27a
Deregister vectored exception handler on client destruction
quidity Sep 28, 2023
695d159
Fix compile-options for mini_chromium and crashpad_util on MSVC
supervacuus Sep 29, 2023
bd37fea
Apply FirstChanceHandler changes on the Win side too
supervacuus Sep 29, 2023
b601eb4
Update ios base build ref in mini_chromium
supervacuus Sep 29, 2023
3299fb2
Update ios base build ref in mini_chromium
supervacuus Sep 29, 2023
7f6d9e9
Add support for matching with key allowlist
Sep 29, 2023
485cfaf
Update chromium_mini dependency
Sep 29, 2023
dbe03a5
Enable ARC in CMake build
supervacuus Sep 30, 2023
f37da0f
Update lss to 9719c1e
supervacuus Oct 2, 2023
12e1dae
Merge pull request #88 from getsentry/meta/update
supervacuus Oct 2, 2023
b90db3e
ios: Fix Chromium bundle id for xcuitest.
Oct 4, 2023
a1b467a
Pull latest toolchain
thomasgales Oct 6, 2023
0fc1b6a
Mac: update ProcessReaderMac and tests for macOS 14
speednoisemovement Oct 6, 2023
45836a3
fix: replace DCHECK with LOG in minimdump_context_writer
supervacuus Oct 12, 2023
3182e3b
Merge pull request #89 from getsentry/fix/fatal_dcheck_in_minidump_co…
supervacuus Oct 13, 2023
f145b54
Stop registering Windows VEH in ASAN builds.
richmckeever Oct 12, 2023
2f6cffa
Mac: don't consider module order in process reader tests
speednoisemovement Oct 13, 2023
63ec948
Windows: don't compile HandleHeapCorruption on ASAN
speednoisemovement Oct 13, 2023
7c89d50
[ios] Remove ios_use_shared_bundle_id_for_test_apps gn variable
sdefresne Oct 16, 2023
aef7504
Use format macros for int64_t instead of hardcoding the format.
pkasting Oct 16, 2023
ce4e3d6
Roll crashpad/third_party/mini_chromium/mini_chromium/ 276f2ac53..42f…
pkasting Oct 17, 2023
c63c073
Do IWYU for check_op.h
leizleiz Oct 18, 2023
b6d3cdc
Roll crashpad/third_party/mini_chromium/mini_chromium/ 42f1fddfe..bc8…
pkasting Oct 18, 2023
376e8c0
Eliminate call to StringPrintf() with non-constexpr format string.
pkasting Oct 18, 2023
e17518a
Add an option to start a Windows client with global hooks disabled.
richmckeever Oct 26, 2023
59fc31c
Update mini_chromium & use its new support for wide streaming in file…
ericastor Oct 26, 2023
188ad79
Roll crashpad/third_party/mini_chromium/mini_chromium/ 707c87bd2..98b…
Oct 27, 2023
4a93d7f
Revert "Add an option to start a Windows client with global hooks dis…
Oct 27, 2023
41f6ad5
Fix crashpad tests under UBSan
davidben Oct 28, 2023
c5e2b03
Fix UB when saving an StringAnnotation
davidben Oct 28, 2023
c39206f
Provide a way to iterate over a const AnnotationList
andre-kempe-arm Oct 27, 2023
3ba2403
ios: Fix leak in iOS NSException preprocessor.
Oct 30, 2023
1675ce7
Add missing base/check.h includes
leizleiz Nov 6, 2023
5739185
Roll crashpad/third_party/mini_chromium/mini_chromium/ e508a6010..450…
pkasting Nov 7, 2023
5613499
Replace base::WStringPiece with std::string_view
leizleiz Nov 7, 2023
079636a
build: adjust for Windows ARM64
compnerd Nov 22, 2023
202f5cb
Merge branch 'main' of https://chromium.googlesource.com/crashpad/cra…
supervacuus Nov 23, 2023
de6d596
Update zlib + mini_chromium in line with DEPS
supervacuus Nov 23, 2023
c6f8325
Update mini_chromium CMake to reflect upstream
supervacuus Nov 23, 2023
277df3f
Remove obsolete zlib sources
supervacuus Nov 27, 2023
fec839d
include new check header in client-side stacktrace writer
supervacuus Nov 27, 2023
abdc106
Merge pull request #90 from compnerd/arm64-asm
supervacuus Nov 27, 2023
e63d0c2
Merge pull request #91 from getsentry/meta/update
supervacuus Nov 27, 2023
eb9a5e2
build: remove obsolete source file
compnerd Nov 28, 2023
e8c474a
build: adjust process name matching
compnerd Nov 28, 2023
b5ef60a
Merge pull request #92 from compnerd/compnerd/zlib-update
supervacuus Nov 29, 2023
40875ed
Merge pull request #93 from compnerd/processor
supervacuus Nov 29, 2023
5fc60ae
Use googletest flag macros to access googletest flags.
zetafunction Dec 2, 2023
89991e9
ci: add arm64 build (#94)
supervacuus Dec 6, 2023
7049d96
Fix improper use of bit_cast
Dec 8, 2023
337b4f7
[mac] mach_absolute_time() -> clock_gettime_nsec_np(CLOCK_UPTIME_RAW)
bhamiltoncx Dec 12, 2023
9f896f2
Qualify bit_cast with base::
Dec 12, 2023
3a20cc2
[ios] Add arm64e support to in_process_intermediate_dump_handler
bhamiltoncx Dec 15, 2023
2905784
[build] Re-enable action tracing
fangism Jan 6, 2024
bbb721f
Roll crashpad/third_party/mini_chromium/mini_chromium/ ac3e73239..cc2…
pbos Jan 10, 2024
65f2a2b
Roll crashpad/third_party/mini_chromium/mini_chromium/ cc2ae8eb0..1e6…
pbos Jan 10, 2024
4426ed9
Roll crashpad/third_party/mini_chromium/mini_chromium/ 1e64ecb51..c7f…
pbos Jan 10, 2024
d256de3
Roll crashpad/third_party/mini_chromium/mini_chromium/ c7fccaa8e..203…
pbos Jan 10, 2024
98d0d86
Add [[noreturn]] version of NtstatusLogMessage
pbos Jan 11, 2024
30b2f4b
ios: Add crashpad_uptime_ns crash key to iOS reports.
Jan 11, 2024
5183bef
Remove should-be-dead code after PLOG(FATAL)
pbos Jan 12, 2024
305b648
doc: Upgrade the crashpad-home App Engine app to the go121 flex runtime
markmentovai Jan 17, 2024
22c386d
ios: Allow missing exception thread id from thread list.
Jan 19, 2024
a02e493
Avoid assuming string_view iterators are char*
danakj Jan 25, 2024
27b460c
[fxbug.dev] Migrate bug numbers
Jan 26, 2024
5d81482
ios: Read dyld modules in reverse order.
Jan 31, 2024
c576bf3
Add Update method to CrashpadInfo
jessemckenna Feb 9, 2024
5075fb6
Honor ios_is_app_extension chromium build flag
sdefresne Feb 12, 2024
940e8a3
Fix leaky CrashpadInfo test
jessemckenna Feb 13, 2024
58d7207
build: remove obsolete CRASHPAD_WER_ENABLED (#96)
supervacuus Feb 14, 2024
29ac83c
[Fuchsia] remove use of fuchsia mac sdk
zijiehe-google-com Feb 15, 2024
37afd37
Properly update iterator
Feb 21, 2024
bc4fd34
Log argv[0] for failing spawns
pbos Feb 21, 2024
9c58b66
Increase kMaxNumberOfAnnotations
ianby Mar 7, 2024
c4d4a4d
ios: Disable annotations tests on older simulators on macOS 14.3
Mar 8, 2024
dea283a
Make AnnotationList's iterator compliant to input iterator
andre-kempe-arm Dec 1, 2023
6bf5e1b
Fix invalid check for valid key of Pointer Authentication
andre-kempe-arm Mar 5, 2024
ccd2065
ios: Update exception test for Chromium release builds.
Mar 18, 2024
433ed68
update build-script for transport-compression changes in sentry-nativ…
supervacuus Mar 21, 2024
1cea047
ios: Capture signal exception context memory regions correctly.
Mar 20, 2024
de1f583
fix: send attachments without content-type (#98)
supervacuus Apr 2, 2024
bbb99bf
Move crashpad to using Mac-13|Mac-14 (like chromium) and latest win sdk
danakj Apr 4, 2024
f9cee5c
Roll mini_chromium to pick up the latest version of base::span.
Apr 10, 2024
8df174c
[ios] Fix TSAN issue and Mach port leak in CrashpadClient
bhamiltoncx Apr 1, 2024
7e0af1d
Use byte conversions over the byte swap functions
danakj Apr 11, 2024
96e301b
Support Epic's "Easy Anti Cheat" (#99)
kristjanvalur Apr 15, 2024
76badd4
Replace std::unique_ptr<T[]> with HeapArray in process_info.cc and
wuwang-wang May 1, 2024
dc48905
Fix incorrect DCHECK in CET contexts
quidity May 2, 2024
da18935
Replace std::is_pod usage
recvfrom Apr 22, 2024
bff9873
Make NTSTATUS_LOG less likely to change ::GetLastError() value
recvfrom Apr 22, 2024
84c8773
Use the span version of RandBytes
danakj May 6, 2024
5c09c9a
Include build_config.h before checking COMPILER_MSVC
danakj May 6, 2024
8e60a93
Roll mini_chromium to remove the pointer-based overload of RandBytes()
danakj May 7, 2024
3710831
ios: Use correct address when storing register memory.
May 9, 2024
981d418
Replace std::unique_ptr<T> with HeapArray
wuwang-wang May 9, 2024
9032284
Pull latest Fuchsia toolchain
wuwang-wang May 10, 2024
1174aa4
Add build/build_config.h in capture_memory.cc
wuwang-wang May 10, 2024
4f99326
Replace std::unique_ptr with base::HeapArray in process_memory.cc
wuwang-wang May 13, 2024
aef8303
Fix format issue
wuwang-wang May 15, 2024
0e043cc
Add guard pages to test stacks
May 16, 2024
d588c50
[ScopedSpinGuard] Use std::atomic::compare_exchange_strong() for spin…
bhamiltoncx May 16, 2024
efd29a7
Roll crashpad/third_party/mini_chromium/mini_chromium/ a6607b1fd..585…
pbos May 16, 2024
6af42bc
Use NOTREACHED_IN_MIGRATION()
pbos May 17, 2024
cd0b7c2
infra: Move crashpad ci/try builds from Ubuntu-18.04 to Ubuntu-22.04
bpastene May 20, 2024
0bebda6
ios: Remove duplicate implementations of ReadStringSysctlByName
Jun 4, 2024
08528d5
Updated codeowners (#102)
jernejstrasner Jun 5, 2024
202c1c2
fix: crashpad build for Windows ARM64 via LLVM-MINGW (#101)
past-due Jun 5, 2024
25c079d
[Fuchsia] Run fuchsia-gn-sdk from chromium
zijiehe-google-com Jun 5, 2024
a63adda
DEPS: fix version of fuchsia/sdk/core to avoid build error
Jun 5, 2024
c09de98
remove references to goma
Jun 5, 2024
a1fc5d7
Revert "DEPS: fix version of fuchsia/sdk/core to avoid build error"
Jun 6, 2024
7e36850
fix: replace find_package() with find_dependency() in the exported CM…
supervacuus Jun 11, 2024
dbe6f74
Merge branch 'main' of https://chromium.googlesource.com/crashpad/cra…
supervacuus Jun 11, 2024
d430e3f
Update minichromium
supervacuus Jun 11, 2024
a52e010
Update crashpad C++ standard to 20 via minichromium
supervacuus Jun 11, 2024
ff8eed7
Update minichromium build-script
supervacuus Jun 11, 2024
4751fa2
fix: further dependency use/export cleanup
supervacuus Jun 18, 2024
11b9eaf
Merge pull request #106 from getsentry/fix/further_cmake_deps_cleanup
supervacuus Jun 24, 2024
84f5f87
fix: xcode-llvm breakage on new GHA runner images (#108)
supervacuus Jun 25, 2024
04101eb
fix: adapt blocking of handlers for Linux and Windows (#109)
supervacuus Jul 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2014 The Crashpad Authors. All rights reserved.
# Copyright 2014 The Crashpad Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019 The Crashpad Authors. All rights reserved.
# Copyright 2019 The Crashpad Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @getsentry/processing
81 changes: 81 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Build

on:
push:
branches:
- getsentry
pull_request:

jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- name: Ubuntu
platform: ubuntu-latest
- name: Windows (x64)
platform: windows-latest
- name: Windows (arm64)
platform: windows-latest
CMAKE_DEFINES: -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/win_arm64.cmake -A arm64
- name: LLVM-MINGW (x64)
platform: windows-latest
MINGW: 1
MINGW_PKG_PREFIX: x86_64-w64-mingw32
MINGW_ASM_MASM_COMPILER: llvm-ml;-m64
CMAKE_DEFINES: -DCRASHPAD_ZLIB_SYSTEM=OFF -DCRASHPAD_BUILD_TOOLS=OFF -G Ninja
- name: LLVM-MINGW (arm64)
platform: windows-latest
MINGW: 1
MINGW_PKG_PREFIX: aarch64-w64-mingw32
CMAKE_DEFINES: -DCRASHPAD_ZLIB_SYSTEM=OFF -DCRASHPAD_BUILD_TOOLS=OFF -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/mingw_arm64.cmake -G Ninja
- name: macOS
platform: macos-latest
name: ${{ matrix.name }}
runs-on: ${{ matrix.platform }}
env:
CMAKE_DEFINES: ${{ matrix.CMAKE_DEFINES }}
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"

- name: Installing Linux Dependencies
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt update
sudo apt install zlib1g-dev libcurl4-openssl-dev libssl-dev libunwind-dev pkg-config

- name: Installing LLVM-MINGW Dependencies
if: ${{ runner.os == 'Windows' && matrix.MINGW == '1' }}
shell: powershell
env:
MINGW_PKG_PREFIX: ${{ matrix.MINGW_PKG_PREFIX }}
MINGW_ASM_MASM_COMPILER: ${{ matrix.MINGW_ASM_MASM_COMPILER }}
run: . "cmake\scripts\install-llvm-mingw.ps1"

- name: Build crashpad
shell: bash
run: |
echo "CMAKE_DEFINES=${CMAKE_DEFINES}"
cmake -B cmake-build -D CRASHPAD_BUILD_TOOLS=On ${CMAKE_DEFINES}
cmake --build cmake-build --parallel

- name: Build crashpad with client-side stack traces
shell: bash
run: |
echo "CMAKE_DEFINES=${CMAKE_DEFINES}"
cmake -B cmake-build-stacks -D CRASHPAD_ENABLE_STACKTRACE=ON ${CMAKE_DEFINES}
cmake --build cmake-build-stacks --parallel

build-ios:
name: 'iOS'
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- run: |
cmake -B crashpad-xcode -GXcode -DCMAKE_SYSTEM_NAME=iOS
xcodebuild build -project crashpad-xcode/crashpad.xcodeproj
12 changes: 7 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2014 The Crashpad Authors. All rights reserved.
# Copyright 2014 The Crashpad Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -12,32 +12,34 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Keep sorted

*.Makefile
*.ninja
*.pyc
*.target.mk
*.xcodeproj
*~
.*.sw?
.cache
.DS_Store
.cache
.gdb_history
.gdbinit
/Makefile
/build/fuchsia
/out
/third_party/edo/edo
/third_party/fuchsia-gn-sdk
/third_party/fuchsia/.cipd
/third_party/fuchsia/clang
/third_party/fuchsia/qemu
/third_party/fuchsia/sdk
/third_party/googletest/googletest
/third_party/gyp/gyp
/third_party/libfuzzer
/third_party/linux/.cipd
/third_party/linux/clang
/third_party/linux/sysroot
/third_party/lss/lss
/third_party/gyp/gyp
/third_party/mini_chromium/mini_chromium
/third_party/zlib/zlib
/xcodebuild
tags
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "third_party/mini_chromium/mini_chromium"]
path = third_party/mini_chromium/mini_chromium
url = https://chromium.googlesource.com/chromium/mini_chromium
[submodule "third_party/zlib/zlib"]
path = third_party/zlib/zlib
url = https://chromium.googlesource.com/chromium/src/third_party/zlib
[submodule "third_party/lss/lss"]
path = third_party/lss/lss
url = https://chromium.googlesource.com/linux-syscall-support
3 changes: 2 additions & 1 deletion .gn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2017 The Crashpad Authors. All rights reserved.
# Copyright 2017 The Crashpad Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -13,3 +13,4 @@
# limitations under the License.

buildconfig = "//build/BUILDCONFIG.gn"
script_executable = "python3"
2 changes: 1 addition & 1 deletion .style.yapf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2020 The Crashpad Authors. All rights reserved.
# Copyright 2020 The Crashpad Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions .vpython → .vpython3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 The Crashpad Authors. All rights reserved.
# Copyright 2022 The Crashpad Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -21,8 +21,8 @@

# This is needed for snapshot/win/end_to_end_test.py.
wheel: <
name: "infra/python/wheels/pypiwin32/${vpython_platform}"
version: "version:219"
name: "infra/python/wheels/pywin32/${vpython_platform}"
version: "version:300"
match_tag: <
platform: "win32"
>
Expand Down
2 changes: 2 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ Opera Software ASA
Vewd Software AS
LG Electronics, Inc.
MIPS Technologies, Inc.
Darshan Sen <[email protected]>
Ho Cheung <[email protected]>
21 changes: 11 additions & 10 deletions BUILD.gn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2017 The Crashpad Authors. All rights reserved.
# Copyright 2017 The Crashpad Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -17,7 +17,10 @@ import("build/test.gni")
import("util/net/tls.gni")

config("crashpad_config") {
include_dirs = [ "." ]
include_dirs = [
".",
root_gen_dir,
]
}

if (crashpad_is_in_chromium || crashpad_is_in_fuchsia) {
Expand All @@ -36,6 +39,9 @@ if (crashpad_is_in_chromium || crashpad_is_in_fuchsia) {
if (crashpad_is_in_fuchsia) {
# TODO(fuchsia:46559): Fix the leaks and remove this.
deps += [ "//build/config/sanitizers:suppress-lsan.DO-NOT-USE-THIS" ]
# TODO(fxbug.dev/42059784): Remove this once the underlying issue is
# addressed.
exclude_toolchain_tags = [ "hwasan" ]
}
if (crashpad_is_android) {
use_raw_android_executable = true
Expand Down Expand Up @@ -64,7 +70,7 @@ if (crashpad_is_in_chromium || crashpad_is_in_fuchsia) {
if (crashpad_is_in_fuchsia) {
import("//build/components.gni")
fuchsia_test_component("crashpad-test-component") {
manifest = "test/fuchsia_crashpad_tests.cmx"
manifest = "test/fuchsia_crashpad_tests.cml"
deps = [
":crashpad-test-resources",
":crashpad_tests",
Expand All @@ -81,8 +87,8 @@ if (crashpad_is_in_chromium || crashpad_is_in_fuchsia) {
test_components = [ ":crashpad-test-component" ]

deps = [
"//src/connectivity/network/dns:component-legacy",
"//src/connectivity/network/netstack:component-legacy",
"//src/connectivity/network/dns:component",
"//src/connectivity/network/netstack:component",
]

test_specs = {
Expand Down Expand Up @@ -118,11 +124,6 @@ if (crashpad_is_in_chromium || crashpad_is_in_fuchsia) {
deps = _resources
}

fuchsia_shell_package("crashpad-database-util") {
package_name = "crashpad_database_util"
deps = [ "tools:crashpad_database_util" ]
}

group("tests") {
testonly = true

Expand Down
Loading