Bug 233823

Summary: assert in TextBlock::line while using kdevelop
Product: [Developer tools] kdevplatform Reporter: Frederik Gladhorn <gladhorn>
Component: languageAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: crash    
Priority: VHI    
Version: git master   
Target Milestone: 1.0.0   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: backtrace

Description Frederik Gladhorn 2010-04-09 14:10:51 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

When letting KDevelop generate some function bodies for a class from the declaration in header files, I got the assert in the attached backtrace.
Comment 1 Frederik Gladhorn 2010-04-09 14:11:34 UTC
Created attachment 42620 [details]
backtrace
Comment 2 Frederik Gladhorn 2010-04-09 14:12:06 UTC
this is kde trunk - revision 1112726
Comment 3 Milian Wolff 2010-04-09 14:18:47 UTC
I also hit that from time to time, so do others around me using KDevelop. I've added more debug output to the assert and it clearly shows that really bad requests are made in certain conditions...
Comment 4 Milian Wolff 2010-04-09 16:34:00 UTC
here for example the debug output of the assert:

ASSERT failure in [
0: /home/milian/compiled//lib/libkdecore.so.5(kRealBacktrace(int)+0x34) [0x7f8d5a67a179]
1: /home/milian/compiled//lib/libkatepartinterfaces.so.4 [0x7f8d30f1543b]
2: /home/milian/compiled//lib/libkatepartinterfaces.so.4 [0x7f8d30f130d9]
3: /home/milian/compiled//lib/libkatepartinterfaces.so.4(Kate::TextBuffer::line(int) const+0x52) [0x7f8d30f0d236]
4: /home/milian/compiled//lib/libkatepartinterfaces.so.4 [0x7f8d30f91e9c]
5: /home/milian/compiled//lib/libkatepartinterfaces.so.4(KateDocument::text(KTextEditor::Range const&, bool) const+0x2ec) [0x7f8d30f75086]
6: /home/milian/compiled//lib/libkdevplatformlanguage.so.1(KDevelop::CodeCompletionWorker::computeCompletions(KDevelop::DUChainPointer<KDevelop::DUContext>, KTextEditor::Cursor const&, KTextEditor::View*)+0x459) [0x7f8d53f09e3f]
7: /home/milian/compiled//lib/libkdevplatformlanguage.so.1(KDevelop::CodeCompletionWorker::qt_metacall(QMetaObject::Call, int, void**)+0x127) [0x7f8d53f0a955]
8: /home/milian/compiled/lib/kde4/kdevcpplanguagesupport.so [0x7f8d31f0da95]
9: /home/milian/compiled//lib/libQtCore.so.4(QObject::event(QEvent*)+0x389) [0x7f8d573ed969]
10: /home/milian/compiled//lib/libQtGui.so.4(QApplicationPrivate::notify_helper(QObject*, QEvent*)+0xac) [0x7f8d5658541c]
11: /home/milian/compiled//lib/libQtGui.so.4(QApplication::notify(QObject*, QEvent*)+0x14b) [0x7f8d5658ba0b]
12: /home/milian/compiled//lib/libkdeui.so.5(KApplication::notify(QObject*, QEvent*)+0x261) [0x7f8d57bd2f03]
13: /home/milian/compiled//lib/libQtCore.so.4(QCoreApplication::notifyInternal(QObject*, QEvent*)+0x8c) [0x7f8d573ddb9c]
14: /home/milian/compiled//lib/libQtCore.so.4(QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)+0x2a4) [0x7f8d573e1214]
15: /home/milian/compiled//lib/libQtCore.so.4 [0x7f8d57407673]
16: /lib/libglib-2.0.so.0(g_main_context_dispatch+0x22e) [0x7f8d4feb8bce]
17: /lib/libglib-2.0.so.0 [0x7f8d4febc598]
18: /lib/libglib-2.0.so.0(g_main_context_iteration+0x80) [0x7f8d4febc6c0]
19: /home/milian/compiled//lib/libQtCore.so.4(QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x73) [0x7f8d574071b3]
20: /home/milian/compiled//lib/libQtCore.so.4(QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x32) [0x7f8d573dc4c2]
21: /home/milian/compiled//lib/libQtCore.so.4(QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+0xdc) [0x7f8d573dc89c]
22: /home/milian/compiled//lib/libQtCore.so.4(QThread::exec()+0x5b) [0x7f8d572e6ecb]
23: /home/milian/compiled//lib/libkdevplatformlanguage.so.1 [0x7f8d53f0fb77]
24: /home/milian/compiled//lib/libQtCore.so.4 [0x7f8d572e99c5]
25: /lib/libpthread.so.0 [0x7f8d5704aa04]
26: /lib/libc.so.6(clone+0x6d) [0x7f8d556fa80d]
]
: "invalid line 5251 requested for block of lines from 4608 to 4864", file /home/milian/kdelibs/kate/buffer/katetextblock.cpp, line 56

