Bug 366389

Summary: segfault on start
Product: [Applications] kdevelop Reporter: Vladislav Tsendrovskii <vlad>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED WAITINGFORINFO    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Vladislav Tsendrovskii 2016-08-03 22:07:25 UTC
Application: kdevelop (4.90.92)
 (Compiled from sources)
Qt Version: 5.6.1
Frameworks Version: 5.23.0
Operating System: Linux 4.4.1 x86_64
Distribution: "NAME=Gentoo"

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

I've tried to start kdevelop5 with any my project, created by kdevelop4. kdevelop segfaults after start

The crash can be reproduced every time.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f2a4a25b780 (LWP 6561))]

Thread 8 (Thread 0x7f2a30d1d700 (LWP 6562)):
#0  0x00007f2a49f9bc7d in poll () from /lib64/libc.so.6
#1  0x00007f2a3e2f0a72 in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007f2a3e2f2627 in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007f2a32a75ef9 in QXcbEventReader::run() () from /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007f2a4a65e17b in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f2a4400d42c in start_thread () from /lib64/libpthread.so.0
#6  0x00007f2a49fa4b8d in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7f2a2ae8d700 (LWP 6563)):
#0  0x00007f2a4a656d41 in QMutex::lock() () from /usr/lib64/libQt5Core.so.5
#1  0x00007f2a4a845d73 in postEventSourcePrepare(_GSource*, int*) () from /usr/lib64/libQt5Core.so.5
#2  0x00007f2a41fee76c in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f2a41fef128 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f2a41fef30c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f2a4a845fac in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#6  0x00007f2a4a7fa162 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#7  0x00007f2a4a659aa4 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#8  0x00007f2a4c8831dd in QDBusConnectionManager::run() () from /usr/lib64/libQt5DBus.so.5
#9  0x00007f2a4a65e17b in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#10 0x00007f2a4400d42c in start_thread () from /lib64/libpthread.so.0
#11 0x00007f2a49fa4b8d in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7f2a213ad700 (LWP 6565)):
#0  0x00007f2a44012f4f in pthread_cond_wait () from /lib64/libpthread.so.0
#1  0x00007f2a23a4da43 in ?? () from /usr/lib64/dri/r600_dri.so
#2  0x00007f2a23a4d1b7 in ?? () from /usr/lib64/dri/r600_dri.so
#3  0x00007f2a4400d42c in start_thread () from /lib64/libpthread.so.0
#4  0x00007f2a49fa4b8d in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f2a205a7700 (LWP 6566)):
#0  0x00007f2a440132f8 in pthread_cond_timedwait () from /lib64/libpthread.so.0
#1  0x00007f2a4a65e7a8 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQt5Core.so.5
#2  0x00007f2a480a17a0 in KDevelop::DUChainPrivate::CleanupThread::run() () from /usr/lib64/libKDevPlatformLanguage.so.10
#3  0x00007f2a4a65e17b in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f2a4400d42c in start_thread () from /lib64/libpthread.so.0
#5  0x00007f2a49fa4b8d in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f2a17de5700 (LWP 6567)):
#0  0x00007ffc4c350ad2 in clock_gettime ()
#1  0x00007f2a49fb1596 in clock_gettime () from /lib64/libc.so.6
#2  0x00007f2a4a6fa61b in qt_gettime() () from /usr/lib64/libQt5Core.so.5
#3  0x00007f2a4a844459 in QTimerInfoList::updateCurrentTime() () from /usr/lib64/libQt5Core.so.5
#4  0x00007f2a4a84485d in QTimerInfoList::timerWait(timespec&) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f2a4a845b6c in timerSourcePrepareHelper(GTimerSource*, int*) () from /usr/lib64/libQt5Core.so.5
#6  0x00007f2a4a845c2d in timerSourcePrepare(_GSource*, int*) () from /usr/lib64/libQt5Core.so.5
#7  0x00007f2a41fee76c in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#8  0x00007f2a41fef128 in ?? () from /usr/lib64/libglib-2.0.so.0
#9  0x00007f2a41fef30c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#10 0x00007f2a4a845fac in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#11 0x00007f2a4a7fa162 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#12 0x00007f2a4a659aa4 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#13 0x00007f2a408ef3d5 in QQmlThreadPrivate::run() () from /usr/lib64/libQt5Qml.so.5
#14 0x00007f2a4a65e17b in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#15 0x00007f2a4400d42c in start_thread () from /lib64/libpthread.so.0
#16 0x00007f2a49fa4b8d in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f2a0fdc5700 (LWP 6577)):
#0  0x00007f2a49f9bc7d in poll () from /lib64/libc.so.6
#1  0x00007f2a41fef1fc in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f2a41fef30c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f2a4a845fac in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f2a4a7fa162 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f2a4a659aa4 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007f2a4a65e17b in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#7  0x00007f2a4400d42c in start_thread () from /lib64/libpthread.so.0
#8  0x00007f2a49fa4b8d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f2a0f5c4700 (LWP 6579)):
#0  0x00007f2a440132f8 in pthread_cond_timedwait () from /lib64/libpthread.so.0
#1  0x00007f2a4a65e7a8 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQt5Core.so.5
#2  0x00007f2a4a65aa10 in QThreadPoolThread::run() () from /usr/lib64/libQt5Core.so.5
#3  0x00007f2a4a65e17b in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f2a4400d42c in start_thread () from /lib64/libpthread.so.0
#5  0x00007f2a49fa4b8d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f2a4a25b780 (LWP 6561)):
[KCrash Handler]
#6  0x00007f29fd7422d3 in _GLOBAL__sub_I_XCoreMCTargetDesc.cpp () from /usr/lib64/../lib64/libLLVMXCoreDesc.so.3.7
#7  0x00007f2a4c73d0ea in call_init.part () from /lib64/ld-linux-x86-64.so.2
#8  0x00007f2a4c73d24f in _dl_init () from /lib64/ld-linux-x86-64.so.2
#9  0x00007f2a4c7415a0 in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
#10 0x00007f2a4c73cf94 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#11 0x00007f2a4c740ceb in _dl_open () from /lib64/ld-linux-x86-64.so.2
#12 0x00007f2a422defb9 in dlopen_doit () from /lib64/libdl.so.2
#13 0x00007f2a4c73cf94 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#14 0x00007f2a422df559 in _dlerror_run () from /lib64/libdl.so.2
#15 0x00007f2a422df041 in dlopen () from /lib64/libdl.so.2
#16 0x00007f2a4a7f8590 in QLibraryPrivate::load_sys() () from /usr/lib64/libQt5Core.so.5
#17 0x00007f2a4a7f1a0d in QLibraryPrivate::load() () from /usr/lib64/libQt5Core.so.5
#18 0x00007f2a4a7f1c2b in QLibraryPrivate::loadPlugin() () from /usr/lib64/libQt5Core.so.5
#19 0x00007f2a4b5ee4ca in KPluginLoader::load() () from /usr/lib64/libKF5CoreAddons.so.5
#20 0x00007f2a4b5ee5ea in KPluginLoader::instance() () from /usr/lib64/libKF5CoreAddons.so.5
#21 0x00007f2a4b5ee627 in KPluginLoader::factory() () from /usr/lib64/libKF5CoreAddons.so.5
#22 0x00007f2a4c411af4 in KDevelop::PluginController::loadPluginInternal(QString const&) () from /usr/lib64/libKDevPlatformShell.so.10
#23 0x00007f2a4c413631 in KDevelop::PluginController::allPluginsForExtension(QString const&, QMap<QString, QVariant> const&) () from /usr/lib64/libKDevPlatformShell.so.10
#24 0x00007f2a4c450ebc in KDevelop::LanguageController::languagesForMimetype(QString const&) () from /usr/lib64/libKDevPlatformShell.so.10
#25 0x00007f2a4c451b62 in KDevelop::LanguageController::languagesForUrl(QUrl const&) () from /usr/lib64/libKDevPlatformShell.so.10
#26 0x00007f2a4807247a in KDevelop::BackgroundParserPrivate::createParseJob(KDevelop::IndexedString const&, KDevelop::TopDUContext::Features, QList<QPointer<QObject> > const&, int) () from /usr/lib64/libKDevPlatformLanguage.so.10
#27 0x00007f2a4806f975 in KDevelop::BackgroundParserPrivate::parseDocumentsInternal() [clone .part.98] () from /usr/lib64/libKDevPlatformLanguage.so.10
#28 0x00007f2a480705fd in KDevelop::BackgroundParser::parseDocuments() () from /usr/lib64/libKDevPlatformLanguage.so.10
#29 0x00007f2a481f3075 in KDevelop::BackgroundParser::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib64/libKDevPlatformLanguage.so.10
#30 0x00007f2a4a822e72 in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5
#31 0x00007f2a4b08a1dc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#32 0x00007f2a4b08e890 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#33 0x00007f2a4a7fb530 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#34 0x00007f2a4a7fd6e2 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQt5Core.so.5
#35 0x00007f2a4a845f23 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/libQt5Core.so.5
#36 0x00007f2a41feef84 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#37 0x00007f2a41fef260 in ?? () from /usr/lib64/libglib-2.0.so.0
#38 0x00007f2a41fef30c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#39 0x00007f2a4a845f8f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#40 0x00007f2a4a7fa162 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#41 0x00007f2a4a801aec in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#42 0x000000000040b8ae in main ()

Reported using DrKonqi
Comment 1 Kevin Funk 2016-08-04 07:22:44 UTC
Curious: Did you have KDevelop 5 running before? Did it break just recently for you?

Are you running 5.0 or master branch?
Comment 2 Milian Wolff 2016-08-04 09:39:15 UTC
This looks like an ABI problem to me - please check which plugin is being loaded there. To do that, enable the shell debug output and look at the console output of KDevelop then:

QT_LOGGING_RULES="kdevplatform.shell.debug=true" kdevelop

it will then e.g. output something like

debug: kdevelop/kdevplatform.shell/KDevelop::PluginController::loadPluginInternal: Attempting to load "KDevOutlineView" - name: "Outline" [/home/milian/projects/kf5/src/extragear/kdevelop/kdevplatform/shell/plugincontroller.cpp:501/pid=21647]

the last of these lines before the crash should hint at the problematic plugin, which you could then remove and/or rebuild to fix this issue
Comment 3 Kevin Funk 2016-09-08 10:32:55 UTC
@Reporter: Please report back if you still have that problem.