public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/99479] [modules] ICE Aborted signal terminated program cc1plus
Date: Fri, 31 Dec 2021 04:13:06 +0000	[thread overview]
Message-ID: <bug-99479-4-G6B9u9fCwh@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-99479-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #17 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
==20277== Invalid write of size 8
==20277==    at 0xB1C11C: name_lookup::search_unqualified(tree_node*,
cp_binding_level*) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB1DE2D: lookup_name(tree_node*, LOOK_where, LOOK_want) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB2F229: cp_parser_lookup_name(cp_parser*, tree_node*,
tag_types, bool, bool, bool, tree_node**, unsigned int) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB5ADF8: cp_parser_template_name(cp_parser*, bool, bool, bool,
tag_types, bool*) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB5B409: cp_parser_template_id(cp_parser*, bool, bool,
tag_types, bool) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB5BD6B: cp_parser_class_name(cp_parser*, bool, bool,
tag_types, bool, bool, bool, bool) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB5271E: cp_parser_nested_name_specifier_opt(cp_parser*, bool,
bool, bool, bool, bool) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB76BF0: cp_parser_template_introduction(cp_parser*, bool) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB79543: cp_parser_declaration(cp_parser*, tree_node*) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB789F9: cp_parser_declaration_seq_opt(cp_parser*) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB78E64: cp_parser_namespace_definition(cp_parser*) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB79587: cp_parser_declaration(cp_parser*, tree_node*) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==  Address 0x5ef55f8 is 8 bytes inside a block of size 136 free'd
==20277==    at 0x4C33D2F: realloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==20277==    by 0x21A1640: xrealloc (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB12E5A:
name_lookup::queue_namespace(vec<std::pair<tree_node*, tree_node*>, va_heap,
vl_embed>*, int, tree_node*) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB12D50:
name_lookup::queue_namespace(vec<std::pair<tree_node*, tree_node*>, va_heap,
vl_embed>*, int, tree_node*) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB1C0BA: name_lookup::search_unqualified(tree_node*,
cp_binding_level*) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB1DE2D: lookup_name(tree_node*, LOOK_where, LOOK_want) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0x9C527D: build_op_delete_call(tree_code, tree_node*,
tree_node*, bool, tree_node*, tree_node*, int) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB24CDA: build_delete_destructor_body(tree_node*, tree_node*)
(in /home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB26C3C: maybe_clone_body(tree_node*) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xAE1CC6: post_load_processing() (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB0BDE8: lazy_load_pendings(tree_node*) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB14368: get_class_binding(tree_node*, tree_node*, bool) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==  Block was alloc'd at
==20277==    at 0x4C33D2F: realloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==20277==    by 0x21A1640: xrealloc (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB12E5A:
name_lookup::queue_namespace(vec<std::pair<tree_node*, tree_node*>, va_heap,
vl_embed>*, int, tree_node*) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB12D50:
name_lookup::queue_namespace(vec<std::pair<tree_node*, tree_node*>, va_heap,
vl_embed>*, int, tree_node*) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB1C0BA: name_lookup::search_unqualified(tree_node*,
cp_binding_level*) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB1DE2D: lookup_name(tree_node*, LOOK_where, LOOK_want) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB2F229: cp_parser_lookup_name(cp_parser*, tree_node*,
tag_types, bool, bool, bool, tree_node**, unsigned int) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB5ADF8: cp_parser_template_name(cp_parser*, bool, bool, bool,
tag_types, bool*) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB5B409: cp_parser_template_id(cp_parser*, bool, bool,
tag_types, bool) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB5BD6B: cp_parser_class_name(cp_parser*, bool, bool,
tag_types, bool, bool, bool, bool) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB5271E: cp_parser_nested_name_specifier_opt(cp_parser*, bool,
bool, bool, bool, bool) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)
==20277==    by 0xB6A917: cp_parser_simple_type_specifier(cp_parser*,
cp_decl_specifier_seq*, int) (in
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/cc1plus)

  parent reply	other threads:[~2021-12-31  4:13 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-09  7:37 [Bug c++/99479] New: " alexander.lelyakin at googlemail dot com
2021-03-11  8:16 ` [Bug c++/99479] " alexander.lelyakin at googlemail dot com
2021-03-12 10:18 ` alexander.lelyakin at googlemail dot com
2021-03-23  8:48 ` alexander.lelyakin at googlemail dot com
2021-03-23 20:11 ` alexander.lelyakin at googlemail dot com
2021-03-24 19:44 ` alexander.lelyakin at googlemail dot com
2021-03-27  6:44 ` alexander.lelyakin at googlemail dot com
2021-03-30  1:25 ` mpolacek at gcc dot gnu.org
2021-03-30  6:43 ` alexander.lelyakin at googlemail dot com
2021-04-16 18:51 ` alexander.lelyakin at googlemail dot com
2021-04-16 18:53 ` alexander.lelyakin at googlemail dot com
2021-12-30 16:09 ` pinskia at gcc dot gnu.org
2021-12-30 16:10 ` pinskia at gcc dot gnu.org
2021-12-30 16:11 ` pinskia at gcc dot gnu.org
2021-12-30 16:12 ` pinskia at gcc dot gnu.org
2021-12-30 16:12 ` pinskia at gcc dot gnu.org
2021-12-30 16:12 ` pinskia at gcc dot gnu.org
2021-12-30 21:34 ` pinskia at gcc dot gnu.org
2021-12-31  4:13 ` pinskia at gcc dot gnu.org [this message]
2021-12-31  4:20 ` pinskia at gcc dot gnu.org
2022-01-01  4:09 ` pinskia at gcc dot gnu.org
2022-01-24 15:52 ` ppalka at gcc dot gnu.org
2022-01-24 17:56 ` pinskia at gcc dot gnu.org
2022-04-07 20:10 ` cvs-commit at gcc dot gnu.org
2022-10-20 12:57 ` LpSolit at gmail dot com

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-99479-4-G6B9u9fCwh@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).