public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/98937] New: [11 Regression] pointer_query cache leaks
Date: Tue, 02 Feb 2021 16:19:35 +0000	[thread overview]
Message-ID: <bug-98937-4@http.gcc.gnu.org/bugzilla/> (raw)

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.

             reply	other threads:[~2021-02-02 16:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-02 16:19 rguenth at gcc dot gnu.org [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-98937-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).