Bug 236948 - CodeCompletionModel does not honor QAIM invariants [asserts in ~QPersistentModelIndex]
Summary: CodeCompletionModel does not honor QAIM invariants [asserts in ~QPersistentMo...
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: part (show other bugs)
Version: Git
Platform: Compiled Sources Linux
: HI crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 329047 331503 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-09 07:38 UTC by Keith Rusler
Modified: 2014-02-27 09:52 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.13


Attachments
New crash information added by DrKonqi (22.83 KB, text/plain)
2011-03-02 19:04 UTC, Milian Wolff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Rusler 2010-05-09 07:38:51 UTC
Application: kdevelop (4.0.60 (using KDevPlatform 1.0.60))
KDE Platform Version: 4.4.75 (KDE 4.4.75 (KDE 4.5 >= 20100505)) (Compiled from sources)
Qt Version: 4.7.0
Operating System: Linux 2.6.33-gentoo-r1 x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
- What I was doing when the application crashed:
I was just deleting some code from a line in a function when I got this crash. Could be the same random crash I get doing the same thing.

The crash can be reproduced some of the time.

-- Backtrace:
Application: KDevelop (kdevelop.bin), signal: Aborted
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.2400.1-gdb.py", line 9, in <module>
    from gobject import register
  File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
ImportError: No module named backtrace
[Current thread is 1 (Thread 0x7fb985af4760 (LWP 28003))]

Thread 17 (Thread 0x7fb9688ef710 (LWP 28004)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007fb98207bee9 in QWaitConditionPrivate::wait (this=0xe037e0, time=200000) at thread/qwaitcondition_unix.cpp:85
#2  0x00007fb98207bcad in QWaitCondition::wait (this=0xe03458, mutex=0xe03460, time=200000) at thread/qwaitcondition_unix.cpp:159
#3  0x00007fb97e54b53e in KDevelop::DUChainPrivate::CleanupThread::run (this=0xe03440) at /var/tmp/portage/dev-util/kdevplatform-9999/work/kdevplatform-9999/language/duchain/duchain.cpp:286
#4  0x00007fb98207a8d2 in QThreadPrivate::start (arg=0xe03440) at thread/qthread_unix.cpp:260
#5  0x00007fb981dd78e4 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#6  0x00007fb98011229d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 16 (Thread 0x7fb962a63710 (LWP 28005)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fb98207bf05 in QWaitConditionPrivate::wait (this=0xedf580, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007fb98207bcad in QWaitCondition::wait (this=0xed2288, mutex=0xc1efd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007fb983f04231 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xed2260, th=0xdff2f0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fb983f08430 in ThreadWeaver::WorkingHardState::applyForWork (this=0xd84f60, th=0xdff2f0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fb983f06994 in ThreadWeaver::ThreadRunHelper::run (this=0x7fb962a62df0, parent=0xed2260, th=0xdff2f0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/Thread.cpp:87
#6  0x00007fb983f06a94 in ThreadWeaver::Thread::run (this=0xdff2f0) at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/Thread.cpp:142
#7  0x00007fb98207a8d2 in QThreadPrivate::start (arg=0xdff2f0) at thread/qthread_unix.cpp:260
#8  0x00007fb981dd78e4 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#9  0x00007fb98011229d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 15 (Thread 0x7fb95b683710 (LWP 28041)):
#0  0x00007fff26bff904 in clock_gettime ()
#1  0x00007fb97ac6a318 in *__GI_clock_gettime (clock_id=1, tp=0x7fb95b6829b0) at ../sysdeps/unix/clock_gettime.c:100
#2  0x00007fb9820e6dd3 in do_gettime () at tools/qelapsedtimer_unix.cpp:105
#3  0x00007fb9820e6e67 in qt_gettime () at tools/qelapsedtimer_unix.cpp:119
#4  0x00007fb9821eeefc in QTimerInfoList::updateCurrentTime (this=0x108bfa0) at kernel/qeventdispatcher_unix.cpp:339
#5  0x00007fb9821ef3b0 in QTimerInfoList::timerWait (this=0x108bfa0, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#6  0x00007fb9821eaa6d in timerSourcePrepareHelper (src=0x108bf40, timeout=0x7fb95b682b9c) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007fb9821eac12 in timerSourcePrepare (source=0x108bf40, timeout=0x7fb95b682b9c) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00007fb97a9ae488 in IA__g_main_context_prepare (context=0x1067d00, priority=<value optimized out>) at gmain.c:2280
#9  0x00007fb97a9ae8e8 in g_main_context_iterate (context=0x1067d00, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2571
#10 0x00007fb97a9aeebc in IA__g_main_context_iteration (context=0x1067d00, may_block=1) at gmain.c:2654
#11 0x00007fb9821ec13e in QEventDispatcherGlib::processEvents (this=0x1082a90, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#12 0x00007fb9821a9d00 in QEventLoop::processEvents (this=0x7fb95b682dd0, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007fb9821a9e56 in QEventLoop::exec (this=0x7fb95b682dd0, flags=...) at kernel/qeventloop.cpp:201
#14 0x00007fb982077ddd in QThread::exec (this=0x10b62b0) at thread/qthread.cpp:487
#15 0x00007fb98207a8d2 in QThreadPrivate::start (arg=0x10b62b0) at thread/qthread_unix.cpp:260
#16 0x00007fb981dd78e4 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#17 0x00007fb98011229d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 14 (Thread 0x7fb95ae82710 (LWP 28093)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fb97f21b7af in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7fb97f5ada00) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007fb97f21adea in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7fb97f5ada00) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007fb981dd78e4 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#4  0x00007fb98011229d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 13 (Thread 0x7fb9549a9710 (LWP 28110)):
#0  0x00007fff26bff904 in clock_gettime ()
#1  0x00007fb97ac6a318 in *__GI_clock_gettime (clock_id=1, tp=0x7fb9549a89b0) at ../sysdeps/unix/clock_gettime.c:100
#2  0x00007fb9820e6dd3 in do_gettime () at tools/qelapsedtimer_unix.cpp:105
#3  0x00007fb9820e6e67 in qt_gettime () at tools/qelapsedtimer_unix.cpp:119
#4  0x00007fb9821eeefc in QTimerInfoList::updateCurrentTime (this=0x1fc9cf0) at kernel/qeventdispatcher_unix.cpp:339
#5  0x00007fb9821ef3b0 in QTimerInfoList::timerWait (this=0x1fc9cf0, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#6  0x00007fb9821eaa6d in timerSourcePrepareHelper (src=0x1fc9c90, timeout=0x7fb9549a8b9c) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007fb9821eac12 in timerSourcePrepare (source=0x1fc9c90, timeout=0x7fb9549a8b9c) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00007fb97a9ae488 in IA__g_main_context_prepare (context=0x1fca260, priority=<value optimized out>) at gmain.c:2280
#9  0x00007fb97a9ae8e8 in g_main_context_iterate (context=0x1fca260, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2571
#10 0x00007fb97a9aeebc in IA__g_main_context_iteration (context=0x1fca260, may_block=1) at gmain.c:2654
#11 0x00007fb9821ec13e in QEventDispatcherGlib::processEvents (this=0x138c480, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#12 0x00007fb9821a9d00 in QEventLoop::processEvents (this=0x7fb9549a8dd0, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007fb9821a9e56 in QEventLoop::exec (this=0x7fb9549a8dd0, flags=...) at kernel/qeventloop.cpp:201
#14 0x00007fb982077ddd in QThread::exec (this=0x1fc9ac0) at thread/qthread.cpp:487
#15 0x00007fb98207a8d2 in QThreadPrivate::start (arg=0x1fc9ac0) at thread/qthread_unix.cpp:260
#16 0x00007fb981dd78e4 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#17 0x00007fb98011229d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 12 (Thread 0x7fb9541a8710 (LWP 28111)):
#0  0x00007fff26bff904 in clock_gettime ()
#1  0x00007fb97ac6a318 in *__GI_clock_gettime (clock_id=1, tp=0x7fb9541a79b0) at ../sysdeps/unix/clock_gettime.c:100
#2  0x00007fb9820e6dd3 in do_gettime () at tools/qelapsedtimer_unix.cpp:105
#3  0x00007fb9820e6e67 in qt_gettime () at tools/qelapsedtimer_unix.cpp:119
#4  0x00007fb9821eeefc in QTimerInfoList::updateCurrentTime (this=0x1fccfe0) at kernel/qeventdispatcher_unix.cpp:339
#5  0x00007fb9821ef3b0 in QTimerInfoList::timerWait (this=0x1fccfe0, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#6  0x00007fb9821eaa6d in timerSourcePrepareHelper (src=0x1fccf80, timeout=0x7fb9541a7b9c) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007fb9821eac12 in timerSourcePrepare (source=0x1fccf80, timeout=0x7fb9541a7b9c) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00007fb97a9ae488 in IA__g_main_context_prepare (context=0x1fcd1f0, priority=<value optimized out>) at gmain.c:2280
#9  0x00007fb97a9ae8e8 in g_main_context_iterate (context=0x1fcd1f0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2571
#10 0x00007fb97a9aeebc in IA__g_main_context_iteration (context=0x1fcd1f0, may_block=1) at gmain.c:2654
#11 0x00007fb9821ec13e in QEventDispatcherGlib::processEvents (this=0x1d56130, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#12 0x00007fb9821a9d00 in QEventLoop::processEvents (this=0x7fb9541a7dd0, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007fb9821a9e56 in QEventLoop::exec (this=0x7fb9541a7dd0, flags=...) at kernel/qeventloop.cpp:201
#14 0x00007fb982077ddd in QThread::exec (this=0x1fcc590) at thread/qthread.cpp:487
#15 0x00007fb98207a8d2 in QThreadPrivate::start (arg=0x1fcc590) at thread/qthread_unix.cpp:260
#16 0x00007fb981dd78e4 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#17 0x00007fb98011229d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 11 (Thread 0x7fb9539a7710 (LWP 28112)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007fb98207ab0e in thread_sleep (ti=0x7fb9539a6d90) at thread/qthread_unix.cpp:410
#2  0x00007fb98207ac96 in QThread::msleep (msecs=30) at thread/qthread_unix.cpp:436
#3  0x00007fb955c6bd61 in UIBlockTester::UIBlockTesterThread::run (this=0x1fd27e0) at /var/tmp/portage/dev-util/kdevelop-9999/work/kdevelop-9999/languages/cpp/cpplanguagesupport.cpp:678
#4  0x00007fb98207a8d2 in QThreadPrivate::start (arg=0x1fd27e0) at thread/qthread_unix.cpp:260
#5  0x00007fb981dd78e4 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#6  0x00007fb98011229d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 10 (Thread 0x7fb951a7f710 (LWP 28155)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fb98207bf05 in QWaitConditionPrivate::wait (this=0xcb4e40, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007fb98207bcad in QWaitCondition::wait (this=0xcb4d58, mutex=0xa374c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007fb983f04231 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xcb4d30, th=0x34f8950)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fb983f08430 in ThreadWeaver::WorkingHardState::applyForWork (this=0xc85960, th=0x34f8950)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fb983f08449 in ThreadWeaver::WorkingHardState::applyForWork (this=0xc85960, th=0x34f8950)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007fb983f08449 in ThreadWeaver::WorkingHardState::applyForWork (this=0xc85960, th=0x34f8950)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00007fb983f06994 in ThreadWeaver::ThreadRunHelper::run (this=0x7fb951a7edf0, parent=0xcb4d30, th=0x34f8950)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/Thread.cpp:87
#8  0x00007fb983f06a94 in ThreadWeaver::Thread::run (this=0x34f8950) at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/Thread.cpp:142
#9  0x00007fb98207a8d2 in QThreadPrivate::start (arg=0x34f8950) at thread/qthread_unix.cpp:260
#10 0x00007fb981dd78e4 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#11 0x00007fb98011229d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 9 (Thread 0x7fb95127e710 (LWP 28156)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fb98207bf05 in QWaitConditionPrivate::wait (this=0xcb4e40, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007fb98207bcad in QWaitCondition::wait (this=0xcb4d58, mutex=0xa374c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007fb983f04231 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xcb4d30, th=0x2954cb0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fb983f08430 in ThreadWeaver::WorkingHardState::applyForWork (this=0xc85960, th=0x2954cb0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fb983f08449 in ThreadWeaver::WorkingHardState::applyForWork (this=0xc85960, th=0x2954cb0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007fb983f08449 in ThreadWeaver::WorkingHardState::applyForWork (this=0xc85960, th=0x2954cb0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00007fb983f08449 in ThreadWeaver::WorkingHardState::applyForWork (this=0xc85960, th=0x2954cb0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:74
#8  0x00007fb983f08449 in ThreadWeaver::WorkingHardState::applyForWork (this=0xc85960, th=0x2954cb0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:74
#9  0x00007fb983f06994 in ThreadWeaver::ThreadRunHelper::run (this=0x7fb95127ddf0, parent=0xcb4d30, th=0x2954cb0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/Thread.cpp:87
#10 0x00007fb983f06a94 in ThreadWeaver::Thread::run (this=0x2954cb0) at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/Thread.cpp:142
#11 0x00007fb98207a8d2 in QThreadPrivate::start (arg=0x2954cb0) at thread/qthread_unix.cpp:260
#12 0x00007fb981dd78e4 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#13 0x00007fb98011229d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 8 (Thread 0x7fb950a7d710 (LWP 28157)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fb98207bf05 in QWaitConditionPrivate::wait (this=0xcb4e40, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007fb98207bcad in QWaitCondition::wait (this=0xcb4d58, mutex=0xa374c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007fb983f04231 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xcb4d30, th=0x22b68d0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fb983f08430 in ThreadWeaver::WorkingHardState::applyForWork (this=0xc85960, th=0x22b68d0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fb983f08449 in ThreadWeaver::WorkingHardState::applyForWork (this=0xc85960, th=0x22b68d0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007fb983f08449 in ThreadWeaver::WorkingHardState::applyForWork (this=0xc85960, th=0x22b68d0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00007fb983f08449 in ThreadWeaver::WorkingHardState::applyForWork (this=0xc85960, th=0x22b68d0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:74
#8  0x00007fb983f08449 in ThreadWeaver::WorkingHardState::applyForWork (this=0xc85960, th=0x22b68d0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:74
#9  0x00007fb983f08449 in ThreadWeaver::WorkingHardState::applyForWork (this=0xc85960, th=0x22b68d0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:74
#10 0x00007fb983f06994 in ThreadWeaver::ThreadRunHelper::run (this=0x7fb950a7cdf0, parent=0xcb4d30, th=0x22b68d0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/Thread.cpp:87
#11 0x00007fb983f06a94 in ThreadWeaver::Thread::run (this=0x22b68d0) at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/Thread.cpp:142
#12 0x00007fb98207a8d2 in QThreadPrivate::start (arg=0x22b68d0) at thread/qthread_unix.cpp:260
#13 0x00007fb981dd78e4 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#14 0x00007fb98011229d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 7 (Thread 0x7fb95027c710 (LWP 28158)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fb98207bf05 in QWaitConditionPrivate::wait (this=0xcb4e40, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007fb98207bcad in QWaitCondition::wait (this=0xcb4d58, mutex=0xa374c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007fb983f04231 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xcb4d30, th=0x28d2670)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fb983f08430 in ThreadWeaver::WorkingHardState::applyForWork (this=0xc85960, th=0x28d2670)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fb983f08449 in ThreadWeaver::WorkingHardState::applyForWork (this=0xc85960, th=0x28d2670)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007fb983f08449 in ThreadWeaver::WorkingHardState::applyForWork (this=0xc85960, th=0x28d2670)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00007fb983f08449 in ThreadWeaver::WorkingHardState::applyForWork (this=0xc85960, th=0x28d2670)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:74
#8  0x00007fb983f06994 in ThreadWeaver::ThreadRunHelper::run (this=0x7fb95027bdf0, parent=0xcb4d30, th=0x28d2670)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/Thread.cpp:87
#9  0x00007fb983f06a94 in ThreadWeaver::Thread::run (this=0x28d2670) at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/Thread.cpp:142
#10 0x00007fb98207a8d2 in QThreadPrivate::start (arg=0x28d2670) at thread/qthread_unix.cpp:260
#11 0x00007fb981dd78e4 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#12 0x00007fb98011229d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 6 (Thread 0x7fb94fa7b710 (LWP 28159)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fb98207bf05 in QWaitConditionPrivate::wait (this=0xcb4e40, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007fb98207bcad in QWaitCondition::wait (this=0xcb4d58, mutex=0xa374c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007fb983f04231 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xcb4d30, th=0x22b8660)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fb983f08430 in ThreadWeaver::WorkingHardState::applyForWork (this=0xc85960, th=0x22b8660)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fb983f06994 in ThreadWeaver::ThreadRunHelper::run (this=0x7fb94fa7adf0, parent=0xcb4d30, th=0x22b8660)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/Thread.cpp:87
#6  0x00007fb983f06a94 in ThreadWeaver::Thread::run (this=0x22b8660) at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/Thread.cpp:142
#7  0x00007fb98207a8d2 in QThreadPrivate::start (arg=0x22b8660) at thread/qthread_unix.cpp:260
#8  0x00007fb981dd78e4 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#9  0x00007fb98011229d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 5 (Thread 0x7fb94f27a710 (LWP 28160)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fb98207bf05 in QWaitConditionPrivate::wait (this=0xcb4e40, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007fb98207bcad in QWaitCondition::wait (this=0xcb4d58, mutex=0xa374c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007fb983f04231 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xcb4d30, th=0x1c61ff0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fb983f08430 in ThreadWeaver::WorkingHardState::applyForWork (this=0xc85960, th=0x1c61ff0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fb983f08449 in ThreadWeaver::WorkingHardState::applyForWork (this=0xc85960, th=0x1c61ff0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007fb983f06994 in ThreadWeaver::ThreadRunHelper::run (this=0x7fb94f279df0, parent=0xcb4d30, th=0x1c61ff0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/Thread.cpp:87
#7  0x00007fb983f06a94 in ThreadWeaver::Thread::run (this=0x1c61ff0) at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/Thread.cpp:142
#8  0x00007fb98207a8d2 in QThreadPrivate::start (arg=0x1c61ff0) at thread/qthread_unix.cpp:260
#9  0x00007fb981dd78e4 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#10 0x00007fb98011229d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 4 (Thread 0x7fb94d832710 (LWP 27072)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fb98207bf05 in QWaitConditionPrivate::wait (this=0xedf580, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007fb98207bcad in QWaitCondition::wait (this=0xed2288, mutex=0xc1efd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007fb983f04231 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xed2260, th=0xa07ac90)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fb983f08430 in ThreadWeaver::WorkingHardState::applyForWork (this=0xd84f60, th=0xa07ac90)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fb983f08449 in ThreadWeaver::WorkingHardState::applyForWork (this=0xd84f60, th=0xa07ac90)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007fb983f08449 in ThreadWeaver::WorkingHardState::applyForWork (this=0xd84f60, th=0xa07ac90)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00007fb983f08449 in ThreadWeaver::WorkingHardState::applyForWork (this=0xd84f60, th=0xa07ac90)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:74
#8  0x00007fb983f08449 in ThreadWeaver::WorkingHardState::applyForWork (this=0xd84f60, th=0xa07ac90)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:74
#9  0x00007fb983f06994 in ThreadWeaver::ThreadRunHelper::run (this=0x7fb94d831df0, parent=0xed2260, th=0xa07ac90)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/Thread.cpp:87
#10 0x00007fb983f06a94 in ThreadWeaver::Thread::run (this=0xa07ac90) at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/Thread.cpp:142
#11 0x00007fb98207a8d2 in QThreadPrivate::start (arg=0xa07ac90) at thread/qthread_unix.cpp:260
#12 0x00007fb981dd78e4 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#13 0x00007fb98011229d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7fb94d031710 (LWP 27073)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fb98207bf05 in QWaitConditionPrivate::wait (this=0xedf580, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007fb98207bcad in QWaitCondition::wait (this=0xed2288, mutex=0xc1efd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007fb983f04231 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xed2260, th=0xb6e0010)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fb983f08430 in ThreadWeaver::WorkingHardState::applyForWork (this=0xd84f60, th=0xb6e0010)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fb983f08449 in ThreadWeaver::WorkingHardState::applyForWork (this=0xd84f60, th=0xb6e0010)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007fb983f06994 in ThreadWeaver::ThreadRunHelper::run (this=0x7fb94d030df0, parent=0xed2260, th=0xb6e0010)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/Thread.cpp:87
#7  0x00007fb983f06a94 in ThreadWeaver::Thread::run (this=0xb6e0010) at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/Thread.cpp:142
#8  0x00007fb98207a8d2 in QThreadPrivate::start (arg=0xb6e0010) at thread/qthread_unix.cpp:260
#9  0x00007fb981dd78e4 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#10 0x00007fb98011229d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7fb962262710 (LWP 14843)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fb98207bf05 in QWaitConditionPrivate::wait (this=0xedf580, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007fb98207bcad in QWaitCondition::wait (this=0xed2288, mutex=0xc1efd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007fb983f04231 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xed2260, th=0x463dc50)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fb983f08430 in ThreadWeaver::WorkingHardState::applyForWork (this=0xd84f60, th=0x463dc50)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fb983f08449 in ThreadWeaver::WorkingHardState::applyForWork (this=0xd84f60, th=0x463dc50)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007fb983f08449 in ThreadWeaver::WorkingHardState::applyForWork (this=0xd84f60, th=0x463dc50)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00007fb983f06994 in ThreadWeaver::ThreadRunHelper::run (this=0x7fb962261df0, parent=0xed2260, th=0x463dc50)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/Thread.cpp:87
#8  0x00007fb983f06a94 in ThreadWeaver::Thread::run (this=0x463dc50) at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/threadweaver/Weaver/Thread.cpp:142
#9  0x00007fb98207a8d2 in QThreadPrivate::start (arg=0x463dc50) at thread/qthread_unix.cpp:260
#10 0x00007fb981dd78e4 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#11 0x00007fb98011229d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7fb985af4760 (LWP 28003)):
[KCrash Handler]
#6  0x00007fb9800731a5 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007fb9800745d0 in *__GI_abort () at abort.c:92
#8  0x00007fb98206e245 in qt_message_output (msgType=QtFatalMsg, buf=
    0xcdeee68 "ASSERT failure in QPersistentModelIndex::~QPersistentModelIndex: \"persistent model indexes corrupted\", file kernel/qabstractitemmodel.cpp, line 544") at global/qglobal.cpp:2253
#9  0x00007fb98206e424 in qt_message (msgType=QtFatalMsg, msg=0x7fb98223c060 "ASSERT failure in %s: \"%s\", file %s, line %d", ap=0x7fff26b89be0) at global/qglobal.cpp:2299
#10 0x00007fb98206ec91 in qFatal (msg=0x7fb98223c060 "ASSERT failure in %s: \"%s\", file %s, line %d") at global/qglobal.cpp:2482
#11 0x00007fb98206de17 in qt_assert_x (where=0x7fb98229b390 "QPersistentModelIndex::~QPersistentModelIndex", what=0x7fb98229b368 "persistent model indexes corrupted", file=
    0x7fb98229b2de "kernel/qabstractitemmodel.cpp", line=544) at global/qglobal.cpp:2024
