https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118935
--- Comment #12 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- (In reply to Thomas Koenig from comment #10) > What does the OpenMP standard say about I/O in partallel exexution? I don't know,but the situation is libgfortran threads are being launched by the async I/O and you have OMP launching threads of this and as one trys to open and close threads we are using a treap to find or create unit structures stored in a treap. IIRC we reuse available structures that have been closed so that we do not have to rellocate. My recolletion could be wrong of course. This was a long time ago.