great, isn't it? :) it's only 381 lines off...
Comment 5 Milian Wolff 2010-04-09 17:33:33 UTC
SVN commit 1112976 by mwolff:

attempt to make blockForLine more reliable in a multi-threaded context

still, the whole KateBuffer is inherently thread-unsafe and needs to be fixed properly

CCBUG: 233823
CCMAIL: kwrite-devel@kde.org

 M  +9 -6      katetextbuffer.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1112976
Comment 6 Milian Wolff 2010-04-12 15:32:55 UTC
Another assert, I add it here to keep track of it, since it might show uses where we forgot to lock something.

ASSERT: "m_lines > 0" in file /home/milian/kdelibs/kate/buffer/katetextbuffer.h, line 181

Application: KDevelop (kdevelop.bin), signal: Aborted
pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
	in ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
The current source language is "auto; currently asm".
[Current thread is 1 (Thread 0x7f96479a3750 (LWP 8438))]

Thread 13 (Thread 0x7f9632984910 (LWP 8441)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:220
#1  0x00007f9644051972 in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x305e270, time=200000) at thread/qwaitcondition_unix.cpp:85
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x305e270, time=200000) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f9640b507ab in KDevelop::DUChainPrivate::CleanupThread::run (this=0x305e250) at /home/milian/kdevplatform/language/duchain/duchain.cpp:286
#4  0x00007f96440509c5 in QThreadPrivate::start (arg=0x305e250) at thread/qthread_unix.cpp:248
#5  0x00007f9643db1a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007f964246180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7f962881c910 (LWP 8443)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f9644051a0b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x391dbd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x391dbd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f9645ca20f6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x3ba3f10, th=0x3c59610) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f9645ca6313 in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x3c6ceb0, th=0x3c59610) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:80
#5  0x00007f9645ca2074 in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x3ba3f10, th=0x3c59610) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:356
#6  0x00007f9645ca62b7 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3c59610) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#7  0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3c59610, previous=0x0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#8  0x00007f9645ca62e1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3c59610) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#9  0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3c59610, previous=0x0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#10 0x00007f9645ca62e1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3c59610) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#11 0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3c59610, previous=0x0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#12 0x00007f9645ca62e1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3c59610) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#13 0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3c59610, previous=0x0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#14 0x00007f9645ca62e1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3c59610) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#15 0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3c59610, previous=0x0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#16 0x00007f9645ca62e1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3c59610) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#17 0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3c59610, previous=0x0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#18 0x00007f9645ca62e1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3c59610) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#19 0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3c59610, previous=0x0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#20 0x00007f9645ca62e1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3c59610) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#21 0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3c59610, previous=0x0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#22 0x00007f9645ca62e1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3c59610) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#23 0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3c59610, previous=0x3c9c5b0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#24 0x00007f9645ca3b28 in ThreadWeaver::ThreadRunHelper::run (this=0x7f962881c050, parent=0x3ba3f10, th=0x3c59610) at /home/milian/kdelibs/threadweaver/Weaver/Thread.cpp:87
#25 0x00007f9645ca3ecf in ThreadWeaver::Thread::run (this=0x3c59610) at /home/milian/kdelibs/threadweaver/Weaver/Thread.cpp:142
#26 0x00007f96440509c5 in QThreadPrivate::start (arg=0x3c59610) at thread/qthread_unix.cpp:248
#27 0x00007f9643db1a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#28 0x00007f964246180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#29 0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7f962781a910 (LWP 8445)):
#0  0x00007f964245a412 in select () from /lib/libc.so.6
#1  0x00007f9644121af3 in QProcessManager::run (this=0x7f964445d240) at io/qprocess_unix.cpp:245
#2  0x00007f96440509c5 in QThreadPrivate::start (arg=0x7f964445d240) at thread/qthread_unix.cpp:248
#3  0x00007f9643db1a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007f964246180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f9627019910 (LWP 8447)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f9644051a0b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x391dbd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x391dbd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f9645ca20f6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x3ba3f10, th=0x3a96210) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f9645ca6313 in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x3c6ceb0, th=0x3a96210) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:80
#5  0x00007f9645ca2074 in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x3ba3f10, th=0x3a96210) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:356
#6  0x00007f9645ca62b7 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3a96210) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#7  0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3a96210, previous=0x5f003b0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#8  0x00007f9645ca3b28 in ThreadWeaver::ThreadRunHelper::run (this=0x7f9627019050, parent=0x3ba3f10, th=0x3a96210) at /home/milian/kdelibs/threadweaver/Weaver/Thread.cpp:87
#9  0x00007f9645ca3ecf in ThreadWeaver::Thread::run (this=0x3a96210) at /home/milian/kdelibs/threadweaver/Weaver/Thread.cpp:142
#10 0x00007f96440509c5 in QThreadPrivate::start (arg=0x3a96210) at thread/qthread_unix.cpp:248
#11 0x00007f9643db1a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#12 0x00007f964246180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()
The current source language is "auto; currently c".