#12 0x00007fb98219c526 in QAbstractItemModelPrivate::removePersistentIndexData (this=0x132e4160, data=0x144c62c0) at kernel/qabstractitemmodel.cpp:544
#13 0x00007fb98219b476 in QPersistentModelIndexData::destroy (data=0x144c62c0) at kernel/qabstractitemmodel.cpp:83
#14 0x00007fb98219b699 in ~QPersistentModelIndex (this=0x7fff26b89dc0, __in_chrg=<value optimized out>) at kernel/qabstractitemmodel.cpp:155
#15 0x00007fb98171bb16 in QItemSelectionModel::setCurrentIndex (this=0x5d3ebf0, index=..., command=...) at itemviews/qitemselectionmodel.cpp:1141
#16 0x00007fb9816ae10c in QAbstractItemView::setCurrentIndex (this=0x132e47c0, index=...) at itemviews/qabstractitemview.cpp:1003
#17 0x00007fb9816b7a31 in QAbstractItemView::rowsAboutToBeRemoved (this=0x132e47c0, parent=..., start=0, end=1) at itemviews/qabstractitemview.cpp:3220
#18 0x00007fb9817031ce in QTreeView::rowsAboutToBeRemoved (this=0x132e47c0, parent=..., start=0, end=1) at itemviews/qtreeview.cpp:2492
#19 0x00007fb9816bc696 in QAbstractItemView::qt_metacall (this=0x132e47c0, _c=QMetaObject::InvokeMetaMethod, _id=18, _a=0x7fff26b8a3b0) at .moc/debug-shared/moc_qabstractitemview.cpp:236
#20 0x00007fb981709613 in QTreeView::qt_metacall (this=0x132e47c0, _c=QMetaObject::InvokeMetaMethod, _id=49, _a=0x7fff26b8a3b0) at .moc/debug-shared/moc_qtreeview.cpp:119
#21 0x00007fb9529c77c8 in KateCompletionTree::qt_metacall (this=0x6d63, _c=28003, _id=6, _a=0xffffffffffffffff)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999_build/kate/katecompletiontree.moc:67
#22 0x00007fb9821b5617 in QMetaObject::metacall (object=0x132e47c0, cl=QMetaObject::InvokeMetaMethod, idx=49, argv=0x7fff26b8a3b0) at kernel/qmetaobject.cpp:237
#23 0x00007fb9821cca78 in QMetaObject::activate (sender=0x132e4090, m=0x7fb9825483c0, local_signal_index=6, argv=0x7fff26b8a3b0) at kernel/qobject.cpp:3295
#24 0x00007fb98223754d in QAbstractItemModel::rowsAboutToBeRemoved (this=0x132e4090, _t1=..., _t2=0, _t3=1) at .moc/debug-shared/moc_qabstractitemmodel.cpp:188
#25 0x00007fb9821a0b39 in QAbstractItemModel::beginRemoveRows (this=0x132e4090, parent=..., first=0, last=1) at kernel/qabstractitemmodel.cpp:2450
#26 0x00007fb9529bb5df in KateCompletionModel::changeCompletions (this=0x132e4090, g=0x143b6920, changeType=<value optimized out>)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kate/completion/katecompletionmodel.cpp:1054
#27 0x00007fb9529bd5b8 in KateCompletionModel::setCurrentCompletion (this=0x132e4090, model=0xf9a7d0, completion=<value optimized out>)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kate/completion/katecompletionmodel.cpp:949
#28 0x00007fb9529b0912 in KateCompletionWidget::cursorPositionChanged (this=0x132e3d60) at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kate/completion/katecompletionwidget.cpp:737
#29 0x00007fb9529b42ee in KateCompletionWidget::qt_metacall (this=0x132e3d60, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x131ce7a0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999_build/kate/katecompletionwidget.moc:130
#30 0x00007fb9821b5617 in QMetaObject::metacall (object=0x132e3d60, cl=QMetaObject::InvokeMetaMethod, idx=44, argv=0x131ce7a0) at kernel/qmetaobject.cpp:237
#31 0x00007fb9821c5cc4 in QMetaCallEvent::placeMetaCall (this=0x13b8f020, object=0x132e3d60) at kernel/qobject.cpp:553
#32 0x00007fb9821c81f5 in QObject::event (this=0x132e3d60, e=0x13b8f020) at kernel/qobject.cpp:1234
#33 0x00007fb98102cd40 in QWidget::event (this=0x132e3d60, event=0x13b8f020) at kernel/qwidget.cpp:8543
#34 0x00007fb98152717b in QFrame::event (this=0x132e3d60, e=0x13b8f020) at widgets/qframe.cpp:557
#35 0x00007fb980fb60d8 in QApplicationPrivate::notify_helper (this=0x8cfda0, receiver=0x132e3d60, e=0x13b8f020) at kernel/qapplication.cpp:4341
#36 0x00007fb980fb5f2a in QApplication::notify (this=0x7fff26b8bdf0, receiver=0x132e3d60, e=0x13b8f020) at kernel/qapplication.cpp:4306
#37 0x00007fb982a11cc1 in KApplication::notify (this=0x7fff26b8bdf0, receiver=0x132e3d60, event=0x13b8f020)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kdeui/kernel/kapplication.cpp:302
#38 0x00007fb9821acd08 in QCoreApplication::notifyInternal (this=0x7fff26b8bdf0, receiver=0x132e3d60, event=0x13b8f020) at kernel/qcoreapplication.cpp:704
#39 0x00007fb9821b0c89 in QCoreApplication::sendEvent (receiver=0x132e3d60, event=0x13b8f020) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#40 0x00007fb9821adf7a in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x867610) at kernel/qcoreapplication.cpp:1345
#41 0x00007fb9821adb95 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1238
#42 0x00007fb9821ec8b1 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#43 0x00007fb9821eae61 in postEventSourceDispatch (s=0x8d3a20) at kernel/qeventdispatcher_glib.cpp:276
#44 0x00007fb97a9aaecf in g_main_dispatch (context=0x8d2220) at gmain.c:1960
#45 IA__g_main_context_dispatch (context=0x8d2220) at gmain.c:2513
#46 0x00007fb97a9aed08 in g_main_context_iterate (context=0x8d2220, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2591
#47 0x00007fb97a9aeebc in IA__g_main_context_iteration (context=0x8d2220, may_block=1) at gmain.c:2654
#48 0x00007fb9821ec11b in QEventDispatcherGlib::processEvents (this=0x8cfd30, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#49 0x00007fb9810a18e8 in QGuiEventDispatcherGlib::processEvents (this=0x8cfd30, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#50 0x00007fb9821a9d00 in QEventLoop::processEvents (this=0x7fff26b8bb90, flags=...) at kernel/qeventloop.cpp:149
#51 0x00007fb9821a9e56 in QEventLoop::exec (this=0x7fff26b8bb90, flags=...) at kernel/qeventloop.cpp:201
#52 0x00007fb9821ad404 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#53 0x00007fb980fb30e8 in QApplication::exec () at kernel/qapplication.cpp:3620
#54 0x000000000040712f in main (argc=<value optimized out>, argv=<value optimized out>) at /var/tmp/portage/dev-util/kdevelop-9999/work/kdevelop-9999/app/main_internal.cpp:232

