areusch commented on a change in pull request #6145:
URL: https://github.com/apache/incubator-tvm/pull/6145#discussion_r466047455
##########
File path: apps/bundle_deploy/bundle_static.c
##########
@@ -86,5 +93,30 @@ TVM_DLL void tvm_runtime_get_output(void* runtime, int32_t
index, DLTensor* tens
void __attribute__((noreturn)) TVMPlatformAbort(int error_code) {
fprintf(stderr, "TVMPlatformAbort: %d\n", error_code);
+ void* trace[200];
+ int nptrs = backtrace(trace, sizeof(trace) / sizeof(void*));
+ fprintf(stderr, "backtrace: %d\n", nptrs);
+ if (nptrs < 0) {
+ perror("backtracing");
+ } else {
+ backtrace_symbols_fd(trace, nptrs, STDOUT_FILENO);
Review comment:
okay, added a Makefile flag to control this.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]