From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12653 invoked by alias); 27 Apr 2014 13:46:06 -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 12604 invoked by uid 48); 27 Apr 2014 13:46:01 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/60922] [4.9/4.10 regression] Memory leak with INTENT(OUT) CLASS argument w/ allocatable CLASS components Date: Sun, 27 Apr 2014 13:46: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.10.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.1 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed 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-04/txt/msg02010.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60922 Dominique d'Humieres changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2014-04-27 Ever confirmed|0 |1 --- Comment #2 from Dominique d'Humieres --- On x86_64-apple-darwin* I see the memory leak for all the revisions I have tested from 4.5 to trunk. For 4.8.2 on x86_64-apple-darwin10 valgrind reports; Iteration 1 ==16277== Conditional jump or move depends on uninitialised value(s) ==16277== at 0x1000012FF: __d_vect_mod_MOD_d_vect_bld_x (pr60922.f90:118) ==16277== by 0x100001A33: MAIN__ (pr60922.f90:155) ==16277== by 0x100001A7D: main (pr60922.f90:127) ==16277== Uninitialised value was created by a stack allocation ==16277== at 0x100001115: __d_vect_mod_MOD_d_vect_bld_x (pr60922.f90:111) ==16277== ==16277== Conditional jump or move depends on uninitialised value(s) ==16277== at 0x100001309: __d_vect_mod_MOD_d_vect_bld_x (pr60922.f90:118) ==16277== by 0x100001A33: MAIN__ (pr60922.f90:155) ==16277== by 0x100001A7D: main (pr60922.f90:127) ==16277== Uninitialised value was created by a stack allocation ==16277== at 0x100001115: __d_vect_mod_MOD_d_vect_bld_x (pr60922.f90:111) ==16277== Iteration 2 ==16277== ==16277== HEAP SUMMARY: ==16277== in use at exit: 2,097,288 bytes in 3 blocks ==16277== total heap usage: 22 allocs, 19 frees, 6,295,373 bytes allocated ==16277== ==16277== 48 bytes in 1 blocks are still reachable in loss record 1 of 3 ==16277== at 0x100014679: malloc (vg_replace_malloc.c:266) ==16277== by 0x10000124D: __d_vect_mod_MOD_d_vect_bld_x (pr60922.f90:116) ==16277== by 0x100001A33: MAIN__ (pr60922.f90:155) ==16277== by 0x100001A7D: main (pr60922.f90:127) ==16277== ==16277== 2,097,152 bytes in 1 blocks are still reachable in loss record 3 of 3 ==16277== at 0x100014679: malloc (vg_replace_malloc.c:266) ==16277== by 0x1000016FB: __d_vect_mod_MOD_array_bld (pr60922.f90:85) ==16277== by 0x100001A0A: MAIN__ (pr60922.f90:145) ==16277== by 0x100001A7D: main (pr60922.f90:127) ==16277== ==16277== LEAK SUMMARY: ==16277== definitely lost: 0 bytes in 0 blocks ==16277== indirectly lost: 0 bytes in 0 blocks ==16277== possibly lost: 0 bytes in 0 blocks ==16277== still reachable: 2,097,200 bytes in 2 blocks ==16277== suppressed: 88 bytes in 1 blocks ==16277== ==16277== For counts of detected and suppressed errors, rerun with: -v ==16277== ERROR SUMMARY: 4 errors from 2 contexts (suppressed: 0 from 0)