Thread 9 (Thread 0x7f9626017910 (LWP 8455)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f9644051a0b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x391dbd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x391dbd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f9645ca20f6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x3ba3f10, th=0x3e80210) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f9645ca6313 in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x3c6ceb0, th=0x3e80210) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:80
#5  0x00007f9645ca2074 in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x3ba3f10, th=0x3e80210) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:356
#6  0x00007f9645ca62b7 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3e80210) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#7  0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3e80210, previous=0x0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#8  0x00007f9645ca62e1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3e80210) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#9  0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3e80210, previous=0x0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#10 0x00007f9645ca62e1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3e80210) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#11 0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3e80210, previous=0x0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#12 0x00007f9645ca62e1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3e80210) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#13 0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3e80210, previous=0x0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#14 0x00007f9645ca62e1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3e80210) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#15 0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3e80210, previous=0x0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#16 0x00007f9645ca62e1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3e80210) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#17 0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3e80210, previous=0x0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#18 0x00007f9645ca62e1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3e80210) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#19 0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3e80210, previous=0x3e8ede0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#20 0x00007f9645ca3b28 in ThreadWeaver::ThreadRunHelper::run (this=0x7f9626017050, parent=0x3ba3f10, th=0x3e80210) at /home/milian/kdelibs/threadweaver/Weaver/Thread.cpp:87
#21 0x00007f9645ca3ecf in ThreadWeaver::Thread::run (this=0x3e80210) at /home/milian/kdelibs/threadweaver/Weaver/Thread.cpp:142
#22 0x00007f96440509c5 in QThreadPrivate::start (arg=0x3e80210) at thread/qthread_unix.cpp:248
#23 0x00007f9643db1a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#24 0x00007f964246180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#25 0x0000000000000000 in ?? ()
The current source language is "auto; currently asm".

Thread 8 (Thread 0x7f9625015910 (LWP 8475)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f9644051a0b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x391dbd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x391dbd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f9645ca20f6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x3ba3f10, th=0x3e9bc70) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f9645ca6313 in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x3c6ceb0, th=0x3e9bc70) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:80
#5  0x00007f9645ca2074 in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x3ba3f10, th=0x3e9bc70) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:356
#6  0x00007f9645ca62b7 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3e9bc70) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#7  0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3e9bc70, previous=0x0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#8  0x00007f9645ca62e1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3e9bc70) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#9  0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3e9bc70, previous=0x0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#10 0x00007f9645ca62e1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3e9bc70) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#11 0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3e9bc70, previous=0x0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#12 0x00007f9645ca62e1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3e9bc70) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#13 0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3e9bc70, previous=0x0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#14 0x00007f9645ca62e1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3e9bc70) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#15 0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3e9bc70, previous=0x0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#16 0x00007f9645ca62e1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3c6ceb0, th=0x3e9bc70) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#17 0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x3ba3f10, th=0x3e9bc70, previous=0x0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#18 0x00007f9645ca3b28 in ThreadWeaver::ThreadRunHelper::run (this=0x7f9625015050, parent=0x3ba3f10, th=0x3e9bc70) at /home/milian/kdelibs/threadweaver/Weaver/Thread.cpp:87
#19 0x00007f9645ca3ecf in ThreadWeaver::Thread::run (this=0x3e9bc70) at /home/milian/kdelibs/threadweaver/Weaver/Thread.cpp:142
#20 0x00007f96440509c5 in QThreadPrivate::start (arg=0x3e9bc70) at thread/qthread_unix.cpp:248
#21 0x00007f9643db1a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#22 0x00007f964246180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#23 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f961eeba910 (LWP 8815)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f964182a756 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f9641b09620) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304
#2  0x00007f964182a799 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f9641b176ec) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438
#3  0x00007f9643db1a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007f964246180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f961f6bb910 (LWP 9019)):
#0  0x00007f963cc22d88 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#1  0x00007f963cc23191 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f963cc236c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f964416e206 in QEventDispatcherGlib::processEvents (this=0x61760d0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#4  0x00007f96441434c2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f964414389c in QEventLoop::exec (this=0x7f961f6bb000, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f964404decb in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007f9640c76b77 in KDevelop::CompletionWorkerThread::run (this=0x6f14d60) at /home/milian/kdevplatform/language/codecompletion/codecompletionmodel.cpp:82
#8  0x00007f96440509c5 in QThreadPrivate::start (arg=0x6f14d60) at thread/qthread_unix.cpp:248
#9  0x00007f9643db1a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007f964246180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f961a9b0910 (LWP 9020)):
#0  0x00007f96424553c3 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f963cc2337c in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f963cc236c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f964416e206 in QEventDispatcherGlib::processEvents (this=0x615de80, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#4  0x00007f96441434c2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f964414389c in QEventLoop::exec (this=0x7f961a9b0000, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f964404decb in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007f9640c76b77 in KDevelop::CompletionWorkerThread::run (this=0x6f1e8c0) at /home/milian/kdevplatform/language/codecompletion/codecompletionmodel.cpp:82
#8  0x00007f96440509c5 in QThreadPrivate::start (arg=0x6f1e8c0) at thread/qthread_unix.cpp:248
#9  0x00007f9643db1a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007f964246180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f961a1af910 (LWP 9021)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:220
#1  0x00007f9644050335 in thread_sleep (ti=0x7f961a1af000) at thread/qthread_unix.cpp:398
#2  0x00007f96440504a0 in QThread::msleep (msecs=<value optimized out>) at thread/qthread_unix.cpp:424
#3  0x00007f961a9ea1bc in UIBlockTester::UIBlockTesterThread::run (this=0x6ee7030) at /home/milian/kdevelop/languages/cpp/cpplanguagesupport.cpp:678
#4  0x00007f96440509c5 in QThreadPrivate::start (arg=0x6ee7030) at thread/qthread_unix.cpp:248
#5  0x00007f9643db1a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007f964246180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()
The current source language is "auto; currently c".

