Skip to content

Commit

Permalink
fixed print_traceback overflow on OS X (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanming-hu authored Mar 17, 2020
1 parent d3559d0 commit 8218da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taichi/system/traceback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ TI_EXPORT void print_traceback() {
// (https://stackoverflow.com/questions/8278691/how-to-fix-backtrace-line-number-error-in-c)

// record stack trace upto 128 frames
int callstack[128] = {};
void *callstack[128] = {};
// collect stack frames
int frames = backtrace((void **)callstack, 128);
// get the human-readable symbols (mangled)
Expand Down

0 comments on commit 8218da1

Please sign in to comment.