llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.81k stars 11.45k forks source link

Crash in Debian clang 10.0.1-++20210327072807+ef32c611aa21-1~exp1~20210327183412.212 #57313

Closed sethhillbrand closed 7 months ago

sethhillbrand commented 2 years ago
Stack dump:
0.  Program arguments: /usr/bin/clang++-10 -DDEBUG -DEESCHEMA -DGLM_FORCE_CTOR_INIT -DHAVE_STDINT_H -DKICAD_CONFIG_DIR=kicad -DKICAD_SCRIPTING_WXPYTHON -DKICAD_SIGNAL_INTEGRITY -DKICAD_SPICE -DKICAD_STDLIB_LIGHT_DEBUG -DKICAD_USE_VALGRIND -DWXUSINGDLL -DWX_COMPATIBILITY -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -I../../include -I../../eeschema/. -I../../common -I../../common/dialogs -I../../libs/sexpr/include -I. -I../../scripting -I/usr/include/ngspice -I../../eeschema/./dialogs -I../../eeschema/./libview -I../../eeschema/./symbol_editor -I../../eeschema/./tools -I../../eeschema/./widgets -I../../eeschema/netlist_exporters -I../../thirdparty/thread-pool -Ieeschema -I../../common/. -I../../thirdparty/pegtl -Icommon -I../../thirdparty/libcontext -I../../libs/kimath/include -I../../thirdparty/clipper -I../../thirdparty/other_math -I../../thirdparty/rtree -I../../libs/kiplatform/include -I../../thirdparty/fmt/include -Iinclude/gal/shaders -I../../thirdparty/nlohmann_json -I../../thirdparty/compoundfilereader -I../../kicad/pcm/dialogs -isystem ../../thirdparty/pybind11/include -isystem /usr/include/cairo -isystem /usr/local/include/pixman-1 -isystem /usr/include/freetype2 -isystem /usr/include/harfbuzz -isystem /usr/include/opencascade -isystem /usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -isystem /usr/include/wx-3.0 -isystem /usr/include/python3.9 -fstandalone-debug -pthread -Wall -Winconsistent-missing-override -Werror=vla -Wimplicit-fallthrough -Werror=return-type -Wshadow -Wsign-compare -Wmissing-field-initializers -Wempty-body -Wreorder -Wmismatched-tags -g3 -ggdb3 -Wp,-D_GLIBCXX_ASSERTIONS -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=c++17 -MD -MT eeschema/CMakeFiles/eeschema_kiface_objects.dir/netlist_exporters/netlist_exporter_spice.cpp.o -MF eeschema/CMakeFiles/eeschema_kiface_objects.dir/netlist_exporters/netlist_exporter_spice.cpp.o.d -o eeschema/CMakeFiles/eeschema_kiface_objects.dir/netlist_exporters/netlist_exporter_spice.cpp.o -c ../../eeschema/netlist_exporters/netlist_exporter_spice.cpp 
1.  <eof> parser at end of file
2.  ../../thirdparty/pegtl/pegtl/contrib/parse_tree.hpp:437:42: instantiating function definition 'tao::pegtl::parse_tree::parse<NETLIST_EXPORTER_SPICE_PARSER::textGrammar, NETLIST_EXPORTER_SPICE_PARSER::textSelector, nothing, normal, tao::pegtl::string_input<tao::pegtl::tracking_mode::eager, tao::pegtl::ascii::eol::lf_crlf, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > &>'
3.  ../../thirdparty/pegtl/pegtl/contrib/parse_tree.hpp:421:42: instantiating function definition 'tao::pegtl::parse_tree::parse<NETLIST_EXPORTER_SPICE_PARSER::textGrammar, tao::pegtl::parse_tree::node, textSelector, nothing, normal, tao::pegtl::string_input<tao::pegtl::tracking_mode::eager, tao::pegtl::ascii::eol::lf_crlf, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > &>'
4.  ../../thirdparty/pegtl/pegtl/contrib/../normal.hpp:93:33: instantiating function definition 'tao::pegtl::normal<NETLIST_EXPORTER_SPICE_PARSER::textGrammar>::match<tao::pegtl::apply_mode::action, tao::pegtl::rewind_mode::required, nothing, type, tao::pegtl::string_input<tao::pegtl::tracking_mode::eager, tao::pegtl::ascii::eol::lf_crlf, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, tao::pegtl::parse_tree::internal::state<tao::pegtl::parse_tree::node> &>'
5.  ../../thirdparty/pegtl/pegtl/match.hpp:42:33: instantiating function definition 'tao::pegtl::internal::match_no_control<NETLIST_EXPORTER_SPICE_PARSER::textGrammar, tao::pegtl::apply_mode::action, tao::pegtl::rewind_mode::required, nothing, type, tao::pegtl::string_input<tao::pegtl::tracking_mode::eager, tao::pegtl::ascii::eol::lf_crlf, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, tao::pegtl::parse_tree::internal::state<tao::pegtl::parse_tree::node> &>'
6.  ../../thirdparty/pegtl/pegtl/internal/seq.hpp:41:33: instantiating function definition 'tao::pegtl::internal::seq<tao::pegtl::internal::must<SPICE_GRAMMAR::spiceSource>, tao::pegtl::internal::must<tao::pegtl::eof> >::match<tao::pegtl::apply_mode::action, tao::pegtl::rewind_mode::required, nothing, type, tao::pegtl::string_input<tao::pegtl::tracking_mode::eager, tao::pegtl::ascii::eol::lf_crlf, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, tao::pegtl::parse_tree::internal::state<tao::pegtl::parse_tree::node> &>'
7.  ../../thirdparty/pegtl/pegtl/contrib/../normal.hpp:93:33: instantiating function definition 'tao::pegtl::normal<tao::pegtl::internal::must<SPICE_GRAMMAR::spiceSource> >::match<tao::pegtl::apply_mode::action, tao::pegtl::rewind_mode::active, nothing, type, tao::pegtl::string_input<tao::pegtl::tracking_mode::eager, tao::pegtl::ascii::eol::lf_crlf, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, tao::pegtl::parse_tree::internal::state<tao::pegtl::parse_tree::node> &>'
8.  ../../thirdparty/pegtl/pegtl/match.hpp:42:33: instantiating function definition 'tao::pegtl::internal::match_no_control<tao::pegtl::internal::must<SPICE_GRAMMAR::spiceSource>, tao::pegtl::apply_mode::action, tao::pegtl::rewind_mode::active, nothing, type, tao::pegtl::string_input<tao::pegtl::tracking_mode::eager, tao::pegtl::ascii::eol::lf_crlf, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, tao::pegtl::parse_tree::internal::state<tao::pegtl::parse_tree::node> &>'
9.  ../../thirdparty/pegtl/pegtl/internal/must.hpp:55:33: instantiating function definition 'tao::pegtl::internal::must<SPICE_GRAMMAR::spiceSource>::match<tao::pegtl::apply_mode::action, tao::pegtl::rewind_mode::active, nothing, type, tao::pegtl::string_input<tao::pegtl::tracking_mode::eager, tao::pegtl::ascii::eol::lf_crlf, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, tao::pegtl::parse_tree::internal::state<tao::pegtl::parse_tree::node> &>'
10. ../../thirdparty/pegtl/pegtl/contrib/../normal.hpp:93:33: instantiating function definition 'tao::pegtl::normal<SPICE_GRAMMAR::spiceSource>::match<tao::pegtl::apply_mode::action, tao::pegtl::rewind_mode::dontcare, nothing, type, tao::pegtl::string_input<tao::pegtl::tracking_mode::eager, tao::pegtl::ascii::eol::lf_crlf, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, tao::pegtl::parse_tree::internal::state<tao::pegtl::parse_tree::node> &>'
11. ../../thirdparty/pegtl/pegtl/match.hpp:42:33: instantiating function definition 'tao::pegtl::internal::match_no_control<SPICE_GRAMMAR::spiceSource, tao::pegtl::apply_mode::action, tao::pegtl::rewind_mode::dontcare, nothing, type, tao::pegtl::string_input<tao::pegtl::tracking_mode::eager, tao::pegtl::ascii::eol::lf_crlf, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, tao::pegtl::parse_tree::internal::state<tao::pegtl::parse_tree::node> &>'
12. ../../thirdparty/pegtl/pegtl/internal/star.hpp:40:33: instantiating function definition 'tao::pegtl::internal::star<SPICE_GRAMMAR::spiceUnit>::match<tao::pegtl::apply_mode::action, tao::pegtl::rewind_mode::dontcare, nothing, type, tao::pegtl::string_input<tao::pegtl::tracking_mode::eager, tao::pegtl::ascii::eol::lf_crlf, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, tao::pegtl::parse_tree::internal::state<tao::pegtl::parse_tree::node> &>'
13. ../../thirdparty/pegtl/pegtl/contrib/../normal.hpp:93:33: instantiating function definition 'tao::pegtl::normal<SPICE_GRAMMAR::spiceUnit>::match<tao::pegtl::apply_mode::action, tao::pegtl::rewind_mode::required, nothing, type, tao::pegtl::string_input<tao::pegtl::tracking_mode::eager, tao::pegtl::ascii::eol::lf_crlf, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, tao::pegtl::parse_tree::internal::state<tao::pegtl::parse_tree::node> &>'
14. ../../thirdparty/pegtl/pegtl/match.hpp:42:33: instantiating function definition 'tao::pegtl::internal::match_no_control<SPICE_GRAMMAR::spiceUnit, tao::pegtl::apply_mode::action, tao::pegtl::rewind_mode::required, nothing, type, tao::pegtl::string_input<tao::pegtl::tracking_mode::eager, tao::pegtl::ascii::eol::lf_crlf, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, tao::pegtl::parse_tree::internal::state<tao::pegtl::parse_tree::node> &>'
15. ../../thirdparty/pegtl/pegtl/internal/sor.hpp:57:33: instantiating function definition 'tao::pegtl::internal::sor<SPICE_GRAMMAR::modelUnit, SPICE_GRAMMAR::dotTitle, SPICE_GRAMMAR::dotInclude, SPICE_GRAMMAR::dotLine, SPICE_GRAMMAR::unknownLine>::match<tao::pegtl::apply_mode::action, tao::pegtl::rewind_mode::required, nothing, type, tao::pegtl::string_input<tao::pegtl::tracking_mode::eager, tao::pegtl::ascii::eol::lf_crlf, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, tao::pegtl::parse_tree::internal::state<tao::pegtl::parse_tree::node> &>'
16. ../../thirdparty/pegtl/pegtl/internal/sor.hpp:44:33: instantiating function definition 'tao::pegtl::internal::sor<SPICE_GRAMMAR::modelUnit, SPICE_GRAMMAR::dotTitle, SPICE_GRAMMAR::dotInclude, SPICE_GRAMMAR::dotLine, SPICE_GRAMMAR::unknownLine>::match<tao::pegtl::apply_mode::action, tao::pegtl::rewind_mode::required, nothing, type, 0, 1, 2, 3, 4, tao::pegtl::string_input<tao::pegtl::tracking_mode::eager, tao::pegtl::ascii::eol::lf_crlf, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, tao::pegtl::parse_tree::internal::state<tao::pegtl::parse_tree::node> &>'
17. ../../thirdparty/pegtl/pegtl/contrib/../normal.hpp:93:33: instantiating function definition 'tao::pegtl::normal<SPICE_GRAMMAR::dotInclude>::match<tao::pegtl::apply_mode::action, tao::pegtl::rewind_mode::required, nothing, type, tao::pegtl::string_input<tao::pegtl::tracking_mode::eager, tao::pegtl::ascii::eol::lf_crlf, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, tao::pegtl::parse_tree::internal::state<tao::pegtl::parse_tree::node> &>'
18. ../../thirdparty/pegtl/pegtl/match.hpp:42:33: instantiating function definition 'tao::pegtl::internal::match_no_control<SPICE_GRAMMAR::dotInclude, tao::pegtl::apply_mode::action, tao::pegtl::rewind_mode::required, nothing, type, tao::pegtl::string_input<tao::pegtl::tracking_mode::eager, tao::pegtl::ascii::eol::lf_crlf, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, tao::pegtl::parse_tree::internal::state<tao::pegtl::parse_tree::node> &>'
19. ../../thirdparty/pegtl/pegtl/internal/seq.hpp:41:33: instantiating function definition 'tao::pegtl::internal::seq<tao::pegtl::opt<SPICE_GRAMMAR::sep>, tao::pegtl::ascii::istring<'.', 'i', 'n', 'c', 'l', 'u', 'd', 'e'>, SPICE_GRAMMAR::sep, tao::pegtl::sor<tao::pegtl::seq<tao::pegtl::ascii::one<'\"'>, SPICE_GRAMMAR::dotIncludePathWithoutQuotes, tao::pegtl::ascii::one<'\"'> >, tao::pegtl::seq<tao::pegtl::ascii::one<'\''>, SPICE_GRAMMAR::dotIncludePathWithoutApostrophes, tao::pegtl::ascii::one<'\''> >, SPICE_GRAMMAR::dotIncludePath>, tao::pegtl::opt<SPICE_GRAMMAR::sep>, SPICE_GRAMMAR::newline>::match<tao::pegtl::apply_mode::action, tao::pegtl::rewind_mode::required, nothing, type, tao::pegtl::string_input<tao::pegtl::tracking_mode::eager, tao::pegtl::ascii::eol::lf_crlf, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, tao::pegtl::parse_tree::internal::state<tao::pegtl::parse_tree::node> &>'
20. ../../thirdparty/pegtl/pegtl/contrib/../normal.hpp:93:33: instantiating function definition 'tao::pegtl::normal<tao::pegtl::sor<tao::pegtl::seq<tao::pegtl::ascii::one<'\"'>, SPICE_GRAMMAR::dotIncludePathWithoutQuotes, tao::pegtl::ascii::one<'\"'> >, tao::pegtl::seq<tao::pegtl::ascii::one<'\''>, SPICE_GRAMMAR::dotIncludePathWithoutApostrophes, tao::pegtl::ascii::one<'\''> >, SPICE_GRAMMAR::dotIncludePath> >::match<tao::pegtl::apply_mode::action, tao::pegtl::rewind_mode::active, nothing, type, tao::pegtl::string_input<tao::pegtl::tracking_mode::eager, tao::pegtl::ascii::eol::lf_crlf, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, tao::pegtl::parse_tree::internal::state<tao::pegtl::parse_tree::node> &>'
21. ../../thirdparty/pegtl/pegtl/match.hpp:103:23: instantiating function definition 'tao::pegtl::match<tao::pegtl::sor<tao::pegtl::seq<tao::pegtl::ascii::one<'\"'>, SPICE_GRAMMAR::dotIncludePathWithoutQuotes, tao::pegtl::ascii::one<'\"'> >, tao::pegtl::seq<tao::pegtl::ascii::one<'\''>, SPICE_GRAMMAR::dotIncludePathWithoutApostrophes, tao::pegtl::ascii::one<'\''> >, SPICE_GRAMMAR::dotIncludePath>, tao::pegtl::apply_mode::action, tao::pegtl::rewind_mode::active, nothing, type, tao::pegtl::string_input<tao::pegtl::tracking_mode::eager, tao::pegtl::ascii::eol::lf_crlf, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, tao::pegtl::parse_tree::internal::state<tao::pegtl::parse_tree::node> &>'
22. ../../thirdparty/pegtl/pegtl/match.hpp:72:26: instantiating function definition 'tao::pegtl::internal::match_control_unwind<tao::pegtl::sor<tao::pegtl::seq<tao::pegtl::ascii::one<'\"'>, SPICE_GRAMMAR::dotIncludePathWithoutQuotes, tao::pegtl::ascii::one<'\"'> >, tao::pegtl::seq<tao::pegtl::ascii::one<'\''>, SPICE_GRAMMAR::dotIncludePathWithoutApostrophes, tao::pegtl::ascii::one<'\''> >, SPICE_GRAMMAR::dotIncludePath>, tao::pegtl::apply_mode::action, tao::pegtl::rewind_mode::active, nothing, type, tao::pegtl::string_input<tao::pegtl::tracking_mode::eager, tao::pegtl::ascii::eol::lf_crlf, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, tao::pegtl::parse_tree::internal::state<tao::pegtl::parse_tree::node> &>'
23. ../../thirdparty/pegtl/pegtl/contrib/../internal/has_unwind.hpp:18:26: instantiating variable definition 'tao::pegtl::internal::has_unwind<tao::pegtl::shuffle_states<tao::pegtl::parse_tree::internal::make_control<tao::pegtl::parse_tree::node, textSelector, normal>::state_handler<tao::pegtl::sor<tao::pegtl::seq<tao::pegtl::ascii::one<'\"'>, SPICE_GRAMMAR::dotIncludePathWithoutQuotes, tao::pegtl::ascii::one<'\"'> >, tao::pegtl::seq<tao::pegtl::ascii::one<'\''>, SPICE_GRAMMAR::dotIncludePathWithoutApostrophes, tao::pegtl::ascii::one<'\''> >, SPICE_GRAMMAR::dotIncludePath>, false, false>, tao::pegtl::internal::rotate_right<1> >, void, const tao::pegtl::string_input<tao::pegtl::tracking_mode::eager, tao::pegtl::ascii::eol::lf_crlf, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > &, tao::pegtl::parse_tree::internal::state<tao::pegtl::parse_tree::node> &>'
  #0 0x00007ff0796844bf llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/usr/lib/x86_64-linux-gnu/libLLVM-10.so.1+0xb354bf)
  #1 0x00007ff079682770 llvm::sys::RunSignalHandlers() (/usr/lib/x86_64-linux-gnu/libLLVM-10.so.1+0xb33770)
  #2 0x00007ff079683c0d llvm::sys::CleanupOnSignal(unsigned long) (/usr/lib/x86_64-linux-gnu/libLLVM-10.so.1+0xb34c0d)
  #3 0x00007ff0795d5c00 (/usr/lib/x86_64-linux-gnu/libLLVM-10.so.1+0xa86c00)
  #4 0x00007ff07feff140 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14140)
  #5 0x00007ff07e10d1f0 clang::LinkageComputer::mergeTemplateLV(clang::LinkageInfo&, clang::VarTemplateSpecializationDecl const*, clang::LVComputationKind) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0xa651f0)
  #6 0x00007ff07e10da95 clang::LinkageComputer::getLVForNamespaceScopeDecl(clang::NamedDecl const*, clang::LVComputationKind, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0xa65a95)
  #7 0x00007ff07e10cc4b clang::LinkageComputer::getLVForDecl(clang::NamedDecl const*, clang::LVComputationKind) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0xa64c4b)
  #8 0x00007ff07e10ee60 clang::NamedDecl::getLinkageInternal() const (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0xa66e60)
  #9 0x00007ff07e5b761c clang::Sema::CheckCompleteVariableDeclaration(clang::VarDecl*) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0xf0f61c)
 #10 0x00007ff07e5b65ea clang::Sema::AddInitializerToDecl(clang::Decl*, clang::Expr*, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0xf0e5ea)
 #11 0x00007ff07ea78ed2 clang::Sema::InstantiateVariableInitializer(clang::VarDecl*, clang::VarDecl*, clang::MultiLevelTemplateArgumentList const&) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d0ed2)
 #12 0x00007ff07ea7e348 clang::Sema::InstantiateVariableDefinition(clang::SourceLocation, clang::VarDecl*, bool, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d6348)
 #13 0x00007ff07e4aa55b clang::Sema::runWithSufficientStackSpace(clang::SourceLocation, llvm::function_ref<void ()>) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0xe0255b)
 #14 0x00007ff07e762e78 (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x10bae78)
 #15 0x00007ff07e7246a8 clang::Sema::BuildDeclRefExpr(clang::ValueDecl*, clang::QualType, clang::ExprValueKind, clang::DeclarationNameInfo const&, clang::NestedNameSpecifierLoc, clang::NamedDecl*, clang::SourceLocation, clang::TemplateArgumentListInfo const*) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x107c6a8)
 #16 0x00007ff07e7281c9 clang::Sema::BuildDeclarationNameExpr(clang::CXXScopeSpec const&, clang::DeclarationNameInfo const&, clang::NamedDecl*, clang::NamedDecl*, clang::TemplateArgumentListInfo const*, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x10801c9)
 #17 0x00007ff07e98d8e3 clang::Sema::BuildTemplateIdExpr(clang::CXXScopeSpec const&, clang::SourceLocation, clang::LookupResult&, bool, clang::TemplateArgumentListInfo const*) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x12e58e3)
 #18 0x00007ff07ea517b8 (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13a97b8)
 #19 0x00007ff07ea6329b (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13bb29b)
 #20 0x00007ff07ea606a1 (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13b86a1)
 #21 0x00007ff07ea5b87e (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13b387e)
 #22 0x00007ff07ea45b41 clang::Sema::SubstStmt(clang::Stmt*, clang::MultiLevelTemplateArgumentList const&) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x139db41)
 #23 0x00007ff07ea7c25c clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d425c)
 #24 0x00007ff07e4aa55b clang::Sema::runWithSufficientStackSpace(clang::SourceLocation, llvm::function_ref<void ()>) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0xe0255b)
 #25 0x00007ff07e9fe7ff clang::Sema::DeduceReturnType(clang::FunctionDecl*, clang::SourceLocation, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13567ff)
 #26 0x00007ff07e719a48 clang::Sema::DiagnoseUseOfDecl(clang::NamedDecl*, llvm::ArrayRef<clang::SourceLocation>, clang::ObjCInterfaceDecl const*, bool, bool, clang::ObjCInterfaceDecl*) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x1071a48)
 #27 0x00007ff07e91edee (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x1276dee)
 #28 0x00007ff07e91ed0c clang::Sema::BuildOverloadedCallExpr(clang::Scope*, clang::Expr*, clang::UnresolvedLookupExpr*, clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x1276d0c)
 #29 0x00007ff07e71f5a9 clang::Sema::BuildCallExpr(clang::Scope*, clang::Expr*, clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x10775a9)
 #30 0x00007ff07ea4db72 (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13a5b72)
 #31 0x00007ff07ea4477c clang::Sema::SubstInitializer(clang::Expr*, clang::MultiLevelTemplateArgumentList const&, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x139c77c)
 #32 0x00007ff07ea78d59 clang::Sema::InstantiateVariableInitializer(clang::VarDecl*, clang::VarDecl*, clang::MultiLevelTemplateArgumentList const&) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d0d59)
 #33 0x00007ff07ea6dbe5 clang::Sema::BuildVariableInstantiation(clang::VarDecl*, clang::VarDecl*, clang::MultiLevelTemplateArgumentList const&, llvm::SmallVector<clang::Sema::LateInstantiatedAttribute, 16u>*, clang::DeclContext*, clang::LocalInstantiationScope*, bool, clang::VarTemplateSpecializationDecl*) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13c5be5)
 #34 0x00007ff07ea6d450 clang::TemplateDeclInstantiator::VisitVarDecl(clang::VarDecl*, bool, llvm::ArrayRef<clang::BindingDecl*>*) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13c5450)
 #35 0x00007ff07ea7fb54 (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d7b54)
 #36 0x00007ff07e4aa55b clang::Sema::runWithSufficientStackSpace(clang::SourceLocation, llvm::function_ref<void ()>) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0xe0255b)
 #37 0x00007ff07ea7a29b clang::Sema::SubstDecl(clang::Decl*, clang::DeclContext*, clang::MultiLevelTemplateArgumentList const&) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d229b)
 #38 0x00007ff07ea6027b (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13b827b)
 #39 0x00007ff07ea5b87e (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13b387e)
 #40 0x00007ff07ea607cb (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13b87cb)
 #41 0x00007ff07ea5b87e (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13b387e)
 #42 0x00007ff07ea45b41 clang::Sema::SubstStmt(clang::Stmt*, clang::MultiLevelTemplateArgumentList const&) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x139db41)
 #43 0x00007ff07ea7c25c clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d425c)
 #44 0x00007ff07e4aa55b clang::Sema::runWithSufficientStackSpace(clang::SourceLocation, llvm::function_ref<void ()>) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0xe0255b)
 #45 0x00007ff07e9fe7ff clang::Sema::DeduceReturnType(clang::FunctionDecl*, clang::SourceLocation, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13567ff)
 #46 0x00007ff07e719a48 clang::Sema::DiagnoseUseOfDecl(clang::NamedDecl*, llvm::ArrayRef<clang::SourceLocation>, clang::ObjCInterfaceDecl const*, bool, bool, clang::ObjCInterfaceDecl*) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x1071a48)
 #47 0x00007ff07e91edee (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x1276dee)
 #48 0x00007ff07e91ed0c clang::Sema::BuildOverloadedCallExpr(clang::Scope*, clang::Expr*, clang::UnresolvedLookupExpr*, clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x1276d0c)
 #49 0x00007ff07e71f5a9 clang::Sema::BuildCallExpr(clang::Scope*, clang::Expr*, clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x10775a9)
 #50 0x00007ff07ea4db72 (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13a5b72)
 #51 0x00007ff07ea628b5 (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13ba8b5)
 #52 0x00007ff07ea5b87e (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13b387e)
 #53 0x00007ff07ea607cb (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13b87cb)
 #54 0x00007ff07ea5b87e (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13b387e)
 #55 0x00007ff07ea45b41 clang::Sema::SubstStmt(clang::Stmt*, clang::MultiLevelTemplateArgumentList const&) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x139db41)
 #56 0x00007ff07ea7c25c clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d425c)
 #57 0x00007ff07ea7e7ef clang::Sema::PerformPendingInstantiations(bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d67ef)
 #58 0x00007ff07ea7c3e9 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d43e9)
 #59 0x00007ff07ea7e7ef clang::Sema::PerformPendingInstantiations(bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d67ef)
 #60 0x00007ff07ea7c3e9 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d43e9)
 #61 0x00007ff07ea7e7ef clang::Sema::PerformPendingInstantiations(bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d67ef)
 #62 0x00007ff07ea7c3e9 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d43e9)
 #63 0x00007ff07ea7e7ef clang::Sema::PerformPendingInstantiations(bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d67ef)
 #64 0x00007ff07ea7c3e9 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d43e9)
 #65 0x00007ff07ea7e7ef clang::Sema::PerformPendingInstantiations(bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d67ef)
 #66 0x00007ff07ea7c3e9 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d43e9)
 #67 0x00007ff07ea7e7ef clang::Sema::PerformPendingInstantiations(bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d67ef)
 #68 0x00007ff07ea7c3e9 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d43e9)
 #69 0x00007ff07ea7e7ef clang::Sema::PerformPendingInstantiations(bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d67ef)
 #70 0x00007ff07ea7c3e9 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d43e9)
 #71 0x00007ff07ea7e7ef clang::Sema::PerformPendingInstantiations(bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d67ef)
 #72 0x00007ff07ea7c3e9 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d43e9)
 #73 0x00007ff07ea7e7ef clang::Sema::PerformPendingInstantiations(bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d67ef)
 #74 0x00007ff07ea7c3e9 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d43e9)
 #75 0x00007ff07ea7e7ef clang::Sema::PerformPendingInstantiations(bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d67ef)
 #76 0x00007ff07ea7c3e9 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d43e9)
 #77 0x00007ff07ea7e7ef clang::Sema::PerformPendingInstantiations(bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d67ef)
 #78 0x00007ff07ea7c3e9 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d43e9)
 #79 0x00007ff07ea7e7ef clang::Sema::PerformPendingInstantiations(bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d67ef)
 #80 0x00007ff07ea7c3e9 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d43e9)
 #81 0x00007ff07ea7e7ef clang::Sema::PerformPendingInstantiations(bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d67ef)
 #82 0x00007ff07ea7c3e9 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d43e9)
 #83 0x00007ff07ea7e7ef clang::Sema::PerformPendingInstantiations(bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d67ef)
 #84 0x00007ff07ea7c3e9 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d43e9)
 #85 0x00007ff07ea7e7ef clang::Sema::PerformPendingInstantiations(bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d67ef)
 #86 0x00007ff07ea7c3e9 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d43e9)
 #87 0x00007ff07ea7e7ef clang::Sema::PerformPendingInstantiations(bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d67ef)
 #88 0x00007ff07ea7c3e9 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d43e9)
 #89 0x00007ff07ea7e7ef clang::Sema::PerformPendingInstantiations(bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d67ef)
 #90 0x00007ff07ea7c3e9 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d43e9)
 #91 0x00007ff07ea7e7ef clang::Sema::PerformPendingInstantiations(bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d67ef)
 #92 0x00007ff07ea7c3e9 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d43e9)
 #93 0x00007ff07ea7e7ef clang::Sema::PerformPendingInstantiations(bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x13d67ef)
 #94 0x00007ff07e4abdb8 clang::Sema::ActOnEndOfTranslationUnitFragment(clang::Sema::TUFragmentKind) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0xe03db8)
 #95 0x00007ff07e4ac17b clang::Sema::ActOnEndOfTranslationUnit() (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0xe0417b)
 #96 0x00007ff07dfd8829 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x930829)
 #97 0x00007ff07df32ffd clang::ParseAST(clang::Sema&, bool, bool) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x88affd)
 #98 0x00007ff07f3adeb8 clang::FrontendAction::Execute() (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x1d05eb8)
 #99 0x00007ff07f3668c1 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x1cbe8c1)
#100 0x00007ff07f41290f clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x1d6a90f)
#101 0x0000000000412e3d cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang++-10+0x412e3d)
#102 0x0000000000411151 (/usr/bin/clang++-10+0x411151)
#103 0x00007ff07f0b5a22 (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x1a0da22)
#104 0x00007ff0795d5a07 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/usr/lib/x86_64-linux-gnu/libLLVM-10.so.1+0xa86a07)
#105 0x00007ff07f0b4f5f clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x1a0cf5f)
#106 0x00007ff07f08d2ff clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x19e52ff)
#107 0x00007ff07f08d4aa clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x19e54aa)
#108 0x00007ff07f0a088c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/usr/lib/x86_64-linux-gnu/libclang-cpp.so.10+0x19f888c)
#109 0x0000000000410bcf main (/usr/bin/clang++-10+0x410bcf)
#110 0x00007ff078683d0a __libc_start_main ./csu/../csu/libc-start.c:308:16
#111 0x000000000040e36a _start (/usr/bin/clang++-10+0x40e36a)
clang: error: clang frontend command failed due to signal (use -v to see invocation)

netlist_exporter_spice-4a7c4c.sh.zip

llvmbot commented 2 years ago

@llvm/issue-subscribers-clang-frontend

EugeneZelenko commented 2 years ago

Could you please try main branch or 15? https://godbolt.org should be helpful.

sethhillbrand commented 2 years ago

@EugeneZelenko It only happened once. I run it on this code base multiple times per day and have never seen the issue before. I only report it here b/c the output asked for the report files.

Feel free to close if this is not useful

cor3ntin commented 7 months ago

I was not able to reproduce locally on clang 13+ ( I don't have older compilers locally)