Thread 3 (Thread 0x7f9618940910 (LWP 9475)):
[KCrash Handler]
#6  0x00007f96423b54b5 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f96423b8f50 in *__GI_abort () at abort.c:92
#8  0x00007f9644048894 in qt_message_output (msgType=QtFatalMsg, buf=<value optimized out>) at global/qglobal.cpp:2248
#9  0x00007f9644048a72 in qt_message (msgType=QtFatalMsg, msg=0x7f96441a6a88 "ASSERT: \"%s\" in file %s, line %d", ap=0x7f961893d8a0) at global/qglobal.cpp:2294
#10 0x00007f9644048c25 in qFatal (msg=0x2503 <Address 0x2503 out of bounds>) at global/qglobal.cpp:2477
#11 0x00007f9618fcf037 in Kate::TextBuffer::lines (this=0x8bfd2b0) at /home/milian/kdelibs/kate/buffer/katetextbuffer.h:181
#12 0x00007f961905147c in KateBuffer::count (this=0x8bfd2b0) at /home/milian/kdelibs/kate/document/katebuffer.h:146
#13 0x00007f9619036f77 in KateDocument::lines (this=0x92a1ea0) at /home/milian/kdelibs/kate/document/katedocument.cpp:850
#14 0x00007f96190510ef in KateDocument::lastLine (this=0x92a1ea0) at /home/milian/kdelibs/kate/document/katedocument.h:645
#15 0x00007f96190a25d3 in KateSmartCursor (this=0x7f960c2a9a10, position=..., doc=0x92a1ea0, insertBehavior=KTextEditor::SmartCursor::MoveOnInsert)
    at /home/milian/kdelibs/kate/smart/katesmartcursor.cpp:47
#16 0x00007f96190a47d5 in KateSmartRange (this=0x7f960d0a0840, range=..., doc=0x92a1ea0, parent=0x0, insertBehavior=...) at /home/milian/kdelibs/kate/smart/katesmartrange.cpp:39
#17 0x00007f96190a893c in KateSmartManager::newSmartRange (this=0x8f36800, range=..., parent=0x0, insertBehavior=..., internal=false) at /home/milian/kdelibs/kate/smart/katesmartmanager.cpp:237
#18 0x00007f961904cd3c in KateDocument::newSmartRange (this=0x92a1ea0, range=..., parent=0x0, insertBehavior=...) at /home/milian/kdelibs/kate/document/katedocument.cpp:4782
#19 0x00007f9640b1e666 in KDevelop::EditorIntegratorPrivate::createRange<KTextEditor::SmartRange> (this=0x7f962ea66a60, iface=..., range=..., insertBehavior=...)
    at /home/milian/kdevplatform/language/editor/editorintegrator.cpp:170
#20 0x00007f9640b1ea6d in KDevelop::EditorIntegrator::createRange (this=0x7f961893f480, iface=..., range=..., insertBehavior=...) at /home/milian/kdevplatform/language/editor/editorintegrator.cpp:293
#21 0x00007f961d6d5414 in KDevelop::AbstractUseBuilder<AST, NameAST, ContextBuilder>::newUse (this=0x7f961893f030, node=0x7f960bb2a310, newRange=..., declaration=0x7f960cbe3830)
    at /home/milian/compiled/include/kdevplatform/language/duchain/builders/abstractusebuilder.h:186
#22 0x00007f961d6d4a20 in UseExpressionVisitor::usingDeclaration (this=0x7f961893dfa0, node=0x7f960bb2a310, start_token=4696, end_token=4697, decl=...)
    at /home/milian/kdevelop/languages/cpp/cppduchain/usebuilder.cpp:136
#23 0x00007f961d725e4e in Stream (this=0x7f961893dfa0, t=32662) at /home/milian/compiled/include/QtCore/qdebug.h:67
#24 0x00007f961d7180f9 in Cpp::ExpressionVisitor::parse (this=0x7f961893dfa0, ast=0x7f960bb2a340) at /home/milian/kdevelop/languages/cpp/cppduchain/expressionvisitor.cpp:230
#25 0x00007f961d6d3594 in UseBuilder::visitExpression (this=0x7f961893f030, node=0x7f960bb2a340) at /home/milian/kdevelop/languages/cpp/cppduchain/usebuilder.cpp:155
#26 0x00007f961d6d3335 in UseBuilder::visitCondition (this=0x7f961893f030, node=0x7f960bb2a340) at /home/milian/kdevelop/languages/cpp/cppduchain/usebuilder.cpp:78
#27 0x00007f961d9a8166 in Visitor::visit (this=0x7f961893f090, node=0x7f960bb2a340) at /home/milian/kdevelop/languages/cpp/parser/visitor.cpp:113
#28 0x00007f961d684836 in ContextBuilder::visitForStatement (this=0x7f961893f030, node=0x7f960bb2a360) at /home/milian/kdevelop/languages/cpp/cppduchain/contextbuilder.cpp:954
#29 0x00007f961d9a8166 in Visitor::visit (this=0x7f961893f090, node=0x7f960bb2a360) at /home/milian/kdevelop/languages/cpp/parser/visitor.cpp:113
#30 0x00007f961d9a5a08 in visitNodes<StatementAST*> (v=0x7f961893f090, nodes=0x7f960bb2c480) at /home/milian/kdevelop/languages/cpp/parser/visitor.h:128
#31 0x00007f961d9a42c9 in DefaultVisitor::visitCompoundStatement (this=0x7f961893f090, node=0x7f960bb283a0) at /home/milian/kdevelop/languages/cpp/parser/default_visitor.cpp:68
#32 0x00007f961d68438a in ContextBuilder::newContext (this=0x7f961d68438a, range=...) at /home/milian/kdevelop/languages/cpp/cppduchain/contextbuilder.cpp:764
#33 0x00007f961d9a8166 in Visitor::visit (this=0x7f961893f090, node=0x7f960bb283a0) at /home/milian/kdevelop/languages/cpp/parser/visitor.cpp:113
#34 0x00007f961d683fa3 in ContextBuilder::visitFunctionDefinition (this=0x7f961893f030, node=0x7f960bb2c498) at /home/milian/kdevelop/languages/cpp/cppduchain/contextbuilder.cpp:697
#35 0x00007f961d9a8166 in Visitor::visit (this=0x7f961893f090, node=0x7f960bb2c498) at /home/milian/kdevelop/languages/cpp/parser/visitor.cpp:113
#36 0x00007f961d9a5995 in visitNodes<DeclarationAST*> (v=0x7f961893f090, nodes=0x7f95fa620630) at /home/milian/kdevelop/languages/cpp/parser/visitor.h:128
#37 0x00007f961d9a4b81 in DefaultVisitor::visitLinkageBody (this=0x7f961893f090, node=0x7f960b91a988) at /home/milian/kdevelop/languages/cpp/parser/default_visitor.cpp:221
#38 0x00007f961d9a8166 in Visitor::visit (this=0x7f961893f090, node=0x7f960b91a988) at /home/milian/kdevelop/languages/cpp/parser/visitor.cpp:113
#39 0x00007f961d9a4cbf in DefaultVisitor::visitNamespace (this=0x7f961893f090, node=0x7f960b91a958) at /home/milian/kdevelop/languages/cpp/parser/default_visitor.cpp:244
#40 0x00007f961d6835b9 in ContextBuilder::visitNamespace (this=0x7f961893f030, node=0x7f960b91a958) at /home/milian/kdevelop/languages/cpp/cppduchain/contextbuilder.cpp:575
#41 0x00007f961d9a8166 in Visitor::visit (this=0x7f961893f090, node=0x7f960b91a958) at /home/milian/kdevelop/languages/cpp/parser/visitor.cpp:113
#42 0x00007f961d9a5995 in visitNodes<DeclarationAST*> (v=0x7f961893f090, nodes=0x7f95fa620648) at /home/milian/kdevelop/languages/cpp/parser/visitor.h:128
#43 0x00007f961d9a54ed in DefaultVisitor::visitTranslationUnit (this=0x7f961893f090, node=0x7f960b91a380) at /home/milian/kdevelop/languages/cpp/parser/default_visitor.cpp:394
#44 0x00007f961d9a8166 in Visitor::visit (this=0x7f961893f090, node=0x7f960b91a380) at /home/milian/kdevelop/languages/cpp/parser/visitor.cpp:113
#45 0x00007f961d6809bb in ContextBuilder::setMapAst (this=0x7f961893f030, mapAst=150) at /home/milian/kdevelop/languages/cpp/cppduchain/contextbuilder.cpp:213
#46 0x00007f961d6887bf in KDevelop::AbstractContextBuilder<AST, NameAST>::supportBuild (this=0x7f961893f030, node=0x7f960b91a380, context=0x7f960d9a7710)
    at /home/milian/compiled/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:196
