Bug 355685 - KDevelop C++ parser crash [DeclarationBuilder::closeDeclaration]
Summary: KDevelop C++ parser crash [DeclarationBuilder::closeDeclaration]
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: unspecified
Platform: Compiled Sources macOS
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: drkonqi
: 353863 357358 362413 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-11-21 11:12 UTC by RJVB
Modified: 2016-09-08 19:37 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.7.3
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (30.23 KB, text/plain)
2015-11-27 13:45 UTC, RJVB
Details
New crash information added by DrKonqi (222.16 KB, text/plain)
2016-05-20 08:43 UTC, gnux83
Details

Note You need to log in before you can comment on or make changes to this bug.
Description RJVB 2015-11-21 11:12:55 UTC
Application: kdevelop (4.7.2)
KDE Platform Version: 4.14.14 (Compiled from sources)
Qt Version: 4.8.7
Operating System: Darwin 13.4.0 x86_64
Distribution (Platform): MacPorts Packages

-- Information about the crash:
- What I was doing when the application crashed:

I opened a session containing several projects, one I closed successfully yesterday. 51% into reparsing the code I got the crash and attached backtrace (thread 9 is the culprit), and saw this on the calling terminal:

kdevelop(30689)/kdevelop (cpp duchain) ContextBuilder::buildContexts: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string" Previous parameter declaration context didn't get used?? 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 4522 6037 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 3942 6037 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 3572 6037 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 3066 6037 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 4523 6037 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 3943 6037 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 3573 6037 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 3067 6037 0 
kdevelop(30689)/kdevelop (cpp support) *Cpp::instantiateDeclarationAndContext: Resolved bad base-class "QStringBuilderBase< QStringBuilder< A, B >, QtStringBuilder::ConvertToTypeHelper< QConcatenable< A >::ConvertTo, QConcatenable< B >::ConvertTo >::ConvertTo >" "QStringBuilderBase< QStringBuilder< A, B >, QtStringBuilder::ConvertToTypeHelper< QConcatenable< A >::ConvertTo, QConcatenable< B >::ConvertTo >::ConvertTo >" 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 10246 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 8080 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 6711 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 6039 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 5131 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 10248 11086 0 
[snip]
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 8453 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 7084 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 6412 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 5504 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 10621 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 8455 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 7086 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 6414 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 5506 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 10623 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 8457 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 7088 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 6416 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 5508 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 10625 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 8459 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 7090 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 6418 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 5510 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 10627 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 8461 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 7092 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 6420 11086 0 
kdevelop(30689)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 5512 11086 0 
kdevelop(30689)/kdevelop (cpp support) *Cpp::instantiateDeclarationAndContext: Resolved bad base-class "__list_imp< _Tp, _Alloc >" "__list_imp< _Tp, _Alloc >" 
KCrash: Application 'kdevelop' crashing...

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault: 11
(lldb) process attach --pid 30689
Process 30689 stopped
Executable module set to "/opt/local/bin/kdevelop".
Architecture set to: x86_64-apple-macosx.
(lldb) set set term-width 200
(lldb) thread info
thread #1: tid = 0x6852fb, 0x00007fff90cf7a1a libsystem_kernel.dylib`mach_msg_trap + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP

(lldb) bt all
* thread #1: tid = 0x6852fb, 0x00007fff90cf7a1a libsystem_kernel.dylib`mach_msg_trap + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fff90cf7a1a libsystem_kernel.dylib`mach_msg_trap + 10
    frame #1: 0x00007fff90cf6d18 libsystem_kernel.dylib`mach_msg + 64
    frame #2: 0x00007fff90e3ff15 CoreFoundation`__CFRunLoopServiceMachPort + 181
    frame #3: 0x00007fff90e3f539 CoreFoundation`__CFRunLoopRun + 1161
    frame #4: 0x00007fff90e3ee75 CoreFoundation`CFRunLoopRunSpecific + 309
    frame #5: 0x00007fff93440a0d HIToolbox`RunCurrentEventLoopInMode + 226
    frame #6: 0x00007fff934407b7 HIToolbox`ReceiveNextEventCommon + 479
    frame #7: 0x00007fff934405bc HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 65
    frame #8: 0x00007fff8ac9c24e AppKit`_DPSNextEvent + 1434
    frame #9: 0x00007fff8ac9b89b AppKit`-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
    frame #10: 0x00007fff8ac8f99c AppKit`-[NSApplication run] + 553
    frame #11: 0x000000010fd639bb QtGui`QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2059
    frame #12: 0x0000000110cb8f4f QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 687
    frame #13: 0x0000000110cbd727 QtCore`QCoreApplication::exec() + 199
    frame #14: 0x000000010dec5257 kdevelop`main + 64167
    frame #15: 0x00007fff8d7ef5fd libdyld.dylib`start + 1
    frame #16: 0x00007fff8d7ef5fd libdyld.dylib`start + 1

  thread #2: tid = 0x685326, 0x00007fff90cfc662 libsystem_kernel.dylib`kevent64 + 10, queue = 'com.apple.libdispatch-manager'
    frame #0: 0x00007fff90cfc662 libsystem_kernel.dylib`kevent64 + 10
    frame #1: 0x00007fff8d846421 libdispatch.dylib`_dispatch_mgr_invoke + 239
    frame #2: 0x00007fff8d846136 libdispatch.dylib`_dispatch_mgr_thread + 52

  thread #3: tid = 0x68533f, 0x00007fff90cfb9aa libsystem_kernel.dylib`__select + 10, name = 'com.apple.CFSocket.private'
    frame #0: 0x00007fff90cfb9aa libsystem_kernel.dylib`__select + 10
    frame #1: 0x00007fff90e8ba03 CoreFoundation`__CFSocketManager + 867
    frame #2: 0x00007fff8dd7e899 libsystem_pthread.dylib`_pthread_body + 138
    frame #3: 0x00007fff8dd7e72a libsystem_pthread.dylib`_pthread_start + 137
    frame #4: 0x00007fff8dd82fc9 libsystem_pthread.dylib`thread_start + 13

  thread #4: tid = 0x685351, 0x00007fff90cf7a1a libsystem_kernel.dylib`mach_msg_trap + 10
    frame #0: 0x00007fff90cf7a1a libsystem_kernel.dylib`mach_msg_trap + 10
    frame #1: 0x00007fff90cf6d18 libsystem_kernel.dylib`mach_msg + 64
    frame #2: 0x00007fff90e3ff15 CoreFoundation`__CFRunLoopServiceMachPort + 181
    frame #3: 0x00007fff90e3f539 CoreFoundation`__CFRunLoopRun + 1161
    frame #4: 0x00007fff90e3ee75 CoreFoundation`CFRunLoopRunSpecific + 309
    frame #5: 0x00007fff8ae3c05e AppKit`_NSEventThread + 144
    frame #6: 0x00007fff8dd7e899 libsystem_pthread.dylib`_pthread_body + 138
    frame #7: 0x00007fff8dd7e72a libsystem_pthread.dylib`_pthread_start + 137
    frame #8: 0x00007fff8dd82fc9 libsystem_pthread.dylib`thread_start + 13

  thread #5: tid = 0x6854dd, 0x00007fff90cfb716 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'QThread'
    frame #0: 0x00007fff90cfb716 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8dd80c3b libsystem_pthread.dylib`_pthread_cond_wait + 727
    frame #2: 0x0000000110b82e7b QtCore`QWaitConditionPrivate::wait(unsigned long) + 203
    frame #3: 0x0000000110b82bb6 QtCore`QWaitCondition::wait(QMutex*, unsigned long) + 294
    frame #4: 0x0000000110b7b015 QtCore`QReadWriteLock::lockForWrite() + 149
    frame #5: 0x00000001111f0127 libkdevplatformlanguage.8.dylib`KDevelop::DUChainPrivate::doMoreCleanup(int, bool) + 919
    frame #6: 0x0000000111205789 libkdevplatformlanguage.8.dylib`KDevelop::DUChainPrivate::CleanupThread::run() + 105
    frame #7: 0x0000000110b8109c QtCore`QThreadPrivate::start(void*) + 492
    frame #8: 0x00007fff8dd7e899 libsystem_pthread.dylib`_pthread_body + 138
    frame #9: 0x00007fff8dd7e72a libsystem_pthread.dylib`_pthread_start + 137
    frame #10: 0x00007fff8dd82fc9 libsystem_pthread.dylib`thread_start + 13

  thread #6: tid = 0x6854de, 0x00007fff90cfb9aa libsystem_kernel.dylib`__select + 10, name = 'OutputFilterThread'
    frame #0: 0x00007fff90cfb9aa libsystem_kernel.dylib`__select + 10
    frame #1: 0x0000000110cf55d3 QtCore`qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) + 755
    frame #2: 0x0000000110cf83bf QtCore`QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) + 1039
    frame #3: 0x0000000110cfa2a0 QtCore`QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 896
    frame #4: 0x0000000110cb8f4f QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 687
    frame #5: 0x0000000110b7ea84 QtCore`QThread::exec() + 308
    frame #6: 0x0000000110b8109c QtCore`QThreadPrivate::start(void*) + 492
    frame #7: 0x00007fff8dd7e899 libsystem_pthread.dylib`_pthread_body + 138
    frame #8: 0x00007fff8dd7e72a libsystem_pthread.dylib`_pthread_start + 137
    frame #9: 0x00007fff8dd82fc9 libsystem_pthread.dylib`thread_start + 13

  thread #7: tid = 0x6854df, 0x00007fff90cfb9aa libsystem_kernel.dylib`__select + 10, name = 'QProcessManager'
    frame #0: 0x00007fff90cfb9aa libsystem_kernel.dylib`__select + 10
    frame #1: 0x0000000110c8bd0e QtCore`QProcessManager::run() + 190
    frame #2: 0x0000000110b8109c QtCore`QThreadPrivate::start(void*) + 492
    frame #3: 0x00007fff8dd7e899 libsystem_pthread.dylib`_pthread_body + 138
    frame #4: 0x00007fff8dd7e72a libsystem_pthread.dylib`_pthread_start + 137
    frame #5: 0x00007fff8dd82fc9 libsystem_pthread.dylib`thread_start + 13

  thread #8: tid = 0x6854f0, 0x00007fff90cfb9aa libsystem_kernel.dylib`__select + 10, name = 'QThread'
    frame #0: 0x00007fff90cfb9aa libsystem_kernel.dylib`__select + 10
    frame #1: 0x0000000110cf55d3 QtCore`qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) + 755
    frame #2: 0x0000000110cf83bf QtCore`QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) + 1039
    frame #3: 0x0000000110cfa2a0 QtCore`QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 896
    frame #4: 0x0000000110cb8f4f QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 687
    frame #5: 0x0000000110b7ea84 QtCore`QThread::exec() + 308
    frame #6: 0x0000000110b8109c QtCore`QThreadPrivate::start(void*) + 492
    frame #7: 0x00007fff8dd7e899 libsystem_pthread.dylib`_pthread_body + 138
    frame #8: 0x00007fff8dd7e72a libsystem_pthread.dylib`_pthread_start + 137
    frame #9: 0x00007fff8dd82fc9 libsystem_pthread.dylib`thread_start + 13

  thread #9: tid = 0x6855a9, 0x00007fff90cfbe22 libsystem_kernel.dylib`__wait4 + 10, name = 'ThreadWeaver::Thread'
    frame #0: 0x00007fff90cfbe22 libsystem_kernel.dylib`__wait4 + 10
    frame #1: 0x000000010f2ba1be libkdeui.5.dylib`KCrash::startProcess(int, char const**, bool) + 286
    frame #2: 0x000000010f2b92e5 libkdeui.5.dylib`KCrash::defaultCrashHandler(int) + 1189
    frame #3: 0x00007fff867485aa libsystem_platform.dylib`_sigtramp + 26
    frame #4: 0x0000000128a54598 libkdev4cppduchain.dylib`DeclarationBuilder::closeDeclaration(bool) + 1800
    frame #5: 0x0000000128a51ea3 libkdev4cppduchain.dylib`DeclarationBuilder::visitDeclarator(DeclaratorAST*) + 1315
    frame #6: 0x0000000128a3ef04 libkdev4cppduchain.dylib`ContextBuilder::visitInitDeclarator(InitDeclaratorAST*) + 260
    frame #7: 0x0000000128a4ee99 libkdev4cppduchain.dylib`DeclarationBuilder::visitInitDeclarator(InitDeclaratorAST*) + 1145
    frame #8: 0x0000000128a814df libkdev4cppduchain.dylib`TypeBuilder::visitSimpleDeclaration(SimpleDeclarationAST*) + 479
    frame #9: 0x0000000128a50de8 libkdev4cppduchain.dylib`DeclarationBuilder::visitSimpleDeclaration(SimpleDeclarationAST*) + 264
    frame #10: 0x000000012794701c libkdev4cppparser.dylib`DefaultVisitor::visitClassSpecifier(ClassSpecifierAST*) + 124
    frame #11: 0x0000000128a3dbf9 libkdev4cppduchain.dylib`ContextBuilder::visitClassSpecifier(ClassSpecifierAST*) + 921
    frame #12: 0x0000000128a7cea5 libkdev4cppduchain.dylib`TypeBuilder::visitClassSpecifier(ClassSpecifierAST*) + 469
    frame #13: 0x0000000128a56822 libkdev4cppduchain.dylib`DeclarationBuilder::visitClassSpecifier(ClassSpecifierAST*) + 482
    frame #14: 0x0000000128a8137c libkdev4cppduchain.dylib`TypeBuilder::visitSimpleDeclaration(SimpleDeclarationAST*) + 124
    frame #15: 0x0000000128a50de8 libkdev4cppduchain.dylib`DeclarationBuilder::visitSimpleDeclaration(SimpleDeclarationAST*) + 264
    frame #16: 0x0000000127947fec libkdev4cppparser.dylib`DefaultVisitor::visitTranslationUnit(TranslationUnitAST*) + 92
    frame #17: 0x0000000128a48c98 libkdev4cppduchain.dylib`KDevelop::AbstractContextBuilder<AST, NameAST>::supportBuild(AST*, KDevelop::DUContext*) + 88
    frame #18: 0x0000000128a3c5af libkdev4cppduchain.dylib`ContextBuilder::buildContexts(KSharedPtr<Cpp::EnvironmentFile>, AST*, QList<LineContextPair>*, KDevelop::ReferencedTopDUContext const&, bool) + 2511
    frame #19: 0x0000000128a4dcef libkdev4cppduchain.dylib`DeclarationBuilder::buildDeclarations(KSharedPtr<Cpp::EnvironmentFile>, AST*, QList<LineContextPair>*, KDevelop::ReferencedTopDUContext const&, bool) + 63
    frame #20: 0x0000000128911204 kdevcpplanguagesupport.so`CPPInternalParseJob::run() + 17508
    frame #21: 0x000000012891f3f9 kdevcpplanguagesupport.so`PreprocessJob::sourceNeeded(QString&, rpp::Preprocessor::IncludeType, int, bool) + 6169
    frame #22: 0x0000000128921a71 kdevcpplanguagesupport.so`non-virtual thunk to PreprocessJob::sourceNeeded(QString&, rpp::Preprocessor::IncludeType, int, bool) + 17
    frame #23: 0x00000001269763fd libkdev4cpprpp.dylib`rpp::pp::handle_include(bool, rpp::Stream&, rpp::Stream&) + 2413
    frame #24: 0x00000001269742c5 libkdev4cpprpp.dylib`rpp::pp::handle_directive(unsigned int, rpp::Stream&, rpp::Stream&) + 1109
    frame #25: 0x0000000126973945 libkdev4cpprpp.dylib`rpp::pp::operator()(rpp::Stream&, rpp::Stream&) + 1445
    frame #26: 0x000000012697308b libkdev4cpprpp.dylib`rpp::pp::processFileInternal(QString const&, QByteArray const&, QVector<unsigned int>&) + 1003
    frame #27: 0x0000000126973350 libkdev4cpprpp.dylib`rpp::pp::processFile(QString const&, QByteArray const&) + 48
    frame #28: 0x000000012891abcd kdevcpplanguagesupport.so`PreprocessJob::run() + 8637
    frame #29: 0x000000012891f3e9 kdevcpplanguagesupport.so`PreprocessJob::sourceNeeded(QString&, rpp::Preprocessor::IncludeType, int, bool) + 6153
    frame #30: 0x0000000128921a71 kdevcpplanguagesupport.so`non-virtual thunk to PreprocessJob::sourceNeeded(QString&, rpp::Preprocessor::IncludeType, int, bool) + 17
    frame #31: 0x00000001269763fd libkdev4cpprpp.dylib`rpp::pp::handle_include(bool, rpp::Stream&, rpp::Stream&) + 2413
    frame #32: 0x00000001269742c5 libkdev4cpprpp.dylib`rpp::pp::handle_directive(unsigned int, rpp::Stream&, rpp::Stream&) + 1109
    frame #33: 0x0000000126973945 libkdev4cpprpp.dylib`rpp::pp::operator()(rpp::Stream&, rpp::Stream&) + 1445
    frame #34: 0x000000012697308b libkdev4cpprpp.dylib`rpp::pp::processFileInternal(QString const&, QByteArray const&, QVector<unsigned int>&) + 1003
    frame #35: 0x0000000126973350 libkdev4cpprpp.dylib`rpp::pp::processFile(QString const&, QByteArray const&) + 48
    frame #36: 0x000000012891abcd kdevcpplanguagesupport.so`PreprocessJob::run() + 8637
    frame #37: 0x000000012891f3e9 kdevcpplanguagesupport.so`PreprocessJob::sourceNeeded(QString&, rpp::Preprocessor::IncludeType, int, bool) + 6153
    frame #38: 0x0000000128921a71 kdevcpplanguagesupport.so`non-virtual thunk to PreprocessJob::sourceNeeded(QString&, rpp::Preprocessor::IncludeType, int, bool) + 17
    frame #39: 0x00000001269763fd libkdev4cpprpp.dylib`rpp::pp::handle_include(bool, rpp::Stream&, rpp::Stream&) + 2413
    frame #40: 0x00000001269742c5 libkdev4cpprpp.dylib`rpp::pp::handle_directive(unsigned int, rpp::Stream&, rpp::Stream&) + 1109
    frame #41: 0x0000000126973945 libkdev4cpprpp.dylib`rpp::pp::operator()(rpp::Stream&, rpp::Stream&) + 1445
    frame #42: 0x000000012697308b libkdev4cpprpp.dylib`rpp::pp::processFileInternal(QString const&, QByteArray const&, QVector<unsigned int>&) + 1003
    frame #43: 0x0000000126973350 libkdev4cpprpp.dylib`rpp::pp::processFile(QString const&, QByteArray const&) + 48
    frame #44: 0x000000012891abcd kdevcpplanguagesupport.so`PreprocessJob::run() + 8637
    frame #45: 0x000000012891f3e9 kdevcpplanguagesupport.so`PreprocessJob::sourceNeeded(QString&, rpp::Preprocessor::IncludeType, int, bool) + 6153
    frame #46: 0x0000000128921a71 kdevcpplanguagesupport.so`non-virtual thunk to PreprocessJob::sourceNeeded(QString&, rpp::Preprocessor::IncludeType, int, bool) + 17
    frame #47: 0x00000001269763fd libkdev4cpprpp.dylib`rpp::pp::handle_include(bool, rpp::Stream&, rpp::Stream&) + 2413
    frame #48: 0x00000001269742c5 libkdev4cpprpp.dylib`rpp::pp::handle_directive(unsigned int, rpp::Stream&, rpp::Stream&) + 1109
    frame #49: 0x0000000126973945 libkdev4cpprpp.dylib`rpp::pp::operator()(rpp::Stream&, rpp::Stream&) + 1445
    frame #50: 0x000000012697308b libkdev4cpprpp.dylib`rpp::pp::processFileInternal(QString const&, QByteArray const&, QVector<unsigned int>&) + 1003
    frame #51: 0x0000000126973350 libkdev4cpprpp.dylib`rpp::pp::processFile(QString const&, QByteArray const&) + 48
    frame #52: 0x000000012891abcd kdevcpplanguagesupport.so`PreprocessJob::run() + 8637
    frame #53: 0x000000012891f3e9 kdevcpplanguagesupport.so`PreprocessJob::sourceNeeded(QString&, rpp::Preprocessor::IncludeType, int, bool) + 6153
    frame #54: 0x0000000128921a71 kdevcpplanguagesupport.so`non-virtual thunk to PreprocessJob::sourceNeeded(QString&, rpp::Preprocessor::IncludeType, int, bool) + 17
    frame #55: 0x00000001269763fd libkdev4cpprpp.dylib`rpp::pp::handle_include(bool, rpp::Stream&, rpp::Stream&) + 2413
    frame #56: 0x00000001269742c5 libkdev4cpprpp.dylib`rpp::pp::handle_directive(unsigned int, rpp::Stream&, rpp::Stream&) + 1109
    frame #57: 0x0000000126973945 libkdev4cpprpp.dylib`rpp::pp::operator()(rpp::Stream&, rpp::Stream&) + 1445
    frame #58: 0x000000012697308b libkdev4cpprpp.dylib`rpp::pp::processFileInternal(QString const&, QByteArray const&, QVector<unsigned int>&) + 1003
    frame #59: 0x0000000126973350 libkdev4cpprpp.dylib`rpp::pp::processFile(QString const&, QByteArray const&) + 48
    frame #60: 0x000000012891abcd kdevcpplanguagesupport.so`PreprocessJob::run() + 8637
    frame #61: 0x000000012891f3e9 kdevcpplanguagesupport.so`PreprocessJob::sourceNeeded(QString&, rpp::Preprocessor::IncludeType, int, bool) + 6153
    frame #62: 0x0000000128921a71 kdevcpplanguagesupport.so`non-virtual thunk to PreprocessJob::sourceNeeded(QString&, rpp::Preprocessor::IncludeType, int, bool) + 17
    frame #63: 0x00000001269763fd libkdev4cpprpp.dylib`rpp::pp::handle_include(bool, rpp::Stream&, rpp::Stream&) + 2413
    frame #64: 0x00000001269742c5 libkdev4cpprpp.dylib`rpp::pp::handle_directive(unsigned int, rpp::Stream&, rpp::Stream&) + 1109
    frame #65: 0x0000000126973945 libkdev4cpprpp.dylib`rpp::pp::operator()(rpp::Stream&, rpp::Stream&) + 1445
    frame #66: 0x000000012697308b libkdev4cpprpp.dylib`rpp::pp::processFileInternal(QString const&, QByteArray const&, QVector<unsigned int>&) + 1003
    frame #67: 0x0000000126973350 libkdev4cpprpp.dylib`rpp::pp::processFile(QString const&, QByteArray const&) + 48
    frame #68: 0x000000012891abcd kdevcpplanguagesupport.so`PreprocessJob::run() + 8637
    frame #69: 0x000000012891f3e9 kdevcpplanguagesupport.so`PreprocessJob::sourceNeeded(QString&, rpp::Preprocessor::IncludeType, int, bool) + 6153
    frame #70: 0x0000000128921a71 kdevcpplanguagesupport.so`non-virtual thunk to PreprocessJob::sourceNeeded(QString&, rpp::Preprocessor::IncludeType, int, bool) + 17
    frame #71: 0x00000001269763fd libkdev4cpprpp.dylib`rpp::pp::handle_include(bool, rpp::Stream&, rpp::Stream&) + 2413
    frame #72: 0x00000001269742c5 libkdev4cpprpp.dylib`rpp::pp::handle_directive(unsigned int, rpp::Stream&, rpp::Stream&) + 1109
    frame #73: 0x0000000126973945 libkdev4cpprpp.dylib`rpp::pp::operator()(rpp::Stream&, rpp::Stream&) + 1445
    frame #74: 0x000000012697308b libkdev4cpprpp.dylib`rpp::pp::processFileInternal(QString const&, QByteArray const&, QVector<unsigned int>&) + 1003
    frame #75: 0x0000000126973350 libkdev4cpprpp.dylib`rpp::pp::processFile(QString const&, QByteArray const&) + 48
    frame #76: 0x000000012891abcd kdevcpplanguagesupport.so`PreprocessJob::run() + 8637
    frame #77: 0x000000012891f3e9 kdevcpplanguagesupport.so`PreprocessJob::sourceNeeded(QString&, rpp::Preprocessor::IncludeType, int, bool) + 6153
    frame #78: 0x0000000128921a71 kdevcpplanguagesupport.so`non-virtual thunk to PreprocessJob::sourceNeeded(QString&, rpp::Preprocessor::IncludeType, int, bool) + 17
    frame #79: 0x00000001269763fd libkdev4cpprpp.dylib`rpp::pp::handle_include(bool, rpp::Stream&, rpp::Stream&) + 2413
    frame #80: 0x00000001269742c5 libkdev4cpprpp.dylib`rpp::pp::handle_directive(unsigned int, rpp::Stream&, rpp::Stream&) + 1109
    frame #81: 0x0000000126973945 libkdev4cpprpp.dylib`rpp::pp::operator()(rpp::Stream&, rpp::Stream&) + 1445
    frame #82: 0x000000012697308b libkdev4cpprpp.dylib`rpp::pp::processFileInternal(QString const&, QByteArray const&, QVector<unsigned int>&) + 1003
    frame #83: 0x0000000126973350 libkdev4cpprpp.dylib`rpp::pp::processFile(QString const&, QByteArray const&) + 48
    frame #84: 0x000000012891abcd kdevcpplanguagesupport.so`PreprocessJob::run() + 8637
    frame #85: 0x0000000110b2c554 libthreadweaver.4.dylib`ThreadWeaver::Job::execute(ThreadWeaver::Thread*) + 564
    frame #86: 0x0000000110b2e8ff libthreadweaver.4.dylib`ThreadWeaver::JobCollectionJobRunner::execute(ThreadWeaver::Thread*) + 31
    frame #87: 0x0000000110b2bb63 libthreadweaver.4.dylib`ThreadWeaver::Thread::run() + 211
    frame #88: 0x0000000110b8109c QtCore`QThreadPrivate::start(void*) + 492
    frame #89: 0x00007fff8dd7e899 libsystem_pthread.dylib`_pthread_body + 138
    frame #90: 0x00007fff8dd7e72a libsystem_pthread.dylib`_pthread_start + 137
    frame #91: 0x00007fff8dd82fc9 libsystem_pthread.dylib`thread_start + 13

  thread #10: tid = 0x6855aa, 0x00007fff90cfb716 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'ThreadWeaver::Thread'
    frame #0: 0x00007fff90cfb716 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8dd80c3b libsystem_pthread.dylib`_pthread_cond_wait + 727
    frame #2: 0x0000000110b82e7b QtCore`QWaitConditionPrivate::wait(unsigned long) + 203
    frame #3: 0x0000000110b82bb6 QtCore`QWaitCondition::wait(QMutex*, unsigned long) + 294
    frame #4: 0x0000000110b2ad44 libthreadweaver.4.dylib`ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned(ThreadWeaver::Thread*) + 196
    frame #5: 0x0000000110b2d9d6 libthreadweaver.4.dylib`ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) + 790
    frame #6: 0x0000000110b2da2f libthreadweaver.4.dylib`ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) + 879
    frame #7: 0x0000000110b2da2f libthreadweaver.4.dylib`ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) + 879
    frame #8: 0x0000000110b2da2f libthreadweaver.4.dylib`ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) + 879
    frame #9: 0x0000000110b2bc06 libthreadweaver.4.dylib`ThreadWeaver::Thread::run() + 374
    frame #10: 0x0000000110b8109c QtCore`QThreadPrivate::start(void*) + 492
    frame #11: 0x00007fff8dd7e899 libsystem_pthread.dylib`_pthread_body + 138
    frame #12: 0x00007fff8dd7e72a libsystem_pthread.dylib`_pthread_start + 137
    frame #13: 0x00007fff8dd82fc9 libsystem_pthread.dylib`thread_start + 13

  thread #11: tid = 0x6855db, 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10, name = 'QKqueueFileSystemWatcherEngine'
    frame #0: 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10
    frame #1: 0x0000000110c98ceb QtCore`QKqueueFileSystemWatcherEngine::run() + 123
    frame #2: 0x0000000110b8109c QtCore`QThreadPrivate::start(void*) + 492
    frame #3: 0x00007fff8dd7e899 libsystem_pthread.dylib`_pthread_body + 138
    frame #4: 0x00007fff8dd7e72a libsystem_pthread.dylib`_pthread_start + 137
    frame #5: 0x00007fff8dd82fc9 libsystem_pthread.dylib`thread_start + 13

  thread #12: tid = 0x6855e9, 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10, name = 'QKqueueFileSystemWatcherEngine'
    frame #0: 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10
    frame #1: 0x0000000110c98ceb QtCore`QKqueueFileSystemWatcherEngine::run() + 123
    frame #2: 0x0000000110b8109c QtCore`QThreadPrivate::start(void*) + 492
    frame #3: 0x00007fff8dd7e899 libsystem_pthread.dylib`_pthread_body + 138
    frame #4: 0x00007fff8dd7e72a libsystem_pthread.dylib`_pthread_start + 137
    frame #5: 0x00007fff8dd82fc9 libsystem_pthread.dylib`thread_start + 13

  thread #13: tid = 0x6855ee, 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10, name = 'QKqueueFileSystemWatcherEngine'
    frame #0: 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10
    frame #1: 0x0000000110c98ceb QtCore`QKqueueFileSystemWatcherEngine::run() + 123
    frame #2: 0x0000000110b8109c QtCore`QThreadPrivate::start(void*) + 492
    frame #3: 0x00007fff8dd7e899 libsystem_pthread.dylib`_pthread_body + 138
    frame #4: 0x00007fff8dd7e72a libsystem_pthread.dylib`_pthread_start + 137
    frame #5: 0x00007fff8dd82fc9 libsystem_pthread.dylib`thread_start + 13

  thread #14: tid = 0x6855f0, 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10, name = 'QKqueueFileSystemWatcherEngine'
    frame #0: 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10
    frame #1: 0x0000000110c98ceb QtCore`QKqueueFileSystemWatcherEngine::run() + 123
    frame #2: 0x0000000110b8109c QtCore`QThreadPrivate::start(void*) + 492
    frame #3: 0x00007fff8dd7e899 libsystem_pthread.dylib`_pthread_body + 138
    frame #4: 0x00007fff8dd7e72a libsystem_pthread.dylib`_pthread_start + 137
    frame #5: 0x00007fff8dd82fc9 libsystem_pthread.dylib`thread_start + 13

  thread #15: tid = 0x6855f7, 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10, name = 'QKqueueFileSystemWatcherEngine'
    frame #0: 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10
    frame #1: 0x0000000110c98ceb QtCore`QKqueueFileSystemWatcherEngine::run() + 123
    frame #2: 0x0000000110b8109c QtCore`QThreadPrivate::start(void*) + 492
    frame #3: 0x00007fff8dd7e899 libsystem_pthread.dylib`_pthread_body + 138
    frame #4: 0x00007fff8dd7e72a libsystem_pthread.dylib`_pthread_start + 137
    frame #5: 0x00007fff8dd82fc9 libsystem_pthread.dylib`thread_start + 13

  thread #16: tid = 0x685612, 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10, name = 'QKqueueFileSystemWatcherEngine'
    frame #0: 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10
    frame #1: 0x0000000110c98ceb QtCore`QKqueueFileSystemWatcherEngine::run() + 123
    frame #2: 0x0000000110b8109c QtCore`QThreadPrivate::start(void*) + 492
    frame #3: 0x00007fff8dd7e899 libsystem_pthread.dylib`_pthread_body + 138
    frame #4: 0x00007fff8dd7e72a libsystem_pthread.dylib`_pthread_start + 137
    frame #5: 0x00007fff8dd82fc9 libsystem_pthread.dylib`thread_start + 13

  thread #17: tid = 0x68561c, 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10, name = 'QKqueueFileSystemWatcherEngine'
    frame #0: 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10
    frame #1: 0x0000000110c98ceb QtCore`QKqueueFileSystemWatcherEngine::run() + 123
    frame #2: 0x0000000110b8109c QtCore`QThreadPrivate::start(void*) + 492
    frame #3: 0x00007fff8dd7e899 libsystem_pthread.dylib`_pthread_body + 138
    frame #4: 0x00007fff8dd7e72a libsystem_pthread.dylib`_pthread_start + 137
    frame #5: 0x00007fff8dd82fc9 libsystem_pthread.dylib`thread_start + 13

  thread #18: tid = 0x68561e, 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10, name = 'QKqueueFileSystemWatcherEngine'
    frame #0: 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10
    frame #1: 0x0000000110c98ceb QtCore`QKqueueFileSystemWatcherEngine::run() + 123
    frame #2: 0x0000000110b8109c QtCore`QThreadPrivate::start(void*) + 492
    frame #3: 0x00007fff8dd7e899 libsystem_pthread.dylib`_pthread_body + 138
    frame #4: 0x00007fff8dd7e72a libsystem_pthread.dylib`_pthread_start + 137
    frame #5: 0x00007fff8dd82fc9 libsystem_pthread.dylib`thread_start + 13

  thread #19: tid = 0x685621, 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10, name = 'QKqueueFileSystemWatcherEngine'
    frame #0: 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10
    frame #1: 0x0000000110c98ceb QtCore`QKqueueFileSystemWatcherEngine::run() + 123
    frame #2: 0x0000000110b8109c QtCore`QThreadPrivate::start(void*) + 492
    frame #3: 0x00007fff8dd7e899 libsystem_pthread.dylib`_pthread_body + 138
    frame #4: 0x00007fff8dd7e72a libsystem_pthread.dylib`_pthread_start + 137
    frame #5: 0x00007fff8dd82fc9 libsystem_pthread.dylib`thread_start + 13

  thread #20: tid = 0x685622, 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10, name = 'QKqueueFileSystemWatcherEngine'
    frame #0: 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10
    frame #1: 0x0000000110c98ceb QtCore`QKqueueFileSystemWatcherEngine::run() + 123
    frame #2: 0x0000000110b8109c QtCore`QThreadPrivate::start(void*) + 492
    frame #3: 0x00007fff8dd7e899 libsystem_pthread.dylib`_pthread_body + 138
    frame #4: 0x00007fff8dd7e72a libsystem_pthread.dylib`_pthread_start + 137
    frame #5: 0x00007fff8dd82fc9 libsystem_pthread.dylib`thread_start + 13

  thread #21: tid = 0x685635, 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10, name = 'QKqueueFileSystemWatcherEngine'
    frame #0: 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10
    frame #1: 0x0000000110c98ceb QtCore`QKqueueFileSystemWatcherEngine::run() + 123
    frame #2: 0x0000000110b8109c QtCore`QThreadPrivate::start(void*) + 492
    frame #3: 0x00007fff8dd7e899 libsystem_pthread.dylib`_pthread_body + 138
    frame #4: 0x00007fff8dd7e72a libsystem_pthread.dylib`_pthread_start + 137
    frame #5: 0x00007fff8dd82fc9 libsystem_pthread.dylib`thread_start + 13

  thread #22: tid = 0x68563a, 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10, name = 'QKqueueFileSystemWatcherEngine'
    frame #0: 0x00007fff90cfc64a libsystem_kernel.dylib`kevent + 10
    frame #1: 0x0000000110c98ceb QtCore`QKqueueFileSystemWatcherEngine::run() + 123
    frame #2: 0x0000000110b8109c QtCore`QThreadPrivate::start(void*) + 492
    frame #3: 0x00007fff8dd7e899 libsystem_pthread.dylib`_pthread_body + 138
    frame #4: 0x00007fff8dd7e72a libsystem_pthread.dylib`_pthread_start + 137
    frame #5: 0x00007fff8dd82fc9 libsystem_pthread.dylib`thread_start + 13

  thread #23: tid = 0x685803, 0x00007fff90cfb716 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'ThreadWeaver::Thread'
    frame #0: 0x00007fff90cfb716 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8dd80c3b libsystem_pthread.dylib`_pthread_cond_wait + 727
    frame #2: 0x0000000110b82e7b QtCore`QWaitConditionPrivate::wait(unsigned long) + 203
    frame #3: 0x0000000110b82bb6 QtCore`QWaitCondition::wait(QMutex*, unsigned long) + 294
    frame #4: 0x0000000110b2ad44 libthreadweaver.4.dylib`ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned(ThreadWeaver::Thread*) + 196
    frame #5: 0x0000000110b2d9d6 libthreadweaver.4.dylib`ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) + 790
    frame #6: 0x0000000110b2bc06 libthreadweaver.4.dylib`ThreadWeaver::Thread::run() + 374
    frame #7: 0x0000000110b8109c QtCore`QThreadPrivate::start(void*) + 492
    frame #8: 0x00007fff8dd7e899 libsystem_pthread.dylib`_pthread_body + 138
    frame #9: 0x00007fff8dd7e72a libsystem_pthread.dylib`_pthread_start + 137
    frame #10: 0x00007fff8dd82fc9 libsystem_pthread.dylib`thread_start + 13

  thread #24: tid = 0x685de2, 0x00007fff90cfb9aa libsystem_kernel.dylib`__select + 10, name = 'QThread'
    frame #0: 0x00007fff90cfb9aa libsystem_kernel.dylib`__select + 10
    frame #1: 0x0000000110cf55d3 QtCore`qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) + 755
    frame #2: 0x0000000110cf83bf QtCore`QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) + 1039
    frame #3: 0x0000000110cfa2a0 QtCore`QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 896
    frame #4: 0x0000000110cb8f4f QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 687
    frame #5: 0x0000000110b7ea84 QtCore`QThread::exec() + 308
    frame #6: 0x0000000110b8109c QtCore`QThreadPrivate::start(void*) + 492
    frame #7: 0x00007fff8dd7e899 libsystem_pthread.dylib`_pthread_body + 138
    frame #8: 0x00007fff8dd7e72a libsystem_pthread.dylib`_pthread_start + 137
    frame #9: 0x00007fff8dd82fc9 libsystem_pthread.dylib`thread_start + 13

  thread #25: tid = 0x68900f, 0x00007fff90cfbe6a libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #0: 0x00007fff90cfbe6a libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff8dd7ff08 libsystem_pthread.dylib`_pthread_wqthread + 330
    frame #2: 0x00007fff8dd82fb9 libsystem_pthread.dylib`start_wqthread + 13

  thread #26: tid = 0x689010, 0x00007fff90cfbe6a libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #0: 0x00007fff90cfbe6a libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff8dd7ff08 libsystem_pthread.dylib`_pthread_wqthread + 330
    frame #2: 0x00007fff8dd82fb9 libsystem_pthread.dylib`start_wqthread + 13
(lldb) detach
Process 30689 detached

Possible duplicates by query: bug 355669, bug 355630, bug 355585, bug 355562, bug 355558.

Reported using DrKonqi
Comment 1 Milian Wolff 2015-11-24 17:06:45 UTC
What line did it crash in?

    frame #4: 0x0000000128a54598 libkdev4cppduchain.dylib`DeclarationBuilder::closeDeclaration(bool) + 1800


what is this supposed to mean? Can you translate that to an easier-to-understand GDB-like backtrace with file:line information?

Also, it may quite likely be closed as wontfix anyway as we are spending our time on kdev-clang nowadays. If it's an easy fix we may want to fix it for 4.7 though.
Comment 2 RJVB 2015-11-24 19:07:05 UTC
I'm afraid gdb hasn't worked properly on OS X for years now (didn't you know that?), but if I remember (and find a moment) to rebuild kdevelop without LTO I should get line numbers.

I thought the

"__list_imp< _Tp, _Alloc >" "__list_imp< _Tp, _Alloc >"

output came from an ASSERT or something like that, but you're right, I see neither "abort" nor "qFatal" in the backtrace.
Comment 3 Michał Walenciak 2015-11-24 19:45:04 UTC
I can confirm this bug which is a total stopper for me.

Here is the top of the stack:
#0  0x0000000000000000 in ?? ()
#1  0x00007fff3dc1fdc1 in DeclarationBuilder::closeDeclaration (this=0x7fff35ff3560, forceInstance=<optimized out>)
    at /home/michal/projects/sources/external/kdevelop-4.7.2/languages/cpp/cppduchain/declarationbuilder.cpp:866
#2  0x00007fff3dc1f429 in DeclarationBuilder::visitDeclarator (this=0x7fff35ff3560, node=0x7fff15e11968)
    at /home/michal/projects/sources/external/kdevelop-4.7.2/languages/cpp/cppduchain/declarationbuilder.cpp:475
#3  0x00007fff3dc0e5f7 in ContextBuilder::visitInitDeclarator (this=this@entry=0x7fff35ff3560, node=node@entry=0x7fff15e120d0)
    at /home/michal/projects/sources/external/kdevelop-4.7.2/languages/cpp/cppduchain/contextbuilder.cpp:911
#4  0x00007fff3dc1d9c6 in DeclarationBuilder::visitInitDeclarator (this=0x7fff35ff3560, node=0x7fff15e120d0)
    at /home/michal/projects/sources/external/kdevelop-4.7.2/languages/cpp/cppduchain/declarationbuilder.cpp:255
#5  0x00007fff3dc3b03d in TypeBuilder::visitSimpleDeclaration (this=this@entry=0x7fff35ff3560, node=node@entry=0x7fff15e12110)
    at /home/michal/projects/sources/external/kdevelop-4.7.2/languages/cpp/cppduchain/typebuilder.cpp:690
#6  0x00007fff3dc1d104 in DeclarationBuilder::visitSimpleDeclaration (this=0x7fff35ff3560, node=0x7fff15e12110)
    at /home/michal/projects/sources/external/kdevelop-4.7.2/languages/cpp/cppduchain/declarationbuilder.cpp:349
#7  0x00007fff3d96130d in visitNodes<DeclarationAST*> (v=v@entry=0x7fff35ff35b8, nodes=<optimized out>)
    at /home/michal/projects/sources/external/kdevelop-4.7.2/languages/cpp/parser/visitor.h:139
#8  0x00007fff3d960a52 in DefaultVisitor::visitClassSpecifier (this=this@entry=0x7fff35ff35b8, node=node@entry=0x7fff15e90308)
    at /home/michal/projects/sources/external/kdevelop-4.7.2/languages/cpp/parser/default_visitor.cpp:68
#9  0x00007fff3dc0d3af in ContextBuilder::visitClassSpecifier (this=this@entry=0x7fff35ff3560, node=node@entry=0x7fff15e90308)
    at /home/michal/projects/sources/external/kdevelop-4.7.2/languages/cpp/cppduchain/contextbuilder.cpp:534
#10 0x00007fff3dc3c2a2 in TypeBuilder::visitClassSpecifier (this=this@entry=0x7fff35ff3560, node=node@entry=0x7fff15e90308)
    at /home/michal/projects/sources/external/kdevelop-4.7.2/languages/cpp/cppduchain/typebuilder.cpp:92
Comment 4 RJVB 2015-11-25 15:37:09 UTC
That certainly looks like the same crash to me.

For me, this crash only happens when KDevelop is parsing a bunch of projects after opening a session (and apparently preferably when the session contains many projects). I don't think it ever happened when the parser reparsed an open file after modification.

If it's impossible to resolve the underlying issue, a workaround could then be to 
1) defer parsing to after all projects are loaded completely
2) make the automatic start of the parser optional, and provide a way (button, menu action) to trigger the parsing of an entire project manually.

