https://bugs.kde.org/show_bug.cgi?id=385768

            Bug ID: 385768
           Summary: segfault on parsing project: in
                    clang::Decl::setInvalidDecl(bool) () from
                    /usr/lib64/llvm/5/lib64/../lib64/libclangAST.so.5
           Product: kdevelop
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Language Support: CPP (Clang-based)
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

When loading digikam sourcecode into kdevelop, it dies with this segfault:

Thread 287 "Queue(0x123c740" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f57e119f700 (LWP 5956)]
0x00007f57f85566e0 in clang::Decl::setInvalidDecl(bool) () from
/usr/lib64/llvm/5/lib64/../lib64/libclangAST.so.5
(gdb) bt
#0  0x00007f57f85566e0 in clang::Decl::setInvalidDecl(bool) () from
/usr/lib64/llvm/5/lib64/../lib64/libclangAST.so.5
#1  0x00007f57f855672c in clang::Decl::setInvalidDecl(bool) () from
/usr/lib64/llvm/5/lib64/../lib64/libclangAST.so.5
#2  0x00007f57f0687990 in clang::ASTDeclReader::VisitDecl(clang::Decl*) () from
/usr/lib64/llvm/5/lib64/../lib64/../lib64/libclangSerialization.so.5
#3  0x00007f57f0688261 in
clang::ASTDeclReader::VisitNamedDecl(clang::NamedDecl*) () from
/usr/lib64/llvm/5/lib64/../lib64/../lib64/libclangSerialization.so.5
#4  0x00007f57f06887c1 in
clang::ASTDeclReader::VisitValueDecl(clang::ValueDecl*) () from
/usr/lib64/llvm/5/lib64/../lib64/../lib64/libclangSerialization.so.5
#5  0x00007f57f0688827 in
clang::ASTDeclReader::VisitDeclaratorDecl(clang::DeclaratorDecl*) () from
/usr/lib64/llvm/5/lib64/../lib64/../lib64/libclangSerialization.so.5
#6  0x00007f57f069580e in
clang::ASTDeclReader::VisitVarDeclImpl(clang::VarDecl*) () from
/usr/lib64/llvm/5/lib64/../lib64/../lib64/libclangSerialization.so.5
#7  0x00007f57f0695e83 in
clang::ASTDeclReader::VisitDecompositionDecl(clang::DecompositionDecl*) () from
/usr/lib64/llvm/5/lib64/../lib64/../lib64/libclangSerialization.so.5
#8  0x00007f57f069f54d in clang::ASTDeclReader::Visit(clang::Decl*) () from
/usr/lib64/llvm/5/lib64/../lib64/../lib64/libclangSerialization.so.5
#9  0x00007f57f069fcd2 in clang::ASTReader::ReadDeclRecord(unsigned int) ()
from /usr/lib64/llvm/5/lib64/../lib64/../lib64/libclangSerialization.so.5
#10 0x00007f57f064e495 in clang::ASTReader::GetDecl(unsigned int) () from
/usr/lib64/llvm/5/lib64/../lib64/../lib64/libclangSerialization.so.5
#11 0x00007f57f0675cbb in clang::ASTReader::PassInterestingDeclsToConsumer() ()
from /usr/lib64/llvm/5/lib64/../lib64/../lib64/libclangSerialization.so.5
#12 0x00007f57f061c435 in
clang::ASTReader::StartTranslationUnit(clang::ASTConsumer*) () from
/usr/lib64/llvm/5/lib64/../lib64/../lib64/libclangSerialization.so.5
#13 0x00007f57f0985b25 in clang::ParseAST(clang::Sema&, bool, bool) () from
/usr/lib64/llvm/5/lib64/../lib64/../lib64/libclangParse.so.5
#14 0x00007f57f8143ae6 in clang::FrontendAction::Execute() () from
/usr/lib64/llvm/5/lib64/../lib64/libclangFrontend.so.5
#15 0x00007f57f80e8dfe in
clang::ASTUnit::Parse(std::shared_ptr<clang::PCHContainerOperations>,
std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer> >,
llvm::IntrusiveRefCntPtr<clang::vfs::FileSystem>) ()
   from /usr/lib64/llvm/5/lib64/../lib64/libclangFrontend.so.5
#16 0x00007f57f80e951a in
clang::ASTUnit::LoadFromCompilerInvocation(std::shared_ptr<clang::PCHContainerOperations>,
unsigned int, llvm::IntrusiveRefCntPtr<clang::vfs::FileSystem>) () from
/usr/lib64/llvm/5/lib64/../lib64/libclangFrontend.so.5
#17 0x00007f57f80ef558 in clang::ASTUnit::LoadFromCommandLine(char const**,
char const**, std::shared_ptr<clang::PCHContainerOperations>,
llvm::IntrusiveRefCntPtr<clang::DiagnosticsEngine>, llvm::StringRef, bool,
bool, llvm::ArrayRef<std::pair<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >, llvm::MemoryBuffer*> >, bool,
unsigned int, clang::TranslationUnitKind, bool, bool, bool, bool, bool, bool,
bool, llvm::Optional<llvm::StringRef>, std::unique_ptr<clang::ASTUnit,
std::default_delete<clang::ASTUnit> >*,
llvm::IntrusiveRefCntPtr<clang::vfs::FileSystem>) () from
/usr/lib64/llvm/5/lib64/../lib64/libclangFrontend.so.5
#18 0x00007f57f896fd73 in ?? () from /usr/lib64/llvm/5/lib64/libclang.so.5
#19 0x00007f584a1274c3 in
llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) () from
/usr/lib/llvm/5/lib64/libLLVMSupport.so.5
#20 0x00007f584a1275c4 in ?? () from /usr/lib/llvm/5/lib64/libLLVMSupport.so.5
#21 0x00007f584a1a167d in ?? () from /usr/lib/llvm/5/lib64/libLLVMSupport.so.5
#22 0x00007f587217e8aa in start_thread (arg=0x7f57e119f700) at
pthread_create.c:465
#23 0x00007f58785b70bf in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to