BUG: I/O handling after read past eof

Discussion created by tad@altair.com on Jun 16, 2009
Latest reply on Jul 6, 2009 by dgilmore
I/O bug, hangs exec, Ctrl-C disabled.

Attempt to write after following code

 1000 read ( lunitqa, 2000, end=3000 ) env
 2000 format(a100)
      goto 1000
 3000 continue

results in following error:

lib-4095 : UNRECOVERABLE library error
  Unable to find error message (check NLSPATH, file lib.cat)

Encountered during a sequential formatted WRITE to unit 13
Fortran unit 13 is connected to a sequential formatted text file:
 Current format:  7000 FORMAT( 1x, a,a,a, i10 )
Signal 6 :: SIGABRT

After that the code sits idle, no CPU cycles, but Ctrl-C does not work. Ctrl-Z and kill -9 %1 required to stop.

The above sequence works fine on all platforms: Unix/Linux/Windows/Mac using g77/gfortran and commercial compilers. Even if it is really incorrect usage, the error handling from runtime is unacceptable.