From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BD01B385800A; Thu, 30 Dec 2021 04:42:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD01B385800A From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/100129] [modules] ICE free(): invalid pointer Date: Thu, 30 Dec 2021 04:42:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: GC, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: Message-ID: In-Reply-To: References: 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: Thu, 30 Dec 2021 04:42:40 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100129 --- Comment #3 from Andrew Pinski --- Add --param=3Dggc-min-expand=3D1 we get: hash table checking failed: equal operator returns true for a pair of values with a different hash value In file included from /home/apinski/upstream-gcc/include/c++/12.0.0/future:= 44: /home/apinski/upstream-gcc/include/c++/12.0.0/bits/atomic_futex.h:76:5: internal compiler error: in hashtab_chk_error, at hash-table.c:137 76 | atomic _M_data; | ^~~~~~ 0x9bab97 hashtab_chk_error() /home/apinski/src/upstream-gcc/gcc/gcc/hash-table.c:137 0xbd7e85 hash_table::verify(spec_entry* const&, unsigned int) /home/apinski/src/upstream-gcc/gcc/gcc/hash-table.h:1036 0xbd840c hash_table::find_slot_with_hash(spec_entry* const&, unsigned int, insert_option) /home/apinski/src/upstream-gcc/gcc/gcc/hash-table.h:971 0xb93d0b match_mergeable_specialization(bool, spec_entry*) /home/apinski/src/upstream-gcc/gcc/gcc/cp/pt.c:30400 0xb0531c trees_in::key_mergeable(int, merge_kind, tree_node*, tree_node*, tree_node*, tree_node*, bool) /home/apinski/src/upstream-gcc/gcc/gcc/cp/module.cc:10683 0xb0925e trees_in::decl_value() /home/apinski/src/upstream-gcc/gcc/gcc/cp/module.cc:7911 0xb02147 trees_in::tree_node(bool) /home/apinski/src/upstream-gcc/gcc/gcc/cp/module.cc:9164 0xb0864b module_state::read_cluster(unsigned int) /home/apinski/src/upstream-gcc/gcc/gcc/cp/module.cc:14830 0xb08be5 module_state::load_section(unsigned int, binding_slot*) /home/apinski/src/upstream-gcc/gcc/gcc/cp/module.cc:18101 0xb08d9e lazy_load_binding(unsigned int, tree_node*, tree_node*, binding_sl= ot*) /home/apinski/src/upstream-gcc/gcc/gcc/cp/module.cc:18792 0xb1abed name_lookup::search_namespace_only(tree_node*) /home/apinski/src/upstream-gcc/gcc/gcc/cp/name-lookup.c:927 0xb1c0f3 name_lookup::search_unqualified(tree_node*, cp_binding_level*) /home/apinski/src/upstream-gcc/gcc/gcc/cp/name-lookup.c:1157 0xb1de2d lookup_name(tree_node*, LOOK_where, LOOK_want) /home/apinski/src/upstream-gcc/gcc/gcc/cp/name-lookup.c:7739 0xb2f229 lookup_name(tree_node*, LOOK_want) /home/apinski/src/upstream-gcc/gcc/gcc/cp/name-lookup.h:401 0xb2f229 cp_parser_lookup_name /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:30528 0xb5adf8 cp_parser_template_name /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:18539 0xb5b409 cp_parser_template_id /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:18143 0xb5bd6b cp_parser_class_name /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:25640 0xb5271e cp_parser_qualifying_entity /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:7061 0xb5271e cp_parser_nested_name_specifier_opt /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:6743 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. I am going to assume this is the same bug when I reducing it but if it is n= ot then I will deal with it later.=