Skip to content

Commit

Permalink
ARROW-11686: [C++] Call ArrowLog::InstallFailureSignalHandler to show…
Browse files Browse the repository at this point in the history
… stack trace

Closes apache#9524 from mrkn/ARROW-11686

Authored-by: Kenta Murata <mrkn@mrkn.jp>
Signed-off-by: David Li <li.davidm96@gmail.com>
  • Loading branch information
mrkn authored and michalursa committed Jun 13, 2021
1 parent 305ff91 commit 0cb0e08
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 0cb0e08

Please sign in to comment.