Bug 341491

Summary: kdev-clang crashes on start when opening a project with HHVM
Product: [Applications] kdevelop Reporter: Miquel Sabaté <mikisabate>
Component: Language Support: CPP (Clang-based)Assignee: kdevelop-bugs-null
Status: RESOLVED WAITINGFORINFO    
Severity: crash CC: aleixpol, kfunk
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Miquel Sabaté 2014-12-02 14:43:01 UTC
Apparently there's a crash between kdev-clang and the "Custom Defines and Includes" plugin. Basically I've started a session with hhvm (https://github.com/facebook/hhvm) in it, and then it crashes.

Here's the backtrace:

#0  0x00007fffee244a97 in raise () from /usr/lib/libc.so.6
#1  0x00007fffee245e6a in abort () from /usr/lib/libc.so.6
#2  0x00007fffeee69ab8 in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/libQt5Core.so.5
#3  0x00007fffeee64924 in qt_assert(char const*, char const*, int) () from /usr/lib/libQt5Core.so.5
#4  0x00007fffae97fb14 in CompilerProvider::compilerForItem (this=0x3a943a8, item=0x48869d0) at ../languages/plugins/custom-definesandincludes/compilerprovider/compilerprovider.cpp:112
#5  0x00007fffae97fc6f in CompilerProvider::includes (this=0x3a943a8, item=0x48869d0) at ../languages/plugins/custom-definesandincludes/compilerprovider/compilerprovider.cpp:125
#6  0x00007fffae97fcd6 in non-virtual thunk to CompilerProvider::includes(KDevelop::ProjectBaseItem*) const () at ../languages/plugins/custom-definesandincludes/compilerprovider/compilerprovider.cpp:126
#7  0x00007fffae953c0c in DefinesAndIncludesManager::includes (this=0x3a94360, item=0x48869d0, type=KDevelop::IDefinesAndIncludesManager::All)
    at ../languages/plugins/custom-definesandincludes/definesandincludesmanager.cpp:155
#8  0x00007fffae953cbc in non-virtual thunk to DefinesAndIncludesManager::includes(KDevelop::ProjectBaseItem*, KDevelop::IDefinesAndIncludesManager::Type) const ()
    at ../languages/plugins/custom-definesandincludes/definesandincludesmanager.cpp:160
#9  0x00007fffac445337 in ClangParseJob::ClangParseJob (this=0x5777780, url=..., languageSupport=0x3b8d280) at ../clangparsejob.cpp:139
#10 0x00007fffac44c06d in ClangSupport::createParseJob (this=0x3b8d250, url=...) at ../clangsupport.cpp:253
#11 0x00007fffac44c0af in non-virtual thunk to ClangSupport::createParseJob(KDevelop::IndexedString const&) () at ../clangsupport.cpp:254
#12 0x00007fffeb9583e8 in KDevelop::BackgroundParserPrivate::createParseJob (this=0x27edd70, url=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, notifyWhenReady=..., priority=0)
    at ../language/backgroundparser/backgroundparser.cpp:278
#13 0x00007fffeb950ebc in KDevelop::BackgroundParserPrivate::parseDocumentsInternal (this=0x27edd70) at ../language/backgroundparser/backgroundparser.cpp:209
#14 0x00007fffeb94e074 in KDevelop::BackgroundParser::parseDocuments (this=0x27edc90) at ../language/backgroundparser/backgroundparser.cpp:603
#15 0x00007fffebb25897 in KDevelop::BackgroundParser::qt_static_metacall (_o=0x27edc90, _c=QMetaObject::InvokeMetaMethod, _id=17, _a=0x3ac2360) at language/moc_backgroundparser.cpp:257
#16 0x00007fffef0972da in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#17 0x00007fffefd1ef4c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#18 0x00007fffefd2436e in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#19 0x00007fffef06770b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#20 0x00007fffef0696d3 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5
#21 0x00007fffef0bed43 in ?? () from /usr/lib/libQt5Core.so.5
#22 0x00007fffe404ea0d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#23 0x00007fffe404ecf8 in ?? () from /usr/lib/libglib-2.0.so.0
#24 0x00007fffe404edac in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#25 0x00007fffef0bf190 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#26 0x00007fffb75bc92d in ProjectFileDataProvider::projectOpened (this=0x27e1440, project=0x38cc980) at ../plugins/quickopen/projectfilequickopen.cpp:253
#27 0x00007fffb75c346e in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<KDevelop::IProject*>, void, void (ProjectFileDataProvider::*)(KDevelop::IProject*)>::call (f=
    (void (ProjectFileDataProvider::*)(ProjectFileDataProvider * const, KDevelop::IProject *)) 0x7fffb75bc820 <ProjectFileDataProvider::projectOpened(KDevelop::IProject*)>, o=0x27e1440, 
    arg=0x7fffffffabf0) at /usr/include/qt/QtCore/qobjectdefs_impl.h:508
