public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/61145] New: valgrind finds problems in ipa_analyze_node
@ 2014-05-11 13:39 dcb314 at hotmail dot com
  2015-02-10 21:03 ` [Bug ipa/61145] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: dcb314 at hotmail dot com @ 2014-05-11 13:39 UTC (permalink / raw)
  To: gcc-bugs

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);


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

* [Bug ipa/61145] valgrind finds problems in ipa_analyze_node
  2014-05-11 13:39 [Bug c/61145] New: valgrind finds problems in ipa_analyze_node dcb314 at hotmail dot com
@ 2015-02-10 21:03 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2015-02-10 21:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61145

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think this code has been removed.


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

end of thread, other threads:[~2015-02-10 21:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-11 13:39 [Bug c/61145] New: valgrind finds problems in ipa_analyze_node dcb314 at hotmail dot com
2015-02-10 21:03 ` [Bug ipa/61145] " pinskia at gcc dot gnu.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).