Skip to content

Commit

Permalink
Print backtrace on unhandled exception (ydb-platform#2379)
Browse files Browse the repository at this point in the history
  • Loading branch information
resetius authored Mar 1, 2024
1 parent b88ce77 commit ae7b009
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ydb/library/yql/tools/dqrun/dqrun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,10 @@ int RunMain(int argc, const char* argv[])

int main(int argc, const char* argv[])
{
std::set_terminate([] () {
FormatBackTrace(&Cerr);
abort();
});
Y_UNUSED(NUdf::GetStaticSymbols());
NYql::NBacktrace::RegisterKikimrFatalActions();
NYql::NBacktrace::EnableKikimrSymbolize();
Expand Down

0 comments on commit ae7b009

Please sign in to comment.