Option 1) would be probably less sure as a workaround.

Option 2) can currently be approximated by deactivating the parser altogether, then you lose all benefits of code parsing -- AFAIK deactivation will also discard all cached parsing information.

I also still don't understand why it is necessary to parse a file when it hasn't changed since the last parsing step. Why not simply load the cached information, and only trigger the parser when the file changes (either in the embedded editor or when a timestamp and/or hash/CRC mismatch is detected)?
Comment 5 RJVB 2015-11-27 13:45:04 UTC
Created attachment 95775 [details]
New crash information added by DrKonqi

kdevelop (4.7.2) on KDE Platform 4.14.14 using Qt 4.8.7

- What I was doing when the application crashed:

Same story: crash after opening a session with multiple project, during the initial (re)parse that cannot be avoided if you want to benefit from parsing information at all.

Last couple of lines on the terminal:
kdevelop(67561)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 1715 2743 0 
kdevelop(67561)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 3408 2743 0 
kdevelop(67561)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 2538 2743 0 
kdevelop(67561)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 1717 2743 0 
kdevelop(67561)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 3410 2743 0 
kdevelop(67561)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 2540 2743 0 
kdevelop(67561)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<KDevelop::Declaration *>::getItemForIndex: invalid item for index 1719 2743 0 
kdevelop(67561)/kdevelop (cpp support) *Cpp::instantiateDeclarationAndContext: Resolved bad base-class "__list_imp< _Tp, _Alloc >" "__list_imp< _Tp, _Alloc >" 
KCrash: Application 'kdevelop' crashing...
KCrash: Attempting to start /opt/local/lib/kde4/libexec/drkonqi.app/Contents/MacOS/drkonqi directly

