Bug 323341

Summary: Crashes while scanning the project
Product: [Applications] kdevelop Reporter: Albert Vaca Cintora <albertvaka>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 4.5.60   
Target Milestone: 4.3.0   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Albert Vaca Cintora 2013-08-10 13:27:42 UTC
Application: kdevelop (4.5.60)
KDE Platform Version: 4.11.60 (Compiled from sources)
Qt Version: 4.8.5
Operating System: Linux 3.10.5-1-ARCH x86_64
Distribution: "Arch Linux"

-- Information about the crash:
When KDevelop is scanning your project, and the root element hasn't yet been added to the project browser, performing any action that needs to access it crashes the program.

This particular backtrace is from clicking the "locate current document" button, but this crash has happened to me in other situations.

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

Thread 13 (Thread 0x7f0e47430700 (LWP 13019)):
#0  0x00007f0e5f2128b4 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f0e5c34afdb in ?? () from /usr/lib/libQtScript.so.4
#2  0x00007f0e5c34b019 in ?? () from /usr/lib/libQtScript.so.4
#3  0x00007f0e5f20edd2 in start_thread () from /usr/lib/libpthread.so.0
#4  0x00007f0e5d5e3cdd in clone () from /usr/lib/libc.so.6

Thread 12 (Thread 0x7f0dc3f30700 (LWP 13022)):
#0  0x00007f0e5f212c61 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f0e5f49e244 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f0e5b6a2e9f in KDevelop::DUChainPrivate::CleanupThread::run (this=0x3317150) at /home/vaka/kde4/src/kdevplatform/language/duchain/duchain.cpp:283
#3  0x00007f0e5f49dd8f in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f0e5f20edd2 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007f0e5d5e3cdd in clone () from /usr/lib/libc.so.6

Thread 11 (Thread 0x7f0db63a1700 (LWP 13029)):
#0  0x00007f0e5d5db08d in poll () from /usr/lib/libc.so.6
#1  0x00007f0e568e8094 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f0e568e819c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f0e5f5cab85 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f0e5f59cb5f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f0e5f59ce55 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f0e5f49b6ef in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f0e5f49dd8f in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f0e5f20edd2 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007f0e5d5e3cdd in clone () from /usr/lib/libc.so.6

Thread 10 (Thread 0x7f0db5ba0700 (LWP 13030)):
#0  0x00007f0e5d5dcd03 in select () from /usr/lib/libc.so.6
#1  0x00007f0e5f57b053 in ?? () from /usr/lib/libQtCore.so.4
#2  0x00007f0e5f49dd8f in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f0e5f20edd2 in start_thread () from /usr/lib/libpthread.so.0
#4  0x00007f0e5d5e3cdd in clone () from /usr/lib/libc.so.6

Thread 9 (Thread 0x7f0dad480700 (LWP 13035)):
#0  0x00007f0e5d5db08d in poll () from /usr/lib/libc.so.6
#1  0x00007f0e568e8094 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f0e568e819c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f0e5f5caba6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f0e5f59cb5f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f0e5f59ce55 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f0e5f49b6ef in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f0e5f49dd8f in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f0e5f20edd2 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007f0e5d5e3cdd in clone () from /usr/lib/libc.so.6

Thread 8 (Thread 0x7f0dacc7f700 (LWP 13036)):
#0  0x00007f0e5d5db08d in poll () from /usr/lib/libc.so.6
#1  0x00007f0e568e8094 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f0e568e819c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f0e5f5caba6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f0e5f59cb5f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f0e5f59ce55 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f0e5f49b6ef in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f0e5f49dd8f in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f0e5f20edd2 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007f0e5d5e3cdd in clone () from /usr/lib/libc.so.6

Thread 7 (Thread 0x7f0d98e03700 (LWP 13069)):
#0  0x00007f0e5d5db08d in poll () from /usr/lib/libc.so.6
#1  0x00007f0e568e8094 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f0e568e819c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f0e5f5caba6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f0e5f59cb5f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f0e5f59ce55 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f0e5f49b6ef in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f0e5f57e303 in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f0e5f49dd8f in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007f0e5f20edd2 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007f0e5d5e3cdd in clone () from /usr/lib/libc.so.6

Thread 6 (Thread 0x7f0d9ae07700 (LWP 13084)):
#0  0x00007f0e5f2128b4 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f0e54f67f1d in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007f0e54f67f59 in ?? () from /usr/lib/libQtWebKit.so.4
#3  0x00007f0e5f20edd2 in start_thread () from /usr/lib/libpthread.so.0
#4  0x00007f0e5d5e3cdd in clone () from /usr/lib/libc.so.6

