From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11777 invoked by alias); 11 May 2014 13:39:50 -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 11734 invoked by uid 48); 11 May 2014 13:39:42 -0000 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/61145] New: valgrind finds problems in ipa_analyze_node Date: Sun, 11 May 2014 13:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: 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-05/txt/msg00941.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61145 Bug ID: 61145 Summary: valgrind finds problems in ipa_analyze_node Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com I just tried to use today's (20140511) bootstrap trunk code to compile the gcc/testsuite/gcc.c-torture/compile/limits-fndefn.c with compiler flag -O2. valgrind says ==13219== Invalid write of size 8 ==13219== at 0x7E308A: ipa_analyze_node(cgraph_node*) (ipa-prop.c:2245) ==13219== by 0xE5540F: ipcp_generate_summary() (ipa-cp.c:3745) ==13219== by 0x8ACF83: execute_ipa_summary_passes(ipa_opt_pass_d*) (passes.c:1974) ==13219== by 0x647E86: compile() [clone .part.29] (cgraphunit.c:2070) ==13219== by 0x6483AD: finalize_compilation_unit() (cgraphunit.c:2151) ==13219== by 0x531B7B: c_write_global_declarations() (c-decl.c:10428) ==13219== by 0x983E5C: compile_file() (toplev.c:562) ==13219== by 0x985AA1: toplev_main(int, char**) (toplev.c:1915) ==13219== by 0x32C5E21D64: (below main) (libc-start.c:285) ==13219== Address 0xffedb5728 is on thread 1's stack ==13219== Source code in compiler is param_count = ipa_get_param_count (info); parms_ainfo = XALLOCAVEC (struct param_analysis_info, param_count); memset (parms_ainfo, 0, sizeof (struct param_analysis_info) * param_count);