[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 281274] New: KDevelop blocks randomly
From:       Sergio Martins <iamsergio () gmail ! com>
Date:       2011-09-03 14:37:04
Message-ID: bug-281274-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id(1274

           Summary: KDevelop blocks randomly
           Product: kdevelop
           Version: 4.2.60
          Platform: Compiled Sources
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-bugs@kdevelop.org
        ReportedBy: iamsergio@gmail.com


Version:           4.2.60 (using Devel)
OS:                Linux

Sometimes when I'm coding, KDevelop freezes and I have to kill it.
I'm using kdevelop and kdevplatform from master, kdelibs from 4.7.

Is there any other module that I should update?

Here's the backtrace:


Thread 9 (Thread 0x7f2cd5254700 (LWP 10874)):
#0  0x00007f2ceab79e3b in pthread_cond_timedwait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#1  0x00007f2ceae2a7d1 in QWaitConditionPrivate::wait (this=0x1a16b60,
time00) at thread/qwaitcondition_unix.cpp:86
#2  0x00007f2ceae2a595 in QWaitCondition::wait (this=0x1a16888,
mutex=0x1a16890, time00) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f2ce6f0500f in KDevelop::DUChainPrivate::CleanupThread::run
(this=0x1a16870) at
/data/sources/kde/trunk/kdevplatform/language/duchain/duchain.cpp:282
#4  0x00007f2ceae292e1 in QThreadPrivate::start (arg=0x1a16870) at
thread/qthread_unix.cpp:320
#5  0x00007f2ceab75d60 in start_thread () from /lib/libpthread.so.0
#6  0x00007f2ce8efd25d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f2cc519e700 (LWP 10877)):
#0  0x00007f2ce8ef7093 in select () from /lib/libc.so.6
#1  0x00007f2ceaf1ce0c in QProcessManager::run (this=0x7f2ceb2d5340) at
io/qprocess_unix.cpp:245
#2  0x00007f2ceae292e1 in QThreadPrivate::start (arg=0x7f2ceb2d5340) at
thread/qthread_unix.cpp:320
#3  0x00007f2ceab75d60 in start_thread () from /lib/libpthread.so.0
#4  0x00007f2ce8efd25d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f2cbe71e700 (LWP 10879)):
#0  0x00007f2ce8ef4ff3 in poll () from /lib/libc.so.6
#1  0x00007f2ce329a7d4 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f2ce329ad09 in g_main_context_iteration () from
/usr/lib/libglib-2.0.so.0
#3  0x00007f2ceaf7ef03 in QEventDispatcherGlib::processEvents (this=0x256fbb0,
flags=...) at kernel/qeventdispatcher_glib.cpp:422
#4  0x00007f2ceaf43946 in QEventLoop::processEvents (this=0x7f2cbe71dde0,
flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f2ceaf43a9a in QEventLoop::exec (this=0x7f2cbe71dde0, flags=...) at
kernel/qeventloop.cpp:201
#6  0x00007f2ceae26a6d in QThread::exec (this=0x256f290) at
thread/qthread.cpp:492
#7  0x00007f2ceae292e1 in QThreadPrivate::start (arg=0x256f290) at
thread/qthread_unix.cpp:320
#8  0x00007f2ceab75d60 in start_thread () from /lib/libpthread.so.0
#9  0x00007f2ce8efd25d in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f2cbdf1d700 (LWP 10880)):
#0  0x00007f2ce8ef4ff3 in poll () from /lib/libc.so.6
#1  0x00007f2ce329a7d4 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f2ce329ad09 in g_main_context_iteration () from
/usr/lib/libglib-2.0.so.0
#3  0x00007f2ceaf7ef03 in QEventDispatcherGlib::processEvents (this=0x2571f60,
flags=...) at kernel/qeventdispatcher_glib.cpp:422
#4  0x00007f2ceaf43946 in QEventLoop::processEvents (this=0x7f2cbdf1cde0,
flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f2ceaf43a9a in QEventLoop::exec (this=0x7f2cbdf1cde0, flags=...) at
kernel/qeventloop.cpp:201
#6  0x00007f2ceae26a6d in QThread::exec (this=0x2576fc0) at
thread/qthread.cpp:492
#7  0x00007f2ceae292e1 in QThreadPrivate::start (arg=0x2576fc0) at
thread/qthread_unix.cpp:320
#8  0x00007f2ceab75d60 in start_thread () from /lib/libpthread.so.0
#9  0x00007f2ce8efd25d in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f2cbcd07700 (LWP 10885)):
#0  0x00007f2ceab79ac4 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#1  0x00007f2ce7bf9b15 in QTWTF::TCMalloc_PageHeap::scavengerThread
(this=0x7f2ce7f87320) at
../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007f2ce7bf9154 in QTWTF::TCMalloc_PageHeap::runScavengerThread
(context=0x7f2ce7f87320) at
../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007f2ceab75d60 in start_thread () from /lib/libpthread.so.0
#4  0x00007f2ce8efd25d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f2cba1a7700 (LWP 10899)):
#0  0x00007f2ce8ef4ff3 in poll () from /lib/libc.so.6
#1  0x00007f2ce329a7d4 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f2ce329ad09 in g_main_context_iteration () from
/usr/lib/libglib-2.0.so.0
#3  0x00007f2ceaf7ef03 in QEventDispatcherGlib::processEvents (this=0x41054c0,
flags=...) at kernel/qeventdispatcher_glib.cpp:422
#4  0x00007f2ceaf43946 in QEventLoop::processEvents (this=0x7f2cba1a6d90,
flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f2ceaf43a9a in QEventLoop::exec (this=0x7f2cba1a6d90, flags=...) at
kernel/qeventloop.cpp:201
#6  0x00007f2ceae26a6d in QThread::exec (this=0x4101510) at
thread/qthread.cpp:492
#7  0x00007f2ceaf22348 in QInotifyFileSystemWatcherEngine::run (this=0x4101510)
at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f2ceae292e1 in QThreadPrivate::start (arg=0x4101510) at
thread/qthread_unix.cpp:320
#9  0x00007f2ceab75d60 in start_thread () from /lib/libpthread.so.0
#10 0x00007f2ce8efd25d in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f2cb8937700 (LWP 10917)):
#0  0x00007f2ceab79ac4 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#1  0x00007f2ce1e83af3 in WTF::TCMalloc_PageHeap::scavengerThread() () from
/data/installation/qt/qt-4.7/lib/libQtWebKit.so.4
#2  0x00007f2ce1e830c8 in WTF::TCMalloc_PageHeap::runScavengerThread(void*) ()
from /data/installation/qt/qt-4.7/lib/libQtWebKit.so.4
#3  0x00007f2ceab75d60 in start_thread () from /lib/libpthread.so.0
#4  0x00007f2ce8efd25d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f2cb9138700 (LWP 10933)):
#0  0x00007f2ceab7c8bd in write () from /lib/libpthread.so.0
#1  0x00007f2ce83c289a in ?? () from /usr/lib/libfam.so.0
#2  0x00007f2ce83c29a0 in ?? () from /usr/lib/libfam.so.0
#3  0x00007f2ce83c3588 in FAMMonitorDirectory () from /usr/lib/libfam.so.0
#4  0x00007f2cee9b4331 in KDirWatchPrivate::useFAM (this=0x99d050,
e=0x7f2cd15ef708) at
/data/sources/kde/trunk/kdelibs/kdecore/io/kdirwatch.cpp:615
#5  0x00007f2cee9b4649 in KDirWatchPrivate::addWatch (this=0x99d050,
e=0x7f2cd15ef708) at
/data/sources/kde/trunk/kdelibs/kdecore/io/kdirwatch.cpp:933
#6  0x00007f2cee9b3781 in KDirWatchPrivate::addEntry (this=0x99d050,
instance=0x51db2b0, _path=<optimized out>, sub_entry=0x0, isDir=<optimized
out>, watchModes=...)
    at /data/sources/kde/trunk/kdelibs/kdecore/io/kdirwatch.cpp:891
#7  0x00007f2cee9b38f0 in KDirWatch::addDir (this=0x51db2b0, _path=...,
watchModes=<optimized out>) at
/data/sources/kde/trunk/kdelibs/kdecore/io/kdirwatch.cpp:1770
#8  0x00007f2cb935e8a1 in CMakeManager::parse (this=0x42f5e40, item=0x5f2f5b0)
at /data/sources/kde/trunk/kdevelop/projectmanagers/cmake/cmakemanager.cpp:669
#9  0x00007f2ce7530efe in KDevelop::ImportProjectJobPrivate::import
(this=0x84fac0, folder=<optimized out>)
    at /data/sources/kde/trunk/kdevplatform/project/importprojectjob.cpp:53
#10 0x00007f2ce7530f1b in KDevelop::ImportProjectJobPrivate::import
(this=0x84fac0, folder=<optimized out>)
    at /data/sources/kde/trunk/kdevplatform/project/importprojectjob.cpp:57
#11 0x00007f2ce7530f1b in KDevelop::ImportProjectJobPrivate::import
(this=0x84fac0, folder=<optimized out>)
    at /data/sources/kde/trunk/kdevplatform/project/importprojectjob.cpp:57
#12 0x00007f2ce7530a56 in QtConcurrent::RunFunctionTask<void>::run
(this=0x4e9c3e0) at
/data/installation/qt/qt-4.7/include/QtCore/qtconcurrentrunbase.h:120
#13 0x00007f2ceae18749 in QThreadPoolThread::run (this=0x43b04e0) at
concurrent/qthreadpool.cpp:106
#14 0x00007f2ceae292e1 in QThreadPrivate::start (arg=0x43b04e0) at
thread/qthread_unix.cpp:320
#15 0x00007f2ceab75d60 in start_thread () from /lib/libpthread.so.0
#16 0x00007f2ce8efd25d in clone () from /lib/libc.so.6
#17 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f2ceef3b760 (LWP 10863)):
#0  0x00007f2ceab7c47c in __lll_lock_wait () from /lib/libpthread.so.0
#1  0x00007f2ceab77e80 in _L_lock_530 () from /lib/libpthread.so.0
#2  0x00007f2ceab77d19 in pthread_mutex_lock () from /lib/libpthread.so.0
#3  0x00007f2ce83c3ae0 in FAMCancelMonitor () from /usr/lib/libfam.so.0
#4  0x00007f2cee9b0355 in KDirWatchPrivate::removeWatch (this=0x99d050,
e=0x2a1d308) at /data/sources/kde/trunk/kdelibs/kdecore/io/kdirwatch.cpp:946
#5  0x00007f2cee9b52cc in KDirWatchPrivate::removeEntry (this=0x99d050,
instance=<optimized out>, e=0x2a1d308, sub_entry=0x0)
    at /data/sources/kde/trunk/kdelibs/kdecore/io/kdirwatch.cpp:1006
#6  0x00007f2cee9b54e1 in KDirWatchPrivate::removeEntry (this=0x99d050,
instance=0x8f7c10, _path=..., sub_entry=0x0)
    at /data/sources/kde/trunk/kdelibs/kdecore/io/kdirwatch.cpp:982
#7  0x00007f2cd869daad in KateDocument::deactivateDirWatch (this=0x2a11c10) at
/data/sources/kde/trunk/kate/part/document/katedocument.cpp:2395
#8  0x00007f2cd86b2f1f in KateDocument::saveFile (this=0x2a11c10) at
/data/sources/kde/trunk/kate/part/document/katedocument.cpp:2261
#9  0x00007f2ced9d21fd in KParts::ReadWritePart::save (this=0x2a11c10) at
/data/sources/kde/trunk/kdelibs/kparts/part.cpp:878
#10 0x00007f2cd869b434 in KateDocument::documentSave (this=0x2a11c10) at
/data/sources/kde/trunk/kate/part/document/katedocument.cpp:3988
#11 0x00007f2cd86aef20 in KateDocument::qt_metacall (this=0x2a11c10,
_c=QMetaObject::InvokeMetaMethod, _idX, _a=0x7fff04c97190)
    at /home/kde-devel/kde/build/kate/part/katedocument.moc:358
#12 0x00007f2ceaf4df57 in QMetaObject::metacall (object=0x2a11c10,
cl=QMetaObject::InvokeMetaMethod, idx–, argv=0x7fff04c97190) at
kernel/qmetaobject.cpp:237
#13 0x00007f2ceaf62de7 in QMetaObject::activate (sender=0x2a77240,
m=0x7f2ceab22ee0, local_signal_index=1, argv=0x7fff04c97190) at
kernel/qobject.cpp:3278
#14 0x00007f2ce9dd4b26 in QAction::triggered (this=0x2a77240, _t1úlse) at
.moc/debug-shared/moc_qaction.cpp:263
#15 0x00007f2ce9dd3e28 in QAction::activate (this=0x2a77240,
event=QAction::Trigger) at kernel/qaction.cpp:1257
#16 0x00007f2ce9dd3b94 in QAction::event (this=0x2a77240, e=0x7fff04c97a00) at
kernel/qaction.cpp:1183
#17 0x00007f2ceb6ecc2b in KAction::event (this=0x2a77240, event=0x7fff04c97a00)
at /data/sources/kde/trunk/kdelibs/kdeui/actions/kaction.cpp:131
#18 0x00007f2ce9de4650 in QApplicationPrivate::notify_helper (this=0x6f6d60,
receiver=0x2a77240, e=0x7fff04c97a00) at kernel/qapplication.cpp:4462
#19 0x00007f2ce9de1c74 in QApplication::notify (this=0x7fff04c99550,
receiver=0x2a77240, e=0x7fff04c97a00) at kernel/qapplication.cpp:3862
#20 0x00007f2ceb7beb6e in KApplication::notify (this=0x7fff04c99550,
receiver=0x2a77240, event=0x7fff04c97a00)
    at /data/sources/kde/trunk/kdelibs/kdeui/kernel/kapplication.cpp:311
