From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5111E3858019; Wed, 29 Dec 2021 21:44:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5111E3858019 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/100129] [modules] ICE free(): invalid pointer Date: Wed, 29 Dec 2021 21:44:48 +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: keywords 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: Wed, 29 Dec 2021 21:44:48 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100129 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |GC, ice-on-valid-code --- Comment #1 from Andrew Pinski --- apinski@xeond:~/src/pr100129$ g++ --param=3Dhash-table-verification-limit= =3D1000 -std=3Dc++20 -fmodules-ts -x c++-system-header condition_variable apinski@xeond:~/src/pr100129$ g++ --param=3Dhash-table-verification-limit= =3D1000 -std=3Dc++20 -fmodules-ts -x c++-system-header future free(): invalid pointer malloc(): memory corruption (fast) g++: internal compiler error: Aborted signal terminated program cc1plus Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Is enough to reproduce the failure. #0 __memset_avx2_erms () at ../sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:145 #1 0x0000000000cda0fa in clear_marks() () at /home/apinski/src/upstream-gcc/gcc/gcc/ggc-page.c:1901 #2 0x0000000000cdb6bd in ggc_collect(ggc_collect) () at /home/apinski/src/upstream-gcc/gcc/gcc/ggc-page.c:2226 #3 0x0000000000bf2477 in expand_or_defer_fn_1(tree_node*) () at /home/apinski/src/upstream-gcc/gcc/gcc/cp/semantics.c:4707 #4 0x0000000000bf2579 in expand_or_defer_fn(tree_node*) () at /home/apinski/src/upstream-gcc/gcc/gcc/cp/semantics.c:4779 #5 0x0000000000b6d448 in cp_parser_function_definition_after_declarator(cp_parser*, bool) () at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:31188 #6 0x0000000000b6d8cd in cp_parser_late_parsing_for_member(cp_parser*, tree_node*) () at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:32096 #7 0x0000000000b4632c in cp_parser_class_specifier_1(cp_parser*) () at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:26116 #8 0x0000000000b4731f in cp_parser_class_specifier (parser=3D) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:26140 #9 cp_parser_type_specifier(cp_parser*, int, cp_decl_specifier_seq*, bool, int*, bool*) () at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:19293 #10 0x0000000000b48274 in cp_parser_decl_specifier_seq(cp_parser*, int, cp_decl_specifier_seq*, int*) () at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:15856 #11 0x0000000000b75db7 in cp_parser_single_declaration(cp_parser*, vec*, bool, bool, bool*) () at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:31580 #12 0x0000000000b76217 in cp_parser_template_declaration_after_parameters(cp_parser*, tree_node*, boo= l) () at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:31243 #13 0x0000000000b76aa1 in cp_parser_explicit_template_declaration(cp_parser= *, bool) () at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:31509 #14 0x0000000000b77228 in cp_parser_template_declaration_after_export (member_p=3D, parser=3D) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:31528 #15 cp_parser_template_declaration(cp_parser*, bool) () at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:17407 #16 0x0000000000b79452 in cp_parser_declaration(cp_parser*, tree_node*) () = at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:14849 #17 0x0000000000b789fa in cp_parser_toplevel_declaration (parser=3D0x7ffff6d3a000) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:14939 #18 cp_parser_declaration_seq_opt (parser=3Dparser@entry=3D0x7ffff6d3a000) = at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:14692 #19 0x0000000000b78e65 in cp_parser_namespace_body (parser=3D) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:21323 #20 cp_parser_namespace_definition(cp_parser*) () at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:21301 #21 0x0000000000b79588 in cp_parser_declaration(cp_parser*, tree_node*) () = at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:14898 #22 0x0000000000b79f03 in cp_parser_toplevel_declaration (parser=3D0x7ffff6d3a000) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:14939 #23 cp_parser_translation_unit (parser=3D0x7ffff6d3a000, parser@entry=3D) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:4987 #24 c_parse_file() () at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:47946 #25 0x0000000000caa8de in c_common_parse_file () at /home/apinski/src/upstream-gcc/gcc/gcc/c-family/c-opts.c:1238 #26 0x00000000011e752e in compile_file () at /home/apinski/src/upstream-gcc/gcc/gcc/toplev.c:452 #27 0x00000000009bed04 in do_compile (no_backend=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/toplev.c:2158 #28 toplev::main(int, char**) () at /home/apinski/src/upstream-gcc/gcc/gcc/toplev.c:2310 #29 0x00000000009c041b in main (argc=3D21, argv=3D0x7fffffffdd58) at /home/apinski/src/upstream-gcc/gcc/gcc/main.c:39=