Bug 219158 - crash while background parser was running [KParts::ReadOnlyPart::d_func, KParts::ReadOnlyPart::url, ProblemHighlighter::setProblems]
Summary: crash while background parser was running [KParts::ReadOnlyPart::d_func, KPar...
Status: RESOLVED DUPLICATE of bug 207087
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: VHI crash
Target Milestone: 4.0.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-18 11:04 UTC by Dmitry Suzdalev
Modified: 2010-01-09 10:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Suzdalev 2009-12-18 11:04:44 UTC
Application: kdevelop (3.9.97 (using KDevPlatform 0.9.97))
KDE Platform Version: 4.3.82 (KDE 4.3.82 (KDE 4.4 >= 20091211)) (Compiled from sources)
Qt Version: 4.6.0
Operating System: Linux 2.6.31-ARCH i686
Distribution (Platform): Archlinux Packages

-- Information about the crash:
Hi

Just had a crash with bt i haven't seen before => reporting :)

What I was doing:

1. Launched kdevelop, it picked up the project I edited yesterday
2. Background parser started updating
3. I opened 'Konsole' tab panel and started to type some commands to it
4. Suddenly kdevelop crashed (no files were opened yet, just konsole view)

System info:
kdevplatform/kdevelop: KDE trunk, Revision: 1063157
Qt: 4.6.0 kde-qt/master

 -- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
[Current thread is 1 (Thread 0xb3ebd700 (LWP 1152))]

Thread 8 (Thread 0xb0fc1b70 (LWP 1166)):
#0  0xb7768424 in __kernel_vsyscall ()
#1  0xb5fb2182 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb6048daf in QWaitConditionPrivate::wait (this=0x90c4e7c, mutex=0x90c4e80, time=200000) at thread/qwaitcondition_unix.cpp:85
#3  QWaitCondition::wait (this=0x90c4e7c, mutex=0x90c4e80, time=200000) at thread/qwaitcondition_unix.cpp:159
#4  0xb4b5f0ac in KDevelop::DUChainPrivate::CleanupThread::run (this=0x90c4e70) at /home/archuser/kdesvn/kdevplatform/language/duchain/duchain.cpp:286
#5  0xb6047efe in QThreadPrivate::start (arg=0x90c4e70) at thread/qthread_unix.cpp:244
#6  0xb5fad8ac in start_thread () from /lib/libpthread.so.0
#7  0xb530801e in clone () from /lib/libc.so.6

Thread 7 (Thread 0xacbe4b70 (LWP 1281)):
#0  0xb7768424 in __kernel_vsyscall ()
#1  0xb5fb1e55 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb50c9fe7 in WTF::TCMalloc_PageHeap::scavengerThread (this=0xb51a2d60) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304
#3  0xb50ca031 in WTF::TCMalloc_PageHeap::runScavengerThread (context=0xb51a2d60) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438
#4  0xb5fad8ac in start_thread () from /lib/libpthread.so.0
#5  0xb530801e in clone () from /lib/libc.so.6

Thread 6 (Thread 0xad3e5b70 (LWP 1296)):
#0  0xb42e6de6 in clock_gettime () from /lib/librt.so.1
#1  0xb617196b in qt_gettime () at kernel/qcore_unix.cpp:109
#2  0xb6176b55 in QTimerInfoList::updateCurrentTime (this=0xc435714) at kernel/qeventdispatcher_unix.cpp:340
#3  0xb6176b9a in QTimerInfoList::timerWait (this=0xc435714, tm=...) at kernel/qeventdispatcher_unix.cpp:443
#4  0xb6174a58 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xad3e50fc) at kernel/qeventdispatcher_glib.cpp:136
#5  0xb6174ae5 in timerSourcePrepare (source=0x0, timeout=0xb42eaff4) at kernel/qeventdispatcher_glib.cpp:169
#6  0xb426a470 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#7  0xb426a811 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#8  0xb426ad23 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#9  0xb617484f in QEventDispatcherGlib::processEvents (this=0xc434550, flags=...) at kernel/qeventdispatcher_glib.cpp:409
#10 0xb6147299 in QEventLoop::processEvents (this=0xad3e52c0, flags=) at kernel/qeventloop.cpp:149
#11 0xb61476ea in QEventLoop::exec (this=0xad3e52c0, flags=...) at kernel/qeventloop.cpp:201
#12 0xb60450c8 in QThread::exec (this=0xc4344c0) at thread/qthread.cpp:487
#13 0xb4c849ab in KDevelop::CompletionWorkerThread::run (this=0xc4344c0) at /home/archuser/kdesvn/kdevplatform/language/codecompletion/codecompletionmodel.cpp:82
#14 0xb6047efe in QThreadPrivate::start (arg=0xc4344c0) at thread/qthread_unix.cpp:244
#15 0xb5fad8ac in start_thread () from /lib/libpthread.so.0
#16 0xb530801e in clone () from /lib/libc.so.6

Thread 5 (Thread 0xa9ee4b70 (LWP 1297)):
#0  0xb7768424 in __kernel_vsyscall ()
#1  0xb52fdeb6 in poll () from /lib/libc.so.6
#2  0xb42777fb in g_poll () from /usr/lib/libglib-2.0.so.0
#3  0xb426aa2b in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#4  0xb426ad23 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#5  0xb617484f in QEventDispatcherGlib::processEvents (this=0xc43f550, flags=...) at kernel/qeventdispatcher_glib.cpp:409
#6  0xb6147299 in QEventLoop::processEvents (this=0xa9ee42c0, flags=) at kernel/qeventloop.cpp:149
#7  0xb61476ea in QEventLoop::exec (this=0xa9ee42c0, flags=...) at kernel/qeventloop.cpp:201
#8  0xb60450c8 in QThread::exec (this=0xc436220) at thread/qthread.cpp:487
#9  0xb4c849ab in KDevelop::CompletionWorkerThread::run (this=0xc436220) at /home/archuser/kdesvn/kdevplatform/language/codecompletion/codecompletionmodel.cpp:82
#10 0xb6047efe in QThreadPrivate::start (arg=0xc436220) at thread/qthread_unix.cpp:244
#11 0xb5fad8ac in start_thread () from /lib/libpthread.so.0
#12 0xb530801e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xa96e3b70 (LWP 1298)):
#0  0xb7768424 in __kernel_vsyscall ()
#1  0xb5fb2182 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb6047801 in thread_sleep (ti=0x1) at thread/qthread_unix.cpp:394
#3  0xb6047943 in QThread::msleep (msecs=30) at thread/qthread_unix.cpp:420
#4  0xaa899b3c in UIBlockTester::UIBlockTesterThread::run (this=0xc441130) at /home/archuser/kdesvn/kdevelop/languages/cpp/cpplanguagesupport.cpp:672
#5  0xb6047efe in QThreadPrivate::start (arg=0xc441130) at thread/qthread_unix.cpp:244
#6  0xb5fad8ac in start_thread () from /lib/libpthread.so.0
#7  0xb530801e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xa8e92b70 (LWP 1377)):
#0  0xb7768424 in __kernel_vsyscall ()
#1  0xb5fb1e55 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb6048e27 in QWaitConditionPrivate::wait (this=0x9042ba8, mutex=0x9042e38, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#3  QWaitCondition::wait (this=0x9042ba8, mutex=0x9042e38, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#4  0xb6fa412c in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x9042b90, th=0xc30b1e0) at /home/archuser/kdesvn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#5  0xb6fa7fd2 in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x9042ef8, th=0xc30b1e0) at /home/archuser/kdesvn/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:80
#6  0xb6fa40ab in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x9042b90, th=0xc30b1e0) at /home/archuser/kdesvn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:356
#7  0xb6fa7f76 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9042ef8, th=0xc30b1e0) at /home/archuser/kdesvn/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#8  0xb6fa4084 in ThreadWeaver::WeaverImpl::applyForWork (this=0x9042b90, th=0xc30b1e0, previous=0xd8de358) at /home/archuser/kdesvn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#9  0xb6fa590d in ThreadWeaver::ThreadRunHelper::run (this=0xa8e92314, parent=0x9042b90, th=0xc30b1e0) at /home/archuser/kdesvn/kdelibs/threadweaver/Weaver/Thread.cpp:87
#10 0xb6fa5ca1 in ThreadWeaver::Thread::run (this=0xc30b1e0) at /home/archuser/kdesvn/kdelibs/threadweaver/Weaver/Thread.cpp:142
#11 0xb6047efe in QThreadPrivate::start (arg=0xc30b1e0) at thread/qthread_unix.cpp:244
#12 0xb5fad8ac in start_thread () from /lib/libpthread.so.0
#13 0xb530801e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xa8691b70 (LWP 1378)):
#0  0xb7768424 in __kernel_vsyscall ()
#1  0xb5fb1e55 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb6048e27 in QWaitConditionPrivate::wait (this=0x9042ba8, mutex=0x9042e38, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#3  QWaitCondition::wait (this=0x9042ba8, mutex=0x9042e38, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#4  0xb6fa412c in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x9042b90, th=0xc90cef0) at /home/archuser/kdesvn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#5  0xb6fa7fd2 in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x9042ef8, th=0xc90cef0) at /home/archuser/kdesvn/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:80
#6  0xb6fa40ab in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x9042b90, th=0xc90cef0) at /home/archuser/kdesvn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:356
#7  0xb6fa7f76 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9042ef8, th=0xc90cef0) at /home/archuser/kdesvn/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#8  0xb6fa4084 in ThreadWeaver::WeaverImpl::applyForWork (this=0x9042b90, th=0xc90cef0, previous=0xc87dd18) at /home/archuser/kdesvn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#9  0xb6fa590d in ThreadWeaver::ThreadRunHelper::run (this=0xa8691314, parent=0x9042b90, th=0xc90cef0) at /home/archuser/kdesvn/kdelibs/threadweaver/Weaver/Thread.cpp:87
#10 0xb6fa5ca1 in ThreadWeaver::Thread::run (this=0xc90cef0) at /home/archuser/kdesvn/kdelibs/threadweaver/Weaver/Thread.cpp:142
#11 0xb6047efe in QThreadPrivate::start (arg=0xc90cef0) at thread/qthread_unix.cpp:244
#12 0xb5fad8ac in start_thread () from /lib/libpthread.so.0
#13 0xb530801e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb3ebd700 (LWP 1152)):
[KCrash Handler]
#6  0xb70238d0 in KParts::ReadOnlyPart::d_func (this=0x0) at /home/archuser/kdesvn/kdelibs/kparts/part.h:494
#7  0xb702076d in KParts::ReadOnlyPart::url (this=0x0) at /home/archuser/kdesvn/kdelibs/kparts/part.cpp:463
#8  0xac3a4ecf in ProblemHighlighter::setProblems (this=0xc312bf8, problems=...) at /home/archuser/kdesvn/kdevplatform/plugins/problemreporter/problemhighlighter.cpp:118
#9  0xac39ccf7 in ProblemReporterPlugin::updateReady (this=0xba25970, url=..., topContext=...) at /home/archuser/kdesvn/kdevplatform/plugins/problemreporter/problemreporterplugin.cpp:142
#10 0xac39d5ad in ProblemReporterPlugin::qt_metacall (this=0xba25970, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbff1d20c)
    at /home/archuser/kdesvn/build/kdevplatform/plugins/problemreporter/problemreporterplugin.moc:81
#11 0xb614de8a in QMetaObject::metacall (object=0xba25970, cl=31821994, idx=13, argv=0xbff1d20c) at kernel/qmetaobject.cpp:237
#12 0xb6151c95 in QMetaMethod::invoke (this=0xbff1d5b4, object=0xba25970, connectionType=Qt::DirectConnection, returnValue=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., 
    val7=..., val8=..., val9=...) at kernel/qmetaobject.cpp:1533