#28 0x00007fffb75c33d0 in QtPrivate::FunctionPointer<void (ProjectFileDataProvider::*)(KDevelop::IProject*)>::call<QtPrivate::List<KDevelop::IProject*>, void> (f=
    (void (ProjectFileDataProvider::*)(ProjectFileDataProvider * const, KDevelop::IProject *)) 0x7fffb75bc820 <ProjectFileDataProvider::projectOpened(KDevelop::IProject*)>, o=0x27e1440, 
    arg=0x7fffffffabf0) at /usr/include/qt/QtCore/qobjectdefs_impl.h:527
#29 0x00007fffb75c32f8 in QtPrivate::QSlotObject<void (ProjectFileDataProvider::*)(KDevelop::IProject*), QtPrivate::List<KDevelop::IProject*>, void>::impl (which=1, this_=0x38e65a0, r=0x27e1440, 
    a=0x7fffffffabf0, ret=0x0) at /usr/include/qt/QtCore/qobject_impl.h:151
#30 0x00007fffef095f0e in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#31 0x00007ffff7bc1e6f in KDevelop::IProjectController::projectOpened (this=0x21421d0, _t1=0x38cc980) at interfaces/moc_iprojectcontroller.cpp:303
#32 0x00007ffff782df8d in KDevelop::ProjectController::projectImportingFinished (this=0x21421d0, project=0x38cc980) at ../shell/projectcontroller.cpp:841
#33 0x00007ffff7848098 in KDevelop::ProjectPrivate::importDone (this=0x38cccc0, job=0x38d52f0) at ../shell/project.cpp:219
#34 0x00007ffff7845fe4 in KDevelop::Project::open(KDevelop::Path const&)::$_1::operator()(KJob*) const (this=0x7fffffffad98, job=0x38d52f0) at ../shell/project.cpp:526
#35 0x00007ffff7845fa7 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<KJob*>, void, KDevelop::Project::open(KDevelop::Path const&)::$_1>::call(KDevelop::Project::open(KDevelop::Path const&)::$_1, void**) (f=..., arg=0x7fffffffaf50) at /usr/include/qt/QtCore/qobjectdefs_impl.h:502
#36 0x00007ffff7845f6c in QtPrivate::Functor<KDevelop::Project::open(KDevelop::Path const&)::$_1, 1>::call<QtPrivate::List<KJob*>, void>(KDevelop::Project::open(KDevelop::Path const&)::$_1&, void*, void**) (f=..., arg=0x7fffffffaf50) at /usr/include/qt/QtCore/qobjectdefs_impl.h:559
#37 0x00007ffff7845ef1 in QtPrivate::QFunctorSlotObject<KDevelop::Project::open(KDevelop::Path const&)::$_1, 1, QtPrivate::List<KJob*>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x39ba120, r=0x38cc980, a=0x7fffffffaf50, ret=0x0) at /usr/include/qt/QtCore/qobject_impl.h:200
#38 0x00007fffef095f0e in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#39 0x00007ffff07fa429 in KJob::result (this=0x38d52f0, _t1=0x38d52f0) at /home/mssola/Projects/kde/kf5/build/frameworks/kcoreaddons/src/lib/moc_kjob.cpp:547
#40 0x00007ffff07f8e13 in KJob::emitResult (this=0x38d52f0) at /home/mssola/Projects/kde/kf5/frameworks/kcoreaddons/src/lib/jobs/kjob.cpp:293
#41 0x00007ffff613da8c in KDevelop::ExecuteCompositeJob::slotResult (this=0x38d52f0, job=0x398dfa0) at ../util/executecompositejob.cpp:77
#42 0x00007ffff6150e39 in KDevelop::ExecuteCompositeJob::qt_static_metacall (_o=0x38d52f0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fffffffb280) at util/moc_executecompositejob.cpp:70
#43 0x00007fffef09640d in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#44 0x00007ffff07fa429 in KJob::result (this=0x398dfa0, _t1=0x398dfa0) at /home/mssola/Projects/kde/kf5/build/frameworks/kcoreaddons/src/lib/moc_kjob.cpp:547
#45 0x00007ffff07f8e13 in KJob::emitResult (this=0x398dfa0) at /home/mssola/Projects/kde/kf5/frameworks/kcoreaddons/src/lib/jobs/kjob.cpp:293
#46 0x00007fffeceb2e73 in KDevelop::FileManagerListJob::slotResult (this=0x398dfa0, job=0x5316850) at ../project/filemanagerlistjob.cpp:98

Reproducible: Always
Comment 1 Aleix Pol 2014-12-02 15:09:05 UTC
I've had that crash with kdev-oldcpp.
Comment 2 Milian Wolff 2014-12-02 17:27:04 UTC
Is this latest master? I hoped to have this beast fixed by now :-/
Comment 3 Miquel Sabaté 2014-12-02 22:08:16 UTC
Yes, this is current master, sorry :P
Comment 4 Kevin Funk 2015-10-22 06:22:30 UTC
Still reproducible, Miquel?