public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/99737] New: [modules] malloc(): smallbin double linked list corrupted @ 2021-03-23 20:14 alexander.lelyakin at googlemail dot com 2021-03-27 12:23 ` [Bug c++/99737] " alexander.lelyakin at googlemail dot com ` (5 more replies) 0 siblings, 6 replies; 7+ messages in thread From: alexander.lelyakin at googlemail dot com @ 2021-03-23 20:14 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99737 Bug ID: 99737 Summary: [modules] malloc(): smallbin double linked list corrupted Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: alexander.lelyakin at googlemail dot com Target Milestone: --- /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header sstream /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cstring /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header locale /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header numeric /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header limits /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header string_view /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cuchar /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header filesystem ---- malloc(): smallbin double linked list corrupted In file included from /usr/local/include/c++/11.0.1/bits/shared_ptr_base.h:53, from /usr/local/include/c++/11.0.1/bits/shared_ptr.h:53, from /usr/local/include/c++/11.0.1/bits/fs_path.h:46, from /usr/local/include/c++/11.0.1/filesystem:45: /usr/local/include/c++/11.0.1/bits/allocated_ptr.h:58:66: internal compiler error: Aborted 58 | typename _Req = _Require<is_same<_Ptr, value_type*>>> | ^~ 0x110107f crash_signal ../../gcc/gcc/toplev.c:327 0x1d46680 xrealloc ../../gcc/libiberty/xmalloc.c:179 0xa6d283 void va_heap::reserve<tree_node*>(vec<tree_node*, va_heap, vl_embed>*&, unsigned int, bool) ../../gcc/gcc/vec.h:290 0xa6d283 vec<tree_node*, va_heap, vl_ptr>::reserve(unsigned int, bool) ../../gcc/gcc/vec.h:1778 0xa6d283 vec<tree_node*, va_heap, vl_ptr>::safe_push(tree_node* const&) ../../gcc/gcc/vec.h:1887 0xa6d283 trees_in::post_process(tree_node*) ../../gcc/gcc/cp/module.cc:2956 0xa6d283 trees_in::read_function_def(tree_node*, tree_node*) ../../gcc/gcc/cp/module.cc:11495 0xa6f3e1 module_state::read_cluster(unsigned int) ../../gcc/gcc/cp/module.cc:14855 0xa6fa5d module_state::load_section(unsigned int, binding_slot*) ../../gcc/gcc/cp/module.cc:18117 0xa6fb1f module_state::lazy_load(unsigned int, binding_slot*) ../../gcc/gcc/cp/module.cc:18778 0xa72d37 lazy_load_pendings(tree_node*) ../../gcc/gcc/cp/module.cc:18871 0xb2237f lookup_template_class_1 ../../gcc/gcc/cp/pt.c:9799 0xb23f4c lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*, int, int) ../../gcc/gcc/cp/pt.c:10237 0xb4c28b finish_template_type(tree_node*, tree_node*, int) ../../gcc/gcc/cp/semantics.c:3563 0xabe061 cp_parser_template_id ../../gcc/gcc/cp/parser.c:17458 0xabe24b cp_parser_class_name ../../gcc/gcc/cp/parser.c:24685 0xab57ba cp_parser_qualifying_entity ../../gcc/gcc/cp/parser.c:7002 0xab57ba cp_parser_nested_name_specifier_opt ../../gcc/gcc/cp/parser.c:6684 0xacaf34 cp_parser_simple_type_specifier ../../gcc/gcc/cp/parser.c:18851 0xaa9cdd cp_parser_type_specifier ../../gcc/gcc/cp/parser.c:18509 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. ---- g++ (GCC) 11.0.1 20210323 (experimental) Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/99737] [modules] malloc(): smallbin double linked list corrupted 2021-03-23 20:14 [Bug c++/99737] New: [modules] malloc(): smallbin double linked list corrupted alexander.lelyakin at googlemail dot com @ 2021-03-27 12:23 ` alexander.lelyakin at googlemail dot com 2021-03-27 19:44 ` alexander.lelyakin at googlemail dot com ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: alexander.lelyakin at googlemail dot com @ 2021-03-27 12:23 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99737 --- Comment #1 from Alexander Lelyakin <alexander.lelyakin at googlemail dot com> --- Similar, but somewhat different message: /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cwchar /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cmath /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header type_traits /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header condition_variable /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header future ---- corrupted double-linked list In file included from /usr/local/include/c++/11.0.1/future:43: /usr/local/include/c++/11.0.1/bits/atomic_futex.h:171:36: internal compiler error: Aborted 171 | bool __equal, memory_order __mo, | ^~~~ 0x110151f crash_signal ../../gcc/gcc/toplev.c:327 0x1d474c4 xcalloc ../../gcc/libiberty/xmalloc.c:162 0xc2d30c alloc_page ../../gcc/gcc/ggc-page.c:918 0xc2d30c ggc_internal_alloc(unsigned long, void (*)(void*), unsigned long, unsigned long) ../../gcc/gcc/ggc-page.c:1294 0xe16c69 ggc_internal_cleared_alloc(unsigned long, void (*)(void*), unsigned long, unsigned long) ../../gcc/gcc/ggc-common.c:117 0xa25f78 ggc_internal_cleared_alloc(unsigned long) ../../gcc/gcc/ggc.h:143 0xa25f78 maybe_add_lang_decl_raw(tree_node*, bool) ../../gcc/gcc/cp/lex.c:903 0xa2626e retrofit_lang_decl(tree_node*) ../../gcc/gcc/cp/lex.c:972 0xa2626e retrofit_lang_decl(tree_node*) ../../gcc/gcc/cp/lex.c:967 0xac6725 cp_parser_parameter_declaration_list ../../gcc/gcc/cp/parser.c:23607 0xac6ab1 cp_parser_parameter_declaration_clause ../../gcc/gcc/cp/parser.c:23496 0xab7be3 cp_parser_direct_declarator ../../gcc/gcc/cp/parser.c:22145 0xab7be3 cp_parser_declarator ../../gcc/gcc/cp/parser.c:22008 0xacee48 cp_parser_init_declarator ../../gcc/gcc/cp/parser.c:21506 0xad5c7b cp_parser_single_declaration ../../gcc/gcc/cp/parser.c:30517 0xad5de6 cp_parser_template_declaration_after_parameters ../../gcc/gcc/cp/parser.c:30089 0xad6590 cp_parser_explicit_template_declaration ../../gcc/gcc/cp/parser.c:30355 0xaa7998 cp_parser_member_specification_opt ../../gcc/gcc/cp/parser.c:25799 0xaa7998 cp_parser_class_specifier_1 ../../gcc/gcc/cp/parser.c:24877 0xaa9ec3 cp_parser_class_specifier ../../gcc/gcc/cp/parser.c:25193 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. ---- g++ (GCC) 11.0.1 20210327 (experimental) Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/99737] [modules] malloc(): smallbin double linked list corrupted 2021-03-23 20:14 [Bug c++/99737] New: [modules] malloc(): smallbin double linked list corrupted alexander.lelyakin at googlemail dot com 2021-03-27 12:23 ` [Bug c++/99737] " alexander.lelyakin at googlemail dot com @ 2021-03-27 19:44 ` alexander.lelyakin at googlemail dot com 2021-03-27 19:50 ` alexander.lelyakin at googlemail dot com ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: alexander.lelyakin at googlemail dot com @ 2021-03-27 19:44 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99737 --- Comment #2 from Alexander Lelyakin <alexander.lelyakin at googlemail dot com> --- This error is very unstable. Each found sequence is not reproducible after few commits. But some other sequence appears with similar message. This time such a sequence is: /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header algorithm /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header memory /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header thread /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header condition_variable /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header istream /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header variant /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header functional /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cassert /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cinttypes /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header shared_mutex /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header locale /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header fstream /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cwctype /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header exception /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cstdlib /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header string /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header vector /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cstdio /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header filesystem ---- malloc(): smallbin double linked list corrupted In file included from /usr/local/include/c++/11.0.1/bits/shared_ptr_base.h:53, from /usr/local/include/c++/11.0.1/bits/shared_ptr.h:53, from /usr/local/include/c++/11.0.1/bits/fs_path.h:46, from /usr/local/include/c++/11.0.1/filesystem:45: /usr/local/include/c++/11.0.1/bits/allocated_ptr.h: In destructor ‘std::__allocated_ptr<_Alloc>::~__allocated_ptr()’: /usr/local/include/c++/11.0.1/bits/allocated_ptr.h:73:32: internal compiler error: Aborted 73 | std::allocator_traits<_Alloc>::deallocate(*_M_alloc, _M_ptr, 1); | ^ 0x110151f crash_signal ../../gcc/gcc/toplev.c:327 0x1d47510 xrealloc ../../gcc/libiberty/xmalloc.c:179 0xa8eb0d void va_heap::reserve<cp_token*>(vec<cp_token*, va_heap, vl_embed>*&, unsigned int, bool) ../../gcc/gcc/vec.h:290 0xa8eb0d vec<cp_token*, va_heap, vl_ptr>::reserve(unsigned int, bool) ../../gcc/gcc/vec.h:1778 0xa8eb0d vec<cp_token*, va_heap, vl_ptr>::safe_push(cp_token* const&) ../../gcc/gcc/vec.h:1887 0xa8eb0d cp_lexer_save_tokens ../../gcc/gcc/cp/parser.c:1241 0xa8eb0d cp_parser_parse_tentatively ../../gcc/gcc/cp/parser.c:32847 0xabe86d cp_parser_type_name ../../gcc/gcc/cp/parser.c:19219 0xacb256 cp_parser_simple_type_specifier ../../gcc/gcc/cp/parser.c:18924 0xaa9e5d cp_parser_type_specifier ../../gcc/gcc/cp/parser.c:18516 0xabbc23 cp_parser_type_specifier_seq ../../gcc/gcc/cp/parser.c:23367 0xaba2a4 cp_parser_type_id_1 ../../gcc/gcc/cp/parser.c:23170 0xabc893 cp_parser_template_type_arg ../../gcc/gcc/cp/parser.c:23275 0xabc9bf cp_parser_template_argument ../../gcc/gcc/cp/parser.c:17915 0xabc9bf cp_parser_template_argument_list ../../gcc/gcc/cp/parser.c:17826 0xabc9bf cp_parser_enclosed_template_argument_list ../../gcc/gcc/cp/parser.c:30799 0xabdcec cp_parser_template_id ../../gcc/gcc/cp/parser.c:17398 0xabe3eb cp_parser_class_name ../../gcc/gcc/cp/parser.c:24692 0xab595a cp_parser_qualifying_entity ../../gcc/gcc/cp/parser.c:7002 0xab595a cp_parser_nested_name_specifier_opt ../../gcc/gcc/cp/parser.c:6684 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. ---- g++ (GCC) 11.0.1 20210327 (experimental) Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. commit 651684b462f979a4e70a668c4c9767a5fd7d223a (HEAD -> master, origin/trunk, origin/master, origin/HEAD) Author: GCC Administrator <gccadmin@gcc.gnu.org> Date: Sat Mar 27 00:16:27 2021 +0000 Daily bump. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/99737] [modules] malloc(): smallbin double linked list corrupted 2021-03-23 20:14 [Bug c++/99737] New: [modules] malloc(): smallbin double linked list corrupted alexander.lelyakin at googlemail dot com 2021-03-27 12:23 ` [Bug c++/99737] " alexander.lelyakin at googlemail dot com 2021-03-27 19:44 ` alexander.lelyakin at googlemail dot com @ 2021-03-27 19:50 ` alexander.lelyakin at googlemail dot com 2021-04-01 5:30 ` alexander.lelyakin at googlemail dot com ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: alexander.lelyakin at googlemail dot com @ 2021-03-27 19:50 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99737 --- Comment #3 from Alexander Lelyakin <alexander.lelyakin at googlemail dot com> --- And the sequence from comment 1 has changed its error message to: corrupted double-linked list corrupted double-linked list 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. Probably this bug should be marked as duplicate of 99479. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/99737] [modules] malloc(): smallbin double linked list corrupted 2021-03-23 20:14 [Bug c++/99737] New: [modules] malloc(): smallbin double linked list corrupted alexander.lelyakin at googlemail dot com ` (2 preceding siblings ...) 2021-03-27 19:50 ` alexander.lelyakin at googlemail dot com @ 2021-04-01 5:30 ` alexander.lelyakin at googlemail dot com 2021-12-30 16:09 ` pinskia at gcc dot gnu.org 2024-03-07 19:56 ` ppalka at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: alexander.lelyakin at googlemail dot com @ 2021-04-01 5:30 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99737 --- Comment #4 from Alexander Lelyakin <alexander.lelyakin at googlemail dot com> --- Today's sequence is: ---- /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header tuple /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header set /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cmath /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header locale /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header filesystem ---- Repeatedly running this sequence i have found that it produces little different error messages every time. ----1 corrupted double-linked list In file included from /usr/local/include/c++/11.0.1/bits/shared_ptr.h:53, from /usr/local/include/c++/11.0.1/bits/fs_path.h:46, from /usr/local/include/c++/11.0.1/filesystem:45: /usr/local/include/c++/11.0.1/bits/shared_ptr_base.h:1851:34: internal compiler error: Aborted 1851 | : public __hash_base<size_t, __shared_ptr<_Tp, _Lp>> | ^~~~~~~~~~~~~~~~~~~~~ 0x110a6ff crash_signal ../../gcc/gcc/toplev.c:327 0x1d549f4 xcalloc ../../gcc/libiberty/xmalloc.c:162 0xae35f6 xcallocator<tree_node*>::data_alloc(unsigned long) ../../gcc/gcc/hash-table.h:275 0xae35f6 hash_table<default_hash_traits<tree_node*>, false, xcallocator>::alloc_entries(unsigned long) const ../../gcc/gcc/hash-table.h:711 0xae35f6 hash_table<default_hash_traits<tree_node*>, false, xcallocator>::hash_table(unsigned long, bool, bool, bool, mem_alloc_origin) ../../gcc/gcc/hash-table.h:628 0xae3d50 hash_set<tree_node*, false, default_hash_traits<tree_node*> >::hash_set(unsigned long, bool) ../../gcc/gcc/hash-set.h:41 0xae3d50 for_each_template_parm ../../gcc/gcc/cp/pt.c:10564 0xac06cc cp_parser_type_id_1 ../../gcc/gcc/cp/parser.c:23221 0xac2be3 cp_parser_template_type_arg ../../gcc/gcc/cp/parser.c:23275 0xac2d0f cp_parser_template_argument ../../gcc/gcc/cp/parser.c:17915 0xac2d0f cp_parser_template_argument_list ../../gcc/gcc/cp/parser.c:17826 0xac2d0f cp_parser_enclosed_template_argument_list ../../gcc/gcc/cp/parser.c:30799 0xac4066 cp_parser_template_id ../../gcc/gcc/cp/parser.c:17398 0xac47fb cp_parser_class_name ../../gcc/gcc/cp/parser.c:24692 0xabbcaa cp_parser_qualifying_entity ../../gcc/gcc/cp/parser.c:7002 0xabbcaa cp_parser_nested_name_specifier_opt ../../gcc/gcc/cp/parser.c:6684 0xaaf80c cp_parser_base_specifier ../../gcc/gcc/cp/parser.c:26711 0xaaf80c cp_parser_base_clause ../../gcc/gcc/cp/parser.c:26564 0xaaf80c cp_parser_class_head ../../gcc/gcc/cp/parser.c:25651 0xaaf80c cp_parser_class_specifier_1 ../../gcc/gcc/cp/parser.c:24814 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. ----2 corrupted double-linked list In file included from /usr/local/include/c++/11.0.1/bits/shared_ptr.h:53, from /usr/local/include/c++/11.0.1/bits/fs_path.h:46, from /usr/local/include/c++/11.0.1/filesystem:45: /usr/local/include/c++/11.0.1/bits/shared_ptr_base.h:1851:52: internal compiler error: Aborted 1851 | : public __hash_base<size_t, __shared_ptr<_Tp, _Lp>> | ^~~ 0x110a6ff crash_signal ../../gcc/gcc/toplev.c:327 0x1d549f4 xcalloc ../../gcc/libiberty/xmalloc.c:162 0x13f3fd9 xcallocator<tree_node*>::data_alloc(unsigned long) ../../gcc/gcc/hash-table.h:275 0x13f3fd9 hash_table<default_hash_traits<tree_node*>, false, xcallocator>::alloc_entries(unsigned long) const ../../gcc/gcc/hash-table.h:711 0x13f3fd9 hash_table<default_hash_traits<tree_node*>, false, xcallocator>::hash_table(unsigned long, bool, bool, bool, mem_alloc_origin) ../../gcc/gcc/hash-table.h:628 0x13f3fd9 hash_set<tree_node*, false, default_hash_traits<tree_node*> >::hash_set(unsigned long, bool) ../../gcc/gcc/hash-set.h:41 0x13f3fd9 walk_tree_without_duplicates_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*)) ../../gcc/gcc/tree.c:12474 0xaf4b99 instantiation_dependent_uneval_expression_p(tree_node*) ../../gcc/gcc/cp/pt.c:27494 0xaf4b99 instantiation_dependent_expression_p(tree_node*) ../../gcc/gcc/cp/pt.c:27504 0x982285 is_nondependent_constant_expression(tree_node*) ../../gcc/gcc/cp/constexpr.c:8960 0x982285 is_nondependent_constant_expression(tree_node*) ../../gcc/gcc/cp/constexpr.c:8956 0x98308f maybe_constant_value(tree_node*, tree_node*, bool) ../../gcc/gcc/cp/constexpr.c:7432 0xb23c0c convert_nontype_argument ../../gcc/gcc/cp/pt.c:7274 0xb23c0c convert_template_argument ../../gcc/gcc/cp/pt.c:8508 0xb259c3 coerce_template_parms ../../gcc/gcc/cp/pt.c:8987 0xb286d9 lookup_template_class_1 ../../gcc/gcc/cp/pt.c:9825 0xb2a47c lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*, int, int) ../../gcc/gcc/cp/pt.c:10211 0xb5285b finish_template_type(tree_node*, tree_node*, int) ../../gcc/gcc/cp/semantics.c:3563 0xac460b cp_parser_template_id ../../gcc/gcc/cp/parser.c:17465 0xac47fb cp_parser_class_name ../../gcc/gcc/cp/parser.c:24692 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. ----3 orrupted double-linked list In file included from /usr/local/include/c++/11.0.1/bits/shared_ptr.h:53, from /usr/local/include/c++/11.0.1/bits/fs_path.h:46, from /usr/local/include/c++/11.0.1/filesystem:45: /usr/local/include/c++/11.0.1/bits/shared_ptr_base.h:1851:55: internal compiler error: Aborted 1851 | : public __hash_base<size_t, __shared_ptr<_Tp, _Lp>> | ^~ 0x110a6ff crash_signal ../../gcc/gcc/toplev.c:327 0x1d549f4 xcalloc ../../gcc/libiberty/xmalloc.c:162 0x13f3fd9 xcallocator<tree_node*>::data_alloc(unsigned long) ../../gcc/gcc/hash-table.h:275 0x13f3fd9 hash_table<default_hash_traits<tree_node*>, false, xcallocator>::alloc_entries(unsigned long) const ../../gcc/gcc/hash-table.h:711 0x13f3fd9 hash_table<default_hash_traits<tree_node*>, false, xcallocator>::hash_table(unsigned long, bool, bool, bool, mem_alloc_origin) ../../gcc/gcc/hash-table.h:628 0x13f3fd9 hash_set<tree_node*, false, default_hash_traits<tree_node*> >::hash_set(unsigned long, bool) ../../gcc/gcc/hash-set.h:41 0x13f3fd9 walk_tree_without_duplicates_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*)) ../../gcc/gcc/tree.c:12474 0x95af46 inherit_targ_abi_tags(tree_node*) ../../gcc/gcc/cp/class.c:1669 0xb28e09 lookup_template_class_1 ../../gcc/gcc/cp/pt.c:10197 0xb2a47c lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*, int, int) ../../gcc/gcc/cp/pt.c:10211 0xb5285b finish_template_type(tree_node*, tree_node*, int) ../../gcc/gcc/cp/semantics.c:3563 0xac460b cp_parser_template_id ../../gcc/gcc/cp/parser.c:17465 0xac47fb cp_parser_class_name ../../gcc/gcc/cp/parser.c:24692 0xabbcaa cp_parser_qualifying_entity ../../gcc/gcc/cp/parser.c:7002 0xabbcaa cp_parser_nested_name_specifier_opt ../../gcc/gcc/cp/parser.c:6684 0xaaf80c cp_parser_base_specifier ../../gcc/gcc/cp/parser.c:26711 0xaaf80c cp_parser_base_clause ../../gcc/gcc/cp/parser.c:26564 0xaaf80c cp_parser_class_head ../../gcc/gcc/cp/parser.c:25651 0xaaf80c cp_parser_class_specifier_1 ../../gcc/gcc/cp/parser.c:24814 0xaaff83 cp_parser_class_specifier ../../gcc/gcc/cp/parser.c:25193 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. ----4 malloc(): smallbin double linked list corrupted In file included from /usr/local/include/c++/11.0.1/bits/shared_ptr_base.h:53, from /usr/local/include/c++/11.0.1/bits/shared_ptr.h:53, from /usr/local/include/c++/11.0.1/bits/fs_path.h:46, from /usr/local/include/c++/11.0.1/filesystem:45: /usr/local/include/c++/11.0.1/bits/allocated_ptr.h: In destructor ‘std::__allocated_ptr<_Alloc>::~__allocated_ptr()’: /usr/local/include/c++/11.0.1/bits/allocated_ptr.h:73:32: internal compiler error: Aborted 73 | std::allocator_traits<_Alloc>::deallocate(*_M_alloc, _M_ptr, 1); | ^ 0x110a6ff crash_signal ../../gcc/gcc/toplev.c:327 0x1d54a40 xrealloc ../../gcc/libiberty/xmalloc.c:179 0xa94bcd void va_heap::reserve<cp_token*>(vec<cp_token*, va_heap, vl_embed>*&, unsigned int, bool) ../../gcc/gcc/vec.h:290 0xa94bcd vec<cp_token*, va_heap, vl_ptr>::reserve(unsigned int, bool) ../../gcc/gcc/vec.h:1778 0xa94bcd vec<cp_token*, va_heap, vl_ptr>::safe_push(cp_token* const&) ../../gcc/gcc/vec.h:1887 0xa94bcd cp_lexer_save_tokens ../../gcc/gcc/cp/parser.c:1241 0xa94bcd cp_parser_parse_tentatively ../../gcc/gcc/cp/parser.c:32847 0xac4c7d cp_parser_type_name ../../gcc/gcc/cp/parser.c:19219 0xad16d6 cp_parser_simple_type_specifier ../../gcc/gcc/cp/parser.c:18924 0xaaff1d cp_parser_type_specifier ../../gcc/gcc/cp/parser.c:18516 0xac1f73 cp_parser_type_specifier_seq ../../gcc/gcc/cp/parser.c:23367 0xac05f4 cp_parser_type_id_1 ../../gcc/gcc/cp/parser.c:23170 0xac2be3 cp_parser_template_type_arg ../../gcc/gcc/cp/parser.c:23275 0xac2d0f cp_parser_template_argument ../../gcc/gcc/cp/parser.c:17915 0xac2d0f cp_parser_template_argument_list ../../gcc/gcc/cp/parser.c:17826 0xac2d0f cp_parser_enclosed_template_argument_list ../../gcc/gcc/cp/parser.c:30799 0xac4066 cp_parser_template_id ../../gcc/gcc/cp/parser.c:17398 0xac47fb cp_parser_class_name ../../gcc/gcc/cp/parser.c:24692 0xabbcaa cp_parser_qualifying_entity ../../gcc/gcc/cp/parser.c:7002 0xabbcaa cp_parser_nested_name_specifier_opt ../../gcc/gcc/cp/parser.c:6684 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. ----5 corrupted double-linked list In file included from /usr/local/include/c++/11.0.1/bits/shared_ptr.h:53, from /usr/local/include/c++/11.0.1/bits/fs_path.h:46, from /usr/local/include/c++/11.0.1/filesystem:45: /usr/local/include/c++/11.0.1/bits/shared_ptr_base.h:1851:47: internal compiler error: Aborted 1851 | : public __hash_base<size_t, __shared_ptr<_Tp, _Lp>> | ^~~ 0x110a6ff crash_signal ../../gcc/gcc/toplev.c:327 0x1d549f4 xcalloc ../../gcc/libiberty/xmalloc.c:162 0xae35f6 xcallocator<tree_node*>::data_alloc(unsigned long) ../../gcc/gcc/hash-table.h:275 0xae35f6 hash_table<default_hash_traits<tree_node*>, false, xcallocator>::alloc_entries(unsigned long) const ../../gcc/gcc/hash-table.h:711 0xae35f6 hash_table<default_hash_traits<tree_node*>, false, xcallocator>::hash_table(unsigned long, bool, bool, bool, mem_alloc_origin) ../../gcc/gcc/hash-table.h:628 0xae3d50 hash_set<tree_node*, false, default_hash_traits<tree_node*> >::hash_set(unsigned long, bool) ../../gcc/gcc/hash-set.h:41 0xae3d50 for_each_template_parm ../../gcc/gcc/cp/pt.c:10564 0xac06cc cp_parser_type_id_1 ../../gcc/gcc/cp/parser.c:23221 0xac2be3 cp_parser_template_type_arg ../../gcc/gcc/cp/parser.c:23275 0xac2d0f cp_parser_template_argument ../../gcc/gcc/cp/parser.c:17915 0xac2d0f cp_parser_template_argument_list ../../gcc/gcc/cp/parser.c:17826 0xac2d0f cp_parser_enclosed_template_argument_list ../../gcc/gcc/cp/parser.c:30799 0xac4066 cp_parser_template_id ../../gcc/gcc/cp/parser.c:17398 0xac47fb cp_parser_class_name ../../gcc/gcc/cp/parser.c:24692 0xabbcaa cp_parser_qualifying_entity ../../gcc/gcc/cp/parser.c:7002 0xabbcaa cp_parser_nested_name_specifier_opt ../../gcc/gcc/cp/parser.c:6684 0xad1554 cp_parser_simple_type_specifier ../../gcc/gcc/cp/parser.c:18858 0xaaff1d cp_parser_type_specifier ../../gcc/gcc/cp/parser.c:18516 0xac1f73 cp_parser_type_specifier_seq ../../gcc/gcc/cp/parser.c:23367 0xac05f4 cp_parser_type_id_1 ../../gcc/gcc/cp/parser.c:23170 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/99737] [modules] malloc(): smallbin double linked list corrupted 2021-03-23 20:14 [Bug c++/99737] New: [modules] malloc(): smallbin double linked list corrupted alexander.lelyakin at googlemail dot com ` (3 preceding siblings ...) 2021-04-01 5:30 ` alexander.lelyakin at googlemail dot com @ 2021-12-30 16:09 ` pinskia at gcc dot gnu.org 2024-03-07 19:56 ` ppalka at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-12-30 16:09 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99737 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Dup of bug 99479. *** This bug has been marked as a duplicate of bug 99479 *** ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/99737] [modules] malloc(): smallbin double linked list corrupted 2021-03-23 20:14 [Bug c++/99737] New: [modules] malloc(): smallbin double linked list corrupted alexander.lelyakin at googlemail dot com ` (4 preceding siblings ...) 2021-12-30 16:09 ` pinskia at gcc dot gnu.org @ 2024-03-07 19:56 ` ppalka at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: ppalka at gcc dot gnu.org @ 2024-03-07 19:56 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99737 Bug 99737 depends on bug 94476, which changed state. Bug 94476 Summary: NSDMI deferred parse https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94476 What |Removed |Added ---------------------------------------------------------------------------- Status|SUSPENDED |RESOLVED Resolution|--- |FIXED ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-03-07 19:56 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-03-23 20:14 [Bug c++/99737] New: [modules] malloc(): smallbin double linked list corrupted alexander.lelyakin at googlemail dot com 2021-03-27 12:23 ` [Bug c++/99737] " alexander.lelyakin at googlemail dot com 2021-03-27 19:44 ` alexander.lelyakin at googlemail dot com 2021-03-27 19:50 ` alexander.lelyakin at googlemail dot com 2021-04-01 5:30 ` alexander.lelyakin at googlemail dot com 2021-12-30 16:09 ` pinskia at gcc dot gnu.org 2024-03-07 19:56 ` ppalka at gcc dot gnu.org
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).