#13 0xb6152240 in QMetaObject::invokeMethod (obj=0xba25970, member=0xb4cc6ed9 "updateReady", type=Qt::DirectConnection, ret=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., 
    val7=..., val8=..., val9=...) at kernel/qmetaobject.cpp:1113
#14 0xb4b3d500 in QMetaObject::invokeMethod (obj=0xba25970, member=0xb4cc6ed9 "updateReady", type=Qt::DirectConnection, val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., 
    val7=..., val8=..., val9=...) at /home/archuser/kdesvn/kde-qt/include/QtCore/../../src/corelib/kernel/qobjectdefs.h:396
#15 0xb4b3ef63 in KDevelop::BackgroundParserPrivate::createParseJob (this=0x9042a68, url=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, notifyWhenReady=...)
    at /home/archuser/kdesvn/kdevplatform/language/backgroundparser/backgroundparser.cpp:238
#16 0xb4b3e364 in KDevelop::BackgroundParserPrivate::parseDocumentsInternal (this=0x9042a68) at /home/archuser/kdesvn/kdevplatform/language/backgroundparser/backgroundparser.cpp:164
#17 0xb4b3be82 in KDevelop::BackgroundParser::parseDocuments (this=0x9040938) at /home/archuser/kdesvn/kdevplatform/language/backgroundparser/backgroundparser.cpp:514
#18 0xb4b3ce5f in KDevelop::BackgroundParser::qt_metacall (this=0x9040938, _c=QMetaObject::InvokeMetaMethod, _id=19, _a=0xd53d6c0)
    at /home/archuser/kdesvn/build/kdevplatform/language/backgroundparser.moc:175
