From kdevelop-bugs Mon Sep 28 17:30:35 2009 From: Daniel Thaler Date: Mon, 28 Sep 2009 17:30:35 +0000 To: kdevelop-bugs Subject: [Bug 208806] New: Crash while editing CMakelists.txt Message-Id: X-MARC-Message: https://marc.info/?l=kdevelop-bugs&m=125415912304671 https://bugs.kde.org/show_bug.cgi?id=208806 Summary: Crash while editing CMakelists.txt Product: kdevelop Version: unspecified Platform: Unlisted Binaries OS/Version: Linux Status: UNCONFIRMED Severity: crash Priority: NOR Component: general AssignedTo: kdevelop-bugs@kdevelop.org ReportedBy: Daniel@dthaler.de Application that crashed: kdevelop Version of the application: 3.9.95 (using KDevPlatform 0.9.95) KDE Version: 4.3.1 (KDE 4.3.1) Qt Version: 4.5.2 Operating System: Linux 2.6.30.5 x86_64 What I was doing when the application crashed: I had created a new project and had removed the automatically added main.cpp from it, leaving no source files. I then added a new source file to the project and wanted to add it to CMakelists.txt manually. This caused KDevelop to crash -- Backtrace: Application: KDevelop (kdevelop), signal: Segmentation fault [Current thread is 0 (LWP 30009)] Thread 8 (Thread 0x7fb7ed125910 (LWP 30010)): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:220 #1 0x00007fb7fc3753d1 in QWaitCondition::wait (this=, mutex=0x2a2ac40, time=200000) at thread/qwaitcondition_unix.cpp:85 #2 0x00007fb7f8fe18ae in KDevelop::DUChainPrivate::CleanupThread::run (this=0x2a2ac20) at /var/tmp/portage/dev-util/kdevplatform-0.9.95/work/kdevplatform-0.9.95/language/duchain/duchain.cpp:280 #3 0x00007fb7fc374683 in QThreadPrivate::start (arg=) at thread/qthread_unix.cpp:188 #4 0x00007fb7fc103624 in start_thread (arg=) at pthread_create.c:297 #5 0x00007fb7fa9b856d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #6 0x0000000000000000 in ?? () Thread 7 (Thread 0x7fb7e3ceb910 (LWP 30123)): #0 0x00007fb7fc105cdc in __pthread_mutex_lock (mutex=0x40ab418) at pthread_mutex_lock.c:62 #1 0x00007fb7f4a6a595 in IA__g_main_context_query (context=0x40ab410, max_priority=2147483647, timeout=0x7fb7e3ceaeb8, fds=0x7fb7dc0c4830, n_fds=1) at gmain.c:2204 #2 0x00007fb7f4a6ef91 in g_main_context_iterate (context=0x40ab410, block=, dispatch=, self=) at gmain.c:2437 #3 0x00007fb7f4a6f400 in IA__g_main_context_iteration (context=0x40ab410, may_block=1) at gmain.c:2518 #4 0x00007fb7fc46caae in QEventDispatcherGlib::processEvents (this=0x42a6390, flags=) at kernel/qeventdispatcher_glib.cpp:329 #5 0x00007fb7fc446da2 in QEventLoop::processEvents (this=, flags=) at kernel/qeventloop.cpp:149 #6 0x00007fb7fc446f3d in QEventLoop::exec (this=0x7fb7e3ceafd0, flags=) at kernel/qeventloop.cpp:197 #7 0x00007fb7fc371c9b in QThread::exec (this=) at thread/qthread.cpp:487 #8 0x00007fb7fc374683 in QThreadPrivate::start (arg=) at thread/qthread_unix.cpp:188 #9 0x00007fb7fc103624 in start_thread (arg=) at pthread_create.c:297 #10 0x00007fb7fa9b856d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #11 0x0000000000000000 in ?? () Thread 6 (Thread 0x7fb7da86a910 (LWP 30124)): #0 0x00007fb7fa9af8a3 in __poll (fds=, nfds=, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87 #1 0x00007fb7f4a6f0bc in g_main_context_iterate (context=0x3eb59c0, block=, dispatch=, self=) at gmain.c:2768 #2 0x00007fb7f4a6f400 in IA__g_main_context_iteration (context=0x3eb59c0, may_block=1) at gmain.c:2518 #3 0x00007fb7fc46caae in QEventDispatcherGlib::processEvents (this=0x3ffbc50, flags=) at kernel/qeventdispatcher_glib.cpp:329 #4 0x00007fb7fc446da2 in QEventLoop::processEvents (this=, flags=) at kernel/qeventloop.cpp:149 #5 0x00007fb7fc446f3d in QEventLoop::exec (this=0x7fb7da869fd0, flags=) at kernel/qeventloop.cpp:197 #6 0x00007fb7fc371c9b in QThread::exec (this=) at thread/qthread.cpp:487 #7 0x00007fb7fc374683 in QThreadPrivate::start (arg=) at thread/qthread_unix.cpp:188 #8 0x00007fb7fc103624 in start_thread (arg=) at pthread_create.c:297 #9 0x00007fb7fa9b856d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #10 0x0000000000000000 in ?? () Thread 5 (Thread 0x7fb7da069910 (LWP 30127)): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:220 #1 0x00007fb7fc373f85 in thread_sleep (ti=0x7fb7da068f80) at thread/qthread_unix.cpp:297 #2 0x00007fb7fc3740e0 in QThread::msleep (msecs=) at thread/qthread_unix.cpp:323 #3 0x00007fb7db25d2e1 in UIBlockTester::UIBlockTesterThread::run (this=0x40a3420) at /var/tmp/portage/dev-util/kdevelop-3.9.95/work/kdevelop-3.9.95/languages/cpp/cpplanguagesupport.cpp:661 #4 0x00007fb7fc374683 in QThreadPrivate::start (arg=) at thread/qthread_unix.cpp:188 #5 0x00007fb7fc103624 in start_thread (arg=) at pthread_create.c:297 #6 0x00007fb7fa9b856d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #7 0x0000000000000000 in ?? () Thread 4 (Thread 0x7fb7d9868910 (LWP 30128)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261 #1 0x00007fb7fc37545b in QWaitCondition::wait (this=, mutex=0x2a48380, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87 #2 0x00007fb7fda8c8c6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x2a282e0, th=0x3df9c40) at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1/threadweaver/Weaver/WeaverImpl.cpp:365 #3 0x00007fb7fda8e9fb in ThreadWeaver::WorkingHardState::applyForWork (this=0x2a24be0, th=0x3df9c40) at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1/threadweaver/Weaver/WorkingHardState.cpp:71 #4 0x00007fb7fda8cfff in ThreadWeaver::ThreadRunHelper::run (this=0x7fb7d9867fd0, parent=0x2a282e0, th=0x3df9c40) at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1/threadweaver/Weaver/Thread.cpp:87 #5 0x00007fb7fda8d458 in ThreadWeaver::Thread::run (this=0x3df9c40) at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1/threadweaver/Weaver/Thread.cpp:142 #6 0x00007fb7fc374683 in QThreadPrivate::start (arg=) at thread/qthread_unix.cpp:188 #7 0x00007fb7fc103624 in start_thread (arg=) at pthread_create.c:297 #8 0x00007fb7fa9b856d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #9 0x0000000000000000 in ?? () Thread 3 (Thread 0x7fb7d9067910 (LWP 30129)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261 #1 0x00007fb7fc37545b in QWaitCondition::wait (this=, mutex=0x2a48380, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87 #2 0x00007fb7fda8c8c6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x2a282e0, th=0x42b50d0) at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1/threadweaver/Weaver/WeaverImpl.cpp:365 #3 0x00007fb7fda8e9fb in ThreadWeaver::WorkingHardState::applyForWork (this=0x2a24be0, th=0x42b50d0) at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1/threadweaver/Weaver/WorkingHardState.cpp:71 #4 0x00007fb7fda8ea14 in ThreadWeaver::WorkingHardState::applyForWork (this=0x2a24be0, th=0x42b50d0) at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1/threadweaver/Weaver/WorkingHardState.cpp:74 #5 0x00007fb7fda8cfff in ThreadWeaver::ThreadRunHelper::run (this=0x7fb7d9066fd0, parent=0x2a282e0, th=0x42b50d0) at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1/threadweaver/Weaver/Thread.cpp:87 #6 0x00007fb7fda8d458 in ThreadWeaver::Thread::run (this=0x42b50d0) at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1/threadweaver/Weaver/Thread.cpp:142 #7 0x00007fb7fc374683 in QThreadPrivate::start (arg=) at thread/qthread_unix.cpp:188 #8 0x00007fb7fc103624 in start_thread (arg=) at pthread_create.c:297 #9 0x00007fb7fa9b856d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #10 0x0000000000000000 in ?? () Thread 2 (Thread 0x7fb7e34ea910 (LWP 30430)): #0 0x00007fb7fa9b1cf2 in select () from /lib/libc.so.6 #1 0x00007fb7fc42ac68 in qt_native_select (fdread=0x7fb7e34e75c0, fdwrite=0x7fb7e34e7540, timeout=29995) at io/qprocess_unix.cpp:936 #2 0x00007fb7fc42ae07 in QProcessPrivate::waitForFinished (this=0x7fb7dc214350, msecs=29996) at io/qprocess_unix.cpp:1158 #3 0x00007fb7fc3f38aa in QProcess::waitForFinished (this=0x7fb7e34e7740, msecs=29996) at io/qprocess.cpp:1318 #4 0x00007fb7db988a9d in CMakeProjectVisitor::visit (this=, exec=0x7fb7dc22af40) at /var/tmp/portage/dev-util/kdevelop-3.9.95/work/kdevelop-3.9.95/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:1201 #5 0x00007fb7db97be1e in CMakeProjectVisitor::walk (this=0x7fb7e34e8b80, fc=@0x7fb7dc1d0980, line=3, isClean=) at /var/tmp/portage/dev-util/kdevelop-3.9.95/work/kdevelop-3.9.95/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:1997 #6 0x00007fb7db98607f in CMakeProjectVisitor::visit (this=, ifast=) at /var/tmp/portage/dev-util/kdevelop-3.9.95/work/kdevelop-3.9.95/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:1148 #7 0x00007fb7db97be1e in CMakeProjectVisitor::walk (this=0x7fb7e34e8b80, fc=@0x7fb7dc255460, line=2, isClean=) at /var/tmp/portage/dev-util/kdevelop-3.9.95/work/kdevelop-3.9.95/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:1997 #8 0x00007fb7db98607f in CMakeProjectVisitor::visit (this=, ifast=) at /var/tmp/portage/dev-util/kdevelop-3.9.95/work/kdevelop-3.9.95/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:1148 #9 0x00007fb7db97be1e in CMakeProjectVisitor::walk (this=0x7fb7e34e8b80, fc=@0x7fb7e34e8d20, line=0, isClean=) at /var/tmp/portage/dev-util/kdevelop-3.9.95/work/kdevelop-3.9.95/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:1997 #10 0x00007fb7db99c172 in CMakeParserUtils::includeScript (file=@0x7fb7e34e91d0, parent=, variables=0x7fb7dc244ab8, macros=0x7fb7dc244888, sourcedir=, cache=0x50443d8, modulesDir=@0x7fb7dc243588) at /var/tmp/portage/dev-util/kdevelop-3.9.95/work/kdevelop-3.9.95/projectmanagers/cmake/parser/cmakeparserutils.cpp:161 #11 0x00007fb7dbbd082f in CMakeManager::includeScript (this=, file=, project=0x51c2470, parent=) at /var/tmp/portage/dev-util/kdevelop-3.9.95/work/kdevelop-3.9.95/projectmanagers/cmake/cmakemanager.cpp:327 #12 0x00007fb7dbbd2171 in CMakeManager::initializeProject (this=0x40c24c0, project=0x51c2470, baseUrl=) at /var/tmp/portage/dev-util/kdevelop-3.9.95/work/kdevelop-3.9.95/projectmanagers/cmake/cmakemanager.cpp:245 #13 0x00007fb7dbbdba4d in CMakeManager::parse (this=, item=0x513d8a0) at /var/tmp/portage/dev-util/kdevelop-3.9.95/work/kdevelop-3.9.95/projectmanagers/cmake/cmakemanager.cpp:368 #14 0x00007fb7f95bffa7 in KDevelop::ImportProjectJobPrivate::import (this=0x50226c0, folder=0x7fb7e34e7540) at /var/tmp/portage/dev-util/kdevplatform-0.9.95/work/kdevplatform-0.9.95/project/importprojectjob.cpp:46 #15 0x00007fb7f95bfe16 in QtConcurrent::RunFunctionTask::run (this=0x34e5cb0) at /usr/include/qt4/QtCore/qtconcurrentrunbase.h:120 #16 0x00007fb7fc36c74a in QThreadPoolThread::run (this=0x42b26b0) at concurrent/qthreadpool.cpp:106 #17 0x00007fb7fc374683 in QThreadPrivate::start (arg=) at thread/qthread_unix.cpp:188 #18 0x00007fb7fc103624 in start_thread (arg=) at pthread_create.c:297 #19 0x00007fb7fa9b856d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #20 0x0000000000000000 in ?? () Thread 1 (Thread 0x7fb7ff5d0750 (LWP 30009)): [KCrash Handler] #5 KDirWatchPrivate::entry (this=0x42ab4a8, _path=@0x7fff99e8f770) at /usr/include/qt4/QtCore/qbasicatomic.h:69 #6 0x00007fb7fe6bd742 in KDirWatch::contains (this=0x42ab490, _path=@0x7fff99e8f770) at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1/kio/kio/kdirwatch.cpp:1717 #7 0x00007fb7dbbd2d7a in CMakeManager::dirtyFile (this=0x40c24c0, dirty=) at /var/tmp/portage/dev-util/kdevelop-3.9.95/work/kdevelop-3.9.95/projectmanagers/cmake/cmakemanager.cpp:777 #8 0x00007fb7dbbd370d in CMakeManager::qt_metacall (this=0x40c24c0, _c=QMetaObject::InvokeMetaMethod, _id=, _a=0x7fff99e8fc40) at /var/tmp/portage/dev-util/kdevelop-3.9.95/work/kdevelop-3.9.95_build/projectmanagers/cmake/cmakemanager.moc:84 #9 0x00007fb7fc459a44 in QMetaObject::activate (sender=, from_signal_index=, to_signal_index=, argv=0x7fb7dc106b20) at kernel/qobject.cpp:3101 #10 0x00007fb7fe6b9842 in KDirWatch::dirty (this=0x2a, _t1=) at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1_build/kio/kdirwatch.moc:83 #11 0x00007fb7fe6ba060 in KDirWatch::setDirty (this=0x4eafb70, _file=@0x7fff99e8fcf0) at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1/kio/kio/kdirwatch.cpp:1748 #12 0x00007fb7fe6ba7c9 in KDirWatchPrivate::emitEvent (this=, e=, event=1, fileName=) at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1/kio/kio/kdirwatch.cpp:1227 #13 0x00007fb7fe6c3781 in KDirWatchPrivate::slotRescan (this=0x3712cf0) at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1/kio/kio/kdirwatch.cpp:1319 #14 0x00007fb7fe6c3cc4 in KDirWatchPrivate::qt_metacall (this=0x3712cf0, _c=QMetaObject::InvokeMetaMethod, _id=, _a=0x7fff99e90050) at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1_build/kio/kdirwatch_p.moc:73 #15 0x00007fb7fc459a44 in QMetaObject::activate (sender=, from_signal_index=, to_signal_index=, argv=0x7fb7dc106b20) at kernel/qobject.cpp:3101 #16 0x00007fb7fc456303 in QObject::event (this=0x3712d58, e=0x7fff99e8f770) at kernel/qobject.cpp:1066 #17 0x00007fb7fb58537c in QApplicationPrivate::notify_helper (this=0x2779ff0, receiver=0x3712d58, e=0x7fff99e90670) at kernel/qapplication.cpp:4056 #18 0x00007fb7fb58ac28 in QApplication::notify (this=0x7fff99e90a20, receiver=0x3712d58, e=0x7fff99e90670) at kernel/qapplication.cpp:4021 #19 0x00007fb7fcb95656 in KApplication::notify (this=0x7fff99e90a20, receiver=0x3712d58, event=0x7fff99e90670) at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1/kdeui/kernel/kapplication.cpp:302 #20 0x00007fb7fc4483ab in QCoreApplication::notifyInternal (this=0x7fff99e90a20, receiver=0x3712d58, event=0x7fff99e90670) at kernel/qcoreapplication.cpp:606 #21 0x00007fb7fc46f07a in QTimerInfoList::activateTimers (this=0x277dd10) at kernel/qcoreapplication.h:213 #22 0x00007fb7fc46cb0d in timerSourceDispatch (source=) at kernel/qeventdispatcher_glib.cpp:165 #23 0x00007fb7f4a6bb2d in IA__g_main_context_dispatch (context=0x277c9f0) at gmain.c:1824 #24 0x00007fb7f4a6f2d8 in g_main_context_iterate (context=0x277c9f0, block=, dispatch=, self=) at gmain.c:2455 #25 0x00007fb7f4a6f400 in IA__g_main_context_iteration (context=0x277c9f0, may_block=1) at gmain.c:2518 #26 0x00007fb7fc46ca56 in QEventDispatcherGlib::processEvents (this=0x1698ef0, flags=) at kernel/qeventdispatcher_glib.cpp:327 #27 0x00007fb7fb60a59e in QGuiEventDispatcherGlib::processEvents (this=0x2a, flags=) at kernel/qguieventdispatcher_glib.cpp:202 #28 0x00007fb7fc446da2 in QEventLoop::processEvents (this=, flags=) at kernel/qeventloop.cpp:149 #29 0x00007fb7fc446f3d in QEventLoop::exec (this=0x7fff99e90910, flags=) at kernel/qeventloop.cpp:197 #30 0x00007fb7fc448dc9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888 #31 0x0000000000408397 in main (argc=, argv=) at /var/tmp/portage/dev-util/kdevelop-3.9.95/work/kdevelop-3.9.95/app/main.cpp:181 This bug may be a duplicate of or related to bug 204670 Reported using DrKonqi -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ KDevelop-bugs mailing list KDevelop-bugs@kdevelop.org https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs