public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/99029] New: memory leak in IPA pure-const
@ 2021-02-09 16:21 rguenth at gcc dot gnu.org
2021-02-10 8:10 ` [Bug tree-optimization/99029] " rguenth at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-02-09 16:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99029
Bug ID: 99029
Summary: memory leak in IPA pure-const
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: rguenth at gcc dot gnu.org
Target Milestone: ---
==14211== Memcheck, a memory error detector
==14211== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==14211== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==14211== Command: ./cc1 -quiet -fdiagnostics-plain-output -O3 -o
ssa-dom-thread-2.s
/home/rguenther/src/gcc3/gcc/testsuite/gcc.c-torture/compile/20040202-1.c
==14211==
==14211==
==14211== HEAP SUMMARY:
==14211== in use at exit: 1,866,764 bytes in 2,685 blocks
==14211== total heap usage: 15,548 allocs, 12,863 frees, 5,056,602 bytes
allocated
==14211==
==14211== 40 bytes in 1 blocks are definitely lost in loss record 30 of 664
==14211== at 0x4C2E2DF: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==14211== by 0x28ECCA8: xrealloc (xmalloc.c:177)
==14211== by 0xD00CF0: void va_heap::reserve<cgraph_node*>(vec<cgraph_node*,
va_heap, vl_embed>*&, unsigned int, bool) (vec.h:290)
==14211== by 0xD0054B: vec<cgraph_node*, va_heap, vl_ptr>::reserve(unsigned
int, bool) (vec.h:1778)
==14211== by 0xD00017: vec<cgraph_node*, va_heap,
vl_ptr>::safe_push(cgraph_node* const&) (vec.h:1887)
==14211== by 0x2635957: propagate_malloc() (ipa-pure-const.c:1945)
==14211== by 0x2635C47: (anonymous
namespace)::pass_ipa_pure_const::execute(function*) (ipa-pure-const.c:2007)
==14211== by 0x12E7FEA: execute_one_pass(opt_pass*) (passes.c:2572)
==14211== by 0x12E8F82: execute_ipa_pass_list(opt_pass*) (passes.c:3001)
==14211== by 0xCFCB91: ipa_passes() (cgraphunit.c:2215)
==14211== by 0xCFCE24: symbol_table::compile() (cgraphunit.c:2292)
==14211== by 0xCFD391: symbol_table::finalize_compilation_unit()
(cgraphunit.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/99029] memory leak in IPA pure-const
2021-02-09 16:21 [Bug tree-optimization/99029] New: memory leak in IPA pure-const rguenth at gcc dot gnu.org
@ 2021-02-10 8:10 ` rguenth at gcc dot gnu.org
2021-02-10 9:09 ` cvs-commit at gcc dot gnu.org
2021-02-10 9:10 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-02-10 8:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99029
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
Ever confirmed|0 |1
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2021-02-10
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/99029] memory leak in IPA pure-const
2021-02-09 16:21 [Bug tree-optimization/99029] New: memory leak in IPA pure-const rguenth at gcc dot gnu.org
2021-02-10 8:10 ` [Bug tree-optimization/99029] " rguenth at gcc dot gnu.org
@ 2021-02-10 9:09 ` cvs-commit at gcc dot gnu.org
2021-02-10 9:10 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-02-10 9:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99029
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:9eb7669cc040882992dee3621ebacf4f0311e8a0
commit r11-7166-g9eb7669cc040882992dee3621ebacf4f0311e8a0
Author: Richard Biener <rguenther@suse.de>
Date: Wed Feb 10 09:13:01 2021 +0100
ipa/99029 - fix memory leak in propagate_malloc
This makes sure to release the vec<> of callees.
2021-02-10 Richard Biener <rguenther@suse.de>
PR ipa/99029
* ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
for callees.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/99029] memory leak in IPA pure-const
2021-02-09 16:21 [Bug tree-optimization/99029] New: memory leak in IPA pure-const rguenth at gcc dot gnu.org
2021-02-10 8:10 ` [Bug tree-optimization/99029] " rguenth at gcc dot gnu.org
2021-02-10 9:09 ` cvs-commit at gcc dot gnu.org
@ 2021-02-10 9:10 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-02-10 9:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99029
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-02-10 9:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-09 16:21 [Bug tree-optimization/99029] New: memory leak in IPA pure-const rguenth at gcc dot gnu.org
2021-02-10 8:10 ` [Bug tree-optimization/99029] " rguenth at gcc dot gnu.org
2021-02-10 9:09 ` cvs-commit at gcc dot gnu.org
2021-02-10 9:10 ` rguenth 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).