comment out backtarce

revert-14324-fix_vlog
dzhwinter 7 years ago
parent 335398f18b
commit 36878d78cc

@ -73,7 +73,7 @@ struct EnforceNotMet : public std::exception {
sout << string::Sprintf("%s at [%s:%d]", exp.what(), f, l) << std::endl;
sout << "PaddlePaddle Call Stacks: " << std::endl;
#if !define(WIN32)
void* call_stack[TRACE_STACK_LIMIT];
auto size = backtrace(call_stack, TRACE_STACK_LIMIT);
auto symbols = backtrace_symbols(call_stack, size);
@ -93,6 +93,9 @@ struct EnforceNotMet : public std::exception {
}
}
free(symbols);
#else
sout << "Windows not support stack backtrace yet.";
#endif
err_str_ = sout.str();
}
}

Loading…
Cancel
Save