segfaults in libgfortran

François-Xavier Coudert fxcoudert@gmail.com
Wed Jan 24 13:26:00 GMT 2007


> For example
>    WRITE(*, FMT="(' #elements:', I2)") p%data%graph%nused
>
> segfaults  if one of the pointer components of p%data%graph%nused is
> not associated, graph in this case (libgfortran/io/write.c:158,
> extract_int).

I think it's not specific to libgfortran. Whatever you might do with
p%data%graph%nused in this case, you're exposing yourself to a
segfault (although it is impredictable by nature).

So, I'd say it's not considered a bug. But others might have a
different opinion, so let's hear from them.

FX



More information about the Fortran mailing list