#21 0x00007f2ceaf45de3 in QCoreApplication::notifyInternal
(this=0x7fff04c99550, receiver=0x2a77240, event=0x7fff04c97a00) at
kernel/qcoreapplication.cpp:731
#22 0x00007f2ceaf49b15 in QCoreApplication::sendEvent (receiver=0x2a77240,
event=0x7fff04c97a00) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#23 0x00007f2ce9e24cb8 in QShortcutMap::dispatchEvent (this=0x6f6e88,
e=0x7fff04c98210) at kernel/qshortcutmap.cpp:879
#24 0x00007f2ce9e2343f in QShortcutMap::tryShortcutEvent (this=0x6f6e88,
o=0x2a7a830, e=0x7fff04c98210) at kernel/qshortcutmap.cpp:364
#25 0x00007f2ce9de1f13 in QApplication::notify (this=0x7fff04c99550,
receiver=0x2a7a830, e=0x7fff04c98210) at kernel/qapplication.cpp:3904
#26 0x00007f2ceb7beb6e in KApplication::notify (this=0x7fff04c99550,
receiver=0x2a7a830, event=0x7fff04c98210)
    at /data/sources/kde/trunk/kdelibs/kdeui/kernel/kapplication.cpp:311
#27 0x00007f2ceaf45de3 in QCoreApplication::notifyInternal
(this=0x7fff04c99550, receiver=0x2a7a830, event=0x7fff04c98210) at
kernel/qcoreapplication.cpp:731
#28 0x00007f2ce9de6e33 in QCoreApplication::sendSpontaneousEvent
(receiver=0x2a7a830, event=0x7fff04c98210)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#29 0x00007f2ce9de49a3 in qt_sendSpontaneousEvent (receiver=0x2a7a830,
event=0x7fff04c98210) at kernel/qapplication.cpp:5456
#30 0x00007f2ce9ebad4b in QKeyMapper::sendKeyEvent (keyWidget=0x2a7a830,
grabúlse, type=QEvent::KeyPress, codeƒ, modifiers=..., text=...,
autorepeatúlse, count=1,
    nativeScanCode9, nativeVirtualKey5, nativeModifiers ) at
kernel/qkeymapper_x11.cpp:1866
#31 0x00007f2ce9ebaa50 in QKeyMapperPrivate::translateKeyEvent (this=0x735970,
keyWidget=0x2a7a830, event=0x7fff04c98f10, grabúlse) at
kernel/qkeymapper_x11.cpp:1836
#32 0x00007f2ce9e82f2b in QApplication::x11ProcessEvent (this=0x7fff04c99550,
event=0x7fff04c98f10) at kernel/qapplication_x11.cpp:3480
#33 0x00007f2ce9ebcdf8 in x11EventSourceDispatch (s=0x6fa720, callback=0,
user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#34 0x00007f2ce329a29d in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
#35 0x00007f2ce329aa78 in ?? () from /usr/lib/libglib-2.0.so.0
#36 0x00007f2ce329ad09 in g_main_context_iteration () from
/usr/lib/libglib-2.0.so.0
#37 0x00007f2ceaf7ef03 in QEventDispatcherGlib::processEvents (this=0x6a8800,
flags=...) at kernel/qeventdispatcher_glib.cpp:422
#38 0x00007f2ce9ebd1a6 in QGuiEventDispatcherGlib::processEvents
(this=0x6a8800, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#39 0x00007f2ceaf43946 in QEventLoop::processEvents (this=0x7fff04c992b0,
flags=...) at kernel/qeventloop.cpp:149
#40 0x00007f2ceaf43a9a in QEventLoop::exec (this=0x7fff04c992b0, flags=...) at
kernel/qeventloop.cpp:201
#41 0x00007f2ceaf464d6 in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:1008
#42 0x00007f2ce9de17ec in QApplication::exec () at kernel/qapplication.cpp:3736
#43 0x000000000040a524 in main (argc=<optimized out>, argv=<optimized out>) at
/data/sources/kde/trunk/kdevelop/app/main.cpp:474
(gdb) quit


Reproducible: Always

Steps to Reproduce:
Only happens with editing some pieces of code.

Right now, I had "int result = -1", and edited it to "int result ++mLatestChangeId"

I retried, and notice it only happens after I press *save*.

So, editing is ok, unless I save the document.



Expected Results:
No freeze.

--
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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic