HighCommander4 wrote: Haven't had a chance to look at the updates in detail yet but I did try the latest version on a real codebase and it's still crashy for me. No stack overflow this time, rather I get a crash with this backtrace:
``` #4 0x00007faf511d4ba2 clang::clangd::SymbolCollector::handleDeclOccurrence(clang::Decl const*, unsigned int, llvm::ArrayRef<clang::index::SymbolRelation>, clang::SourceLocation, clang::index::IndexDataConsumer::ASTNodeInfo)::$_0::operator()(clang::NamedDecl const*) const SymbolCollector.cpp:0:0 #5 0x00007faf511d490f clang::clangd::SymbolCollector::handleDeclOccurrence(clang::Decl const*, unsigned int, llvm::ArrayRef<clang::index::SymbolRelation>, clang::SourceLocation, clang::index::IndexDataConsumer::ASTNodeInfo) (libclangDaemon.so.22.0git+0x5d490f) #6 0x00007faf4d80c29c clang::index::IndexingContext::handleDeclOccurrence(clang::Decl const*, clang::SourceLocation, bool, clang::Decl const*, unsigned int, llvm::ArrayRef<clang::index::SymbolRelation>, clang::Expr const*, clang::Decl const*, clang::DeclContext const*) (../lib/libclangIndex.so.22.0git+0x5329c) #7 0x00007faf4d80c345 clang::index::IndexingContext::handleReference(clang::NamedDecl const*, clang::SourceLocation, clang::NamedDecl const*, clang::DeclContext const*, unsigned int, llvm::ArrayRef<clang::index::SymbolRelation>, clang::Expr const*) (../lib/libclangIndex.so.22.0git+0x53345) #8 0x00007faf4d7ebf7e clang::RecursiveASTVisitor<(anonymous namespace)::BodyIndexer>::TraverseMemberExpr(clang::MemberExpr*, llvm::SmallVectorImpl<llvm::PointerIntPair<clang::Stmt*, 1u, bool, llvm::PointerLikeTypeTraits<clang::Stmt*>, llvm::PointerIntPairInfo<clang::Stmt*, 1u, llvm::PointerLikeTypeTraits<clang::Stmt*>>>>*) IndexBody.cpp:0:0 #9 0x00007faf4d7e7028 clang::RecursiveASTVisitor<(anonymous namespace)::BodyIndexer>::TraverseStmt(clang::Stmt*, llvm::SmallVectorImpl<llvm::PointerIntPair<clang::Stmt*, 1u, bool, llvm::PointerLikeTypeTraits<clang::Stmt*>, llvm::PointerIntPairInfo<clang::Stmt*, 1u, llvm::PointerLikeTypeTraits<clang::Stmt*>>>>*) IndexBody.cpp:0:0 #10 0x00007faf4d7e6a39 clang::index::IndexingContext::indexBody(clang::Stmt const*, clang::NamedDecl const*, clang::DeclContext const*) (../lib/libclangIndex.so.22.0git+0x2da39) #11 0x00007faf4d807a0e (anonymous namespace)::IndexingDeclVisitor::VisitFunctionDecl(clang::FunctionDecl const*) IndexDecl.cpp:0:0 #12 0x00007faf4d8064d9 clang::index::IndexingContext::indexDecl(clang::Decl const*) (../lib/libclangIndex.so.22.0git+0x4d4d9) #13 0x00007faf4d8066e0 clang::index::IndexingContext::indexTopLevelDecl(clang::Decl const*) (../lib/libclangIndex.so.22.0git+0x4d6e0) #14 0x00007faf4d80aa6c (anonymous namespace)::IndexASTConsumer::HandleTranslationUnit(clang::ASTContext&) IndexingAction.cpp:0:0 #15 0x00007faf4bb28989 clang::ParseAST(clang::Sema&, bool, bool) (../lib/../lib/libclangParse.so.22.0git+0x58989) #16 0x00007faf4df8c4bd clang::FrontendAction::Execute() (../lib/libclangFrontend.so.22.0git+0x18c4bd) #17 0x00007faf5119e400 clang::clangd::BackgroundIndex::index(clang::tooling::CompileCommand) (libclangDaemon.so.22.0git+0x59e400) ``` https://github.com/llvm/llvm-project/pull/169742 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