Reported using DrKonqi
Comment 1 Andreas Pakulat 2010-05-09 11:21:54 UTC
Either a bug in kate or qt, re-assigning to kate for now maybe they've seen this already before.
Comment 2 Dominik Haumann 2010-05-23 00:56:49 UTC
This is very similar to bug #194111, instead of addRow here we have removeRow...
Comment 3 Christoph Cullmann 2010-07-05 15:14:26 UTC
The code completion model looks corrupted, guess this is a result of incorrect use while filling in in kdevelop. Never seen such crash with single-threaded kate word completion, therefor assigning back.
Comment 4 Milian Wolff 2010-09-08 23:07:05 UTC
can someone reproduce this?
Comment 5 Milian Wolff 2011-03-02 19:04:42 UTC
Created attachment 57614 [details]
New crash information added by DrKonqi

kdevelop (4.2.60) on KDE Platform 4.6.00 (4.6.0) using Qt 4.7.1

used kdev for some hours, triggered code completion => crash

-- Backtrace (Reduced):
#11 0x00007f951f093e67 in qt_assert_x (where=0x7f951f2c2e30 "QPersistentModelIndex::~QPersistentModelIndex", what=0x7f951f2c2e08 "persistent model indexes corrupted", file=0x7f951f2c2d7e "kernel/qabstractitemmodel.cpp", line=544) at global/qglobal.cpp:2035
#12 0x00007f951f1c3bf6 in QAbstractItemModelPrivate::removePersistentIndexData (this=0x62127d0, data=0x84edc80) at kernel/qabstractitemmodel.cpp:544
#13 0x00007f951f1c2b46 in QPersistentModelIndexData::destroy (data=0x84edc80) at kernel/qabstractitemmodel.cpp:83
#14 0x00007f951f1c2d69 in QPersistentModelIndex::~QPersistentModelIndex (this=0x43af500, __in_chrg=<value optimized out>) at kernel/qabstractitemmodel.cpp:155
#15 0x00007f951e711621 in QItemSelectionRange::~QItemSelectionRange (this=0x43af500, __in_chrg=<value optimized out>) at ../../include/QtGui/../../src/gui/itemviews/qitemselectionmodel.h:59
Comment 6 Kevin Funk 2013-11-04 10:28:28 UTC
Just experienced the same, using KDevelop/KDevplatform/Kate from Git master.

