Segmentation fault using gcc-gfortran 4.2.4 or 4.3.2

Tobias Burnus burnus@net-b.de
Wed Oct 15 13:26:00 GMT 2008


Hi Kimberly,

Kimberly Artita wrote:
> In version 4.1.2, I could read in a character string from a text file
> that contained spaces, example:
> General Input/Output
> In versions 4.2.4 and 4.3.2, I keep getting a segmentation fault
> error. It seems that spaces aborts the read function?
>   

It should work - depending how you read the file; I don't see how this
could segfault. Can you provide a minimal example (complete Fortran
program plus sample inputfile)? Which platform and which version are you
using (is spit out by  "gfortran -v" in the target line)?

Tobias



More information about the Fortran mailing list