public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/98937] New: [11 Regression] pointer_query cache leaks
@ 2021-02-02 16:19 rguenth at gcc dot gnu.org
  2021-02-02 16:19 ` [Bug tree-optimization/98937] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-02-02 16:19 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98937
           Summary: [11 Regression] pointer_query cache leaks
           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: ---

==25237== 2,634,236 bytes in 1 blocks are possibly lost in loss record 9,732 of
9,737
==25237==    at 0x4C308BF: realloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==25237==    by 0x1547AFC: xrealloc (xmalloc.c:179)
==25237==    by 0x67CB71: reserve<unsigned int> (vec.h:290)
==25237==    by 0x67CB71: reserve (vec.h:1778)
==25237==    by 0x67CB71: safe_grow (vec.h:1926)
==25237==    by 0x67CB71: safe_grow_cleared (vec.h:1945)
==25237==    by 0x67CB71: pointer_query::put_ref(tree_node*, access_ref const&,
int) (builtins.c:705)
==25237==    by 0x6864DF: compute_objsize_r(tree_node*, int, access_ref*,
ssa_name_limit_t&, pointer_query*) (builtins.c:5739)
==25237==    by 0x68CEAD: compute_objsize(tree_node*, int, access_ref*,
pointer_query*) (builtins.c:5775)
==25237==    by 0xC4BFD1: maybe_warn_overflow(gimple*, tree_node*,
pointer_query&, strinfo*, bool, bool) (tree-ssa-strlen.c:1952)
==25237==    by 0xC5642F: handle_builtin_memset (tree-ssa-strlen.c:3687)
==25237==    by 0xC5642F: strlen_check_and_optimize_call
(tree-ssa-strlen.c:5178)
==25237==    by 0xC5642F: check_and_optimize_stmt (tree-ssa-strlen.c:5359)
==25237==    by 0xC5642F:
strlen_dom_walker::before_dom_children(basic_block_def*)
(tree-ssa-strlen.c:5602)
==25237==    by 0x13366A4: dom_walker::walk(basic_block_def*) (domwalk.c:309)
==25237==    by 0xC49ABE: (anonymous
namespace)::printf_strlen_execute(function*, bool) (tree-ssa-strlen.c:5668)
==25237==    by 0x9E58A3: execute_one_pass(opt_pass*) (passes.c:2567)
==25237==    by 0x9E6100: execute_pass_list_1(opt_pass*) (passes.c:2656)
==25237==    by 0x9E6112: execute_pass_list_1(opt_pass*) (passes.c:2657)


looks like there's no DTOR for pointer_query::cache_type so strlen_dom_walker
will not release the two vectors.

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

* [Bug tree-optimization/98937] [11 Regression] pointer_query cache leaks
  2021-02-02 16:19 [Bug tree-optimization/98937] New: [11 Regression] pointer_query cache leaks rguenth at gcc dot gnu.org
@ 2021-02-02 16:19 ` rguenth at gcc dot gnu.org
  2021-02-02 17:11 ` msebor at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-02-02 16:19 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |11.0
           Keywords|                            |memory-hog
                 CC|                            |msebor at gcc dot gnu.org

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

* [Bug tree-optimization/98937] [11 Regression] pointer_query cache leaks
  2021-02-02 16:19 [Bug tree-optimization/98937] New: [11 Regression] pointer_query cache leaks rguenth at gcc dot gnu.org
  2021-02-02 16:19 ` [Bug tree-optimization/98937] " rguenth at gcc dot gnu.org
@ 2021-02-02 17:11 ` msebor at gcc dot gnu.org
  2021-02-02 19:58 ` msebor at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-02-02 17:11 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-02-02
             Status|UNCONFIRMED                 |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot gnu.org

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

* [Bug tree-optimization/98937] [11 Regression] pointer_query cache leaks
  2021-02-02 16:19 [Bug tree-optimization/98937] New: [11 Regression] pointer_query cache leaks rguenth at gcc dot gnu.org
  2021-02-02 16:19 ` [Bug tree-optimization/98937] " rguenth at gcc dot gnu.org
  2021-02-02 17:11 ` msebor at gcc dot gnu.org
@ 2021-02-02 19:58 ` msebor at gcc dot gnu.org
  2021-02-03 17:24 ` cvs-commit at gcc dot gnu.org
  2021-02-03 17:25 ` msebor at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-02-02 19:58 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Patch: https://gcc.gnu.org/pipermail/gcc-patches/2021-February/564743.html

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

* [Bug tree-optimization/98937] [11 Regression] pointer_query cache leaks
  2021-02-02 16:19 [Bug tree-optimization/98937] New: [11 Regression] pointer_query cache leaks rguenth at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-02-02 19:58 ` msebor at gcc dot gnu.org
@ 2021-02-03 17:24 ` cvs-commit at gcc dot gnu.org
  2021-02-03 17:25 ` msebor at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-02-03 17:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Sebor <msebor@gcc.gnu.org>:

https://gcc.gnu.org/g:5c3d388aee5609d32bd8e3ba1add776b1a6f0d1f

commit r11-7088-g5c3d388aee5609d32bd8e3ba1add776b1a6f0d1f
Author: Martin Sebor <msebor@redhat.com>
Date:   Wed Feb 3 10:23:06 2021 -0700

    PR tree-optimization/98937 - pointer_query cache leaks

    gcc/ChangeLog:

            PR tree-optimization/98937
            * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker):
Define.
            Flush pointer_query cache.

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

* [Bug tree-optimization/98937] [11 Regression] pointer_query cache leaks
  2021-02-02 16:19 [Bug tree-optimization/98937] New: [11 Regression] pointer_query cache leaks rguenth at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-02-03 17:24 ` cvs-commit at gcc dot gnu.org
@ 2021-02-03 17:25 ` msebor at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-02-03 17:25 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Fixed.

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

end of thread, other threads:[~2021-02-03 17:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-02 16:19 [Bug tree-optimization/98937] New: [11 Regression] pointer_query cache leaks rguenth at gcc dot gnu.org
2021-02-02 16:19 ` [Bug tree-optimization/98937] " rguenth at gcc dot gnu.org
2021-02-02 17:11 ` msebor at gcc dot gnu.org
2021-02-02 19:58 ` msebor at gcc dot gnu.org
2021-02-03 17:24 ` cvs-commit at gcc dot gnu.org
2021-02-03 17:25 ` msebor 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).