Skip to content

Commit 2d4c98e

Browse files
committed
print backtrace from all threads rather than only the master
1 parent 1e6d115 commit 2d4c98e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/tools.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,7 @@ void cmaple::print_backtrace(ostream &out, unsigned int max_frames) {}
16141614
void cmaple::print_backtrace(ostream &out, unsigned int max_frames)
16151615
{
16161616
#ifdef _OPENMP
1617-
#pragma omp master
1617+
#pragma omp critical
16181618
{
16191619
#endif
16201620
out << "STACK TRACE FOR DEBUGGING:" << endl;

0 commit comments

Comments
 (0)