Commit 941edbe9 authored by Fabrice de Gans-Riberi's avatar Fabrice de Gans-Riberi Committed by Commit Bot

Update Crashpad to 1ebedb05dde4fccb9d9459062a3a9fa9cb28bd5a

74a56c256b10 Prepare for removal of is_posix from the Fuchsia build
ba0bd63254a7 Use clang ref:goma instead of ref:latest
1ebedb05dde4 linux: Fix failing exception handler server test

Bug: 812974
Change-Id: I9073a1c615356a4dc42973a81674789a33327235
Reviewed-on: https://chromium-review.googlesource.com/998733Reviewed-by: default avatarMark Mentovai <mark@chromium.org>
Commit-Queue: Fabrice de Gans-Riberi <fdegans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548578}
parent 9a044d72
...@@ -2,7 +2,7 @@ Name: Crashpad ...@@ -2,7 +2,7 @@ Name: Crashpad
Short Name: crashpad Short Name: crashpad
URL: https://crashpad.chromium.org/ URL: https://crashpad.chromium.org/
Version: unknown Version: unknown
Revision: 08ce02c3527674f331d4ebfd5ac0bdc4748c4661 Revision: 1ebedb05dde4fccb9d9459062a3a9fa9cb28bd5a
License: Apache 2.0 License: Apache 2.0
License File: crashpad/LICENSE License File: crashpad/LICENSE
Security Critical: yes Security Critical: yes
......
...@@ -29,7 +29,7 @@ deps = { ...@@ -29,7 +29,7 @@ deps = {
'5e2b3ddde7cda5eb6bc09a5546a76b00e49d888f', '5e2b3ddde7cda5eb6bc09a5546a76b00e49d888f',
'crashpad/third_party/mini_chromium/mini_chromium': 'crashpad/third_party/mini_chromium/mini_chromium':
Var('chromium_git') + '/chromium/mini_chromium@' + Var('chromium_git') + '/chromium/mini_chromium@' +
'd42eb410123667fe94427986d2616795897efa0c', '6e0fdb2e4966ec44b1ce7b8464fd7c80d1b59203',
'crashpad/third_party/zlib/zlib': 'crashpad/third_party/zlib/zlib':
Var('chromium_git') + '/chromium/src/third_party/zlib@' + Var('chromium_git') + '/chromium/src/third_party/zlib@' +
'13dc246a58e4b72104d35f9b1809af95221ebda7', '13dc246a58e4b72104d35f9b1809af95221ebda7',
...@@ -120,6 +120,8 @@ hooks = [ ...@@ -120,6 +120,8 @@ hooks = [
# Linux build host and vice-versa. https://crbug.com/789364. This package is # Linux build host and vice-versa. https://crbug.com/789364. This package is
# only updated when the solution in .gclient includes an entry like: # only updated when the solution in .gclient includes an entry like:
# "custom_vars": { "pull_linux_clang": True } # "custom_vars": { "pull_linux_clang": True }
# The ref used is "goma". This is like "latest", but is considered a more
# stable latest by the Fuchsia toolchain team.
'name': 'clang_linux', 'name': 'clang_linux',
'pattern': '.', 'pattern': '.',
'condition': 'checkout_linux and pull_linux_clang', 'condition': 'checkout_linux and pull_linux_clang',
...@@ -129,7 +131,7 @@ hooks = [ ...@@ -129,7 +131,7 @@ hooks = [
# sic, using Fuchsia team's generic build of clang for linux-amd64 to # sic, using Fuchsia team's generic build of clang for linux-amd64 to
# build for linux-amd64 target too. # build for linux-amd64 target too.
'fuchsia/clang/linux-amd64', 'fuchsia/clang/linux-amd64',
'latest', 'goma',
'-root', 'crashpad/third_party/linux/clang/linux-amd64', '-root', 'crashpad/third_party/linux/clang/linux-amd64',
'-log-level', 'info', '-log-level', 'info',
], ],
...@@ -137,7 +139,7 @@ hooks = [ ...@@ -137,7 +139,7 @@ hooks = [
{ {
# If using a local clang ("pull_linux_clang" above), also pull down a # If using a local clang ("pull_linux_clang" above), also pull down a
# sysroot. # sysroot.
'name': 'clang_linux', 'name': 'sysroot_linux',
'pattern': '.', 'pattern': '.',
'condition': 'checkout_linux and pull_linux_clang', 'condition': 'checkout_linux and pull_linux_clang',
'action': [ 'action': [
...@@ -147,6 +149,7 @@ hooks = [ ...@@ -147,6 +149,7 @@ hooks = [
{ {
# Same rationale for using "install" rather than "ensure" as for first clang # Same rationale for using "install" rather than "ensure" as for first clang
# package. https://crbug.com/789364. # package. https://crbug.com/789364.
# Same rationale for using "goma" instead of "latest" as clang_linux above.
'name': 'fuchsia_clang_mac', 'name': 'fuchsia_clang_mac',
'pattern': '.', 'pattern': '.',
'condition': 'checkout_fuchsia and host_os == "mac"', 'condition': 'checkout_fuchsia and host_os == "mac"',
...@@ -154,7 +157,7 @@ hooks = [ ...@@ -154,7 +157,7 @@ hooks = [
'cipd', 'cipd',
'install', 'install',
'fuchsia/clang/mac-amd64', 'fuchsia/clang/mac-amd64',
'latest', 'goma',
'-root', 'crashpad/third_party/fuchsia/clang/mac-amd64', '-root', 'crashpad/third_party/fuchsia/clang/mac-amd64',
'-log-level', 'info', '-log-level', 'info',
], ],
...@@ -162,6 +165,7 @@ hooks = [ ...@@ -162,6 +165,7 @@ hooks = [
{ {
# Same rationale for using "install" rather than "ensure" as for first clang # Same rationale for using "install" rather than "ensure" as for first clang
# package. https://crbug.com/789364. # package. https://crbug.com/789364.
# Same rationale for using "goma" instead of "latest" as clang_linux above.
'name': 'fuchsia_clang_linux', 'name': 'fuchsia_clang_linux',
'pattern': '.', 'pattern': '.',
'condition': 'checkout_fuchsia and host_os == "linux"', 'condition': 'checkout_fuchsia and host_os == "linux"',
...@@ -169,7 +173,7 @@ hooks = [ ...@@ -169,7 +173,7 @@ hooks = [
'cipd', 'cipd',
'install', 'install',
'fuchsia/clang/linux-amd64', 'fuchsia/clang/linux-amd64',
'latest', 'goma',
'-root', 'crashpad/third_party/fuchsia/clang/linux-amd64', '-root', 'crashpad/third_party/fuchsia/clang/linux-amd64',
'-log-level', 'info', '-log-level', 'info',
], ],
......
...@@ -141,6 +141,25 @@ class MockPtraceStrategyDecider : public PtraceStrategyDecider { ...@@ -141,6 +141,25 @@ class MockPtraceStrategyDecider : public PtraceStrategyDecider {
~MockPtraceStrategyDecider() {} ~MockPtraceStrategyDecider() {}
Strategy ChooseStrategy(int sock, const ucred& client_credentials) override { Strategy ChooseStrategy(int sock, const ucred& client_credentials) override {
if (strategy_ == Strategy::kUseBroker) {
ServerToClientMessage message = {};
message.type = ServerToClientMessage::kTypeForkBroker;
Errno status;
bool result = LoggingWriteFile(sock, &message, sizeof(message)) &&
LoggingReadFileExactly(sock, &status, sizeof(status));
EXPECT_TRUE(result);
if (!result) {
return Strategy::kError;
}
if (status != 0) {
errno = status;
ADD_FAILURE() << ErrnoMessage("Handler Client ForkBroker");
return Strategy::kNoPtrace;
}
}
return strategy_; return strategy_;
} }
......
...@@ -56,7 +56,7 @@ static_library("snapshot") { ...@@ -56,7 +56,7 @@ static_library("snapshot") {
"unloaded_module_snapshot.h", "unloaded_module_snapshot.h",
] ]
if (crashpad_is_posix) { if (crashpad_is_posix || crashpad_is_fuchsia) {
sources += [ sources += [
"posix/timezone.cc", "posix/timezone.cc",
"posix/timezone.h", "posix/timezone.h",
......
...@@ -44,7 +44,7 @@ static_library("test") { ...@@ -44,7 +44,7 @@ static_library("test") {
"test_paths.h", "test_paths.h",
] ]
if (crashpad_is_posix) { if (crashpad_is_posix || crashpad_is_fuchsia) {
sources += [ "scoped_temp_dir_posix.cc" ] sources += [ "scoped_temp_dir_posix.cc" ]
if (!crashpad_is_fuchsia) { if (!crashpad_is_fuchsia) {
...@@ -140,6 +140,8 @@ source_set("test_test") { ...@@ -140,6 +140,8 @@ source_set("test_test") {
"test_paths_test.cc", "test_paths_test.cc",
] ]
# TODO(crbug.com/812974): Remove !crashpad_is_fuchsia when Fuchsia is no
# longer treated as a posix platform.
if (crashpad_is_posix && !crashpad_is_fuchsia) { if (crashpad_is_posix && !crashpad_is_fuchsia) {
sources += [ "multiprocess_posix_test.cc" ] sources += [ "multiprocess_posix_test.cc" ]
} }
...@@ -155,9 +157,6 @@ source_set("test_test") { ...@@ -155,9 +157,6 @@ source_set("test_test") {
] ]
} }
if (!crashpad_is_fuchsia) {
}
deps = [ deps = [
":test", ":test",
"../compat", "../compat",
......
...@@ -160,7 +160,7 @@ static_library("util") { ...@@ -160,7 +160,7 @@ static_library("util") {
"thread/worker_thread.h", "thread/worker_thread.h",
] ]
if (crashpad_is_posix) { if (crashpad_is_posix || crashpad_is_fuchsia) {
sources += [ sources += [
"file/directory_reader_posix.cc", "file/directory_reader_posix.cc",
"file/file_io_posix.cc", "file/file_io_posix.cc",
...@@ -512,7 +512,7 @@ source_set("util_test") { ...@@ -512,7 +512,7 @@ source_set("util_test") {
sources += [ "net/http_transport_test.cc" ] sources += [ "net/http_transport_test.cc" ]
} }
if (crashpad_is_posix) { if (crashpad_is_posix || crashpad_is_fuchsia) {
if (!crashpad_is_fuchsia) { if (!crashpad_is_fuchsia) {
sources += [ sources += [
"posix/process_info_test.cc", "posix/process_info_test.cc",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment