https://bugs.kde.org/show_bug.cgi?id=367803
Bug ID: 367803 Summary: Crash when viewing file. Product: kdevelop Version: git master Platform: Compiled Sources OS: Linux Status: UNCONFIRMED Severity: crash Priority: NOR Component: general Assignee: kdevelop-bugs-n...@kde.org Reporter: m...@flherne.uk Just compiled git master of KDevelop/kdevplatform/kdev-python, having been using the 5.0 branch up to now. KDevelop crashes when opening/viewing any file, regardless of the content. kdevelop --ps works fine. Selecting any of my existing sessions, all of which have open files, triggers a crash. Creating a new session does not crash, giving a working KDevelop window, until I open or create a file. Reproducible: Always Steps to Reproduce: 1. Start kdevelop. 2. Open or create a file. Backtrace is somewhat variable, but always seems to finish inside addPlugin(). CLI output and backtrace below: ---- (gdb) run Starting program: /usr/bin/kdevelop [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [New Thread 0x7fffd60ba700 (LWP 17522)] [New Thread 0x7fffcffff700 (LWP 17523)] org.kde.knotifications: Audio notification requested, but sound file from notifyrc file was not found, aborting audio notification [New Thread 0x7fffc18c1700 (LWP 17524)] cannot find .rc file "kdevlldbui.rc" for component "kdevlldb" [New Thread 0x7fffb1ae3700 (LWP 17525)] Thread 1 "kdevelop" received signal SIGSEGV, Segmentation fault. 0x00007ffff559306a in KActionCollection::addAssociatedWidget(QWidget*) () from /usr/lib/libKF5XmlGui.so.5 (gdb) bt full #0 0x00007ffff559306a in KActionCollection::addAssociatedWidget(QWidget*) () from /usr/lib/libKF5XmlGui.so.5 No symbol table info available. #1 0x00007ffff55ebc4e in KXMLGUIClient::beginXMLPlug(QWidget*) () from /usr/lib/libKF5XmlGui.so.5 No symbol table info available. #2 0x00007ffff55f7d43 in KXMLGUIFactory::addClient(KXMLGUIClient*) () from /usr/lib/libKF5XmlGui.so.5 No symbol table info available. #3 0x00007ffff7a2d228 in KDevelop::MainWindowPrivate::addPlugin (this=0x87ee70, plugin=0x277afd0) at /home/flh/projects/kdevplatform/shell/mainwindow_p.cpp:97 __PRETTY_FUNCTION__ = "void KDevelop::MainWindowPrivate::addPlugin(KDevelop::IPlugin*)" ownClient = 0x2768d68 #4 0x00007ffff7a2cb8f in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<KDevelop::IPlugin*>, void, void (KDevelop::MainWindowPrivate::*)(KDevelop::IPlugin*)>::call (f= (void (KDevelop::MainWindowPrivate::*)(KDevelop::MainWindowPrivate * const, KDevelop::IPlugin *)) 0x7ffff7a2d022 <KDevelop::MainWindowPrivate::addPlugin(KDevelop::IPlugin*)>, o=0x87ee70, arg=0x7fffffffa4f0) at /usr/include/qt/QtCore/qobjectdefs_impl.h:507 No locals. #5 0x00007ffff7a2c610 in QtPrivate::FunctionPointer<void (KDevelop::MainWindowPrivate::*)(KDevelop::IPlugin*)>::call<QtPrivate::List<KDevelop::IPlugin*>, void> (f= (void (KDevelop::MainWindowPrivate::*)(KDevelop::MainWindowPrivate * const, KDevelop::IPlugin *)) 0x7ffff7a2d022 <KDevelop::MainWindowPrivate::addPlugin(KDevelop::IPlugin*)>, o=0x87ee70, arg=0x7fffffffa4f0) at /usr/include/qt/QtCore/qobjectdefs_impl.h:526 No locals. #6 0x00007ffff7a2baaf in QtPrivate::QSlotObject<void (KDevelop::MainWindowPrivate::*)(KDevelop::IPlugin*), QtPrivate::List<KDevelop::IPlugin*>, void>::impl (which=1, this_=0x8e9de0, r=0x87ee70, a=0x7fffffffa4f0, ret=0x0) at /usr/include/qt/QtCore/qobject_impl.h:149 No locals. #7 0x00007ffff10ea85e in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5 No symbol table info available. #8 0x00007ffff61c299f in KDevelop::IPluginController::pluginLoaded (this=0x8e7db0, _t1=0x277afd0) at /home/flh/projects/kdevplatform/build/interfaces/moc_iplugincontroller.cpp:235 _a = {0x0, 0x7fffffffa4e0} #9 0x00007ffff7a38604 in KDevelop::PluginController::loadPluginInternal (this=0x8e7db0, pluginId=...) at /home/flh/projects/kdevplatform/shell/plugincontroller.cpp:565 timer = {t1 = 147598, t2 = 299522362} info = {m_metaData = {d = 0x9addf0, o = 0xa8b218}, m_fileName = {static null = {<No data fields>}, d = 0x9a5a30}, d = {d = 0x0}} __PRETTY_FUNCTION__ = "KDevelop::IPlugin* KDevelop::PluginController::loadPluginInternal(const QString&)" missingInterfaces = {<QList<QString>> = {<QListSpecialMethods<QString>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7ffff116c180 <QListData::shared_null>}, d = 0x7ffff116c180 <QListData::shared_null>}}, <No data fields>} failedDependency = {static null = {<No data fields>}, d = 0x7ffff116a360 <QArrayData::shared_null>} loader = <incomplete type> factory = 0x89c3f0 plugin = 0x277afd0 group = <incomplete type> #10 0x00007ffff7a3908a in KDevelop::PluginController::<lambda(const KPluginMetaData&)>::operator()(const KPluginMetaData &) const (__closure=0x7fffffffaa30, info=...) at /home/flh/projects/kdevplatform/shell/plugincontroller.cpp:645 plugin = 0x0 plugins = @0x7fffffffaba0: {<QListSpecialMethods<KDevelop::IPlugin*>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7ffff116c180 <QListData::shared_null>}, d = 0x7ffff116c180 <QListData::shared_null>}} this = 0x8e7db0 #11 0x00007ffff7a3ab3b in KDevelop::PluginControllerPrivate::foreachEnabledPlugin<KDevelop::PluginController::allPluginsForExtension(const QString&, const QVariantMap&)::<lambda(const KPluginMetaData&)> >(KDevelop::PluginController::<lambda(const KPluginMetaData&)>, const QString &, const QVariantMap &, const QString &) (this=0x8e20e0, func=..., extension=..., constraints=..., pluginName=...) at /home/flh/projects/kdevplatform/shell/plugincontroller.cpp:220 info = @0xbb3768: {m_metaData = {d = 0x9addf0, o = 0xa8b218}, m_fileName = {static null = {<No data fields>}, d = 0x9a5a30}, d = {d = 0x0}} _container_ = {c = {d = 0xbb3610}, i = {i = 0xbb3768}, e = {i = 0xbb3cc8}, control = 1} #12 0x00007ffff7a3915e in KDevelop::PluginController::allPluginsForExtension (this=0x8e7db0, extension=..., constraints=...) at /home/flh/projects/kdevplatform/shell/plugincontroller.cpp:651 plugins = {<QListSpecialMethods<KDevelop::IPlugin*>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7ffff116c180 <QListData::shared_null>}, d = 0x7ffff116c180 <QListData::shared_null>}} #13 0x00007ffff7ab7cba in KDevelop::SourceFormatterController::findFirstFormatterForMimeType (this=0xc2be90, mime=...) at /home/flh/projects/kdevplatform/shell/sourceformattercontroller.cpp:182 knownFormatters = {{d = 0x7ffff116c100 <QHashData::shared_null>, e = 0x7ffff116c100 <QHashData::shared_null>}} plugins = {<QListSpecialMethods<KDevelop::IPlugin*>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7ffff116c180 <QListData::shared_null>}, d = 0x7ffff116c180 <QListData::shared_null>}} #14 0x00007ffff7ab88af in KDevelop::SourceFormatterController::isMimeTypeSupported (this=0xc2be90, mime=...) at /home/flh/projects/kdevplatform/shell/sourceformattercontroller.cpp:249 No locals. #15 0x00007ffff7ab9c7a in KDevelop::SourceFormatterController::activeDocumentChanged (this=0xc2be90, doc=0x1818230) at /home/flh/projects/kdevplatform/shell/sourceformattercontroller.cpp:349 mime = {d = {d = 0x207eba0}} ---Type <return> to continue, or q <return> to quit--- enabled = false #16 0x00007ffff7ac09f7 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<KDevelop::IDocument*>, void, void (KDevelop::SourceFormatterController::*)(KDevelop::IDocument*)>::call (f= (void (KDevelop::SourceFormatterController::*)(KDevelop::SourceFormatterController * const, KDevelop::IDocument *)) 0x7ffff7ab9be4 <KDevelop::SourceFormatterController::activeDocumentChanged(KDevelop::IDocument*)>, o=0xc2be90, arg=0x7fffffffaeb0) at /usr/include/qt/QtCore/qobjectdefs_impl.h:507 No locals. #17 0x00007ffff7ac055a in QtPrivate::FunctionPointer<void (KDevelop::SourceFormatterController::*)(KDevelop::IDocument*)>::call<QtPrivate::List<KDevelop::IDocument*>, void> (f= (void (KDevelop::SourceFormatterController::*)(KDevelop::SourceFormatterController * const, KDevelop::IDocument *)) 0x7ffff7ab9be4 <KDevelop::SourceFormatterController::activeDocumentChanged(KDevelop::IDocument*)>, o=0xc2be90, arg=0x7fffffffaeb0) at /usr/include/qt/QtCore/qobjectdefs_impl.h:526 No locals. #18 0x00007ffff7abfaa7 in QtPrivate::QSlotObject<void (KDevelop::SourceFormatterController::*)(KDevelop::IDocument*), QtPrivate::List<KDevelop::IDocument*>, void>::impl (which=1, this_=0xc16fc0, r=0xc2be90, a=0x7fffffffaeb0, ret=0x0) at /usr/include/qt/QtCore/qobject_impl.h:149 No locals. #19 0x00007ffff10ea85e in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5 No symbol table info available. #20 0x00007ffff61c19f3 in KDevelop::IDocumentController::documentActivated (this=0xba5a50, _t1=0x1818230) at /home/flh/projects/kdevplatform/build/interfaces/moc_idocumentcontroller.cpp:502 _a = {0x0, 0x7fffffffaea0} #21 0x00007ffff61b3f4e in KDevelop::IDocument::notifyActivated (this=0x1818230) at /home/flh/projects/kdevplatform/interfaces/idocument.cpp:80 No locals. #22 0x00007ffff7a74f39 in KDevelop::PartDocument::activate (this=0x1818210, activeView=0x17c3bf0, mainWindow=0x7ad6a0) at /home/flh/projects/kdevplatform/shell/partdocument.cpp:174 part = 0x1811870 #23 0x00007ffff7a2d6a0 in KDevelop::MainWindowPrivate::changeActiveView (this=0x87ee70, view=0x17c3bf0) at /home/flh/projects/kdevplatform/shell/mainwindow_p.cpp:150 s = {m_wasupdating = true, m_done = false, m_w = 0x7ad6a0} doc = 0x1818230 #24 0x00007ffff7a2cd55 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<Sublime::View*>, void, void (KDevelop::MainWindowPrivate::*)(Sublime::View*)>::call (f= (void (KDevelop::MainWindowPrivate::*)(KDevelop::MainWindowPrivate * const, Sublime::View *)) 0x7ffff7a2d5f2 <KDevelop::MainWindowPrivate::changeActiveView(Sublime::View*)>, o=0x87ee70, arg=0x7fffffffb160) at /usr/include/qt/QtCore/qobjectdefs_impl.h:507 No locals. #25 0x00007ffff7a2c7cb in QtPrivate::FunctionPointer<void (KDevelop::MainWindowPrivate::*)(Sublime::View*)>::call<QtPrivate::List<Sublime::View*>, void> (f= (void (KDevelop::MainWindowPrivate::*)(KDevelop::MainWindowPrivate * const, Sublime::View *)) 0x7ffff7a2d5f2 <KDevelop::MainWindowPrivate::changeActiveView(Sublime::View*)>, o=0x87ee70, arg=0x7fffffffb160) at /usr/include/qt/QtCore/qobjectdefs_impl.h:526 No locals. #26 0x00007ffff7a2bd2d in QtPrivate::QSlotObject<void (KDevelop::MainWindowPrivate::*)(Sublime::View*), QtPrivate::List<Sublime::View*>, void>::impl (which=1, this_=0x8e9db0, r=0x87ee70, a=0x7fffffffb160, ret=0x0) at /usr/include/qt/QtCore/qobject_impl.h:149 No locals. #27 0x00007ffff10ea85e in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5 No symbol table info available. #28 0x00007ffff6b0d713 in Sublime::MainWindow::activeViewChanged (this=0x7ad6a0, _t1=0x17c3bf0) at /home/flh/projects/kdevplatform/build/sublime/moc_mainwindow.cpp:300 _a = {0x0, 0x7fffffffb150} #29 0x00007ffff6b0b6e0 in Sublime::MainWindow::setActiveView (this=0x7ad6a0, view=0x17c3bf0, focus=true) at /home/flh/projects/kdevplatform/sublime/mainwindow.cpp:211 oldActiveView = 0x0 #30 0x00007ffff6b0b60a in Sublime::MainWindow::activateView (this=0x7ad6a0, view=0x17c3bf0, focus=true) at /home/flh/projects/kdevplatform/sublime/mainwindow.cpp:197 No locals. #31 0x00007ffff7a12815 in KDevelop::WorkingSet::loadToArea (this=0x1234310, area=0x8d30c0, areaIndex=0x8d31d0) at /home/flh/projects/kdevplatform/shell/workingsets/workingset.cpp:277 window = 0x7ad6a0 _container_ = {c = {<QListSpecialMethods<Sublime::MainWindow*>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7f0d70}, d = 0x7f0d70}}, i = {i = 0x7f0d80}, e = {i = 0x7f0d88}, control = 1} enableLoading = {<QScopedValueRollback<bool>> = {varRef = @0x7ffff7dd8e78, oldValue = false}, <No data fields>} __PRETTY_FUNCTION__ = "void KDevelop::WorkingSet::loadToArea(Sublime::Area*, Sublime::AreaIndex*)" recycle = {<QMap<QString, Sublime::View*>> = {d = 0x13908d0}, <No data fields>} setConfig = <incomplete type> setGroup = <incomplete type> areaGroup = <incomplete type> activeView = {static null = {<No data fields>}, d = 0x2715a30} #32 0x00007ffff7a0b912 in KDevelop::WorkingSetController::changedWorkingSet (this=0x796770, area=0x8d30c0, from=..., to=...) at /home/flh/projects/kdevplatform/shell/workingsetcontroller.cpp:300 newSet = 0x1234310 __PRETTY_FUNCTION__ = "void KDevelop::WorkingSetController::changedWorkingSet(Sublime::Area*, const QString&, const QString&)" #33 0x00007ffff7a10762 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0, 1, 2>, QtPrivate::List<Sublime::Area*, QString, QString>, void, void (KDevelop::WorkingSetController::*)(Sublime::Area*, QString const&, QString const---Type <return> to continue, or q <return> to quit--- &)>::call (f= (void (KDevelop::WorkingSetController::*)(KDevelop::WorkingSetController * const, Sublime::Area *, const QString &, const QString &)) 0x7ffff7a0b75a <KDevelop::WorkingSetController::changedWorkingSet(Sublime::Area*, QString const&, QString const&)>, o=0x796770, arg=0x7fffffffb710) at /usr/include/qt/QtCore/qobjectdefs_impl.h:507 No locals. #34 0x00007ffff7a101e3 in QtPrivate::FunctionPointer<void (KDevelop::WorkingSetController::*)(Sublime::Area*, QString const&, QString const&)>::call<QtPrivate::List<Sublime::Area*, QString, QString>, void> (f= (void (KDevelop::WorkingSetController::*)(KDevelop::WorkingSetController * const, Sublime::Area *, const QString &, const QString &)) 0x7ffff7a0b75a <KDevelop::WorkingSetController::changedWorkingSet(Sublime::Area*, QString const&, QString const&)>, o=0x796770, arg=0x7fffffffb710) at /usr/include/qt/QtCore/qobjectdefs_impl.h:526 No locals. #35 0x00007ffff7a0fb2d in QtPrivate::QSlotObject<void (KDevelop::WorkingSetController::*)(Sublime::Area*, QString const&, QString const&), QtPrivate::List<Sublime::Area*, QString, QString>, void>::impl (which=1, this_=0x8d37b0, r=0x796770, a=0x7fffffffb710, ret=0x0) at /usr/include/qt/QtCore/qobject_impl.h:149 No locals. #36 0x00007ffff10ea85e in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5 No symbol table info available. #37 0x00007ffff6b2b971 in Sublime::Area::changedWorkingSet (this=0x8d30c0, _t1=0x8d30c0, _t2=..., _t3=...) at /home/flh/projects/kdevplatform/build/sublime/moc_area.cpp:332 _a = {0x0, 0x7fffffffb700, 0x7fffffffb7d0, 0x7fffffffb7c0} #38 0x00007ffff6aeed09 in Sublime::Area::setWorkingSet (this=0x8d30c0, name=...) at /home/flh/projects/kdevplatform/sublime/area.cpp:407 oldName = {static null = {<No data fields>}, d = 0x7ffff116a360 <QArrayData::shared_null>} __PRETTY_FUNCTION__ = "void Sublime::Area::setWorkingSet(QString)" #39 0x00007ffff6aee7a7 in Sublime::Area::load (this=0x8d30c0, group=...) at /home/flh/projects/kdevplatform/sublime/area.cpp:344 __PRETTY_FUNCTION__ = "void Sublime::Area::load(const KConfigGroup&)" desired = {<QList<QString>> = {<QListSpecialMethods<QString>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x138fbe0}, d = 0x138fbe0}}, <No data fields>} #40 0x00007ffff7a4b3ba in KDevelop::UiController::loadArea (this=0x7b5960, area=0x8d30c0, group=...) at /home/flh/projects/kdevplatform/shell/uicontroller.cpp:556 No locals. #41 0x00007ffff7a4be66 in KDevelop::UiController::loadAllAreas (this=0x7b5960, config=...) at /home/flh/projects/kdevplatform/shell/uicontroller.cpp:642 type = {static null = {<No data fields>}, d = 0x7ffff7b3b360 <KDevelop::UiControllerPrivate::UiControllerPrivate(KDevelop::UiController*)::{lambda()#11}::operator()() const::qstring_literal>} i = {i = 0xffffffffffffffff} e = {i = 0x7fffffffbb80} area = 0x8d30c0 areaConfig = <incomplete type> defaultArea = 0x7c37a0 _container_ = {c = {<QListSpecialMethods<Sublime::Area*>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7d35f0}, d = 0x7d35f0}}, i = {i = 0x7d3600}, e = {i = 0x7d3618}, control = 1} mainWindowConfig = <incomplete type> mw = 0x7ad6a0 w = 0 uiConfig = <incomplete type> wc = 1 changedAreas = {<QListSpecialMethods<Sublime::Area*>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7ffff116c180 <QListData::shared_null>}, d = 0x7ffff116c180 <QListData::shared_null>}} __PRETTY_FUNCTION__ = "void KDevelop::UiController::loadAllAreas(KSharedConfigPtr)" #42 0x00007ffff7a46b2d in KDevelop::CorePrivate::initialize (this=0x777160, mode=KDevelop::Core::Default, session=...) at /home/flh/projects/kdevplatform/shell/core.cpp:278 __PRETTY_FUNCTION__ = "bool KDevelop::CorePrivate::initialize(KDevelop::Core::Setup, QString)" #43 0x00007ffff7a473bd in KDevelop::Core::initialize (splash=0x0, mode=KDevelop::Core::Default, session=...) at /home/flh/projects/kdevplatform/shell/core.cpp:361 ret = false #44 0x000000000040db4f in main (argc=1, argv=0x7fffffffe1d8) at /home/flh/projects/kdevelop/app/main.cpp:632 timer = {t1 = 147593, t2 = 36669} description = "The KDevelop Integrated Development Environment" aboutData = {d = 0x642340} debugArgs = {<QList<QString>> = {<QListSpecialMethods<QString>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7ffff116c180 <QListData::shared_null>}, d = 0x7ffff116c180 <QListData::shared_null>}}, <No data fields>} debugeeName = {static null = {<No data fields>}, d = 0x7ffff116a360 <QArrayData::shared_null>} app = {<QApplication> = {<No data fields>}, <No data fields>} migrator = {d = 0x6857a0} __PRETTY_FUNCTION__ = "int main(int, char**)" parser = {d = 0x690a50} initialFiles = {d = 0x7ffff116a360 <QArrayData::shared_null>} ---Type <return> to continue, or q <return> to quit--- availableSessionInfos = {d = 0x7194c0} session = {static null = {<No data fields>}, d = 0x7ffff116a360 <QArrayData::shared_null>} nRunningSessions = 0 core = 0x1 projectNames = {<QList<QString>> = {<QListSpecialMethods<QString>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7fff00000001}, d = 0x7fff00000001}}, <No data fields>} -- You are receiving this mail because: You are watching all bug changes.