According to the progress indicator, kdelibs4support/src/kdecore/ksystemtimezone.h (from git/head) was being parsed.

-- Backtrace (Reduced):
Comment 6 Kevin Funk 2015-11-27 17:57:35 UTC
@Michal: Which project is this? Is the crash always reproducible?

Confirming b/c of multiple reports.
Comment 7 Michał Walenciak 2015-11-29 13:06:39 UTC
@Kevin: I used to have it every time, but now it's more random. But as far as I can see it is reproducible every time I remove ~/.cache/kdevduchain

Here's the project:
https://github.com/Kicer86/photobroom
Comment 8 Kevin Funk 2015-11-29 14:37:42 UTC
For the record: Can't reproduce on Linux.
Comment 9 Michał Walenciak 2015-11-29 14:41:35 UTC
@Kevin: If you want I can compile kdevelop with some patch or extra options If you need more information.
Comment 10 Milian Wolff 2015-12-01 17:35:07 UTC
Do you remove the cache while kdevelop is running?
Comment 11 RJVB 2015-12-01 20:36:43 UTC
No, not I, at least not that I know of ...
Comment 12 Michał Walenciak 2015-12-03 19:42:11 UTC
@Milian Wolff: I did it before starting KDevelop. My KDevelop was crashing every time, but then it somehow dealt with the problem and was not crashing anymore (I guess cache had all the data so there was no need to parse all files again). To reproduce the problem again I had to remove cache.
Comment 13 Milian Wolff 2015-12-04 18:04:08 UTC
Well, without a way for me to reproduce this, I'm tempted to close this as UNMAINTAINED, as it only affects our old C++ parser. With kdev-clang / KDevelop 5, this issue should not occur anymore...
Comment 14 Kevin Funk 2015-12-31 07:59:01 UTC
*** Bug 353863 has been marked as a duplicate of this bug. ***
Comment 15 Kevin Funk 2015-12-31 07:59:18 UTC
*** Bug 357358 has been marked as a duplicate of this bug. ***
Comment 16 Milian Wolff 2016-01-21 12:43:11 UTC
Git commit f78c39655cb3d5dacca43fde60c7e748efb10820 by Milian Wolff.
Committed on 21/01/2016 at 12:41.
Pushed by mwolff into branch '4.7'.

