From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5219 invoked by alias); 21 Mar 2007 14:19:21 -0000 Received: (qmail 4614 invoked by uid 48); 21 Mar 2007 14:18:54 -0000 Date: Wed, 21 Mar 2007 14:19:00 -0000 Subject: [Bug libfortran/31297] New: Use of uninitialized variables in libgfortran's I/O X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "burnus at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-03/txt/msg02036.txt.bz2 Found using valgrind: gfortran gfortran.dg/backspace_5.f valgrind ./a.out ==15340== Syscall param write(buf) points to uninitialised byte(s) ==15340== at 0x56000C0: __write_nocancel (in /lib64/libc-2.5.so) ==15340== by 0x4EBEE90: do_write (unix.c:336) ==15340== by 0x4EBEF31: fd_flush (unix.c:386) ==15340== by 0x4EBCBF6: _gfortran_st_write_done (transfer.c:2762) ==15340== by 0x400BAB: MAIN__ (in /projects/tob/gcc/gcc/testsuite/gfortran.dg/a.out) ==15340== by 0x40104B: main (fmain.c:22) Similarly for: - backspace_6.f - write_back.f - write_rewind_1.f - write_rewind_2.f - char_bounds_check_fail_1.f90 - direct_io_2.f90 - unf_io_convert_3.f90 -- Summary: Use of uninitialized variables in libgfortran's I/O Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: libfortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31297