Backtrace:
(gdb) bt
#0  0x00007ffff47ddf77 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ffff47e15e8 in __GI_abort () at abort.c:90
#2  0x00007ffff5dca40b in qt_message_output (msgType=QtFatalMsg, buf=0x6796328 "ASSERT failure in QPersistentModelIndex::~QPersistentModelIndex: \"persistent model indexes corrupted\", file /home/krf/devel/src/qt/src/corelib/kernel/qabstractitemmodel.cpp, line 544") at /
home/krf/devel/src/qt/src/corelib/global/qglobal.cpp:2323
#3  0x00007ffff5dca5aa in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7ffff5fb5628 "ASSERT failure in %s: \"%s\", file %s, line %d", ap=0x7fffffffb528) at /home/krf/devel/src/qt/src/corelib/global/qglobal.cpp:2369
#4  0x00007ffff5dcad74 in qFatal (msg=0x7ffff5fb5628 "ASSERT failure in %s: \"%s\", file %s, line %d") at /home/krf/devel/src/qt/src/corelib/global/qglobal.cpp:2552
#5  0x00007ffff5dca003 in qt_assert_x (where=0x7ffff6036c78 "QPersistentModelIndex::~QPersistentModelIndex", what=0x7ffff6036c50 "persistent model indexes corrupted", file=0x7ffff6036ba0 "/home/krf/devel/src/qt/src/corelib/kernel/qabstractitemmodel.cpp", line=544) at /ho
me/krf/devel/src/qt/src/corelib/global/qglobal.cpp:2026
#6  0x00007ffff5f02f52 in QAbstractItemModelPrivate::removePersistentIndexData (this=0x440fcb0, data=0x66d2610) at /home/krf/devel/src/qt/src/corelib/kernel/qabstractitemmodel.cpp:543
#7  0x00007ffff5f01fea in QPersistentModelIndexData::destroy (data=0x66d2610) at /home/krf/devel/src/qt/src/corelib/kernel/qabstractitemmodel.cpp:83
#8  0x00007ffff5f02107 in QPersistentModelIndex::~QPersistentModelIndex (this=0x7fffffffb700, __in_chrg=<optimized out>) at /home/krf/devel/src/qt/src/corelib/kernel/qabstractitemmodel.cpp:155
#9  0x00007ffff582e2c6 in QItemSelectionModel::setCurrentIndex (this=0x444b750, index=..., command=...) at /home/krf/devel/src/qt/src/gui/itemviews/qitemselectionmodel.cpp:1181
#10 0x00007ffff57bd02d in QAbstractItemView::setCurrentIndex (this=0x4410100, index=...) at /home/krf/devel/src/qt/src/gui/itemviews/qabstractitemview.cpp:1022
#11 0x00007fff59b3bd49 in KateCompletionWidget::modelContentChanged (this=0x440f840) at /home/krf/devel/src/kate/part/completion/katecompletionwidget.cpp:222
#12 0x00007ffff5f31f23 in QMetaObject::activate (sender=0x440fbe0, m=0x7fff59f6e7e0 <KateCompletionModel::staticMetaObject>, local_signal_index=2, argv=0x0) at /home/krf/devel/src/qt/src/corelib/kernel/qobject.cpp:3547
#13 0x00007fff59b41373 in KateCompletionModel::contentGeometryChanged (this=this@entry=0x440fbe0) at /home/krf/devel/build/kate/part/katecompletionmodel.moc:146
#14 0x00007fff59b45f88 in KateCompletionModel::resort (this=this@entry=0x440fbe0) at /home/krf/devel/src/kate/part/completion/katecompletionmodel.cpp:1593
#15 0x00007fff59b46460 in KateCompletionModel::setCurrentCompletion (this=0x440fbe0, model=0x3de66d0, completion="view.setSource(") at /home/krf/devel/src/kate/part/completion/katecompletionmodel.cpp:957
#16 0x00007fff59b3ca7f in KateCompletionWidget::cursorPositionChanged (this=0x440f840) at /home/krf/devel/src/kate/part/completion/katecompletionwidget.cpp:727
#17 0x00007ffff5f31f23 in QMetaObject::activate (sender=0x41e5590, m=0x7ffff737fa00 <KTextEditor::View::staticMetaObject>, local_signal_index=7, argv=0x7fffffffbd40) at /home/krf/devel/src/qt/src/corelib/kernel/qobject.cpp:3547
#18 0x00007ffff715c4a7 in KTextEditor::View::cursorPositionChanged (this=<optimized out>, _t1=0x41e5590, _t2=[11, 19]) at /home/krf/devel/build/kdelibs/interfaces/ktexteditor/view.moc:187
#19 0x00007fff59bfa6ed in KateViewInternal::updateCursor (this=this@entry=0x435d5a0, newCursor=[11, 19], force=force@entry=true, center=center@entry=false, calledExternally=calledExternally@entry=false) at /home/krf/devel/src/kate/part/view/kateviewinternal.cpp:1899
#20 0x00007fff59bfecd7 in KateViewInternal::editEnd (this=0x435d5a0, editTagLineStart=11, editTagLineEnd=editTagLineEnd@entry=11, tagFrom=tagFrom@entry=false) at /home/krf/devel/src/kate/part/view/kateviewinternal.cpp:3365
#21 0x00007fff59be55ff in KateView::editEnd (this=this@entry=0x41e5590, editTagLineStart=<optimized out>, editTagLineEnd=editTagLineEnd@entry=11, tagFrom=tagFrom@entry=false) at /home/krf/devel/src/kate/part/view/kateview.cpp:1843
#22 0x00007fff59b800c4 in KateDocument::editEnd (this=this@entry=0x418e120) at /home/krf/devel/src/kate/part/document/katedocument.cpp:821
#23 0x00007fff59b82dc1 in KateDocument::removeText (this=this@entry=0x418e120, _range=[ (11, 19) -> (11, 20) ], block=block@entry=false) at /home/krf/devel/src/kate/part/document/katedocument.cpp:697
#24 0x00007fff59b831e9 in KateDocument::backspace (this=0x418e120, view=view@entry=0x41e5590, c=[11, 20]) at /home/krf/devel/src/kate/part/document/katedocument.cpp:2776
#25 0x00007fff59bf4432 in KateViewInternal::doBackspace (this=<optimized out>) at /home/krf/devel/src/kate/part/view/kateviewinternal.cpp:799
(gdb) #26 0x00007ffff5f31f23 in QMetaObject::activate (sender=0x44088a0, m=0x7ffff5cd9760 <QAction::staticMetaObject>, local_signal_index=1, argv=0x7fffffffc1f0) at /home/krf/devel/src/qt/src/corelib/kernel/qobject.cpp:3547
#27 0x00007ffff50e753a in QAction::triggered (this=0x44088a0, _t1=false) at .moc/debug-shared/moc_qaction.cpp:276
#28 0x00007ffff50e6902 in QAction::activate (this=0x44088a0, event=QAction::Trigger) at /home/krf/devel/src/qt/src/gui/kernel/qaction.cpp:1257
#29 0x00007ffff50e6664 in QAction::event (this=0x44088a0, e=0x7fffffffc7d0) at /home/krf/devel/src/qt/src/gui/kernel/qaction.cpp:1183
#30 0x00007ffff624ed3b in KAction::event (this=0x44088a0, event=0x7fffffffc7d0) at /home/krf/devel/src/kdelibs/kdeui/actions/kaction.cpp:131
#31 0x00007ffff50f73a0 in QApplicationPrivate::notify_helper (this=0x6d2840, receiver=0x44088a0, e=0x7fffffffc7d0) at /home/krf/devel/src/qt/src/gui/kernel/qapplication.cpp:4562
#32 0x00007ffff50f4713 in QApplication::notify (this=0x7fffffffd9e0, receiver=0x44088a0, e=0x7fffffffc7d0) at /home/krf/devel/src/qt/src/gui/kernel/qapplication.cpp:3944
#33 0x00007ffff6311db6 in KApplication::notify (this=0x7fffffffd9e0, receiver=0x44088a0, event=0x7fffffffc7d0) at /home/krf/devel/src/kdelibs/kdeui/kernel/kapplication.cpp:311
#34 0x00007ffff5f134c4 in QCoreApplication::notifyInternal (this=0x7fffffffd9e0, receiver=0x44088a0, event=0x7fffffffc7d0) at /home/krf/devel/src/qt/src/corelib/kernel/qcoreapplication.cpp:949
#35 0x00007ffff6ddf523 in QCoreApplication::sendEvent (receiver=0x44088a0, event=0x7fffffffc7d0) at ../../include/QtCore/../../../../src/qt/src/corelib/kernel/qcoreapplication.h:231
#36 0x00007ffff5137e65 in QShortcutMap::dispatchEvent (this=0x6d2960, e=0x7fffffffcd70) at /home/krf/devel/src/qt/src/gui/kernel/qshortcutmap.cpp:884
#37 0x00007ffff51364bf in QShortcutMap::tryShortcutEvent (this=0x6d2960, o=0x435d5a0, e=0x7fffffffcd70) at /home/krf/devel/src/qt/src/gui/kernel/qshortcutmap.cpp:364
#38 0x00007ffff50f49c6 in QApplication::notify (this=0x7fffffffd9e0, receiver=0x435d5a0, e=0x7fffffffcd70) at /home/krf/devel/src/qt/src/gui/kernel/qapplication.cpp:3986
#39 0x00007ffff6311db6 in KApplication::notify (this=0x7fffffffd9e0, receiver=0x435d5a0, event=0x7fffffffcd70) at /home/krf/devel/src/kdelibs/kdeui/kernel/kapplication.cpp:311
#40 0x00007ffff5f134c4 in QCoreApplication::notifyInternal (this=0x7fffffffd9e0, receiver=0x435d5a0, event=0x7fffffffcd70) at /home/krf/devel/src/qt/src/corelib/kernel/qcoreapplication.cpp:949
#41 0x00007ffff50fa7c9 in QCoreApplication::sendSpontaneousEvent (receiver=0x435d5a0, event=0x7fffffffcd70) at ../../include/QtCore/../../../../src/qt/src/corelib/kernel/qcoreapplication.h:234
#42 0x00007ffff50f76f3 in qt_sendSpontaneousEvent (receiver=0x435d5a0, event=0x7fffffffcd70) at /home/krf/devel/src/qt/src/gui/kernel/qapplication.cpp:5560
#43 0x00007ffff51d0547 in QKeyMapper::sendKeyEvent (keyWidget=0x435d5a0, grab=false, type=QEvent::KeyPress, code=16777219, modifiers=..., text="\b", autorepeat=false, count=1, nativeScanCode=22, nativeVirtualKey=65288, nativeModifiers=16) at /home/krf/devel/src/qt/src/gu
i/kernel/qkeymapper_x11.cpp:1869
#44 0x00007ffff51d0211 in QKeyMapperPrivate::translateKeyEvent (this=0x731c70, keyWidget=0x435d5a0, event=0x7fffffffd510, grab=false) at /home/krf/devel/src/qt/src/gui/kernel/qkeymapper_x11.cpp:1839
#45 0x00007ffff5195e41 in QApplication::x11ProcessEvent (this=0x7fffffffd9e0, event=0x7fffffffd510) at /home/krf/devel/src/qt/src/gui/kernel/qapplication_x11.cpp:3533
#46 0x00007ffff51d24f2 in x11EventSourceDispatch (s=0x6d5970, callback=0x0, user_data=0x0) at /home/krf/devel/src/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:146
#47 0x00007fffef31c3b6 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#48 0x00007fffef31c708 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#49 0x00007fffef31c7ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#50 0x00007ffff5f4fecd in QEventDispatcherGlib::processEvents (this=0x6d5340, flags=...) at /home/krf/devel/src/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:425
#51 0x00007ffff51d28ba in QGuiEventDispatcherGlib::processEvents (this=0x6d5340, flags=...) at /home/krf/devel/src/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:204
#52 0x00007ffff5f1081c in QEventLoop::processEvents (this=0x7fffffffd880, flags=...) at /home/krf/devel/src/qt/src/corelib/kernel/qeventloop.cpp:149
#53 0x00007ffff5f109b0 in QEventLoop::exec (this=0x7fffffffd880, flags=...) at /home/krf/devel/src/qt/src/corelib/kernel/qeventloop.cpp:204
#54 0x00007ffff5f13b5a in QCoreApplication::exec () at /home/krf/devel/src/qt/src/corelib/kernel/qcoreapplication.cpp:1221
#55 0x00007ffff50f42fa in QApplication::exec () at /home/krf/devel/src/qt/src/gui/kernel/qapplication.cpp:3823
#56 0x000000000040f345 in main (argc=<optimized out>, argv=<optimized out>) at /home/krf/devel/src/kdevelop/app/main.cpp:559
Comment 7 Kevin Funk 2013-11-13 14:04:31 UTC
Found a code snippet where this is easily triggered:

"""
void* foo() { return 0; };
int main()
{
    void* v = foo();
}
"""

Put the cursor after 'foo' inside main. Then invoke the completion pop-up (Ctrl+Space), then press Backspace  three times => Crash.

I'm hitting this quite often, raising importance.
Comment 8 Milian Wolff 2013-11-13 14:11:12 UTC
kdevelop(28183)/Kate KateCompletionModel::parent: Couldn't find parent for index QModelIndex(0,0,0x436d590,KateCompletionModel(0x436e840) )  

the kate completion model should be fixed by running it with a ModelTest hooked up
Comment 9 Dominik Haumann 2013-11-13 16:03:05 UTC
Cannot reproduce in KWrite.

@Milian, Kevin: If you can reproduce, can you investigate + provide a patch?
Comment 10 Milian Wolff 2013-11-13 16:25:45 UTC
Yeah of course you cannot reproduce in KWrite, you need fancy code completion which so far only KDevelop provides afaik.

I reassigned this only to kate since it's the completion model there which is broken. We are the consumers and do feel responsible :) Question is when we find the time to rewrite / fixup the code completion model...
Comment 11 Kevin Funk 2013-11-13 16:41:30 UTC
I'm on it. The fix is relatively simple: Avoid using reset() inside KateCompletionModel. KateCompletionWidget is trying to call QAIM::setCurrentIndex during a model reset (i.e. when model indices got invalid without having notified QAIM about it).

I have a local patch where I used {begin,end}ResetModel instead with a couple of cleanups which apparently fixes this crash. I'm testing it for a while to make sure it's not causing regressions.
Comment 12 Kevin Funk 2013-12-21 00:06:03 UTC
*** Bug 329047 has been marked as a duplicate of this bug. ***
Comment 13 Kevin Funk 2013-12-31 15:58:26 UTC
Git commit b768749230872b5acf0e2816dd855409f6d70733 by Kevin Funk.
Committed on 11/12/2013 at 23:51.
Pushed by kfunk into branch 'master'.

Fix assert in ~QPersistentModelIndex

KateCompletionWidget may call QAIM::setCurrentIndex during a reset of
the model, inside KateCompletionWidget::modelContentChanged(). At this
point, model indices are invalid, but QAIM wasn't informed about it.

The main problem is that KateCompletionModel doesn't use the
(relatively) new {begin,end}ResetModel blocks to make persistent model
indices invalid when we start resetting the model. Instead reset() is used
*after* we have reset the model. However, KateCompletionModel may emit
contentGeometryChanged too early (before a reset()) and hence triggering
QAIM::setCurrentIndex while QAIM is still referencing now invalid
persistent model indices.

Other changes:
Remove contentGeometryChanged. Instead, use layoutChanged() and
modelReset() signals to react to model changes.

