I just commited a patch to fix PR libfortran/21787, under the "obvious" rule: call close_units() before calling abort() so that the I/O units get closed. Commit message here: http://gcc.gnu.org/ml/gcc-cvs/2005-07/msg01113.html FX