Summary: | Crash when parsing the source code of LibreOffice | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Nicolas Christener <spammail> |
Component: | Language Support: CPP (Clang-based) | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | coopht, cpigat242, kalinichev.so.0, mail |
Priority: | NOR | Keywords: | investigated, triaged |
Version: | 4.90.90 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Nicolas Christener
2015-12-12 20:34:19 UTC
I'd suggest you to build the latest version of Clang from sources and see if this assert persists. If so try to find out what file is being parsed (e.g. add "qWarning() << m_environment.translationUnitUrl();" to ~ParseSessionData()), and then try to build a minimally reproducible test case and attach it here. Also you could build Clang in release mode without asserts, that should workaround this and other asserts that we trigger in Clang code base. Or you could disable "Schedule all project files for parsing" in Settings->Configure KDevelop->Projects, that will probably workaround the assert too. Setting this to NEEDSINFO, assuming it has been fixed in clang since. If not, please re-open it. It fails with clang/llvm-4.0 release and kdevelop/kdevplatfrom installed from git. It fails on parsing kdevplatform/plugins/subversion/kdevsvncpp/exception.cpp kdevelop: /var/tmp/portage/sys-devel/clang-4.0.0/work/x/y/cfe-4.0.0.src/lib/Sema/Sema.cpp:317: clang::Sema::~Sema(): Assertion `DelayedTypos.empty() && "Uncorrected typos!"' failed. Thread 17 "Queue(0x555555b" received signal SIGABRT, Aborted. [Switching to Thread 0x7fff7f7fe700 (LWP 16023)] 0x00007ffff146d03f in raise () from /lib64/libc.so.6 (gdb) bt #0 0x00007ffff146d03f in raise () from /lib64/libc.so.6 #1 0x00007ffff146e43a in abort () from /lib64/libc.so.6 #2 0x00007ffff1465e87 in ?? () from /lib64/libc.so.6 #3 0x00007ffff1465f32 in __assert_fail () from /lib64/libc.so.6 #4 0x00007fffacbc7f2a in clang::Sema::~Sema() () from /usr/lib64/llvm/4/lib64/../lib64/libclangSema.so.4 #5 0x00007fffadb15046 in clang::ASTUnit::~ASTUnit() () from /usr/lib64/llvm/4/lib64/../lib64/libclangFrontend.so.4 #6 0x00007fffadb15349 in clang::ASTUnit::~ASTUnit() () from /usr/lib64/llvm/4/lib64/../lib64/libclangFrontend.so.4 #7 0x00007fffae977c96 in clang_disposeTranslationUnit () from /usr/lib64/llvm/4/lib64/libclang.so.4 #8 0x00007fffaf594556 in ParseSessionData::~ParseSessionData (this=0x7fff7043d090, __in_chrg=<optimized out>) at ~/p/kde/src/extragear/kdevelop/kdevelop/languages/clang/duchain/parsesession.cpp:313 #9 0x00007fffaf5945ae in ParseSessionData::~ParseSessionData (this=0x7fff7043d090, __in_chrg=<optimized out>) at ~/p/kde/src/extragear/kdevelop/kdevelop/languages/clang/duchain/parsesession.cpp:314 #10 0x00007fffaf4e5169 in QExplicitlySharedDataPointer<ParseSessionData>::~QExplicitlySharedDataPointer (this=0x7fff7f7fdc30, __in_chrg=<optimized out>) at /usr/include/qt5/QtCore/qshareddata.h:165 #11 0x00007fffaf594998 in ParseSession::~ParseSession (this=0x7fff7f7fdc30, __in_chrg=<optimized out>) at ~/p/kde/src/extragear/kdevelop/kdevelop/languages/clang/duchain/parsesession.cpp:356 #12 0x00007fffb41f45bc in ClangParseJob::run (this=0x5555581e73e0) at ~/p/kde/src/extragear/kdevelop/kdevelop/languages/clang/clangparsejob.cpp:306 #13 0x00007fffee3693aa in ThreadWeaver::IdDecorator::run(QSharedPointer<ThreadWeaver::JobInterface>, ThreadWeaver::Thread*) () from /usr/lib64/libKF5ThreadWeaver.so.5 #14 0x00007fffee369948 in ThreadWeaver::Executor::run(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () from /usr/lib64/libKF5ThreadWeaver.so.5 #15 0x00007fffee3685c0 in ThreadWeaver::Job::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () from /usr/lib64/libKF5ThreadWeaver.so.5 #16 0x00007fffee3680d0 in ThreadWeaver::Thread::run() () from /usr/lib64/libKF5ThreadWeaver.so.5 #17 0x00007ffff218f28c in ?? () from /usr/lib64/libQt5Core.so.5 #18 0x00007fffeb96c394 in start_thread () from /lib64/libpthread.so.0 #19 0x00007ffff15225ef in clone () from /lib64/libc.so.6 (gdb) q The crash is reproduced when I remove svn_client.h header from my system. It is included via kdevsvncpp/exception.hpp (29: 'svn_client.h') which is included at /kdevsvncpp/exception.cpp:30 This bug has had its resolution changed, but accidentally has been left in NEEDSINFO status. I am thus closing this bug and setting the status as RESOLVED to reflect the resolution change. |