Thread 5 (Thread 0x7f0d9a606700 (LWP 13085)):
#0  0x00007f0e5f2128b4 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f0e54ca99cd in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007f0e54f976b6 in ?? () from /usr/lib/libQtWebKit.so.4
#3  0x00007f0e5f20edd2 in start_thread () from /usr/lib/libpthread.so.0
#4  0x00007f0e5d5e3cdd in clone () from /usr/lib/libc.so.6

Thread 4 (Thread 0x7f0d99604700 (LWP 13086)):
#0  0x00007fffaadb7b17 in ?? ()
#1  0x000000000720a7b8 in ?? ()
#2  0x000000025d5f526d in ?? ()
#3  0x00007f0d8c372dc0 in ?? ()
#4  0x00007f0d8c372dc0 in ?? ()
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f0d43ffd700 (LWP 13091)):
#0  0x00007f0e5d5db08d in poll () from /usr/lib/libc.so.6
#1  0x00007f0e568e8094 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f0e568e819c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f0e5f5cab85 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f0e5f59cb5f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f0e5f59ce55 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f0e5f49b6ef in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f0e5f57e303 in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f0e5f49dd8f in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007f0e5f20edd2 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007f0e5d5e3cdd in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7f0d437fc700 (LWP 13092)):
#0  0x00007f0e5d5dcd03 in select () from /usr/lib/libc.so.6
#1  0x00007f0e5f5c84fb in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) () from /usr/lib/libQtCore.so.4
#2  0x00007f0e5f577d6c in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f0e5f579528 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f0e5f531732 in QProcess::waitForFinished(int) () from /usr/lib/libQtCore.so.4
#5  0x00007f0e5f532398 in QProcess::~QProcess() () from /usr/lib/libQtCore.so.4
#6  0x00007f0e63529e09 in KProcess::~KProcess (this=0x7f0d9326c0e0, __in_chrg=<optimized out>) at /home/vaka/kde4/src/kdelibs/kdecore/io/kprocess.cpp:125
#7  0x00007f0db46be196 in qDeleteAll<QList<KProcess*>::const_iterator> (begin=..., end=...) at /usr/include/qt4/QtCore/qalgorithms.h:322
#8  0x00007f0db46c08b1 in qDeleteAll<QList<KProcess*> > (c=...) at /usr/include/qt4/QtCore/qalgorithms.h:330
#9  0x00007f0db46afa20 in CMakeProjectVisitor::visit (this=0x7f0d437fadb0, exec=0x7f0d9326bb00) at /home/vaka/kde4/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:1524
#10 0x00007f0db46b4071 in CMakeProjectVisitor::walk (this=this@entry=0x7f0d437fadb0, fc=..., line=line@entry=4, isClean=isClean@entry=false) at /home/vaka/kde4/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:2364
#11 0x00007f0db46b967b in CMakeProjectVisitor::visit (this=0x7f0d437fadb0, ifast=0x7f0d91cd4470) at /home/vaka/kde4/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:1403
#12 0x00007f0db46b4071 in CMakeProjectVisitor::walk (this=this@entry=0x7f0d437fadb0, fc=..., line=3, line@entry=0, isClean=isClean@entry=true) at /home/vaka/kde4/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:2364
#13 0x00007f0db46b5aae in CMakeProjectVisitor::visit (this=0x7f0d437fadb0, pack=0x7f0d93263d00) at /home/vaka/kde4/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:756
#14 0x00007f0db46b4071 in CMakeProjectVisitor::walk (this=this@entry=0x7f0d437fadb0, fc=..., line=line@entry=0, isClean=isClean@entry=true) at /home/vaka/kde4/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:2364
#15 0x00007f0db46b5aae in CMakeProjectVisitor::visit (this=0x7f0d437fadb0, pack=0x7f0d932526a0) at /home/vaka/kde4/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:756
#16 0x00007f0db46b4071 in CMakeProjectVisitor::walk (this=this@entry=0x7f0d437fadb0, fc=..., line=line@entry=0, isClean=isClean@entry=true) at /home/vaka/kde4/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:2364
#17 0x00007f0db46cc265 in CMakeParserUtils::includeScript (file=..., parent=..., data=data@entry=0x7f0d90001398, sourcedir=..., env=...) at /home/vaka/kde4/src/kdevelop/projectmanagers/cmake/parser/cmakeparserutils.cpp:185
#18 0x00007f0d9b450f2c in CMakeManager::includeScript (this=this@entry=0x6eb9a80, file=..., project=0x671b760, dir=..., parent=...) at /home/vaka/kde4/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:680
#19 0x00007f0d9b454d42 in CMakeManager::parse (this=0x6eb9a80, item=0x7f0d9320e7f0) at /home/vaka/kde4/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:764
#20 0x00007f0d9b456587 in CMakeManager::parse (this=0x6eb9a80, item=0x7f0d923e7a40) at /home/vaka/kde4/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:950
#21 0x00007f0d9b456587 in CMakeManager::parse (this=0x6eb9a80, item=0x7f0d911171f0) at /home/vaka/kde4/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:950
#22 0x00007f0d9b456587 in CMakeManager::parse (this=0x6eb9a80, item=0x6c38090) at /home/vaka/kde4/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:950
#23 0x00007f0e5bcdcfb9 in KDevelop::ImportProjectJobPrivate::import (this=0x6b37a40, folder=<optimized out>) at /home/vaka/kde4/src/kdevplatform/project/importprojectjob.cpp:53
#24 0x00007f0e5bcdcc36 in QtConcurrent::RunFunctionTask<void>::run (this=0x6c00570) at /usr/include/qt4/QtCore/qtconcurrentrunbase.h:134
#25 0x00007f0e5f49184e in ?? () from /usr/lib/libQtCore.so.4
#26 0x00007f0e5f49dd8f in ?? () from /usr/lib/libQtCore.so.4
#27 0x00007f0e5f20edd2 in start_thread () from /usr/lib/libpthread.so.0
#28 0x00007f0e5d5e3cdd in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7f0e63aa7780 (LWP 13018)):
[KCrash Handler]
#6  0x00007f0e5bcd422f in KDevelop::ProjectBaseItem::child (this=this@entry=0x7f0d92d563b0, row=row@entry=16) at /home/vaka/kde4/src/kdevplatform/project/projectmodel.cpp:187
#7  0x00007f0e5bcd44da in KDevelop::ProjectBaseItem::targetList (this=0x7f0d92d563b0) at /home/vaka/kde4/src/kdevplatform/project/projectmodel.cpp:538
#8  0x00007f0d9b44cbec in CMakeManager::targets (this=<optimized out>, folder=<optimized out>) at /home/vaka/kde4/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:1367
#9  0x00007f0d9b445c5c in CTestUtils::createTestSuites (testSuites=..., folder=folder@entry=0x7f0d92d563b0) at /home/vaka/kde4/src/kdevelop/projectmanagers/cmake/testing/ctestutils.cpp:49
#10 0x00007f0d9b4536eb in CMakeManager::createTestSuites (this=<optimized out>, testSuites=..., folder=0x7f0d92d563b0) at /home/vaka/kde4/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:1834
#11 0x00007f0e5f5b5f5e in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#12 0x00007f0e5e72612c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#13 0x00007f0e5e72c6f0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#14 0x00007f0e5fdb37c6 in KApplication::notify (this=0x7fffaada4570, receiver=0x6eb9a80, event=0x7f0d931538d0) at /home/vaka/kde4/src/kdelibs/kdeui/kernel/kapplication.cpp:311
#15 0x00007f0e5f59defd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#16 0x00007f0e5f5a0f4f in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#17 0x00007f0e5f5cb2c3 in ?? () from /usr/lib/libQtCore.so.4
#18 0x00007f0e568e7da6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#19 0x00007f0e568e80f8 in ?? () from /usr/lib/libglib-2.0.so.0
#20 0x00007f0e568e819c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#21 0x00007f0e5f5cab85 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#22 0x00007f0e5e7c32e6 in ?? () from /usr/lib/libQtGui.so.4
#23 0x00007f0e5f59cb5f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#24 0x00007f0e5f59ce55 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#25 0x00007f0e5f5a1f8b in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#26 0x000000000040eb78 in main (argc=<optimized out>, argv=<optimized out>) at /home/vaka/kde4/src/kdevelop/app/main.cpp:506

Possible duplicates by query: bug 317429.

Reported using DrKonqi
Comment 1 Kevin Funk 2013-08-11 17:28:52 UTC

*** This bug has been marked as a duplicate of bug 317429 ***