Skip to content

Commit

Permalink
Merge pull request #1985 from bitshares/jmj_stacktrace
Browse files Browse the repository at this point in the history
Add stacktrace on SIGSEGV
  • Loading branch information
abitmore authored Sep 24, 2019
2 parents 2a06bd2 + 2aabe71 commit 5c76c5b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions programs/cli_wallet/main.cpp
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,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 @@ -60,6 +61,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

0 comments on commit 5c76c5b

Please sign in to comment.