public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/39782]  New: IO depends on uninitialised value
@ 2009-04-16  7:29 jv244 at cam dot ac dot uk
  2009-04-16  7:31 ` [Bug fortran/39782] " jv244 at cam dot ac dot uk
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: jv244 at cam dot ac dot uk @ 2009-04-16  7:29 UTC (permalink / raw)
  To: gcc-bugs

The following program

      CHARACTER(LEN=80) DATA
      DATA=""
     
OPEN(121245,FILE="/proc/self/statm",ACTION="READ",STATUS="OLD",ACCESS="STREAM")
      DO I=1,80
         READ(121245,END=999) DATA(I:I)
      ENDDO
999   CLOSE(121245)
      DATA(I:80)=""
      END

under valgrind leads to :

==29139== Conditional jump or move depends on uninitialised value(s)
==29139==    at 0x4BE48A5: finalize_transfer (transfer.c:2953)
==29139==    by 0x4BE49E8: _gfortran_st_read_done (transfer.c:3092)
==29139==    by 0x400A2B: MAIN__ (test.f90:5)
==29139==    by 0x400B19: main (fmain.c:21)

which I'm guessing would be a wrong code issue in the io lib.

gcc version 4.4.0 20090414 (prerelease) [gcc-4_4-branch revision 146034] (GCC)


-- 
           Summary: IO depends on uninitialised value
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39782


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2009-05-27  1:23 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-16  7:29 [Bug fortran/39782] New: IO depends on uninitialised value jv244 at cam dot ac dot uk
2009-04-16  7:31 ` [Bug fortran/39782] " jv244 at cam dot ac dot uk
2009-04-16 12:56 ` [Bug fortran/39782] [4.5/4.4/4.3 Regression] " jv244 at cam dot ac dot uk
2009-04-16 12:59 ` [Bug fortran/39782] [4.3/4.4/4.5 " jv244 at cam dot ac dot uk
2009-04-16 18:37 ` pinskia at gcc dot gnu dot org
2009-04-16 19:10 ` pinskia at gcc dot gnu dot org
2009-04-17  1:47 ` jvdelisle at gcc dot gnu dot org
2009-04-18 10:06 ` jb at gcc dot gnu dot org
2009-04-18 17:11 ` jv244 at cam dot ac dot uk
2009-04-22 13:33 ` [Bug fortran/39782] [4.3/4.4 " rguenth at gcc dot gnu dot org
2009-04-22 21:37 ` jb at gcc dot gnu dot org
2009-04-23 14:21 ` jv244 at cam dot ac dot uk
2009-05-13 13:47 ` burnus at gcc dot gnu dot org
2009-05-15 23:50 ` jb at gcc dot gnu dot org
2009-05-16 13:38 ` jvdelisle at gcc dot gnu dot org
2009-05-27  1:23 ` jvdelisle at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).