#47 0x00007f961d6d4cfd in KDevelop::AbstractUseBuilder<AST, NameAST, ContextBuilder>::buildUses (this=0x7f961893f030, node=0x7f960b91a380)
    at /home/milian/compiled/include/kdevplatform/language/duchain/builders/abstractusebuilder.h:61
#48 0x00007f961d6d31ef in UseBuilder::buildUses (this=0x7f961893f030, node=0x7f960b91a380) at /home/milian/kdevelop/languages/cpp/cppduchain/usebuilder.cpp:60
#49 0x00007f961a9f8a57 in CPPInternalParseJob::run (this=0xb7bbd70) at /home/milian/kdevelop/languages/cpp/cppparsejob.cpp:738
#50 0x00007f9645ca49bb in ThreadWeaver::JobRunHelper::runTheJob (this=0x7f961893ff50, th=0x7f960c04cfd0, job=0xb7bbd70) at /home/milian/kdelibs/threadweaver/Weaver/Job.cpp:106
#51 0x00007f9645ca4c2b in ThreadWeaver::Job::execute (this=0xb7bbd70, th=0x7f960c04cfd0) at /home/milian/kdelibs/threadweaver/Weaver/Job.cpp:135
#52 0x00007f9645ca7143 in ThreadWeaver::JobCollectionJobRunner::execute (this=0x8647660, t=0x7f960c04cfd0) at /home/milian/kdelibs/threadweaver/Weaver/JobCollection.cpp:82
#53 0x00007f9645ca3b80 in ThreadWeaver::ThreadRunHelper::run (this=0x7f9618940050, parent=0x2e45be0, th=0x7f960c04cfd0) at /home/milian/kdelibs/threadweaver/Weaver/Thread.cpp:95
#54 0x00007f9645ca3ecf in ThreadWeaver::Thread::run (this=0x7f960c04cfd0) at /home/milian/kdelibs/threadweaver/Weaver/Thread.cpp:142
#55 0x00007f96440509c5 in QThreadPrivate::start (arg=0x7f960c04cfd0) at thread/qthread_unix.cpp:248
#56 0x00007f9643db1a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#57 0x00007f964246180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#58 0x0000000000000000 in ?? ()
The current source language is "auto; currently asm".

Thread 2 (Thread 0x7f9613fff910 (LWP 9476)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f9644051a0b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x2e42c70, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x2e42c70, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f9645ca20f6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x2e45be0, th=0x7f960c0dfd00) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f9645ca6313 in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x2e42d10, th=0x7f960c0dfd00) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:80
#5  0x00007f9645ca2074 in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x2e45be0, th=0x7f960c0dfd00) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:356
#6  0x00007f9645ca62b7 in ThreadWeaver::WorkingHardState::applyForWork (this=0x2e42d10, th=0x7f960c0dfd00) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#7  0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x2e45be0, th=0x7f960c0dfd00, previous=0x0) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#8  0x00007f9645ca62e1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x2e42d10, th=0x7f960c0dfd00) at /home/milian/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#9  0x00007f9645ca2037 in ThreadWeaver::WeaverImpl::applyForWork (this=0x2e45be0, th=0x7f960c0dfd00, previous=0x801ea70) at /home/milian/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#10 0x00007f9645ca3b28 in ThreadWeaver::ThreadRunHelper::run (this=0x7f9613fff050, parent=0x2e45be0, th=0x7f960c0dfd00) at /home/milian/kdelibs/threadweaver/Weaver/Thread.cpp:87
#11 0x00007f9645ca3ecf in ThreadWeaver::Thread::run (this=0x7f960c0dfd00) at /home/milian/kdelibs/threadweaver/Weaver/Thread.cpp:142
#12 0x00007f96440509c5 in QThreadPrivate::start (arg=0x7f960c0dfd00) at thread/qthread_unix.cpp:248
#13 0x00007f9643db1a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#14 0x00007f964246180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#15 0x0000000000000000 in ?? ()
The current source language is "auto; currently c".

