We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ec2155 commit 5957c54Copy full SHA for 5957c54
1 file changed
src/base/libmesh.C
@@ -431,6 +431,11 @@ void libmesh_terminate_handler()
431
libMesh::perflog.print_log();
432
libMesh::perflog.clear();
433
434
+ // Now that we're done with output we should clean up our stream
435
+ // buffers; if we fail to uninstall_thread_buffered_sync() when
436
+ // needed we can end up seeing a segfault in iostreams destructors
437
+ cleanup_stream_buffers();
438
+
439
// If we have MPI and it has been initialized, we need to be sure
440
// and call MPI_Abort instead of std::abort, so that the parallel
441
// job can die nicely.
0 commit comments