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

chore: update crashpad to 7e0af1d #3

Open
wants to merge 108 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
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
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
1103dfc
ios: Add fallbacks to try_free_default and claimed_address in forbidd…
May 20, 2023
402d431
Update mini_chromium
thomasgales May 24, 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
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
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
ac0c27a
Deregister vectored exception handler on client destruction
quidity Sep 28, 2023
7f6d9e9
Add support for matching with key allowlist
Sep 29, 2023
485cfaf
Update chromium_mini dependency
Sep 29, 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
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
5fc60ae
Use googletest flag macros to access googletest flags.
zetafunction Dec 2, 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
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
1cea047
ios: Capture signal exception context memory regions correctly.
Mar 20, 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
5b178f1
Merge branch 'main' of https://chromium.googlesource.com/crashpad/cra…
bobbyg603 Apr 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ Vewd Software AS
LG Electronics, Inc.
MIPS Technologies, Inc.
Darshan Sen <[email protected]>
Ho Cheung <[email protected]>
8 changes: 2 additions & 6 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ 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/108368): Remove this once the underlying issue is addressed.
# TODO(fxbug.dev/42059784): Remove this once the underlying issue is
# addressed.
exclude_toolchain_tags = [ "hwasan" ]
}
if (crashpad_is_android) {
Expand Down Expand Up @@ -123,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
46 changes: 25 additions & 21 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ vars = {
deps = {
'buildtools':
Var('chromium_git') + '/chromium/src/buildtools.git@' +
'8b16338d17cd71b04a6ba28da7322ab6739892c2',
'8919328651a559f8a974641d40fe712062cc6718',
'buildtools/clang_format/script':
Var('chromium_git') +
'/external/github.com/llvm/llvm-project/clang/tools/clang-format.git@' +
Expand All @@ -44,22 +44,22 @@ deps = {
'af29db7ec28d6df1c7f0f745186884091e602e07',
'crashpad/third_party/lss/lss':
Var('chromium_git') + '/linux-syscall-support.git@' +
'e1e7b0ad8ee99a875b272c8e33e308472e897660',
'9719c1e1e676814c456b55f5f070eabad6709d31',
'crashpad/third_party/mini_chromium/mini_chromium':
Var('chromium_git') + '/chromium/mini_chromium@' +
'4332ddb6963750e1106efdcece6d6e2de6dc6430',
'dce72d97d1c2e9beb5e206c6a05a702269794ca3',
'crashpad/third_party/libfuzzer/src':
Var('chromium_git') + '/chromium/llvm-project/compiler-rt/lib/fuzzer.git@' +
'fda403cf93ecb8792cb1d061564d89a6553ca020',
'crashpad/third_party/zlib/zlib':
Var('chromium_git') + '/chromium/src/third_party/zlib@' +
'13dc246a58e4b72104d35f9b1809af95221ebda7',
'fef58692c1d7bec94c4ed3d030a45a1832a9615d',

# CIPD packages.
'buildtools/linux64': {
'packages': [
{
'package': 'gn/gn/linux-amd64',
'package': 'gn/gn/linux-${{arch}}',
'version': Var('gn_version'),
}
],
Expand Down Expand Up @@ -89,8 +89,8 @@ deps = {
'crashpad/third_party/linux/clang/linux-amd64': {
'packages': [
{
'package': 'fuchsia/clang/linux-amd64',
'version': 'goma',
'package': 'fuchsia/third_party/clang/linux-amd64',
'version': 'Tpc85d1ZwSlZ6UKl2d96GRUBGNA5JKholOKe24sRDr0C',
},
],
'condition': 'checkout_linux and pull_linux_clang',
Expand All @@ -99,8 +99,8 @@ deps = {
'crashpad/third_party/fuchsia/clang/mac-amd64': {
'packages': [
{
'package': 'fuchsia/clang/mac-amd64',
'version': 'goma',
'package': 'fuchsia/third_party/clang/mac-amd64',
'version': 'MAOjNhwTu5JU3P_0C9dITiyCTtQ1n7lRJnMfB9hhvOkC',
},
],
'condition': 'checkout_fuchsia and host_os == "mac"',
Expand All @@ -109,27 +109,22 @@ deps = {
'crashpad/third_party/fuchsia/clang/linux-amd64': {
'packages': [
{
'package': 'fuchsia/clang/linux-amd64',
'version': 'goma',
'package': 'fuchsia/third_party/clang/linux-amd64',
'version': 'Tpc85d1ZwSlZ6UKl2d96GRUBGNA5JKholOKe24sRDr0C',
},
],
'condition': 'checkout_fuchsia and host_os == "linux"',
'dep_type': 'cipd'
},
'crashpad/third_party/fuchsia/sdk/mac-amd64': {
'packages': [
{
'package': 'fuchsia/sdk/gn/mac-amd64',
'version': 'latest'
},
],
'condition': 'checkout_fuchsia and host_os == "mac"',
'dep_type': 'cipd'
'crashpad/third_party/fuchsia-gn-sdk': {
'url': Var('chromium_git') + '/chromium/src/third_party/fuchsia-gn-sdk.git@' +
'0d6902558d92fe3d49ba9a8f638ddea829be595b',
'condition': 'checkout_fuchsia',
},
'crashpad/third_party/fuchsia/sdk/linux-amd64': {
'packages': [
{
'package': 'fuchsia/sdk/gn/linux-amd64',
'package': 'fuchsia/sdk/core/linux-amd64',
'version': 'latest'
},
],
Expand Down Expand Up @@ -249,6 +244,15 @@ hooks = [
'crashpad/build/install_linux_sysroot.py',
],
},
{
'name': 'Generate Fuchsia Build Definitions',
'pattern': '.',
'condition': 'checkout_fuchsia',
'action': [
'python3',
'crashpad/build/fuchsia/gen_build_defs.py'
],
},
{
'name': 'setup_gn_ios',
'pattern': '.',
Expand Down
34 changes: 24 additions & 10 deletions build/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ config("crashpad_is_in_fuchsia") {
}

config("flock_always_supported_defines") {
defines = [
"CRASHPAD_FLOCK_ALWAYS_SUPPORTED=$crashpad_flock_always_supported",
]
defines =
[ "CRASHPAD_FLOCK_ALWAYS_SUPPORTED=$crashpad_flock_always_supported" ]
}

group("default_exe_manifest_win") {
Expand All @@ -52,16 +51,18 @@ config("crashpad_fuzzer_flags") {
ldflags = [ "-fsanitize=address" ]
}

if (crashpad_is_ios) {
group("ios_enable_arc") {
if (crashpad_is_in_chromium) {
public_configs = [ "//build/config/compiler:enable_arc" ]
} else if (crashpad_is_standalone) {
public_configs =
[ "//third_party/mini_chromium/mini_chromium/build/config:ios_enable_arc" ]
if (crashpad_is_apple) {
group("apple_enable_arc") {
# If `crashpad_is_in_chromium`, then because Chromium enables ARC
# compilation by default, no special configuration is needed.

if (crashpad_is_standalone) {
public_configs = [ "//third_party/mini_chromium/mini_chromium/build/config:apple_enable_arc" ]
}
}
}

if (crashpad_is_ios) {
group("ios_xctest") {
if (crashpad_is_in_chromium) {
public_configs = [ "//build/config/ios:xctest_config" ]
Expand All @@ -71,4 +72,17 @@ if (crashpad_is_ios) {
]
}
}

if (crashpad_is_in_chromium) {
import("//build/config/ios/ios_sdk.gni")
crashpad_is_ios_app_extension = ios_is_app_extension
} else {
crashpad_is_ios_app_extension = false
}

config("crashpad_is_ios_app_extension") {
if (crashpad_is_ios_app_extension) {
defines = [ "CRASHPAD_IS_IOS_APP_EXTENSION" ]
}
}
}
8 changes: 5 additions & 3 deletions build/crashpad_buildconfig.gni
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ if (crashpad_is_external || crashpad_is_in_dart) {
if (crashpad_is_in_chromium) {
crashpad_is_mac = is_mac
crashpad_is_ios = is_ios
crashpad_is_apple = is_apple
crashpad_is_win = is_win
crashpad_is_linux = is_linux || is_chromeos
crashpad_is_android = is_android
Expand All @@ -73,6 +74,7 @@ if (crashpad_is_in_chromium) {

crashpad_is_mac = mini_chromium_is_mac
crashpad_is_ios = mini_chromium_is_ios
crashpad_is_apple = mini_chromium_is_apple
crashpad_is_win = mini_chromium_is_win
crashpad_is_linux = mini_chromium_is_linux
crashpad_is_android = mini_chromium_is_android
Expand Down Expand Up @@ -104,7 +106,7 @@ template("crashpad_executable") {
if (crashpad_is_in_fuchsia) {
conversion_config = [ "//build/config:Wno-conversion" ]
if (configs + conversion_config - conversion_config == configs) {
# TODO(https://fxbug.dev/58162): Decide if these are worth enabling.
# TODO(https://fxbug.dev/42136089): Decide if these are worth enabling.
configs += conversion_config
}
}
Expand All @@ -130,7 +132,7 @@ template("crashpad_loadable_module") {
if (crashpad_is_in_fuchsia) {
conversion_config = [ "//build/config:Wno-conversion" ]
if (configs + conversion_config - conversion_config == configs) {
# TODO(https://fxbug.dev/58162): Decide if these are worth enabling.
# TODO(https://fxbug.dev/42136089): Decide if these are worth enabling.
configs += conversion_config
}
}
Expand All @@ -156,7 +158,7 @@ template("crashpad_static_library") {
if (crashpad_is_in_fuchsia) {
conversion_config = [ "//build/config:Wno-conversion" ]
if (configs + conversion_config - conversion_config == configs) {
# TODO(https://fxbug.dev/58162): Decide if these are worth enabling.
# TODO(https://fxbug.dev/42136089): Decide if these are worth enabling.
configs += conversion_config
}
}
Expand Down
Loading