From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17041 invoked by alias); 12 Jan 2014 20:44:24 -0000 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 Received: (qmail 17004 invoked by uid 48); 12 Jan 2014 20:44:17 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/59678] [F03] Segfault on equalizing variables of a complex derived type Date: Sun, 12 Jan 2014 20:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-01/txt/msg01297.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59678 --- Comment #12 from Dominique d'Humieres --- For the test in comment 9, valgrind gives ==30542== Conditional jump or move depends on uninitialised value(s) ==30542== at 0x100000D3C: MAIN__ (pr59678.f90:25) ==30542== by 0x100000E95: main (pr59678.f90:21) ==30542== ==30542== Conditional jump or move depends on uninitialised value(s) ==30542== at 0x7FFFFFE007B0: ??? ==30542== by 0x100000DCB: MAIN__ (pr59678.f90:25) ==30542== by 0x100000E95: main (pr59678.f90:21) ==30542== ==30542== Conditional jump or move depends on uninitialised value(s) ==30542== at 0x7FFFFFE007B6: ??? ==30542== by 0x100000DCB: MAIN__ (pr59678.f90:25) ==30542== by 0x100000E95: main (pr59678.f90:21) ==30542== ==30542== Conditional jump or move depends on uninitialised value(s) ==30542== at 0x7FFFFFE007F3: ??? ==30542== by 0x100000DCB: MAIN__ (pr59678.f90:25) ==30542== by 0x100000E95: main (pr59678.f90:21) ==30542== ==30542== Use of uninitialised value of size 8 ==30542== at 0x7FFFFFE012B1: ??? ==30542== by 0x7FFFFFE00879: ??? ==30542== by 0x100000DCB: MAIN__ (pr59678.f90:25) ==30542== by 0x100000E95: main (pr59678.f90:21) ==30542== ==30542== Invalid read of size 1 ==30542== at 0x7FFFFFE012B1: ??? ==30542== by 0x7FFFFFE00879: ??? ==30542== by 0x100000DCB: MAIN__ (pr59678.f90:25) ==30542== by 0x100000E95: main (pr59678.f90:21) ==30542== Address 0xe41 is not stack'd, malloc'd or (recently) free'd I am not sure that the code is valid: allocatables not allocated.