public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug rtl-optimization/99054] New: memory leak in thread_prologue_and_epilogue_insns @ 2021-02-10 7:18 rguenth at gcc dot gnu.org 2021-02-10 9:12 ` [Bug rtl-optimization/99054] " 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-10 7:18 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99054 Bug ID: 99054 Summary: memory leak in thread_prologue_and_epilogue_insns Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org Target Milestone: --- ==3252== Memcheck, a memory error detector ==3252== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==3252== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info ==3252== Command: ./cc1 -quiet -fdiagnostics-plain-output -O3 -o ssa-dom-thread-1.s /home/rguenther/src/gcc3/gcc/testsuite/gcc.dg/torture/pr98289.c ==3252== ==3252== ==3252== HEAP SUMMARY: ==3252== in use at exit: 1,877,561 bytes in 2,761 blocks ==3252== total heap usage: 54,967 allocs, 52,206 frees, 10,428,830 bytes allocated ==3252== ==3252== 40 bytes in 1 blocks are definitely lost in loss record 28 of 699 ==3252== at 0x4C2E2DF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==3252== by 0x28ECCA8: xrealloc (xmalloc.c:177) ==3252== by 0xC78E72: void va_heap::reserve<basic_block_def*>(vec<basic_block_def*, va_heap, vl_embed>*&, unsigned int, bool) (vec.h:290) ==3252== by 0xC789CF: vec<basic_block_def*, va_heap, vl_ptr>::reserve(unsigned int, bool) (vec.h:1778) ==3252== by 0xCABA7B: vec<basic_block_def*, va_heap, vl_ptr>::safe_push(basic_block_def* const&) (vec.h:1887) ==3252== by 0xCBF762: find_partition_fixes(bool) (cfgrtl.c:2405) ==3252== by 0xCBF7B2: fixup_partitions() (cfgrtl.c:2434) ==3252== by 0xCBE8A6: commit_edge_insertions() (cfgrtl.c:2112) ==3252== by 0xF14501: thread_prologue_and_epilogue_insns() (function.c:6084) ==3252== by 0xF152E0: rest_of_handle_thread_prologue_and_epilogue() (function.c:6510) ==3252== by 0xF154C0: (anonymous namespace)::pass_thread_prologue_and_epilogue::execute(function*) (function.c:6586) ==3252== by 0x12E7FEA: execute_one_pass(opt_pass*) (passes.c:2572) ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug rtl-optimization/99054] memory leak in thread_prologue_and_epilogue_insns 2021-02-10 7:18 [Bug rtl-optimization/99054] New: memory leak in thread_prologue_and_epilogue_insns rguenth at gcc dot gnu.org @ 2021-02-10 9:12 ` rguenth at gcc dot gnu.org 2021-02-10 10:31 ` cvs-commit at gcc dot gnu.org 2021-02-10 11:05 ` 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:12 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99054 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2021-02-10 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org Status|UNCONFIRMED |ASSIGNED --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Mine. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug rtl-optimization/99054] memory leak in thread_prologue_and_epilogue_insns 2021-02-10 7:18 [Bug rtl-optimization/99054] New: memory leak in thread_prologue_and_epilogue_insns rguenth at gcc dot gnu.org 2021-02-10 9:12 ` [Bug rtl-optimization/99054] " rguenth at gcc dot gnu.org @ 2021-02-10 10:31 ` cvs-commit at gcc dot gnu.org 2021-02-10 11:05 ` 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 10:31 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99054 --- 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:72932511053596091ad291539022b51d9f2ba418 commit r11-7168-g72932511053596091ad291539022b51d9f2ba418 Author: Richard Biener <rguenther@suse.de> Date: Wed Feb 10 10:17:15 2021 +0100 rtl-optimization/99054 - fix leak in fixup_partitions This fixes a leak of the vector retured by find_partition_fixes by turning it into an auto_vec. 2021-02-10 Richard Biener <rguenther@suse.de> PR rtl-optimization/99054 * cfgrtl.c (rtl-optimization/99054): Return an auto_vec. (fixup_partitions): Adjust. (rtl_verify_edges): Likewise. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug rtl-optimization/99054] memory leak in thread_prologue_and_epilogue_insns 2021-02-10 7:18 [Bug rtl-optimization/99054] New: memory leak in thread_prologue_and_epilogue_insns rguenth at gcc dot gnu.org 2021-02-10 9:12 ` [Bug rtl-optimization/99054] " rguenth at gcc dot gnu.org 2021-02-10 10:31 ` cvs-commit at gcc dot gnu.org @ 2021-02-10 11:05 ` rguenth at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: rguenth at gcc dot gnu.org @ 2021-02-10 11:05 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99054 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 11:05 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-02-10 7:18 [Bug rtl-optimization/99054] New: memory leak in thread_prologue_and_epilogue_insns rguenth at gcc dot gnu.org 2021-02-10 9:12 ` [Bug rtl-optimization/99054] " rguenth at gcc dot gnu.org 2021-02-10 10:31 ` cvs-commit at gcc dot gnu.org 2021-02-10 11:05 ` 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).