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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |GC, ice-on-valid-code

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
apinski@xeond:~/src/pr100129$ g++ --param=hash-table-verification-limit=1000
-std=c++20 -fmodules-ts -x c++-system-header condition_variable
apinski@xeond:~/src/pr100129$ g++ --param=hash-table-verification-limit=1000
-std=c++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 <https://gcc.gnu.org/bugs/> 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=<error reading
variable: dwarf2_find_location_expression: Corrupted DWARF expression.>) 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<deferred_access_check, va_gc, vl_embed>*, 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*, bool)
() 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=<optimized out>, parser=<optimized out>) 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=0x7ffff6d3a000) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:14939
#18 cp_parser_declaration_seq_opt (parser=parser@entry=0x7ffff6d3a000) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:14692
#19 0x0000000000b78e65 in cp_parser_namespace_body (parser=<error reading
variable: dwarf2_find_location_expression: Corrupted DWARF expression.>) 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=0x7ffff6d3a000) at
/home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:14939
#23 cp_parser_translation_unit (parser=0x7ffff6d3a000, parser@entry=<error
reading variable: dwarf2_find_location_expression: Corrupted DWARF
expression.>) 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=false) 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=21, argv=0x7fffffffdd58) at
/home/apinski/src/upstream-gcc/gcc/gcc/main.c:39

Reply via email to