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

Add stacktrace on SIGSEGV #1985

Merged
merged 2 commits into from Sep 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions programs/cli_wallet/main.cpp
Expand Up @@ -32,6 +32,7 @@
#include <fc/network/http/websocket.hpp>
#include <fc/rpc/cli.hpp>
#include <fc/rpc/websocket_api.hpp>
#include <fc/stacktrace.hpp>

#include <graphene/app/api.hpp>
#include <graphene/chain/config.hpp>
Expand Down Expand Up @@ -124,6 +125,7 @@ void setup_logging(string console_level, bool file_logger, string file_level, st

int main( int argc, char** argv )
{
fc::print_stacktrace_on_segfault();
try {

boost::program_options::options_description opts;
Expand Down
2 changes: 2 additions & 0 deletions programs/delayed_node/main.cpp
Expand Up @@ -34,6 +34,7 @@
#include <fc/log/file_appender.hpp>
#include <fc/log/logger.hpp>
#include <fc/log/logger_config.hpp>
#include <fc/stacktrace.hpp>

#include <boost/filesystem.hpp>

Expand All @@ -59,6 +60,7 @@ void write_default_logging_config_to_stream(std::ostream& out);
fc::optional<fc::logging_config> load_logging_config_from_ini_file(const fc::path& config_ini_filename);

int main(int argc, char** argv) {
fc::print_stacktrace_on_segfault();
try {
app::application node;
bpo::options_description app_options("Graphene Delayed Node");
Expand Down
2 changes: 2 additions & 0 deletions programs/witness_node/main.cpp
Expand Up @@ -37,6 +37,7 @@

#include <fc/thread/thread.hpp>
#include <fc/interprocess/signals.hpp>
#include <fc/stacktrace.hpp>

#include <boost/filesystem.hpp>
#include <boost/property_tree/ptree.hpp>
Expand All @@ -59,6 +60,7 @@ using namespace graphene;
namespace bpo = boost::program_options;

int main(int argc, char** argv) {
fc::print_stacktrace_on_segfault();
app::application* node = new app::application();
fc::oexception unhandled_exception;
try {
Expand Down