This also ports KateCompletionModel away from deprecated QAIM methods
such as QAIM::reset()
REVIEW: 113917
FIXED-IN: 4.13

M  +38   -36   part/completion/katecompletionmodel.cpp
M  +5    -4    part/completion/katecompletionmodel.h
M  +4    -2    part/completion/katecompletionwidget.cpp

http://commits.kde.org/kate/b768749230872b5acf0e2816dd855409f6d70733
Comment 14 Michal Humpula 2014-01-01 22:30:46 UTC
Git commit a0a1b3ced5bdfe6c43a323ab7b700c20f1f4b93c by Michal Humpula, on behalf of Kevin Funk.
Committed on 11/12/2013 at 23:51.
Pushed by michalhumpula into branch 'frameworks'.

Fix assert in ~QPersistentModelIndex

KateCompletionWidget may call QAIM::setCurrentIndex during a reset of
the model, inside KateCompletionWidget::modelContentChanged(). At this
point, model indices are invalid, but QAIM wasn't informed about it.

The main problem is that KateCompletionModel doesn't use the
(relatively) new {begin,end}ResetModel blocks to make persistent model
indices invalid when we start resetting the model. Instead reset() is used
*after* we have reset the model. However, KateCompletionModel may emit
contentGeometryChanged too early (before a reset()) and hence triggering
QAIM::setCurrentIndex while QAIM is still referencing now invalid
persistent model indices.

Other changes:
Remove contentGeometryChanged. Instead, use layoutChanged() and
modelReset() signals to react to model changes.

This also ports KateCompletionModel away from deprecated QAIM methods
such as QAIM::reset()
REVIEW: 113917
FIXED-IN: 4.13

M  +38   -36   part/completion/katecompletionmodel.cpp
M  +5    -4    part/completion/katecompletionmodel.h
M  +4    -2    part/completion/katecompletionwidget.cpp

http://commits.kde.org/kate/a0a1b3ced5bdfe6c43a323ab7b700c20f1f4b93c
Comment 15 Kevin Funk 2014-02-25 20:04:19 UTC
*** Bug 331503 has been marked as a duplicate of this bug. ***
Comment 16 Michael Palimaka 2014-02-26 17:12:03 UTC
Is this a candidate for backporting to KDE/4.12?
Comment 17 Kevin Funk 2014-02-27 09:52:59 UTC
I'd leave this up to the Kate maintainers -- for me the patch worked fine, so i'm fine backporting it if needed.