Skip to content

ccls crash and its continuous  #492

@sudurais

Description

@sudurais

I've source code file that makes ccls to crash continuous and the stack trace is here. Is it ccls specific bug or llvm ?.

Thanks,

#0 0x000000000141e75a llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/ccls/Release/ccls.exe+0x141e75a)
#1 0x000000000141ce64 llvm::sys::RunSignalHandlers() (/ccls/Release/ccls.exe+0x141ce64)
#2 0x000000000141cf92 SignalHandler(int) (/ccls/Release/ccls.exe+0x141cf92)
#3 0x00007f6a19b305e0 __restore_rt (/lib64/libpthread.so.0+0xf5e0)
#4 0x0000000000b40fec checkMemberDecomposition(clang::Sema&, llvm::ArrayRef<clang::BindingDecl*>, clang::ValueDecl*, clang::QualType, clang::CXXRecordDecl const*) (/ccls/Release/ccls.exe+0xb40fec)
#5 0x0000000000b421fd clang::Sema::CheckCompleteDecompositionDeclaration(clang::DecompositionDecl*) (/ccls/Release/ccls.exe+0xb421fd)
#6 0x0000000000a90f5b clang::Sema::CheckCompleteVariableDeclaration(clang::VarDecl*) (/ccls/Release/ccls.exe+0xa90f5b)
#7 0x0000000000a92424 clang::Sema::AddInitializerToDecl(clang::Decl*, clang::Expr*, bool) (/ccls/Release/ccls.exe+0xa92424)
#8 0x0000000000daddc6 clang::Sema::BuildCXXForRangeStmt(clang::SourceLocation, clang::SourceLocation, clang::Stmt*, clang::SourceLocation, clang::Stmt*, clang::Stmt*, clang::Stmt*, clang::Expr*, clang::Expr*, clang::Stmt*, clang::SourceLocation, clang::Sema::BuildForRangeKind) (/ccls/Release/ccls.exe+0xdaddc6)
#9 0x0000000000dad9b9 clang::Sema::ActOnCXXForRangeStmt(clang::Scope*, clang::SourceLocation, clang::SourceLocation, clang::Stmt*, clang::Stmt*, clang::SourceLocation, clang::Expr*, clang::SourceLocation, clang::Sema::BuildForRangeKind) (/ccls/Release/ccls.exe+0xdad9b9)
#10 0x000000000083f0b4 clang::Parser::ParseForStatement(clang::SourceLocation*) (/ccls/Release/ccls.exe+0x83f0b4)
#11 0x000000000083aa9b clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::AllowedConstructsKind, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&) (/ccls/Release/ccls.exe+0x83aa9b)
#12 0x000000000083c419 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::AllowedConstructsKind, clang::SourceLocation*) (/ccls/Release/ccls.exe+0x83c419)
#13 0x0000000000841279 clang::Parser::ParseCompoundStatementBody(bool) (/ccls/Release/ccls.exe+0x841279)
#14 0x0000000000843dcd clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) (/ccls/Release/ccls.exe+0x843dcd)
#15 0x00000000007b71d8 clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) (/ccls/Release/ccls.exe+0x7b71d8)
#16 0x00000000007d75d9 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::SourceLocation*, clang::Parser::ForRangeInit*) (/ccls/Release/ccls.exe+0x7d75d9)
#17 0x00000000007af7c9 clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec&, clang::AccessSpecifier) (/ccls/Release/ccls.exe+0x7af7c9)
#18 0x00000000007b0181 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*, clang::AccessSpecifier) (.part.173) (/ccls/Release/ccls.exe+0x7b0181)
#19 0x00000000007b5b7e clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) (/ccls/Release/ccls.exe+0x7b5b7e)
#20 0x00000000007e83e6 clang::Parser::ParseInnerNamespace(llvm::SmallVector<clang::Parser::InnerNamespaceInfo, 4u> const&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) (/ccls/Release/ccls.exe+0x7e83e6)
#21 0x00000000007e8fde clang::Parser::ParseNamespace(clang::DeclaratorContext, clang::SourceLocation&, clang::SourceLocation) (/ccls/Release/ccls.exe+0x7e8fde)
#22 0x00000000007da681 clang::Parser::ParseDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) (/ccls/Release/ccls.exe+0x7da681)
#23 0x00000000007b5ba2 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) (/ccls/Release/ccls.exe+0x7b5ba2)
#24 0x00000000007b6789 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) (/ccls/Release/ccls.exe+0x7b6789)
#25 0x00000000007b6980 clang::Parser::ParseFirstTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) (/ccls/Release/ccls.exe+0x7b6980)
#26 0x00000000007aba0b clang::ParseAST(clang::Sema&, bool, bool) (/ccls/Release/ccls.exe+0x7aba0b)
#27 0x00000000007147b6 clang::FrontendAction::Execute() (/ccls/Release/ccls.exe+0x7147b6)
#28 0x000000000052c44d ccls::(anonymous namespace)::parse(clang::CompilerInstance&) /ccls/src/sema_manager.cc:349:0
#29 0x000000000052e971 ccls::(anonymous namespace)::diagnosticMain(void*) /ccls/src/sema_manager.cc:595:0
#30 0x00007f6a19b28e25 start_thread /usr/src/debug/glibc-2.17-c758a686/nptl/pthread_create.c:308:0
#31 0x00007f6a1903634d __clone /usr/src/debug////////glibc-2.17-c758a686/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:115:0

Process ccls stderr finished

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions