Bug 316101

Summary: Crash after cmake configuration of project
Product: [Applications] kdevelop Reporter: AndrĂ© Stein <andre.stein.1985>
Component: Build tools: CMakeAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: git master   
Target Milestone: 4.3.0   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description André Stein 2013-03-04 08:46:36 UTC
I re-configured my project (CMake) and kdevelop crashed with the following backtrace:

Application: KDevelop (kdevelop), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fbe2de517c0 (LWP 4115))]

Thread 17 (Thread 0x7fbe1004c700 (LWP 4189)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007fbe2bba30a7 in wait (time=1000, this=0x2a21970) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2a21810, time=1000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fbe27a6be4b in KDevelop::DUChainPrivate::CleanupThread::run (this=0x2a217f0) at /home/stone/build/kdevplatform/language/duchain/duchain.cpp:282
#4  0x00007fbe2bba2bec in QThreadPrivate::start (arg=0x2a217f0) at thread/qthread_unix.cpp:338
#5  0x00007fbe29996f8e in start_thread (arg=0x7fbe1004c700) at pthread_create.c:311
#6  0x00007fbe2a8a8e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 16 (Thread 0x7fbdfebaf700 (LWP 4369)):
#0  0x00007fff7b3fe8d2 in ?? ()
#1  0x0000000000000000 in ?? ()

Thread 15 (Thread 0x7fbdf48d0700 (LWP 4437)):
#0  0x00007fff7b3fe8d2 in ?? ()
#1  0x0000000000000000 in ?? ()

Thread 14 (Thread 0x7fbdef598700 (LWP 4439)):
#0  0x00007fff7b3fe8d2 in ?? ()
#1  0x0000000000000000 in ?? ()

Thread 13 (Thread 0x7fbdeed97700 (LWP 4440)):
#0  0x00007fbe2a89c3cd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fbe24c6115c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fbe24c61284 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fbe2bcce026 in QEventDispatcherGlib::processEvents (this=0x7fbddc0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007fbe2bc9e37f in QEventLoop::processEvents (this=this@entry=0x7fbdeed96dc0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fbe2bc9e608 in QEventLoop::exec (this=0x7fbdeed96dc0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fbe2bba0410 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#7  0x00007fbe2bba2bec in QThreadPrivate::start (arg=0x43c18e0) at thread/qthread_unix.cpp:338
#8  0x00007fbe29996f8e in start_thread (arg=0x7fbdeed97700) at pthread_create.c:311
#9  0x00007fbe2a8a8e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 12 (Thread 0x7fbdedd20700 (LWP 4461)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fbe26dd0e77 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7fbe270de660 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007fbe26dd0ea9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007fbe29996f8e in start_thread (arg=0x7fbdedd20700) at pthread_create.c:311
#4  0x00007fbe2a8a8e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 11 (Thread 0x7fbde3bef700 (LWP 4592)):
#0  0x00007fbe2a89c3cd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fbe24c6115c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fbe24c61284 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fbe2bcce026 in QEventDispatcherGlib::processEvents (this=0x7fbdd80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007fbe2bc9e37f in QEventLoop::processEvents (this=this@entry=0x7fbde3beed90, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fbe2bc9e608 in QEventLoop::exec (this=0x7fbde3beed90, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fbe2bba0410 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#7  0x00007fbe2bc7fecf in QInotifyFileSystemWatcherEngine::run (this=0x6b28690) at io/qfilesystemwatcher_inotify.cpp:256
#8  0x00007fbe2bba2bec in QThreadPrivate::start (arg=0x6b28690) at thread/qthread_unix.cpp:338
#9  0x00007fbe29996f8e in start_thread (arg=0x7fbde3bef700) at pthread_create.c:311
#10 0x00007fbe2a8a8e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 10 (Thread 0x7fbdcffff700 (LWP 4890)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fbe218291e5 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007fbe21829239 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007fbe29996f8e in start_thread (arg=0x7fbdcffff700) at pthread_create.c:311
#4  0x00007fbe2a8a8e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 9 (Thread 0x7fbdcf7fe700 (LWP 4892)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fbe2156fea9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007fbe2185798e in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007fbe29996f8e in start_thread (arg=0x7fbdcf7fe700) at pthread_create.c:311
#4  0x00007fbe2a8a8e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 8 (Thread 0x7fbde14ee700 (LWP 4893)):
#0  0x00007fbe2a89c3cd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fbe24c6115c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fbe24c61284 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fbe2bcce026 in QEventDispatcherGlib::processEvents (this=0x7fbdd05257b0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007fbe2bc9e37f in QEventLoop::processEvents (this=this@entry=0x7fbde14eddc0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fbe2bc9e608 in QEventLoop::exec (this=0x7fbde14eddc0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fbe2bba0410 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#7  0x00007fbe2bba2bec in QThreadPrivate::start (arg=0x6c01d70) at thread/qthread_unix.cpp:338
#8  0x00007fbe29996f8e in start_thread (arg=0x7fbde14ee700) at pthread_create.c:311
#9  0x00007fbe2a8a8e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 7 (Thread 0x7fbde1cef700 (LWP 4904)):
#0  0x00007fff7b3fe8d2 in ?? ()
#1  0x00007fbdd4003020 in ?? ()
#2  0x00000000c8001550 in ?? ()
#3  0x00007fbdc806a530 in ?? ()
#4  0x00007fbde1ceeb80 in ?? ()
#5  0x00007fbde1ceec38 in ?? ()
#6  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7fbdcdfbf700 (LWP 4913)):
#0  0x00007fff7b3fe8d2 in ?? ()
#1  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fbdcc9e2700 (LWP 5218)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fbe2bba314b in wait (time=18446744073709551615, this=0x19ad8a0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x19f39a0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fbe2253f041 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x19f3740, th=0xa777d70) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fbe2254194b in ThreadWeaver::WorkingHardState::applyForWork (this=0x19d5c70, th=0xa777d70) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fbe22541964 in ThreadWeaver::WorkingHardState::applyForWork (this=0x19d5c70, th=0xa777d70) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007fbe2254063f in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7fbdcc9e1dc0, parent=0x19f3740, th=th@entry=0xa777d70) at ../../../threadweaver/Weaver/Thread.cpp:87
#7  0x00007fbe225406cb in ThreadWeaver::Thread::run (this=0xa777d70) at ../../../threadweaver/Weaver/Thread.cpp:142
#8  0x00007fbe2bba2bec in QThreadPrivate::start (arg=0xa777d70) at thread/qthread_unix.cpp:338
#9  0x00007fbe29996f8e in start_thread (arg=0x7fbdcc9e2700) at pthread_create.c:311
#10 0x00007fbe2a8a8e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 4 (Thread 0x7fbd7fffd700 (LWP 5219)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fbe2bba314b in wait (time=18446744073709551615, this=0x19ad8a0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x19f39a0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fbe2253f041 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x19f3740, th=0x7fbd70002e50) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fbe2254194b in ThreadWeaver::WorkingHardState::applyForWork (this=0x19d5c70, th=0x7fbd70002e50) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fbe2254063f in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7fbd7fffcdc0, parent=0x19f3740, th=th@entry=0x7fbd70002e50) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007fbe225406cb in ThreadWeaver::Thread::run (this=0x7fbd70002e50) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007fbe2bba2bec in QThreadPrivate::start (arg=0x7fbd70002e50) at thread/qthread_unix.cpp:338
#8  0x00007fbe29996f8e in start_thread (arg=0x7fbd7fffd700) at pthread_create.c:311
#9  0x00007fbe2a8a8e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7fbdcd7be700 (LWP 5507)):
#0  0x00007fff7b3fe8d2 in ?? ()
#1  0x00007fbe24f12078 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fbdce7c0700 (LWP 5508)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007fbe2bba30a7 in wait (time=30000, this=0xa478cf0) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0xa46ec08, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fbe2bb9664f in QThreadPoolThread::run (this=0xa48ef50) at concurrent/qthreadpool.cpp:141
#4  0x00007fbe2bba2bec in QThreadPrivate::start (arg=0xa48ef50) at thread/qthread_unix.cpp:338
#5  0x00007fbe29996f8e in start_thread (arg=0x7fbdce7c0700) at pthread_create.c:311
#6  0x00007fbe2a8a8e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7fbe2de517c0 (LWP 4115)):
[KCrash Handler]
#6  0x00007fbe28061b54 in KDevelop::ProjectBaseItem::project (this=0xa46b080) at /home/stone/build/kdevplatform/project/projectmodel.cpp:412
#7  0x00007fbde27663fa in MakeBuilder::runMake (this=0x7313630, item=0xb11d9a0, c=c@entry=MakeJob::BuildCommand, overrideTargets=..., variables=...) at /home/stone/build/kdevelop/projectbuilders/makebuilder/makebuilder.cpp:131
#8  0x00007fbde27665f0 in MakeBuilder::build (this=<optimized out>, dom=<optimized out>) at /home/stone/build/kdevelop/projectbuilders/makebuilder/makebuilder.cpp:53
#9  0x00007fbde2559a24 in CMakeBuilder::build (this=0x6d0cc60, dom=<optimized out>) at /home/stone/build/kdevelop/projectbuilders/cmakebuilder/cmakebuilder.cpp:135
#10 0x00007fbe2806aa9b in KDevelop::BuilderJobPrivate::addJob (this=0x9d576c0, t=t@entry=KDevelop::BuilderJob::Build, item=0xb11d9a0) at /home/stone/build/kdevplatform/project/builderjob.cpp:123
#11 0x00007fbe2806b0ee in KDevelop::BuilderJob::addItems (this=0xb10ac90, t=KDevelop::BuilderJob::Build, items=...) at /home/stone/build/kdevplatform/project/builderjob.cpp:164
#12 0x00007fbdf711b07a in ProjectManagerViewPlugin::runBuilderJob (this=this@entry=0x3edf480, type=type@entry=KDevelop::BuilderJob::Build, items=...) at /home/stone/build/kdevplatform/plugins/projectmanagerview/projectmanagerviewplugin.cpp:389
#13 0x00007fbdf711c2b0 in ProjectManagerViewPlugin::buildProjectItems (this=0x3edf480) at /home/stone/build/kdevplatform/plugins/projectmanagerview/projectmanagerviewplugin.cpp:416
#14 0x00007fbe2bcb40df in QMetaObject::activate (sender=0x388ce20, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff7b3814c0) at kernel/qobject.cpp:3539
#15 0x00007fbe2b03f152 in QAction::triggered (this=this@entry=0x388ce20, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#16 0x00007fbe2b040580 in QAction::activate (this=0x388ce20, event=<optimized out>) at kernel/qaction.cpp:1257
#17 0x00007fbe2b404a9f in QAbstractButtonPrivate::click (this=this@entry=0x3ee3a90) at widgets/qabstractbutton.cpp:530
#18 0x00007fbe2b404d4c in QAbstractButton::mouseReleaseEvent (this=0x3eea810, e=0x7fff7b381d70) at widgets/qabstractbutton.cpp:1123
#19 0x00007fbe2b4c182a in QToolButton::mouseReleaseEvent (this=<optimized out>, e=<optimized out>) at widgets/qtoolbutton.cpp:718
#20 0x00007fbe2b092a89 in QWidget::event (this=0x3eea810, event=0x7fff7b381d70) at kernel/qwidget.cpp:8375
#21 0x00007fbe2b0458ec in QApplicationPrivate::notify_helper (this=this@entry=0x1704a00, receiver=receiver@entry=0x3eea810, e=e@entry=0x7fff7b381d70) at kernel/qapplication.cpp:4567
#22 0x00007fbe2b048a33 in QApplication::notify (this=<optimized out>, receiver=0x3eea810, e=0x7fff7b381d70) at kernel/qapplication.cpp:4110
#23 0x00007fbe2c229666 in KApplication::notify (this=0x7fff7b382ca0, receiver=0x3eea810, event=0x7fff7b381d70) at ../../kdeui/kernel/kapplication.cpp:311
#24 0x00007fbe2bc9f62e in QCoreApplication::notifyInternal (this=0x7fff7b382ca0, receiver=0x3eea810, event=0x7fff7b381d70) at kernel/qcoreapplication.cpp:946
#25 0x00007fbe2b04b933 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#26 QApplicationPrivate::sendMouseEvent (receiver=0x3eea810, event=0x7fff7b381d70, alienWidget=0x3eea810, nativeWidget=0x1bcc8d0, buttonDown=0x7fbe2bb23308 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3178
#27 0x00007fbe2b0c0ec4 in QETWidget::translateMouseEvent (this=this@entry=0x1bcc8d0, event=event@entry=0x7fff7b3824f0) at kernel/qapplication_x11.cpp:4631
#28 0x00007fbe2b0bfef1 in QApplication::x11ProcessEvent (this=0x7fff7b382ca0, event=0x7fff7b3824f0) at kernel/qapplication_x11.cpp:3746
#29 0x00007fbe2b0eb0b2 in x11EventSourceDispatch (s=0x1706270, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#30 0x00007fbe24c60e85 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007fbe24c611c8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007fbe24c61284 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007fbe2bcce006 in QEventDispatcherGlib::processEvents (this=0x1644ad0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#34 0x00007fbe2b0eb1ae in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#35 0x00007fbe2bc9e37f in QEventLoop::processEvents (this=this@entry=0x7fff7b3828c0, flags=...) at kernel/qeventloop.cpp:149
#36 0x00007fbe2bc9e608 in QEventLoop::exec (this=0x7fff7b3828c0, flags=...) at kernel/qeventloop.cpp:204
#37 0x00007fbe2bca3ce6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#38 0x000000000040da9a in main (argc=<optimized out>, argv=<optimized out>) at /home/stone/build/kdevelop/app/main.cpp:506


I have Qt 4.8.4.

Reproducible: Sometimes
Comment 1 Kevin Funk 2013-03-05 12:59:15 UTC

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