Using the build-button above the project sometimes, not always, produces a crash. Could be a duplicate of Bug 293982 - Crash while build. which is with version 4.2.2 which is why I've added this new bug. kdevelop and kdevplatform are built from sources using a git pull today, 23.4.2012 Reproducible: Sometimes Steps to Reproduce: 1. Build cmake configured project using the build button Actual Results: crash Qt: 4.7.0 KDE Development Platform: 4.5.3 (KDE 4.5.3) KDevelop: 4.3.60 Operating System: Linux 2.6.32-40-generic x86_64 Distribution: Ubuntu 10.04.4 Backtrace: Application: KDevelop (kdevelop), signal: Segmentation fault [Current thread is 1 (Thread 0x7fbbd586c760 (LWP 14723))] Thread 9 (Thread 0x7fbbb70cb700 (LWP 14843)): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211 #1 0x00007fbbd1bd9e12 in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x36f0710, time=1000) at thread/qwaitcondition_unix.cpp:86 #2 QWaitCondition::wait (this=<value optimized out>, mutex=0x36f0710, time=1000) at thread/qwaitcondition_unix.cpp:160 #3 0x00007fbbce2c4bdb in KDevelop::DUChainPrivate::CleanupThread::run (this=0x36f06f0) at /opt/kdevelop/4.3.0/kdevplatform/language/duchain/duchain.cpp:282 #4 0x00007fbbd1bd92ee in QThreadPrivate::start (arg=0x36f06f0) at thread/qthread_unix.cpp:266 #5 0x00007fbbd19479ca in start_thread (arg=<value optimized out>) at pthread_create.c:300 #6 0x00007fbbcffa9cdd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #7 0x0000000000000000 in ?? () Thread 8 (Thread 0x7fbba9e4d700 (LWP 14966)): #0 0x00007fbbcb175b3e in g_main_context_check () from /lib/libglib-2.0.so.0 #1 0x00007fbbcb1764c3 in ?? () from /lib/libglib-2.0.so.0 #2 0x00007fbbcb1768fc in g_main_context_iteration () from /lib/libglib-2.0.so.0 #3 0x00007fbbd1cf81d6 in QEventDispatcherGlib::processEvents (this=0x40c3850, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417 #4 0x00007fbbd1ccadd2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149 #5 0x00007fbbd1ccb1bc in QEventLoop::exec (this=0x7fbba9e4cdb0, flags=) at kernel/qeventloop.cpp:201 #6 0x00007fbbd1bd636d in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490 #7 0x00007fbbd1caab48 in QInotifyFileSystemWatcherEngine::run (this=0x3f409c0) at io/qfilesystemwatcher_inotify.cpp:248 #8 0x00007fbbd1bd92ee in QThreadPrivate::start (arg=0x3f409c0) at thread/qthread_unix.cpp:266 #9 0x00007fbbd19479ca in start_thread (arg=<value optimized out>) at pthread_create.c:300 #10 0x00007fbbcffa9cdd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #11 0x0000000000000000 in ?? () Thread 7 (Thread 0x7fbba8b0e700 (LWP 15116)): #0 0x00007fbbcff9d543 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87 #1 0x00007fbbcb1764a9 in ?? () from /lib/libglib-2.0.so.0 #2 0x00007fbbcb1768fc in g_main_context_iteration () from /lib/libglib-2.0.so.0 #3 0x00007fbbd1cf81d6 in QEventDispatcherGlib::processEvents (this=0x590e6c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417 #4 0x00007fbbd1ccadd2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149 #5 0x00007fbbd1ccb1bc in QEventLoop::exec (this=0x7fbba8b0ddf0, flags=) at kernel/qeventloop.cpp:201 #6 0x00007fbbd1bd636d in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490 #7 0x00007fbbd1bd92ee in QThreadPrivate::start (arg=0x5800800) at thread/qthread_unix.cpp:266 #8 0x00007fbbd19479ca in start_thread (arg=<value optimized out>) at pthread_create.c:300 #9 0x00007fbbcffa9cdd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #10 0x0000000000000000 in ?? () Thread 6 (Thread 0x7fbba830d700 (LWP 15117)): #0 0x00007fbbcb175ea5 in g_main_context_prepare () from /lib/libglib-2.0.so.0 #1 0x00007fbbcb176318 in ?? () from /lib/libglib-2.0.so.0 #2 0x00007fbbcb1768fc in g_main_context_iteration () from /lib/libglib-2.0.so.0 #3 0x00007fbbd1cf81d6 in QEventDispatcherGlib::processEvents (this=0x5901170, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417 #4 0x00007fbbd1ccadd2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149 #5 0x00007fbbd1ccb1bc in QEventLoop::exec (this=0x7fbba830cdf0, flags=) at kernel/qeventloop.cpp:201 #6 0x00007fbbd1bd636d in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490 #7 0x00007fbbd1bd92ee in QThreadPrivate::start (arg=0x5809b50) at thread/qthread_unix.cpp:266 #8 0x00007fbbd19479ca in start_thread (arg=<value optimized out>) at pthread_create.c:300 #9 0x00007fbbcffa9cdd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #10 0x0000000000000000 in ?? () Thread 5 (Thread 0x7fbba5dfb700 (LWP 16017)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162 #1 0x00007fbbc9e252be in ?? () from /usr/lib/libQtWebKit.so.4 #2 0x00007fbbc9e253d9 in ?? () from /usr/lib/libQtWebKit.so.4 #3 0x00007fbbd19479ca in start_thread (arg=<value optimized out>) at pthread_create.c:300 #4 0x00007fbbcffa9cdd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #5 0x0000000000000000 in ?? () Thread 4 (Thread 0x7fbba65fc700 (LWP 16074)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162 #1 0x00007fbbd1bd9eab in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0xa2cb9b0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88 #2 QWaitCondition::wait (this=<value optimized out>, mutex=0xa2cb9b0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160 #3 0x00007fbbd3cb5d84 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x23ad400, th=0x9627070) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365 #4 0x00007fbbd3cb8f8b in ThreadWeaver::WorkingHardState::applyForWork (this=0x9bd0700, th=0x9627070) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71 #5 0x00007fbbd3cb74ff in ThreadWeaver::ThreadRunHelper::run (this=0x7fbba65fbe00, parent=0x23ad400, th=0x9627070) at ../../../threadweaver/Weaver/Thread.cpp:87 #6 0x00007fbbd3cb7a58 in ThreadWeaver::Thread::run (this=0x9627070) at ../../../threadweaver/Weaver/Thread.cpp:142 #7 0x00007fbbd1bd92ee in QThreadPrivate::start (arg=0x9627070) at thread/qthread_unix.cpp:266 #8 0x00007fbbd19479ca in start_thread (arg=<value optimized out>) at pthread_create.c:300 #9 0x00007fbbcffa9cdd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #10 0x0000000000000000 in ?? () Thread 3 (Thread 0x7fbb9d9e4700 (LWP 18353)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162 #1 0x00007fbbd1bd9eab in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x27ed850, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88 #2 QWaitCondition::wait (this=<value optimized out>, mutex=0x27ed850, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160 #3 0x00007fbbd3cb5d84 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x27f8850, th=0xb5901b0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365 #4 0x00007fbbd3cb8f8b in ThreadWeaver::WorkingHardState::applyForWork (this=0x27ed280, th=0xb5901b0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71 #5 0x00007fbbd3cb8fa4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x27ed280, th=0xb5901b0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74 #6 0x00007fbbd3cb74ff in ThreadWeaver::ThreadRunHelper::run (this=0x7fbb9d9e3e00, parent=0x27f8850, th=0xb5901b0) at ../../../threadweaver/Weaver/Thread.cpp:87 #7 0x00007fbbd3cb7a58 in ThreadWeaver::Thread::run (this=0xb5901b0) at ../../../threadweaver/Weaver/Thread.cpp:142 #8 0x00007fbbd1bd92ee in QThreadPrivate::start (arg=0xb5901b0) at thread/qthread_unix.cpp:266 #9 0x00007fbbd19479ca in start_thread (arg=<value optimized out>) at pthread_create.c:300 #10 0x00007fbbcffa9cdd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #11 0x0000000000000000 in ?? () Thread 2 (Thread 0x7fbb9d1e3700 (LWP 18354)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162 #1 0x00007fbbd1bd9eab in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x27ed850, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88 #2 QWaitCondition::wait (this=<value optimized out>, mutex=0x27ed850, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160 #3 0x00007fbbd3cb5d84 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x27f8850, th=0xb592920) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365 #4 0x00007fbbd3cb8f8b in ThreadWeaver::WorkingHardState::applyForWork (this=0x27ed280, th=0xb592920) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71 #5 0x00007fbbd3cb74ff in ThreadWeaver::ThreadRunHelper::run (this=0x7fbb9d1e2e00, parent=0x27f8850, th=0xb592920) at ../../../threadweaver/Weaver/Thread.cpp:87 #6 0x00007fbbd3cb7a58 in ThreadWeaver::Thread::run (this=0xb592920) at ../../../threadweaver/Weaver/Thread.cpp:142 #7 0x00007fbbd1bd92ee in QThreadPrivate::start (arg=0xb592920) at thread/qthread_unix.cpp:266 #8 0x00007fbbd19479ca in start_thread (arg=<value optimized out>) at pthread_create.c:300 #9 0x00007fbbcffa9cdd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #10 0x0000000000000000 in ?? () Thread 1 (Thread 0x7fbbd586c760 (LWP 14723)): [KCrash Handler] #6 QList (this=0x0) at /usr/include/qt4/QtCore/qlist.h:118 #7 QStringList (this=0x0) at /usr/include/qt4/QtCore/qstringlist.h:71 #8 KDevelop::IPlugin::extensions (this=0x0) at /opt/kdevelop/4.3.0/kdevplatform/interfaces/iplugin.cpp:155 #9 0x00007fbba6c3633b in KDevelop::IPlugin::extension<KDevelop::IProjectBuilder> (this=<value optimized out>) at /opt/kdevelop/4.3.0/include/kdevplatform/interfaces/iplugin.h:183 #10 CMakeManager::builder (this=<value optimized out>) at /opt/kdevelop/4.3.0/kdevelop/projectmanagers/cmake/cmakemanager.cpp:978 #11 0x00007fbbce8b9aaa in KDevelop::BuilderJobPrivate::addJob (this=0x2794700, t=KDevelop::BuilderJob::Install, item=0x7fbb9896c170) at /opt/kdevelop/4.3.0/kdevplatform/project/builderjob.cpp:76 #12 0x00007fbbadfb4289 in BuildItemBuilderJob (this=0xbb26c30, t=KDevelop::BuilderJob::Install, items=...) at /opt/kdevelop/4.3.0/kdevplatform/plugins/projectmanagerview/builditembuilderjob.cpp:35 #13 0x00007fbbadfa2c98 in ProjectManagerViewPlugin::runBuilderJob (this=<value optimized out>, t=KDevelop::BuilderJob::Install) at /opt/kdevelop/4.3.0/kdevplatform/plugins/projectmanagerview/projectmanagerviewplugin.cpp:339 #14 0x00007fbbadfa8267 in ProjectManagerViewPlugin::qt_metacall (this=0x3fcadc0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff0e3e6860) at /opt/kdevelop/4.3.0/kdevplatform/build/plugins/projectmanagerview/projectmanagerviewplugin.moc:112 #15 0x00007fbbd1ce3da7 in QMetaObject::activate (sender=0x3f6f4b0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fbba6c508ab) at kernel/qobject.cpp:3280 #16 0x00007fbbd0e13002 in QAction::triggered (this=0x7fff0e3e6520, _t1=false) at .moc/release-shared/moc_qaction.cpp:263 #17 0x00007fbbd0e146fb in QAction::activate (this=0x3f6f4b0, event=<value optimized out>) at kernel/qaction.cpp:1256 #18 0x00007fbbd11ef2da in QAbstractButtonPrivate::click (this=0xa20b450) at widgets/qabstractbutton.cpp:528 #19 0x00007fbbd11ef58c in QAbstractButton::mouseReleaseEvent (this=0x8b1ef40, e=0x7fff0e3e71c0) at widgets/qabstractbutton.cpp:1121 #20 0x00007fbbd12be4fa in QToolButton::mouseReleaseEvent (this=0x7fff0e3e6520, e=0x0) at widgets/qtoolbutton.cpp:721 #21 0x00007fbbd0e7048e in QWidget::event (this=0x8b1ef40, event=0x7fff0e3e71c0) at kernel/qwidget.cpp:8187 #22 0x00007fbbd0e1a6ec in QApplicationPrivate::notify_helper (this=0x2352140, receiver=0x8b1ef40, e=0x7fff0e3e71c0) at kernel/qapplication.cpp:4396 #23 0x00007fbbd0e209fe in QApplication::notify (this=0x7fff0e3e80d0, receiver=0x8b1ef40, e=0x7fff0e3e71c0) at kernel/qapplication.cpp:3959 #24 0x00007fbbd24af926 in KApplication::notify (this=0x7fff0e3e80d0, receiver=0x8b1ef40, event=0x7fff0e3e71c0) at ../../kdeui/kernel/kapplication.cpp:310 #25 0x00007fbbd1ccc0ac in QCoreApplication::notifyInternal (this=0x7fff0e3e80d0, receiver=0x8b1ef40, event=0x7fff0e3e71c0) at kernel/qcoreapplication.cpp:732 #26 0x00007fbbd0e1f4ae in QCoreApplication::sendEvent (receiver=0x8b1ef40, event=0x7fff0e3e71c0, alienWidget=0x8b1ef40, nativeWidget=0x6d01ef0, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215 #27 QApplicationPrivate::sendMouseEvent (receiver=0x8b1ef40, event=0x7fff0e3e71c0, alienWidget=0x8b1ef40, nativeWidget=0x6d01ef0, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, spontaneous=true) at kernel/qapplication.cpp:3058 #28 0x00007fbbd0ea24a5 in QETWidget::translateMouseEvent (this=0x6d01ef0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4403 #29 0x00007fbbd0ea0ddc in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff0e3e7ae0) at kernel/qapplication_x11.cpp:3536 #30 0x00007fbbd0ecd012 in x11EventSourceDispatch (s=0x2355da0, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146 #31 0x00007fbbcb1728c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0 #32 0x00007fbbcb176748 in ?? () from /lib/libglib-2.0.so.0 #33 0x00007fbbcb1768fc in g_main_context_iteration () from /lib/libglib-2.0.so.0 #34 0x00007fbbd1cf8183 in QEventDispatcherGlib::processEvents (this=0x232ed10, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415 #35 0x00007fbbd0ecc97e in QGuiEventDispatcherGlib::processEvents (this=0x7fff0e3e6520, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204 #36 0x00007fbbd1ccadd2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149 #37 0x00007fbbd1ccb1bc in QEventLoop::exec (this=0x7fff0e3e7e10, flags=) at kernel/qeventloop.cpp:201 #38 0x00007fbbd1ccf26b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009 #39 0x000000000040bc07 in main (argc=<value optimized out>, argv=<value optimized out>) at /opt/kdevelop/4.3.0/kdevelop/app/main.cpp:479
Created attachment 70649 [details] valgrind output I dont know excactly how to produce a good valgrind report. I've start kdevelop by: $ valgrind kdevelop 2> val.err and reproduced the crash, but the output from valgrind does not make sense to me... If I can do other stuff to help finding the cause of this issue, please say how.
duplicate, can you reliably reproduce this issue? if so, please tell me how the valgrind report is indeed useless here. what you could try though: run kdebugdialog, enable all kdev* debug areas, run kdevelop from a cli and pipe all debug output into some file, reproduce the crash, and then attach the info to bug 266283 thanks *** This bug has been marked as a duplicate of bug 266283 ***