From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8D7A73857829; Tue, 23 Mar 2021 20:14:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8D7A73857829 From: "alexander.lelyakin at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99737] New: [modules] malloc(): smallbin double linked list corrupted Date: Tue, 23 Mar 2021 20:14:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alexander.lelyakin at googlemail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Tue, 23 Mar 2021 20:14:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99737 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=3Dc++20 -fmodules-ts -x c++-system-header sstream /usr/local/bin/g++ -std=3Dc++20 -fmodules-ts -x c++-system-header cstring /usr/local/bin/g++ -std=3Dc++20 -fmodules-ts -x c++-system-header locale /usr/local/bin/g++ -std=3Dc++20 -fmodules-ts -x c++-system-header numeric /usr/local/bin/g++ -std=3Dc++20 -fmodules-ts -x c++-system-header limits /usr/local/bin/g++ -std=3Dc++20 -fmodules-ts -x c++-system-header string_vi= ew /usr/local/bin/g++ -std=3Dc++20 -fmodules-ts -x c++-system-header cuchar /usr/local/bin/g++ -std=3Dc++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 =3D _Require>> | ^~ 0x110107f crash_signal ../../gcc/gcc/toplev.c:327 0x1d46680 xrealloc ../../gcc/libiberty/xmalloc.c:179 0xa6d283 void va_heap::reserve(vec*&, unsigned int, bool) ../../gcc/gcc/vec.h:290 0xa6d283 vec::reserve(unsigned int, bool) ../../gcc/gcc/vec.h:1778 0xa6d283 vec::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_nod= e*, 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 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.=