#19 0xb614de8a in QMetaObject::metacall (object=0x9040938, cl=31821994, idx=23, argv=0xd53d6c0) at kernel/qmetaobject.cpp:237
#20 0xb6158456 in QMetaCallEvent::placeMetaCall (this=0xccf1c30, object=0x9040938) at kernel/qobject.cpp:574
#21 0xb61594ae in QObject::event (this=0x9040938, e=0xccf1c30) at kernel/qobject.cpp:1260
#22 0xb561050c in QApplicationPrivate::notify_helper (this=0x8e78b88, receiver=0x9040938, e=0xccf1c30) at kernel/qapplication.cpp:4242
#23 0xb5617157 in QApplication::notify (this=0xbff1e210, receiver=0x9040938, e=0xccf1c30) at kernel/qapplication.cpp:3661
#24 0xb64b61ec in KApplication::notify (this=0xbff1e210, receiver=0x9040938, event=0xccf1c30) at /home/archuser/kdesvn/kdelibs/kdeui/kernel/kapplication.cpp:302
#25 0xb6148c7b in QCoreApplication::notifyInternal (this=0xbff1e210, receiver=0x9040938, event=0xccf1c30) at kernel/qcoreapplication.cpp:704
#26 0xb614b653 in QCoreApplication::sendEvent (receiver=0x0, event_type=0, data=0x8e2d250) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#27 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8e2d250) at kernel/qcoreapplication.cpp:1345
#28 0xb614b7bd in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1238
#29 0xb6174d1f in QCoreApplication::sendPostedEvents (s=0x8e5f3b8) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#30 postEventSourceDispatch (s=0x8e5f3b8) at kernel/qeventdispatcher_glib.cpp:276
#31 0xb4267378 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#32 0xb426abf0 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#33 0xb426ad23 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#34 0xb6174815 in QEventDispatcherGlib::processEvents (this=0x8e78b68, flags=...) at kernel/qeventdispatcher_glib.cpp:407
#35 0xb56cb915 in QGuiEventDispatcherGlib::processEvents (this=0x8e78b68, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#36 0xb6147299 in QEventLoop::processEvents (this=0xbff1e134, flags=) at kernel/qeventloop.cpp:149
#37 0xb61476ea in QEventLoop::exec (this=0xbff1e134, flags=...) at kernel/qeventloop.cpp:201
#38 0xb614b87f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#39 0xb56105a7 in QApplication::exec () at kernel/qapplication.cpp:3570
#40 0x0804d8f7 in main (argc=1, argv=0xbff1e744) at /home/archuser/kdesvn/kdevelop/app/main.cpp:196

Reported using DrKonqi
Comment 1 Andreas Pakulat 2009-12-18 13:11:08 UTC
I recall seeing these backtraces a long time ago with Beta5, but I thought that they were fixed already. David?
Comment 2 Dario Andres 2009-12-18 18:33:45 UTC
BTW, The duplicates are on bug 207087
Comment 3 Milian Wolff 2010-01-09 03:19:38 UTC
could we mark this as duplicate? I didn't hit that crash in a long time, I think it's fixed. What do you think?
Comment 4 Andreas Pakulat 2010-01-09 10:42:08 UTC

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