This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: segfaults in libgfortran


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]