diff options
author | Tor Brede Vekterli <vekterli@vespa.ai> | 2024-04-10 16:09:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-10 16:09:39 +0200 |
commit | 8234c739eb82321b0a7aaa301f34af620e7c9f1d (patch) | |
tree | 5ff3cb1f7bb0f8306b8d242fb0bded45c057bd4f /storageserver/src/apps/storaged/storage.cpp | |
parent | af8bae38bfcb21e671a79fc755055013ea0ff43d (diff) | |
parent | c70a40e4895b2657909ef3c38043a36b72b1036c (diff) |
Merge pull request #30873 from vespa-engine/vekterli/install-abseil-failure-handlerv8.329.17
Install Abseil failure signal handler in distributor/proton daemons
Diffstat (limited to 'storageserver/src/apps/storaged/storage.cpp')
-rw-r--r-- | storageserver/src/apps/storaged/storage.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/storageserver/src/apps/storaged/storage.cpp b/storageserver/src/apps/storaged/storage.cpp index fe3bf696e9a..cffc03a585b 100644 --- a/storageserver/src/apps/storaged/storage.cpp +++ b/storageserver/src/apps/storaged/storage.cpp @@ -21,6 +21,7 @@ #include <vespa/config/helper/configgetter.hpp> #include <vespa/vespalib/util/signalhandler.h> #include <google/protobuf/message_lite.h> +#include <absl/debugging/failure_signal_handler.h> #include <iostream> #include <csignal> #include <cstdlib> @@ -213,8 +214,15 @@ int StorageApp::main(int argc, char **argv) } // storage int main(int argc, char **argv) { + absl::FailureSignalHandlerOptions opts; + // See `searchcore/src/apps/proton/proton.cpp` for parameter and handler ordering rationale. + opts.call_previous_handler = true; + opts.use_alternate_stack = false; + absl::InstallFailureSignalHandler(opts); + vespalib::SignalHandler::PIPE.ignore(); vespalib::SignalHandler::enable_cross_thread_stack_tracing(); + storage::StorageApp app; storage::sigtramp = &app; int retval = app.main(argc,argv); |