Skip to content

Commit

Permalink
Call ArrowLog::InstallFailureSignalHandler to show stack trace
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkn committed Feb 18, 2021
1 parent f84b81d commit 864d780
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpp/src/arrow/flight/test_integration_client.cc
Expand Up @@ -203,6 +203,8 @@ class IntegrationTestScenario : public flight::Scenario {
} // namespace arrow

int main(int argc, char** argv) {
arrow::util::ArrowLog::InstallFailureSignalHandler();

gflags::SetUsageMessage("Integration testing client for Flight.");
gflags::ParseCommandLineFlags(&argc, &argv, true);
std::shared_ptr<arrow::flight::Scenario> scenario;
Expand All @@ -222,5 +224,7 @@ int main(int argc, char** argv) {
ABORT_NOT_OK(arrow::flight::Location::ForGrpcTcp(FLAGS_host, FLAGS_port, &location));
ABORT_NOT_OK(arrow::flight::FlightClient::Connect(location, options, &client));
ABORT_NOT_OK(scenario->RunClient(std::move(client)));

arrow::util::ArrowLog::UninstallSignalAction();
return 0;
}

0 comments on commit 864d780

Please sign in to comment.