Don't access declaration without holding the DUChain lock.

This hopefully fixes a crash in the declaration builder.

M  +9    -6    languages/cpp/cppduchain/declarationbuilder.cpp

http://commits.kde.org/kdevelop/f78c39655cb3d5dacca43fde60c7e748efb10820
Comment 17 gnux83 2016-05-20 08:43:23 UTC
Created attachment 99091 [details]
New crash information added by DrKonqi

kdevelop (4.7.3) on KDE Platform 4.14.16 using Qt 4.8.7

Loading session with many open projects and files, KDevelop crashes when clicked F8 (build) before session is loaded completly and first background parse is finished.

-- Backtrace (Reduced):
#7  0x00007f2a2d3e4710 in DeclarationBuilder::closeDeclaration (this=0x7f2a2143c630, forceInstance=<optimized out>) at /build/kdevelop-jGcNEc/kdevelop-4.7.3/languages/cpp/cppduchain/declarationbuilder.cpp:865
#8  0x00007f2a2d3e606b in DeclarationBuilder::visitDeclarator (this=0x7f2a2143c630, node=0x7f29f44d8d38) at /build/kdevelop-jGcNEc/kdevelop-4.7.3/languages/cpp/cppduchain/declarationbuilder.cpp:475
#9  0x00007f2a2d3d599f in ContextBuilder::visitInitDeclarator (this=this@entry=0x7f2a2143c630, node=node@entry=0x7f29f44d94a0) at /build/kdevelop-jGcNEc/kdevelop-4.7.3/languages/cpp/cppduchain/contextbuilder.cpp:911
#10 0x00007f2a2d3e167c in DeclarationBuilder::visitInitDeclarator (this=0x7f2a2143c630, node=0x7f29f44d94a0) at /build/kdevelop-jGcNEc/kdevelop-4.7.3/languages/cpp/cppduchain/declarationbuilder.cpp:255
#11 0x00007f2a2d40289c in TypeBuilder::visitSimpleDeclaration (this=this@entry=0x7f2a2143c630, node=node@entry=0x7f29f44d94e0) at /build/kdevelop-jGcNEc/kdevelop-4.7.3/languages/cpp/cppduchain/typebuilder.cpp:690
Comment 18 Kevin Funk 2016-05-20 08:53:36 UTC
@gnux83: Reproducible everytime? Please post the full backtrace in this case.
Comment 19 Kevin Funk 2016-09-08 19:37:01 UTC
*** Bug 362413 has been marked as a duplicate of this bug. ***