This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: CREAD buggy?
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Jack Howarth <howarth at bromo dot msbb dot uc dot edu>
- Cc: fortran at gcc dot gnu dot org, jvdelisle at verizon dot net
- Date: Sat, 30 Jul 2005 18:29:33 -0700
- Subject: Re: CREAD buggy?
- References: <20050731012104.2C9D11DC154@bromo.msbb.uc.edu>
On Sat, Jul 30, 2005 at 09:21:04PM -0400, Jack Howarth wrote:
>
> I found that a WRITE statement in front of the offending READ statement
> didn't help...only a READ of the string seemed to clear the i/o to allow
> the following read to pass. Again without the additional READ in front,
> the second READ has an error condition which causes it to jump to the
You're describing the classic stack corruption due to writing
beyond the bounds of an array. By include the READ statement,
you've probably moved the location of string in the stack and
so it isn't corrupted (but something else likely is).
Can you xplor-nih (without your hack) under valgrind?
--
Steve