From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9B235388A43C; Wed, 10 Feb 2021 07:18:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B235388A43C From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/99054] New: memory leak in thread_prologue_and_epilogue_insns Date: Wed, 10 Feb 2021 07:18:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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 target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Feb 2021 07:18:39 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99054 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: --- =3D=3D3252=3D=3D Memcheck, a memory error detector =3D=3D3252=3D=3D Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward e= t al. =3D=3D3252=3D=3D Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyri= ght info =3D=3D3252=3D=3D Command: ./cc1 -quiet -fdiagnostics-plain-output -O3 -o ssa-dom-thread-1.s /home/rguenther/src/gcc3/gcc/testsuite/gcc.dg/torture/pr98289.c =3D=3D3252=3D=3D=20 =3D=3D3252=3D=3D=20 =3D=3D3252=3D=3D HEAP SUMMARY: =3D=3D3252=3D=3D in use at exit: 1,877,561 bytes in 2,761 blocks =3D=3D3252=3D=3D total heap usage: 54,967 allocs, 52,206 frees, 10,428,83= 0 bytes allocated =3D=3D3252=3D=3D=20 =3D=3D3252=3D=3D 40 bytes in 1 blocks are definitely lost in loss record 28= of 699 =3D=3D3252=3D=3D at 0x4C2E2DF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) =3D=3D3252=3D=3D by 0x28ECCA8: xrealloc (xmalloc.c:177) =3D=3D3252=3D=3D by 0xC78E72: void va_heap::reserve(vec= *&, unsigned int, bool) (vec.h:290) =3D=3D3252=3D=3D by 0xC789CF: vec::reserve(unsigned int, bool) (vec.h:1778) =3D=3D3252=3D=3D by 0xCABA7B: vec::safe_push(basic_block_def* const&) (vec.h:1887) =3D=3D3252=3D=3D by 0xCBF762: find_partition_fixes(bool) (cfgrtl.c:2405) =3D=3D3252=3D=3D by 0xCBF7B2: fixup_partitions() (cfgrtl.c:2434) =3D=3D3252=3D=3D by 0xCBE8A6: commit_edge_insertions() (cfgrtl.c:2112) =3D=3D3252=3D=3D by 0xF14501: thread_prologue_and_epilogue_insns() (func= tion.c:6084) =3D=3D3252=3D=3D by 0xF152E0: rest_of_handle_thread_prologue_and_epilogu= e() (function.c:6510) =3D=3D3252=3D=3D by 0xF154C0: (anonymous namespace)::pass_thread_prologue_and_epilogue::execute(function*) (function.c:6586) =3D=3D3252=3D=3D by 0x12E7FEA: execute_one_pass(opt_pass*) (passes.c:257= 2)=