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: CREAD buggy?


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


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