Bug 383612 - sigsegv on opening file
Summary: sigsegv on opening file
Status: RESOLVED DUPLICATE of bug 372215
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (Clang-based) (show other bugs)
Version: 5.1.1
Platform: Appimage Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-16 22:54 UTC by programmerjake
Modified: 2017-08-17 07:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
file which causes crash (7.50 KB, text/x-chdr)
2017-08-16 22:54 UTC, programmerjake
Details
backtrace for all threads (30.68 KB, text/plain)
2017-08-16 22:57 UTC, programmerjake
Details

Note You need to log in before you can comment on or make changes to this bug.
Description programmerjake 2017-08-16 22:54:17 UTC
Created attachment 107319 [details]
file which causes crash

KDevelop crashes on opening the attached file. It appears to be a clang parsing bug.
Comment 1 programmerjake 2017-08-16 22:57:55 UTC
Created attachment 107320 [details]
backtrace for all threads

the crash occurred in thread 9
Comment 2 Kevin Funk 2017-08-17 07:16:11 UTC
Adding excerpt of backtrace of thread 9 for better SEO:

Thread 9 (Thread 0x7f93dc9ed700 (LWP 23966)):
#0  0x00007f93d5619b8a in clang::cxcursor::MakeCXCursor(clang::Stmt const*, clang::Decl const*, CXTranslationUnitImpl*, clang::SourceRange) () from /tmp/.mount_n62Bow/usr/lib/libclang.so.3.9
#1  0x00007f93d5608f62 in clang::cxcursor::CursorVisitor::VisitStaticAssertDecl(clang::StaticAssertDecl*) () from /tmp/.mount_n62Bow/usr/lib/libclang.so.3.9
#2  0x00007f93d5601973 in clang::cxcursor::CursorVisitor::VisitChildren(CXCursor) () from /tmp/.mount_n62Bow/usr/lib/libclang.so.3.9
#3  0x00007f93d5601e2d in clang::cxcursor::CursorVisitor::Visit(CXCursor, bool) () from /tmp/.mount_n62Bow/usr/lib/libclang.so.3.9
#4  0x00007f93d5608c6c in clang::cxcursor::CursorVisitor::RunVisitorWorkList(llvm::SmallVector<clang::cxcursor::VisitorJob, 10u>&) () from /tmp/.mount_n62Bow/usr/lib/libclang.so.3.9
#5  0x00007f93d560168b in clang::cxcursor::CursorVisitor::Visit(clang::Stmt const*) () from /tmp/.mount_n62Bow/usr/lib/libclang.so.3.9
#6  0x00007f93d5601897 in clang::cxcursor::CursorVisitor::VisitChildren(CXCursor) () from /tmp/.mount_n62Bow/usr/lib/libclang.so.3.9
#7  0x00007f93d560a2e1 in clang_visitChildren () from /tmp/.mount_n62Bow/usr/lib/libclang.so.3.9
#8  0x00007f93dea11e97 in (anonymous namespace)::Visitor::buildCompoundStatement(CXCursor) () from /tmp/.mount_n62Bow/usr/lib/libKDevClangPrivate.so.27
#9  0x00007f93dea141e6 in (anonymous namespace)::visitCursor(CXCursor, CXCursor, void*) () from /tmp/.mount_n62Bow/usr/lib/libKDevClangPrivate.so.27
#10 0x00007f93d5601dfd in clang::cxcursor::CursorVisitor::Visit(CXCursor, bool) () from /tmp/.mount_n62Bow/usr/lib/libclang.so.3.9
#11 0x00007f93d56092ce in clang::cxcursor::CursorVisitor::VisitFunctionDecl(clang::FunctionDecl*) () from /tmp/.mount_n62Bow/usr/lib/libclang.so.3.9
#12 0x00007f93d5601973 in clang::cxcursor::CursorVisitor::VisitChildren(CXCursor) () from /tmp/.mount_n62Bow/usr/lib/libclang.so.3.9
#13 0x00007f93d560a2e1 in clang_visitChildren () from /tmp/.mount_n62Bow/usr/lib/libclang.so.3.9
#14 0x00007f93dea2ef77 in CXChildVisitResult (anonymous namespace)::Visitor::buildDeclaration<(CXCursorKind)30, KDevelop::FunctionDefinition, true>(CXCursor) () from /tmp/.mount_n62Bow/usr/lib/libKDevClangPrivate.so.27
Comment 3 Kevin Funk 2017-08-17 07:17:37 UTC
The problem is the `static_assert(...)` in that file. A duplicate of bug 372215.

*** This bug has been marked as a duplicate of bug 372215 ***