https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99855
--- Comment #3 from Alexander Lelyakin <alexander.lelyakin at googlemail dot com> --- malloc(): smallbin double linked list corrupted In file included from /usr/local/include/c++/11.0.1/filesystem:45: /usr/local/include/c++/11.0.1/bits/fs_path.h:94:62: internal compiler error: Aborted 94 | using __safe_iterator_traits = std::iterator_traits<_Iter>; | ^ 0x11016bf crash_signal ../../gcc/gcc/toplev.c:327 0x1d47750 xrealloc ../../gcc/libiberty/xmalloc.c:179 0xa6d663 void va_heap::reserve<tree_node*>(vec<tree_node*, va_heap, vl_embed>*&, unsigned int, bool) ../../gcc/gcc/vec.h:290 0xa6d663 vec<tree_node*, va_heap, vl_ptr>::reserve(unsigned int, bool) ../../gcc/gcc/vec.h:1778 0xa6d663 vec<tree_node*, va_heap, vl_ptr>::safe_push(tree_node* const&) ../../gcc/gcc/vec.h:1887 0xa6d663 trees_in::post_process(tree_node*) ../../gcc/gcc/cp/module.cc:2956 0xa6d663 trees_in::read_function_def(tree_node*, tree_node*) ../../gcc/gcc/cp/module.cc:11456 0xa6f7f1 module_state::read_cluster(unsigned int) ../../gcc/gcc/cp/module.cc:14806 0xa6fe6d module_state::load_section(unsigned int, binding_slot*) ../../gcc/gcc/cp/module.cc:18068 0xa6ff2f module_state::lazy_load(unsigned int, binding_slot*) ../../gcc/gcc/cp/module.cc:18726 0xa6a1b0 trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9661 0xa7047a trees_in::decl_container() ../../gcc/gcc/cp/module.cc:10271 0xa7047a trees_in::decl_value() ../../gcc/gcc/cp/module.cc:7887 0xa69347 trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9150 0xa6f96b module_state::read_cluster(unsigned int) ../../gcc/gcc/cp/module.cc:14797 0xa6fe6d module_state::load_section(unsigned int, binding_slot*) ../../gcc/gcc/cp/module.cc:18068 0xa6ff2f module_state::lazy_load(unsigned int, binding_slot*) ../../gcc/gcc/cp/module.cc:18726 0xa6a1b0 trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9661 0xa692b9 trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9200 0xa6b6c5 trees_in::core_vals(tree_node*) ../../gcc/gcc/cp/module.cc:6627 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.