Summary: | Kate crash when hitting F5 to reload document after searching | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Christoph Feck <cfeck> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | christoph, mail |
Priority: | VHI | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | test.bz2 which reproduces the bug 100% |
Description
Christoph Feck
2010-08-30 13:55:19 UTC
The document does not need to be modified. But when you used "Find ..." before, it crashes on hitting F5. works for me, can you please attach the file and the exact steps (what to search for, whether to close search, ...) so I could try to reproduce it? can reproduce in KDevelop though: Application: KDevelop (kdevelop), signal: Aborted [Current thread is 1 (Thread 0xb2db4920 (LWP 30567))] Thread 15 (Thread 0xb09cab70 (LWP 30568)): #0 0xb778f424 in __kernel_vsyscall () #1 0xb4a61482 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:179 #2 0xb54b4114 in __pthread_cond_timedwait (cond=0x8feb8b0, mutex=0x8feb898, abstime=0xb09ca2e0) at forward.c:152 #3 0xb61c6f2f in QWaitConditionPrivate::wait (this=0x8ff6fcc, mutex=0x8ff6fd0, time=200000) at thread/qwaitcondition_unix.cpp:85 #4 QWaitCondition::wait (this=0x8ff6fcc, mutex=0x8ff6fd0, time=200000) at thread/qwaitcondition_unix.cpp:159 #5 0xb4e746ca in KDevelop::DUChainPrivate::CleanupThread::run (this=0x8ff6fc0) at /home/milianw/projects/kde4/kdevplatform/language/duchain/duchain.cpp:282 #6 0xb61c5fae in QThreadPrivate::start (arg=0x8ff6fc0) at thread/qthread_unix.cpp:248 #7 0xb4a5c955 in start_thread (arg=0xb09cab70) at pthread_create.c:300 #8 0xb54a710e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 14 (Thread 0xaf6ccb70 (LWP 30569)): #0 0xb778f424 in __kernel_vsyscall () #1 0xb4a60f7f in __pthread_cond_wait (cond=0x90a7540, mutex=0x90a7528) at pthread_cond_wait.c:153 #2 0xb54b40bd in __pthread_cond_wait (cond=0x90a7540, mutex=0x90a7528) at forward.c:139 #3 0xb61c6fa7 in QWaitConditionPrivate::wait (this=0x90a04d8, mutex=0x8ddc570, time=4294967295) at thread/qwaitcondition_unix.cpp:87 #4 QWaitCondition::wait (this=0x90a04d8, mutex=0x8ddc570, time=4294967295) at thread/qwaitcondition_unix.cpp:159 #5 0xb707f840 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x90a04c0, th=0x907ceb8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365 #6 0xb708235c in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x908dd18, th=0x907ceb8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80 #7 0xb707e24b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x90a04c0, th=0x907ceb8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356 #8 0xb7082452 in ThreadWeaver::WorkingHardState::applyForWork (this=0x908dd18, th=0x907ceb8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71 #9 0xb707f4a3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x90a04c0, th=0x907ceb8, previous=0x0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351 #10 0xb7082471 in ThreadWeaver::WorkingHardState::applyForWork (this=0x908dd18, th=0x907ceb8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74 #11 0xb707f4a3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x90a04c0, th=0x907ceb8, previous=0x90f84e0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351 #12 0xb70804ee in ThreadWeaver::ThreadRunHelper::run (this=0xaf6cc304, parent=0x90a04c0, th=0x907ceb8) at ../../../threadweaver/Weaver/Thread.cpp:87 #13 0xb7080c0b in ThreadWeaver::Thread::run (this=0x907ceb8) at ../../../threadweaver/Weaver/Thread.cpp:142 #14 0xb61c5fae in QThreadPrivate::start (arg=0x907ceb8) at thread/qthread_unix.cpp:248 #15 0xb4a5c955 in start_thread (arg=0xaf6ccb70) at pthread_create.c:300 #16 0xb54a710e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 13 (Thread 0xaea00b70 (LWP 30571)): #0 0xb778f424 in __kernel_vsyscall () #1 0xb4a60f7f in __pthread_cond_wait (cond=0x90a7540, mutex=0x90a7528) at pthread_cond_wait.c:153 #2 0xb54b40bd in __pthread_cond_wait (cond=0x90a7540, mutex=0x90a7528) at forward.c:139 #3 0xb61c6fa7 in QWaitConditionPrivate::wait (this=0x90a04d8, mutex=0x8ddc570, time=4294967295) at thread/qwaitcondition_unix.cpp:87 #4 QWaitCondition::wait (this=0x90a04d8, mutex=0x8ddc570, time=4294967295) at thread/qwaitcondition_unix.cpp:159 #5 0xb707f840 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x90a04c0, th=0x907dcc0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365 #6 0xb708235c in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x908dd18, th=0x907dcc0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80 #7 0xb707e24b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x90a04c0, th=0x907dcc0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356 #8 0xb7082452 in ThreadWeaver::WorkingHardState::applyForWork (this=0x908dd18, th=0x907dcc0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71 #9 0xb707f4a3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x90a04c0, th=0x907dcc0, previous=0xad003458) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351 #10 0xb70804ee in ThreadWeaver::ThreadRunHelper::run (this=0xaea00304, parent=0x90a04c0, th=0x907dcc0) at ../../../threadweaver/Weaver/Thread.cpp:87 #11 0xb7080c0b in ThreadWeaver::Thread::run (this=0x907dcc0) at ../../../threadweaver/Weaver/Thread.cpp:142 #12 0xb61c5fae in QThreadPrivate::start (arg=0x907dcc0) at thread/qthread_unix.cpp:248 #13 0xb4a5c955 in start_thread (arg=0xaea00b70) at pthread_create.c:300 #14 0xb54a710e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 12 (Thread 0xae1ffb70 (LWP 30572)): #0 0xb778f424 in __kernel_vsyscall () #1 0xb4a61482 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:179 #2 0xb54b4114 in __pthread_cond_timedwait (cond=0x90fba38, mutex=0x90fba20, abstime=0xae1ff2b0) at forward.c:152 #3 0xb61c6f2f in QWaitConditionPrivate::wait (this=0x90fb984, mutex=0x90fb980, time=30000) at thread/qwaitcondition_unix.cpp:85 #4 QWaitCondition::wait (this=0x90fb984, mutex=0x90fb980, time=30000) at thread/qwaitcondition_unix.cpp:159 #5 0xb61baf5b in QThreadPoolThread::run (this=0x90f0250) at concurrent/qthreadpool.cpp:140 #6 0xb61c5fae in QThreadPrivate::start (arg=0x90f0250) at thread/qthread_unix.cpp:248 #7 0xb4a5c955 in start_thread (arg=0xae1ffb70) at pthread_create.c:300 #8 0xb54a710e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 11 (Thread 0xacfffb70 (LWP 30575)): #0 0xb4a14e16 in *__GI_clock_gettime (clock_id=-1264480268, tp=0xacffefc8) at ../sysdeps/unix/clock_gettime.c:100 #1 0xb62eb1cb in qt_gettime () at kernel/qcore_unix.cpp:111 #2 0xb62f0425 in QTimerInfoList::updateCurrentTime (this=0x910c5f4) at kernel/qeventdispatcher_unix.cpp:340 #3 0xb62f046a in QTimerInfoList::timerWait (this=0x910c5f4, tm=...) at kernel/qeventdispatcher_unix.cpp:443 #4 0xb62ee2d8 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xacfff0dc) at kernel/qeventdispatcher_glib.cpp:136 #5 0xb62ee365 in timerSourcePrepare (source=0x0, timeout=0xb4a18ff4) at kernel/qeventdispatcher_glib.cpp:169 #6 0xb49857ca in g_main_context_prepare () from /lib/libglib-2.0.so.0 #7 0xb4985be9 in ?? () from /lib/libglib-2.0.so.0 #8 0xb49861b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0 #9 0xb62ee0cf in QEventDispatcherGlib::processEvents (this=0x90f5a48, flags=...) at kernel/qeventdispatcher_glib.cpp:414 #10 0xb62c0b49 in QEventLoop::processEvents (this=0xacfff2a0, flags=) at kernel/qeventloop.cpp:149 #11 0xb62c0f9a in QEventLoop::exec (this=0xacfff2a0, flags=...) at kernel/qeventloop.cpp:201 #12 0xb61c3619 in QThread::exec (this=0x90fd510) at thread/qthread.cpp:487 #13 0xb62a098b in QInotifyFileSystemWatcherEngine::run (this=0x90fd510) at io/qfilesystemwatcher_inotify.cpp:248 #14 0xb61c5fae in QThreadPrivate::start (arg=0x90fd510) at thread/qthread_unix.cpp:248 #15 0xb4a5c955 in start_thread (arg=0xacfffb70) at pthread_create.c:300 #16 0xb54a710e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 10 (Thread 0xac7feb70 (LWP 30576)): #0 0xb778f424 in __kernel_vsyscall () #1 0xb4a60f7f in __pthread_cond_wait (cond=0x90a7540, mutex=0x90a7528) at pthread_cond_wait.c:153 #2 0xb54b40bd in __pthread_cond_wait (cond=0x90a7540, mutex=0x90a7528) at forward.c:139 #3 0xb61c6fa7 in QWaitConditionPrivate::wait (this=0x90a04d8, mutex=0x8ddc570, time=4294967295) at thread/qwaitcondition_unix.cpp:87 #4 QWaitCondition::wait (this=0x90a04d8, mutex=0x8ddc570, time=4294967295) at thread/qwaitcondition_unix.cpp:159 #5 0xb707f840 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x90a04c0, th=0xad00ef30) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365 #6 0xb708235c in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x908dd18, th=0xad00ef30) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80 #7 0xb707e24b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x90a04c0, th=0xad00ef30) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356 #8 0xb7082452 in ThreadWeaver::WorkingHardState::applyForWork (this=0x908dd18, th=0xad00ef30) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71 #9 0xb707f4a3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x90a04c0, th=0xad00ef30, previous=0x0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351 #10 0xb70804ee in ThreadWeaver::ThreadRunHelper::run (this=0xac7fe304, parent=0x90a04c0, th=0xad00ef30) at ../../../threadweaver/Weaver/Thread.cpp:87 #11 0xb7080c0b in ThreadWeaver::Thread::run (this=0xad00ef30) at ../../../threadweaver/Weaver/Thread.cpp:142 #12 0xb61c5fae in QThreadPrivate::start (arg=0xad00ef30) at thread/qthread_unix.cpp:248 #13 0xb4a5c955 in start_thread (arg=0xac7feb70) at pthread_create.c:300 #14 0xb54a710e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 The current source language is "auto; currently c". Thread 9 (Thread 0xabffdb70 (LWP 30577)): #0 0xb778f424 in __kernel_vsyscall () #1 0xb4a61482 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:179 #2 0xb54b4114 in __pthread_cond_timedwait (cond=0x90fba38, mutex=0x90fba20, abstime=0xabffd2b0) at forward.c:152 #3 0xb61c6f2f in QWaitConditionPrivate::wait (this=0x90fb984, mutex=0x90fb980, time=30000) at thread/qwaitcondition_unix.cpp:85 #4 QWaitCondition::wait (this=0x90fb984, mutex=0x90fb980, time=30000) at thread/qwaitcondition_unix.cpp:159 #5 0xb61baf5b in QThreadPoolThread::run (this=0x910a500) at concurrent/qthreadpool.cpp:140 #6 0xb61c5fae in QThreadPrivate::start (arg=0x910a500) at thread/qthread_unix.cpp:248 #7 0xb4a5c955 in start_thread (arg=0xabffdb70) at pthread_create.c:300 #8 0xb54a710e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 8 (Thread 0xaaa10b70 (LWP 30645)): #0 0xb54b4295 in pthread_mutex_unlock (mutex=0xad01837c) at forward.c:184 #1 0xb49857b8 in g_main_context_prepare () from /lib/libglib-2.0.so.0 #2 0xb4985be9 in ?? () from /lib/libglib-2.0.so.0 #3 0xb49861b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0 #4 0xb62ee0cf in QEventDispatcherGlib::processEvents (this=0x8dc9b28, flags=...) at kernel/qeventdispatcher_glib.cpp:414 #5 0xb62c0b49 in QEventLoop::processEvents (this=0xaaa102c0, flags=) at kernel/qeventloop.cpp:149 #6 0xb62c0f9a in QEventLoop::exec (this=0xaaa102c0, flags=...) at kernel/qeventloop.cpp:201 #7 0xb61c3619 in QThread::exec (this=0x97a1da0) at thread/qthread.cpp:487 #8 0xb4f8a6b7 in KDevelop::CompletionWorkerThread::run (this=0x97a1da0) at /home/milianw/projects/kde4/kdevplatform/language/codecompletion/codecompletionmodel.cpp:80 #9 0xb61c5fae in QThreadPrivate::start (arg=0x97a1da0) at thread/qthread_unix.cpp:248 #10 0xb4a5c955 in start_thread (arg=0xaaa10b70) at pthread_create.c:300 #11 0xb54a710e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 7 (Thread 0xab211b70 (LWP 30646)): #0 0xb778f424 in __kernel_vsyscall () #1 0xb5499916 in *__GI___poll (fds=0xb551dff4, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87 #2 0xb499306b in g_poll () from /lib/libglib-2.0.so.0 #3 0xb4985dac in ?? () from /lib/libglib-2.0.so.0 #4 0xb49861b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0 #5 0xb62ee0cf in QEventDispatcherGlib::processEvents (this=0x930f8e0, flags=...) at kernel/qeventdispatcher_glib.cpp:414 #6 0xb62c0b49 in QEventLoop::processEvents (this=0xab2112c0, flags=) at kernel/qeventloop.cpp:149 #7 0xb62c0f9a in QEventLoop::exec (this=0xab2112c0, flags=...) at kernel/qeventloop.cpp:201 #8 0xb61c3619 in QThread::exec (this=0x9798168) at thread/qthread.cpp:487 #9 0xb4f8a6b7 in KDevelop::CompletionWorkerThread::run (this=0x9798168) at /home/milianw/projects/kde4/kdevplatform/language/codecompletion/codecompletionmodel.cpp:80 #10 0xb61c5fae in QThreadPrivate::start (arg=0x9798168) at thread/qthread_unix.cpp:248 #11 0xb4a5c955 in start_thread (arg=0xab211b70) at pthread_create.c:300 #12 0xb54a710e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 6 (Thread 0xa7e55b70 (LWP 30657)): #0 0xb778f424 in __kernel_vsyscall () #1 0xb4a61482 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:179 #2 0xb54b4114 in __pthread_cond_timedwait (cond=0xa7e55248, mutex=0xa7e55278, abstime=0xa7e552c0) at forward.c:152 #3 0xb61c58b1 in thread_sleep (ti=0x1) at thread/qthread_unix.cpp:398 #4 0xb61c59f3 in QThread::msleep (msecs=30) at thread/qthread_unix.cpp:424 #5 0xa8edc2ea in UIBlockTester::UIBlockTesterThread::run (this=0xb0007a40) at /home/milianw/projects/kde4/kdevelop/languages/cpp/cpplanguagesupport.cpp:678 #6 0xb61c5fae in QThreadPrivate::start (arg=0xb0007a40) at thread/qthread_unix.cpp:248 #7 0xb4a5c955 in start_thread (arg=0xa7e55b70) at pthread_create.c:300 #8 0xb54a710e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 5 (Thread 0xa60acb70 (LWP 30672)): #0 0xb778f424 in __kernel_vsyscall () #1 0xb4a60f7f in __pthread_cond_wait (cond=0xb53743ac, mutex=0xb5374394) at pthread_cond_wait.c:153 #2 0xb54b40bd in __pthread_cond_wait (cond=0xb53743ac, mutex=0xb5374394) at forward.c:139 #3 0xb5296597 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0xb536f2c0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304 #4 0xb52965e1 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0xb536f2c0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438 #5 0xb4a5c955 in start_thread (arg=0xa60acb70) at pthread_create.c:300 #6 0xb54a710e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 4 (Thread 0xa4bffb70 (LWP 30693)): #0 0xb778f424 in __kernel_vsyscall () #1 0xb4a60f7f in __pthread_cond_wait (cond=0x8ecda40, mutex=0x8ecda28) at pthread_cond_wait.c:153 #2 0xb54b40bd in __pthread_cond_wait (cond=0x8ecda40, mutex=0x8ecda28) at forward.c:139 #3 0xb61c6fa7 in QWaitConditionPrivate::wait (this=0x8ecaaf0, mutex=0x8ecdbc8, time=4294967295) at thread/qwaitcondition_unix.cpp:87 #4 QWaitCondition::wait (this=0x8ecaaf0, mutex=0x8ecdbc8, time=4294967295) at thread/qwaitcondition_unix.cpp:159 #5 0xb707f840 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x8ecaad8, th=0x9729e48) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365 #6 0xb708235c in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x8ecdc60, th=0x9729e48) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80 #7 0xb707e24b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x8ecaad8, th=0x9729e48) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356 #8 0xb7082452 in ThreadWeaver::WorkingHardState::applyForWork (this=0x8ecdc60, th=0x9729e48) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71 #9 0xb707f4a3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x8ecaad8, th=0x9729e48, previous=0xa3209908) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351 #10 0xb70804ee in ThreadWeaver::ThreadRunHelper::run (this=0xa4bff304, parent=0x8ecaad8, th=0x9729e48) at ../../../threadweaver/Weaver/Thread.cpp:87 #11 0xb7080c0b in ThreadWeaver::Thread::run (this=0x9729e48) at ../../../threadweaver/Weaver/Thread.cpp:142 #12 0xb61c5fae in QThreadPrivate::start (arg=0x9729e48) at thread/qthread_unix.cpp:248 #13 0xb4a5c955 in start_thread (arg=0xa4bffb70) at pthread_create.c:300 #14 0xb54a710e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 3 (Thread 0xa43feb70 (LWP 30694)): #0 0xb778f424 in __kernel_vsyscall () #1 0xb4a60f7f in __pthread_cond_wait (cond=0x8ecda40, mutex=0x8ecda28) at pthread_cond_wait.c:153 #2 0xb54b40bd in __pthread_cond_wait (cond=0x8ecda40, mutex=0x8ecda28) at forward.c:139 #3 0xb61c6fa7 in QWaitConditionPrivate::wait (this=0x8ecaaf0, mutex=0x8ecdbc8, time=4294967295) at thread/qwaitcondition_unix.cpp:87 #4 QWaitCondition::wait (this=0x8ecaaf0, mutex=0x8ecdbc8, time=4294967295) at thread/qwaitcondition_unix.cpp:159 #5 0xb707f840 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x8ecaad8, th=0x9729300) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365 #6 0xb708235c in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x8ecdc60, th=0x9729300) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80 #7 0xb707e24b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x8ecaad8, th=0x9729300) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356 #8 0xb7082452 in ThreadWeaver::WorkingHardState::applyForWork (this=0x8ecdc60, th=0x9729300) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71 #9 0xb707f4a3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x8ecaad8, th=0x9729300, previous=0x0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351 #10 0xb7082471 in ThreadWeaver::WorkingHardState::applyForWork (this=0x8ecdc60, th=0x9729300) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74 #11 0xb707f4a3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x8ecaad8, th=0x9729300, previous=0xa32e9fe8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351 #12 0xb70804ee in ThreadWeaver::ThreadRunHelper::run (this=0xa43fe304, parent=0x8ecaad8, th=0x9729300) at ../../../threadweaver/Weaver/Thread.cpp:87 #13 0xb7080c0b in ThreadWeaver::Thread::run (this=0x9729300) at ../../../threadweaver/Weaver/Thread.cpp:142 #14 0xb61c5fae in QThreadPrivate::start (arg=0x9729300) at thread/qthread_unix.cpp:248 #15 0xb4a5c955 in start_thread (arg=0xa43feb70) at pthread_create.c:300 #16 0xb54a710e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 2 (Thread 0xa3bfdb70 (LWP 30695)): #0 0xb778f424 in __kernel_vsyscall () #1 0xb4a60f7f in __pthread_cond_wait (cond=0x8ecda40, mutex=0x8ecda28) at pthread_cond_wait.c:153 #2 0xb54b40bd in __pthread_cond_wait (cond=0x8ecda40, mutex=0x8ecda28) at forward.c:139 #3 0xb61c6fa7 in QWaitConditionPrivate::wait (this=0x8ecaaf0, mutex=0x8ecdbc8, time=4294967295) at thread/qwaitcondition_unix.cpp:87 #4 QWaitCondition::wait (this=0x8ecaaf0, mutex=0x8ecdbc8, time=4294967295) at thread/qwaitcondition_unix.cpp:159 #5 0xb707f840 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x8ecaad8, th=0xad012aa0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365 #6 0xb708235c in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x8ecdc60, th=0xad012aa0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80 #7 0xb707e24b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x8ecaad8, th=0xad012aa0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356 #8 0xb7082452 in ThreadWeaver::WorkingHardState::applyForWork (this=0x8ecdc60, th=0xad012aa0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71 #9 0xb707f4a3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x8ecaad8, th=0xad012aa0, previous=0xa32eb0d8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351 #10 0xb70804ee in ThreadWeaver::ThreadRunHelper::run (this=0xa3bfd304, parent=0x8ecaad8, th=0xad012aa0) at ../../../threadweaver/Weaver/Thread.cpp:87 #11 0xb7080c0b in ThreadWeaver::Thread::run (this=0xad012aa0) at ../../../threadweaver/Weaver/Thread.cpp:142 #12 0xb61c5fae in QThreadPrivate::start (arg=0xad012aa0) at thread/qthread_unix.cpp:248 #13 0xb4a5c955 in start_thread (arg=0xa3bfdb70) at pthread_create.c:300 #14 0xb54a710e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 1 (Thread 0xb2db4920 (LWP 30567)): [KCrash Handler] #6 0xb778f424 in __kernel_vsyscall () #7 0xb5405751 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #8 0xb5408b82 in *__GI_abort () at abort.c:92 #9 0xb61bcfa4 in qt_message_output (msgType=QtFatalMsg, buf=0x957f100 "ASSERT: \"m_textLine\" in file /home/milianw/projects/kde4/kate/part/render/katelinelayout.cpp, line 69") at global/qglobal.cpp:2266 #10 0xb61bd15a in qt_message (msgType=<value optimized out>, msg=0xb632affc "ASSERT: \"%s\" in file %s, line %d", ap=0xbf849674 "\030\222,\246\324\221,\246E") at global/qglobal.cpp:2312 #11 0xb61bd269 in qFatal (msg=0xb632affc "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2495 #12 0xb61bd2f5 in qt_assert (assertion=0xa62c9218 "m_textLine", file=0xa62c91d4 "/home/milianw/projects/kde4/kate/part/render/katelinelayout.cpp", line=69) at global/qglobal.cpp:2011 #13 0xa61bc92f in KateLineLayout::textLine (this=0xaa0c42f8, reloadForce=true) at /home/milianw/projects/kde4/kate/part/render/katelinelayout.cpp:69 #14 0xa61b8611 in KateLayoutCache::line (this=0x9b23f58, realLine=1, virtualLine=1) at /home/milianw/projects/kde4/kate/part/render/katelayoutcache.cpp:290 #15 0xa61b83f4 in KateLayoutCache::updateViewCache (this=0x9b23f58, startPos=..., newViewLineCount=65, viewLinesScrolled=0) at /home/milianw/projects/kde4/kate/part/render/katelayoutcache.cpp:265 #16 0xa6215f72 in KateViewInternal::tagLines (this=0x9b29b80, start=..., end=..., realCursors=true) at /home/milianw/projects/kde4/kate/part/view/kateviewinternal.cpp:1948 #17 0xa6215d3e in KateViewInternal::tagLines (this=0x9b29b80, start=1, end=1, realLines=true) at /home/milianw/projects/kde4/kate/part/view/kateviewinternal.cpp:1918 #18 0xa6205111 in KateView::tagLines (this=0xa9f83d40, start=1, end=1, realLines=true) at /home/milianw/projects/kde4/kate/part/view/kateview.cpp:1619 #19 0xa617a6b3 in KateDocument::tagLines (this=0xa63bcba8, start=1, end=1) at /home/milianw/projects/kde4/kate/part/document/katedocument.cpp:3570 #20 0xa61714b6 in KateDocument::clearMarks (this=0xa63bcba8) at /home/milianw/projects/kde4/kate/part/document/katedocument.cpp:1821 #21 0xa61747af in KateDocument::closeUrl (this=0xa63bcba8) at /home/milianw/projects/kde4/kate/part/document/katedocument.cpp:2412 #22 0xb70f2b86 in KParts::ReadOnlyPart::openUrl (this=0xa63bcba8, url=...) at ../../kparts/part.cpp:537 #23 0xa617c3e6 in KateDocument::documentReload (this=0xa63bcba8) at /home/milianw/projects/kde4/kate/part/document/katedocument.cpp:3880 #24 0xa62028b4 in KateView::reloadFile (this=0xa9f83d40) at /home/milianw/projects/kde4/kate/part/view/kateview.cpp:1040 #25 0xa61f7118 in KateView::qt_metacall (this=0xa9f83d40, _c=QMetaObject::InvokeMetaMethod, _id=112, _a=0xbf849dd8) at /home/milianw/projects/.build/kde4/kate/part/kateview.moc:436 #26 0xb62c780a in QMetaObject::metacall (object=0xa9f83d40, cl=30567, idx=151, argv=0xbf849dd8) at kernel/qmetaobject.cpp:237 #27 0xb62d61db in QMetaObject::activate (sender=0xab5cf090, m=0xb6132a38, local_signal_index=1, argv=0xbf849dd8) at kernel/qobject.cpp:3295 #28 0xb5804cc9 in QAction::triggered (this=0xab5cf090, _t1=false) at .moc/release-shared/moc_qaction.cpp:263 #29 0xb5806ebc in QAction::activate (this=0xab5cf090, event=QAction::Trigger) at kernel/qaction.cpp:1255 #30 0xb5808788 in QAction::event (this=0x6, e=0x0) at kernel/qaction.cpp:1181 #31 0xb65479e3 in KAction::event (this=0xab5cf090, event=0xbf84a328) at ../../kdeui/actions/kaction.cpp:129 #32 0xb580b5cc in QApplicationPrivate::notify_helper (this=0x8c11710, receiver=0xab5cf090, e=0xbf84a328) at kernel/qapplication.cpp:4302 #33 0xb581215e in QApplication::notify (this=0xbf84b308, receiver=0xab5cf090, e=0xbf84a328) at kernel/qapplication.cpp:3706 #34 0xb6632b4a in KApplication::notify (this=0xbf84b308, receiver=0xab5cf090, event=0xbf84a328) at ../../kdeui/kernel/kapplication.cpp:302 #35 0x0804b5bf in KDevelopApplication::notify (this=0xbf84b308, receiver=0xab5cf090, event=0xbf84a328) at /home/milianw/projects/kde4/kdevelop/app/main.cpp:87 #36 0xb62c252b in QCoreApplication::notifyInternal (this=0xbf84b308, receiver=0xab5cf090, event=0xbf84a328) at kernel/qcoreapplication.cpp:726 #37 0xb584d39d in QCoreApplication::sendEvent (this=0x8c117bc, e=0xbf84a7d4) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215 #38 QShortcutMap::dispatchEvent (this=0x8c117bc, e=0xbf84a7d4) at kernel/qshortcutmap.cpp:879 #39 0xb584f18e in QShortcutMap::tryShortcutEvent (this=0x8c117bc, o=0x9b29b80, e=0xbf84a7d4) at kernel/qshortcutmap.cpp:364 #40 0xb5813f43 in QApplication::notify (this=0xbf84b308, receiver=0x9b29b80, e=0xbf84a7d4) at kernel/qapplication.cpp:3748 #41 0xb6632b4a in KApplication::notify (this=0xbf84b308, receiver=0x9b29b80, event=0xbf84a7d4) at ../../kdeui/kernel/kapplication.cpp:302 #42 0x0804b5bf in KDevelopApplication::notify (this=0xbf84b308, receiver=0x9b29b80, event=0xbf84a7d4) at /home/milianw/projects/kde4/kdevelop/app/main.cpp:87 #43 0xb62c252b in QCoreApplication::notifyInternal (this=0xbf84b308, receiver=0x9b29b80, event=0xbf84a7d4) at kernel/qcoreapplication.cpp:726 #44 0xb580c3ae in QCoreApplication::sendSpontaneousEvent (receiver=0x9b29b80, event=0x6) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218 #45 qt_sendSpontaneousEvent (receiver=0x9b29b80, event=0x6) at kernel/qapplication.cpp:5281 #46 0xb58c4c70 in QKeyMapper::sendKeyEvent (keyWidget=0x9b29b80, grab=false, type=QEvent::KeyPress, code=16777268, modifiers=..., text=..., autorepeat=<value optimized out>, count=<value optimized out>, nativeScanCode=71, nativeVirtualKey=65474, nativeModifiers=16) at kernel/qkeymapper_x11.cpp:1875 #47 0xb58c7150 in QKeyMapperPrivate::translateKeyEvent (this=0x8c36e30, keyWidget=0x9b29b80, event=0xbf84ae70, grab=<value optimized out>) at kernel/qkeymapper_x11.cpp:1845 #48 0xb589b507 in QApplication::x11ProcessEvent (this=0xbf84b308, event=0xbf84ae70) at kernel/qapplication_x11.cpp:3406 #49 0xb58ca3e2 in x11EventSourceDispatch (s=0x8c14940, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146 #50 0xb49822f5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0 #51 0xb4985fd8 in ?? () from /lib/libglib-2.0.so.0 #52 0xb49861b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0 #53 0xb62ee095 in QEventDispatcherGlib::processEvents (this=0x8c116f0, flags=...) at kernel/qeventdispatcher_glib.cpp:412 #54 0xb58c9f45 in QGuiEventDispatcherGlib::processEvents (this=0x8c116f0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204 #55 0xb62c0b49 in QEventLoop::processEvents (this=0xbf84b164, flags=) at kernel/qeventloop.cpp:149 #56 0xb62c0f9a in QEventLoop::exec (this=0xbf84b164, flags=...) at kernel/qeventloop.cpp:201 #57 0xb62c61cf in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003 #58 0xb580b667 in QApplication::exec () at kernel/qapplication.cpp:3581 #59 0x08050fdc in main (argc=3, argv=0xbf84baa4) at /home/milianw/projects/kde4/kdevelop/app/main.cpp:402 part of bt full: #6 0xb6a102f5 in qt_assert (assertion=0xa7159218 "m_textLine", file=0xa71591d4 "/home/milianw/projects/kde4/kate/part/render/katelinelayout.cpp", line=69) at global/qglobal.cpp:2011 No locals. #7 0xa704c92f in KateLineLayout::textLine (this=0x93040c0, reloadForce=true) at /home/milianw/projects/kde4/kate/part/render/katelinelayout.cpp:69 No locals. #8 0xa7048611 in KateLayoutCache::line (this=0x8d14220, realLine=1, virtualLine=1) at /home/milianw/projects/kde4/kate/part/render/katelayoutcache.cpp:290 l = {d = 0x93040c0} l = {d = 0xa718bab0} #9 0xa70483f4 in KateLayoutCache::updateViewCache (this=0x8d14220, startPos=[0, 0], newViewLineCount=65, viewLinesScrolled=0) at /home/milianw/projects/kde4/kate/part/render/katelayoutcache.cpp:265 ---Type <return> to continue, or q <return> to quit--- virtualLine = 1 i = 0 oldViewLineCount = 65 realLine = 1 _viewLine = 0 l = {d = 0x900ed20} #10 0xa70a5f72 in KateViewInternal::tagLines (this=0x8d26210, start=[1, 0], end=[1, -1], realCursors=true) at /home/milianw/projects/kde4/kate/part/view/kateviewinternal.cpp:1948 ret = 182 #11 0xa70a5d3e in KateViewInternal::tagLines (this=0x8d26210, start=1, end=1, realLines=true) at /home/milianw/projects/kde4/kate/part/view/kateviewinternal.cpp:1918 No locals. #12 0xa7095111 in KateView::tagLines (this=0x8d41a68, start=1, end=1, realLines=true) at /home/milianw/projects/kde4/kate/part/view/kateview.cpp:1619 No locals. #13 0xa700a6b3 in KateDocument::tagLines (this=0xab7af790, start=1, end=1) at /home/milianw/projects/kde4/kate/part/document/katedocument.cpp:3570 view = 0x8d41a68 _container_ = {c = {{d = 0x8d8efb8, e = 0x8d8efb8}}, brk = 0, i = {i = 0x8d8e5f0}, e = {i = 0x8d8efb8}} #14 0xa70014b6 in KateDocument::clearMarks (this=0xab7af790) at /home/milianw/projects/kde4/kate/part/document/katedocument.cpp:1821 it = {i = 0x8f0fc78} mark = {line = 1, type = 64} #15 0xa70047af in KateDocument::closeUrl (this=0xab7af790) at /home/milianw/projects/kde4/kate/part/document/katedocument.cpp:2412 No locals. #16 0xb7945b86 in KParts::ReadOnlyPart::openUrl (this=0xab7af790, url=...) at ../../kparts/part.cpp:537 args = {d = {d = 0x8cf9790}} #17 0xa700c3e6 in KateDocument::documentReload (this=0xab7af790) at /home/milianw/projects/kde4/kate/part/document/katedocument.cpp:3880 tmp = QList<KateDocumentTmpMark> = { [0] = {line = "#include <QObject>", mark = {line = 1, type = 64}} } byUser = false oldMode = "C++" hl_mode = "C++" oldActiveView = 0x8d41a68 cursorPositions = {{d = 0xa137c28, p = 0xa137c28}} ---Type <return> to continue, or q <return> to quit--- it = {i = 0x8ba84c8} #18 0xa70928b4 in KateView::reloadFile (this=0x8d41a68) at /home/milianw/projects/kde4/kate/part/view/kateview.cpp:1040 No locals. #19 0xa7087118 in KateView::qt_metacall (this=0x8d41a68, _c=QMetaObject::InvokeMetaMethod, _id=112, _a=0xbfffceb8) at /home/milianw/projects/.build/kde4/kate/part/kateview.moc:436 No locals. ~~~~~~~~~ also note: (gdb) print m_doc->m_buffer->count() $9 = 1 and in KateLayoutCache::updateViewCache: (gdb) print l->d->viewLineCount() $15 = 1 Hmm, does that happen with the 4.5 branch katepart, too? Else I might have broken that some days ago, which might be bad, but not as bad as if KDE 4.5 has this issue :( Can*t reproduce that here atm, therefor any hint would be approciated. ok, sorry to have hijacked this thread, but it is clearMarks in closeUrl being called after the buffer was cleared for me. so, setting to waiting for info again with the same question as above. will fix kate for my crash for now. Hmm, I think that may be a result of my removing of edit history, perhaps the view layout cache is now cleared to late or so, will take a look :( Still hope that it might be a regression of the changes of this or last week. Then no normal user would have this problem at least. Created attachment 51183 [details] test.bz2 which reproduces the bug 100% Steps to reproduce (with a clean kwriterc): * kwrite test.bz2 * Ctrl+F "pim" Esc * F5 I am running trunk r1170577 and the regression is since the commits r1169214 or after. I guess this means they are not in 4.5 :) Guess Milian's fix is the right one, that worked just by accident before I guess. does my patch also fix Christoph's behavior? He doesn't have clearMarks in his bt after all. I first thought it would be the same crash but I doubt it now. Maybe it's also required to clear() the view + selection before the buffer? May I ask what additional information you need to proceed? I am experiencing this crash nearly daily, and I can easily reproduce using the steps in comment #8. It still is not clear what additional information I need to provide. Reopening so it does not get lost. *** Bug 253939 has been marked as a duplicate of this bug. *** SVN commit 1191604 by cullmann: mwolff: fix: never try to call line() for a non-existing document line, which would assert BUG: 249503 add test, please review and make sure this is the correct fix M +4 -0 render/katelayoutcache.cpp M +11 -0 tests/CMakeLists.txt A tests/kateview_test.cpp [License: LGPL (v2+)] A tests/kateview_test.h [License: LGPL (v2+)] WebSVN link: http://websvn.kde.org/?view=rev&revision=1191604 Thanks Christoph, cannot reproduce the crash anymore after your changes. I would say: thanks Milian :P I just merged that ;) |