Thread 1 (Thread 0x7f96479a3750 (LWP 8438)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f96440500f3 in QMutexPrivate::wait (this=0x92b5f20, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007f964404b995 in QMutex::lock (this=0x96d07a0) at thread/qmutex.cpp:167
#3  0x00007f9618fe2249 in QMutexLocker::relock (this=0x7fff4815deb0) at /home/milian/compiled/include/QtCore/qmutex.h:120
#4  0x00007f9618fe21a0 in QMutexLocker (this=0x7fff4815deb0, m=0x96d07a0) at /home/milian/compiled/include/QtCore/qmutex.h:102
#5  0x00007f96190e6901 in KateView::updateDocumentConfig (this=0x98b12a0) at /home/milian/kdelibs/kate/view/kateview.cpp:1503
#6  0x00007f961904840a in KateDocument::updateConfig (this=0x92a1ea0) at /home/milian/kdelibs/kate/document/katedocument.cpp:4088
#7  0x00007f961915605b in KateDocumentConfig::updateConfig (this=0x97e7030) at /home/milian/kdelibs/kate/utils/kateconfig.cpp:300
#8  0x00007f961915499a in KateConfig::configEnd (this=0x97e7030) at /home/milian/kdelibs/kate/utils/kateconfig.cpp:74
#9  0x00007f9619156840 in KateDocumentConfig::setEncoding (this=0x97e7030, encoding=...) at /home/milian/kdelibs/kate/utils/kateconfig.cpp:524
#10 0x00007f961905ccd5 in KateBuffer::openFile (this=0x8bfd2b0, m_file=...) at /home/milian/kdelibs/kate/document/katebuffer.cpp:165
#11 0x00007f961903c872 in KateDocument::openFile (this=0x92a1ea0) at /home/milian/kdelibs/kate/document/katedocument.cpp:2053
#12 0x00007f9646339f34 in KParts::ReadOnlyPart::openUrl (this=0x92a1ea0, url=...) at /home/milian/kdelibs/kparts/part.cpp:557
#13 0x00007f9619047bc7 in KateDocument::documentReload (this=0x92a1ea0) at /home/milian/kdelibs/kate/document/katedocument.cpp:3962
#14 0x00007f9619047291 in KateDocument::slotModifiedOnDisk (this=0x92a1ea0) at /home/milian/kdelibs/kate/document/katedocument.cpp:3864
#15 0x00007f9619030977 in KateDocument::qt_metacall (this=0x92a1ea0, _c=QMetaObject::InvokeMetaMethod, _id=58, _a=0x7fff4815eb10) at /home/milian/.build/kdelibs/kate/katedocument.moc:360
#16 0x00007f9644157df6 in QMetaObject::activate (sender=0x98b12a0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3287
#17 0x00007f9645ed5113 in KTextEditor::View::focusIn (this=0x98b12a0, _t1=0x98b12a0) at /home/milian/.build/kdelibs/interfaces/ktexteditor/view.moc:125
#18 0x00007f96190e4528 in KateView::slotGotFocus (this=0x98b12a0) at /home/milian/kdelibs/kate/view/kateview.cpp:983
#19 0x00007f96190fde89 in KateViewInternal::focusInEvent (this=0x98b1ba0) at /home/milian/kdelibs/kate/view/kateviewinternal.cpp:3136
#20 0x00007f964334203a in QWidget::event (this=0x98b1ba0, event=0x7fff4815f320) at kernel/qwidget.cpp:8149
#21 0x00007f96432ec41c in QApplicationPrivate::notify_helper (this=0x2435b20, receiver=0x98b1ba0, e=0x7fff4815f320) at kernel/qapplication.cpp:4302
#22 0x00007f96432f2a0b in QApplication::notify (this=0x7fff48161120, receiver=0x98b1ba0, e=0x7fff4815f320) at kernel/qapplication.cpp:4185
#23 0x00007f9644939f03 in KApplication::notify (this=0x7fff48161120, receiver=0x98b1ba0, event=0x7fff4815f320) at /home/milian/kdelibs/kdeui/kernel/kapplication.cpp:302
#24 0x00007f9644144b9c in QCoreApplication::notifyInternal (this=0x7fff48161120, receiver=0x98b1ba0, event=0x7fff4815f320) at kernel/qcoreapplication.cpp:704
#25 0x00007f96432f1726 in QApplicationPrivate::setFocusWidget (focus=0x98b1ba0, reason=Qt::OtherFocusReason) at kernel/qapplication.cpp:2139
#26 0x00007f964333d811 in QWidget::setFocus (this=0x98b1ba0, reason=Qt::OtherFocusReason) at kernel/qwidget.cpp:6157
#27 0x00007f964332c0b0 in QWidget::setFocus (this=0x7f960c0850e0, index=2) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:420
#28 QStackedLayout::setCurrentIndex (this=0x7f960c0850e0, index=2) at kernel/qstackedlayout.cpp:320
#29 0x00007f9640838b73 in Sublime::Container::setCurrentWidget (this=0x7f960c113040, w=0x99782e0) at /home/milian/kdevplatform/sublime/container.cpp:329
#30 0x00007f96408427e4 in Sublime::MainWindow::activateView (this=0x2dc9190, view=0x9773180) at /home/milian/kdevplatform/sublime/mainwindow.cpp:214
#31 0x00007f9640843e23 in Sublime::MainWindow::qt_metacall (this=0x2dc9190, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x7fff4815f640) at /home/milian/.build/kdevplatform/sublime/mainwindow.moc:118
#32 0x00007f9646da5729 in KDevelop::MainWindow::qt_metacall (this=0x2dc9190, _c=QMetaObject::InvokeMetaMethod, _id=57, _a=0x7fff4815f640) at /home/milian/.build/kdevplatform/shell/mainwindow.moc:89
#33 0x00007f9644157df6 in QMetaObject::activate (sender=0x7f960c113040, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3287
#34 0x00007f9640839813 in Sublime::Container::activateView (this=0x7f960c113040, _t1=0x9773180) at /home/milian/.build/kdevplatform/sublime/container.moc:118
#35 0x00007f9640838549 in Sublime::Container::widgetActivated (this=0x7f960c113040, idx=2) at /home/milian/kdevplatform/sublime/container.cpp:252
#36 0x00007f96408396bf in Sublime::Container::qt_metacall (this=0x7f960c113040, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x7fff4815f7d0)
    at /home/milian/.build/kdevplatform/sublime/container.moc:99
#37 0x00007f9644157df6 in QMetaObject::activate (sender=0x7f960c1d5b90, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3287
#38 0x00007f964372ef9e in QTabBar::currentChanged (this=0x92b5f6c, _t1=2) at .moc/release-shared/moc_qtabbar.cpp:201
#39 0x00007f964373387e in QTabBar::mousePressEvent (this=0x7f960c1d5b90, event=0x7fff481602d0) at widgets/qtabbar.cpp:1705
#40 0x00007f9644a6656e in KTabBar::mousePressEvent (this=0x7f960c1d5b90, event=0x7fff481602d0) at /home/milian/kdelibs/kdeui/widgets/ktabbar.cpp:121
#41 0x00007f9643342789 in QWidget::event (this=0x7f960c1d5b90, event=0x7fff481602d0) at kernel/qwidget.cpp:8036
#42 0x00007f964373391a in QTabBar::event (this=0x7f960c1d5b90, event=0x7fff481602d0) at widgets/qtabbar.cpp:1457
#43 0x00007f964083a0a1 in Sublime::ContainerTabBar::event (this=0x7f960c1d5b90, ev=0x7fff481602d0) at /home/milian/kdevplatform/sublime/container.cpp:70
#44 0x00007f96432ec41c in QApplicationPrivate::notify_helper (this=0x2435b20, receiver=0x7f960c1d5b90, e=0x7fff481602d0) at kernel/qapplication.cpp:4302
#45 0x00007f96432f31eb in QApplication::notify (this=0x7fff48161120, receiver=0x7f960c1d5b90, e=0x7fff481602d0) at kernel/qapplication.cpp:3867
#46 0x00007f9644939f03 in KApplication::notify (this=0x7fff48161120, receiver=0x7f960c1d5b90, event=0x7fff481602d0) at /home/milian/kdelibs/kdeui/kernel/kapplication.cpp:302
#47 0x00007f9644144b9c in QCoreApplication::notifyInternal (this=0x7fff48161120, receiver=0x7f960c1d5b90, event=0x7fff481602d0) at kernel/qcoreapplication.cpp:704
#48 0x00007f96432f23c6 in QCoreApplication::sendEvent (receiver=0x7f960c1d5b90, event=0x7fff481602d0, alienWidget=0x0, nativeWidget=0x7f960c1d5b90, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#49 QApplicationPrivate::sendMouseEvent (receiver=0x7f960c1d5b90, event=0x7fff481602d0, alienWidget=0x0, nativeWidget=0x7f960c1d5b90, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at kernel/qapplication.cpp:2967
#50 0x00007f9643371e55 in QETWidget::translateMouseEvent (this=0x7f960c1d5b90, event=<value optimized out>) at kernel/qapplication_x11.cpp:4380
#51 0x00007f9643370b6a in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff48160bf0) at kernel/qapplication_x11.cpp:3513
#52 0x00007f964339b2e2 in x11EventSourceDispatch (s=0x24486f0, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#53 0x00007f963cc1fbce in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#54 0x00007f963cc23598 in ?? () from /lib/libglib-2.0.so.0
#55 0x00007f963cc236c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#56 0x00007f964416e1b3 in QEventDispatcherGlib::processEvents (this=0x2403f90, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#57 0x00007f964339aece in QGuiEventDispatcherGlib::processEvents (this=0x92b5f6c, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#58 0x00007f96441434c2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#59 0x00007f964414389c in QEventLoop::exec (this=0x7fff48160f20, flags=) at kernel/qeventloop.cpp:201
#60 0x00007f96441484fb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#61 0x0000000000408b7b in main (argc=1, argv=0x7fff48162638) at /home/milian/kdevelop/app/main_internal.cpp:222
The current source language is "auto; currently asm".
Comment 7 Andreas Pakulat 2010-04-12 18:27:08 UTC
After some discussions on the lists its clear that the error is on kdevelop's side. So to make sure we capture all cases where kdevelop runs into such problems I'm moving this back to kdevelop.
Comment 8 Milian Wolff 2010-09-01 16:43:35 UTC
this doesn't happen anymore, so closing. Esp. considering our move to the MovingRange interface and using the ForegroundLock.

Reopen if someone hits it again.