Bug 367466

Summary: crash on invalid text line access in KateLayoutCache::textLayout
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: Milian Wolff <mail>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: KDE Frameworks 5.27
Sentry Crash Report:

Description Milian Wolff 2016-08-17 20:52:55 UTC
Application: kdevelop (4.90.92)
 (Compiled from sources)
Qt Version: 5.7.0
Frameworks Version: 5.25.0
Operating System: Linux 4.7.0-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
As can be seen from the backtrace, I navigated a file. Parts of the file (comment at the beginning) was folded away, which may play a role here.

The crash can be reproduced sometimes.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7efd00069840 (LWP 20535))]

Thread 14 (Thread 0x7efc9cff9700 (LWP 20855)):
#0  0x00007efcee91910f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007efcf0112ac4 in ?? () from /usr/lib/libQt5Script.so.5
#2  0x00007efcf0112b09 in ?? () from /usr/lib/libQt5Script.so.5
#3  0x00007efcee913454 in start_thread () from /usr/lib/libpthread.so.0
#4  0x00007efcf814c7df in clone () from /usr/lib/libc.so.6

Thread 13 (Thread 0x7efc9dffb700 (LWP 20585)):
#0  0x00007efcf814348d in poll () from /usr/lib/libc.so.6
#1  0x00007efcec316fd6 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007efcec3170ec in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007efcf8f8059b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007efcf8f2a0da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007efcf8d4d0f3 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007efcf8d51d78 in ?? () from /usr/lib/libQt5Core.so.5
#7  0x00007efcee913454 in start_thread () from /usr/lib/libpthread.so.0
#8  0x00007efcf814c7df in clone () from /usr/lib/libc.so.6

Thread 12 (Thread 0x7efc9d7fa700 (LWP 20579)):
#0  0x00007efcee91910f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007efcf8d52c2b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007efcf4bcadef in ThreadWeaver::Weaver::blockThreadUntilJobsAreBeingAssigned_locked (this=0x233f7c0, th=0x7efc8c003020) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:594
#3  0x00007efcf4bcac68 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait (this=0x233f7c0, th=0x7efc8c003020, threadWasBusy=false, suspendIfInactive=false, justReturning=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:554
#4  0x00007efcf4bd5614 in ThreadWeaver::WorkingHardState::applyForWork (this=0x234ffb0, th=0x7efc8c003020, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:66
#5  0x00007efcf4bd5872 in non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:61
#6  0x00007efcf4bcaf5f in ThreadWeaver::Weaver::applyForWork (this=0x233f7c0, th=0x7efc8c003020, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:568
#7  0x00007efcf4bd57c3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x234ffb0, th=0x7efc8c003020, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:73
#8  0x00007efcf4bd5872 in non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:61
#9  0x00007efcf4bcaf5f in ThreadWeaver::Weaver::applyForWork (this=0x233f7c0, th=0x7efc8c003020, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:568
#10 0x00007efcf4bd57c3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x234ffb0, th=0x7efc8c003020, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:73
#11 0x00007efcf4bd5872 in non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:61
#12 0x00007efcf4bcaf5f in ThreadWeaver::Weaver::applyForWork (this=0x233f7c0, th=0x7efc8c003020, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:568
#13 0x00007efcf4bd57c3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x234ffb0, th=0x7efc8c003020, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:73
#14 0x00007efcf4bd5872 in non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:61
#15 0x00007efcf4bcaf5f in ThreadWeaver::Weaver::applyForWork (this=0x233f7c0, th=0x7efc8c003020, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:568
#16 0x00007efcf4bd57c3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x234ffb0, th=0x7efc8c003020, wasBusy=true) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:73
#17 0x00007efcf4bd5872 in non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:61
#18 0x00007efcf4bcaf5f in ThreadWeaver::Weaver::applyForWork (this=0x233f7c0, th=0x7efc8c003020, wasBusy=true) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:568
#19 0x00007efcf4bd0690 in ThreadWeaver::Thread::run (this=0x7efc8c003020) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/thread.cpp:103
#20 0x00007efcf8d51d78 in ?? () from /usr/lib/libQt5Core.so.5
#21 0x00007efcee913454 in start_thread () from /usr/lib/libpthread.so.0
#22 0x00007efcf814c7df in clone () from /usr/lib/libc.so.6

Thread 11 (Thread 0x7efc9e7fc700 (LWP 20577)):
#0  0x00007efcee91910f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007efcf8d52c2b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007efcf4bcadef in ThreadWeaver::Weaver::blockThreadUntilJobsAreBeingAssigned_locked (this=0x233f7c0, th=0x7efc940023d0) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:594
#3  0x00007efcf4bcac68 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait (this=0x233f7c0, th=0x7efc940023d0, threadWasBusy=true, suspendIfInactive=false, justReturning=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:554
#4  0x00007efcf4bd5614 in ThreadWeaver::WorkingHardState::applyForWork (this=0x234ffb0, th=0x7efc940023d0, wasBusy=true) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:66
#5  0x00007efcf4bd5872 in non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:61
#6  0x00007efcf4bcaf5f in ThreadWeaver::Weaver::applyForWork (this=0x233f7c0, th=0x7efc940023d0, wasBusy=true) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:568
#7  0x00007efcf4bd0690 in ThreadWeaver::Thread::run (this=0x7efc940023d0) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/thread.cpp:103
#8  0x00007efcf8d51d78 in ?? () from /usr/lib/libQt5Core.so.5
#9  0x00007efcee913454 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007efcf814c7df in clone () from /usr/lib/libc.so.6

Thread 10 (Thread 0x7efc9effd700 (LWP 20575)):
#0  0x00007efcee91910f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007efcf8d52c2b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007efcf4bcadef in ThreadWeaver::Weaver::blockThreadUntilJobsAreBeingAssigned_locked (this=0x233f7c0, th=0x7efc98002e20) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:594
#3  0x00007efcf4bcac68 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait (this=0x233f7c0, th=0x7efc98002e20, threadWasBusy=false, suspendIfInactive=false, justReturning=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:554
#4  0x00007efcf4bd5614 in ThreadWeaver::WorkingHardState::applyForWork (this=0x234ffb0, th=0x7efc98002e20, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:66
#5  0x00007efcf4bd5872 in non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:61
#6  0x00007efcf4bcaf5f in ThreadWeaver::Weaver::applyForWork (this=0x233f7c0, th=0x7efc98002e20, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:568
#7  0x00007efcf4bd57c3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x234ffb0, th=0x7efc98002e20, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:73
#8  0x00007efcf4bd5872 in non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:61
#9  0x00007efcf4bcaf5f in ThreadWeaver::Weaver::applyForWork (this=0x233f7c0, th=0x7efc98002e20, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:568
#10 0x00007efcf4bd57c3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x234ffb0, th=0x7efc98002e20, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:73
#11 0x00007efcf4bd5872 in non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:61
#12 0x00007efcf4bcaf5f in ThreadWeaver::Weaver::applyForWork (this=0x233f7c0, th=0x7efc98002e20, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:568
#13 0x00007efcf4bd57c3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x234ffb0, th=0x7efc98002e20, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:73
#14 0x00007efcf4bd5872 in non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:61
#15 0x00007efcf4bcaf5f in ThreadWeaver::Weaver::applyForWork (this=0x233f7c0, th=0x7efc98002e20, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:568
#16 0x00007efcf4bd57c3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x234ffb0, th=0x7efc98002e20, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:73
#17 0x00007efcf4bd5872 in non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:61
#18 0x00007efcf4bcaf5f in ThreadWeaver::Weaver::applyForWork (this=0x233f7c0, th=0x7efc98002e20, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:568
#19 0x00007efcf4bd57c3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x234ffb0, th=0x7efc98002e20, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:73
#20 0x00007efcf4bd5872 in non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:61
#21 0x00007efcf4bcaf5f in ThreadWeaver::Weaver::applyForWork (this=0x233f7c0, th=0x7efc98002e20, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:568
#22 0x00007efcf4bd57c3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x234ffb0, th=0x7efc98002e20, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:73
#23 0x00007efcf4bd5872 in non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:61
#24 0x00007efcf4bcaf5f in ThreadWeaver::Weaver::applyForWork (this=0x233f7c0, th=0x7efc98002e20, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:568
#25 0x00007efcf4bd57c3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x234ffb0, th=0x7efc98002e20, wasBusy=true) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:73
#26 0x00007efcf4bd5872 in non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:61
#27 0x00007efcf4bcaf5f in ThreadWeaver::Weaver::applyForWork (this=0x233f7c0, th=0x7efc98002e20, wasBusy=true) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:568
#28 0x00007efcf4bd0690 in ThreadWeaver::Thread::run (this=0x7efc98002e20) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/thread.cpp:103
#29 0x00007efcf8d51d78 in ?? () from /usr/lib/libQt5Core.so.5
#30 0x00007efcee913454 in start_thread () from /usr/lib/libpthread.so.0
#31 0x00007efcf814c7df in clone () from /usr/lib/libc.so.6

Thread 9 (Thread 0x7efc9ffff700 (LWP 20574)):
#0  0x00007efcee91910f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007efcf8d52c2b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007efcf4bcadef in ThreadWeaver::Weaver::blockThreadUntilJobsAreBeingAssigned_locked (this=0x233f7c0, th=0x7efcac3dc520) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:594
#3  0x00007efcf4bcac68 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait (this=0x233f7c0, th=0x7efcac3dc520, threadWasBusy=false, suspendIfInactive=false, justReturning=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:554
#4  0x00007efcf4bd5614 in ThreadWeaver::WorkingHardState::applyForWork (this=0x234ffb0, th=0x7efcac3dc520, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:66
#5  0x00007efcf4bd5872 in non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:61
#6  0x00007efcf4bcaf5f in ThreadWeaver::Weaver::applyForWork (this=0x233f7c0, th=0x7efcac3dc520, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:568
#7  0x00007efcf4bd57c3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x234ffb0, th=0x7efcac3dc520, wasBusy=true) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:73
#8  0x00007efcf4bd5872 in non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:61
#9  0x00007efcf4bcaf5f in ThreadWeaver::Weaver::applyForWork (this=0x233f7c0, th=0x7efcac3dc520, wasBusy=true) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:568
#10 0x00007efcf4bd0690 in ThreadWeaver::Thread::run (this=0x7efcac3dc520) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/thread.cpp:103
#11 0x00007efcf8d51d78 in ?? () from /usr/lib/libQt5Core.so.5
#12 0x00007efcee913454 in start_thread () from /usr/lib/libpthread.so.0
#13 0x00007efcf814c7df in clone () from /usr/lib/libc.so.6

Thread 8 (Thread 0x7efcb4bae700 (LWP 20573)):
#0  0x00007efcee91910f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007efcf8d52c2b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007efcf4bcadef in ThreadWeaver::Weaver::blockThreadUntilJobsAreBeingAssigned_locked (this=0x233f7c0, th=0x44cce30) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:594
#3  0x00007efcf4bcac68 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait (this=0x233f7c0, th=0x44cce30, threadWasBusy=false, suspendIfInactive=false, justReturning=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:554
#4  0x00007efcf4bd5614 in ThreadWeaver::WorkingHardState::applyForWork (this=0x234ffb0, th=0x44cce30, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:66
#5  0x00007efcf4bd5872 in non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:61
#6  0x00007efcf4bcaf5f in ThreadWeaver::Weaver::applyForWork (this=0x233f7c0, th=0x44cce30, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:568
#7  0x00007efcf4bd57c3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x234ffb0, th=0x44cce30, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:73
#8  0x00007efcf4bd5872 in non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:61
#9  0x00007efcf4bcaf5f in ThreadWeaver::Weaver::applyForWork (this=0x233f7c0, th=0x44cce30, wasBusy=false) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:568
#10 0x00007efcf4bd57c3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x234ffb0, th=0x44cce30, wasBusy=true) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:73
#11 0x00007efcf4bd5872 in non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () at /home/milian/projects/kf5/src/frameworks/threadweaver/src/workinghardstate.cpp:61
#12 0x00007efcf4bcaf5f in ThreadWeaver::Weaver::applyForWork (this=0x233f7c0, th=0x44cce30, wasBusy=true) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/weaver.cpp:568
#13 0x00007efcf4bd0690 in ThreadWeaver::Thread::run (this=0x44cce30) at /home/milian/projects/kf5/src/frameworks/threadweaver/src/thread.cpp:103
#14 0x00007efcf8d51d78 in ?? () from /usr/lib/libQt5Core.so.5
#15 0x00007efcee913454 in start_thread () from /usr/lib/libpthread.so.0
#16 0x00007efcf814c7df in clone () from /usr/lib/libc.so.6

Thread 7 (Thread 0x7efca7fff700 (LWP 20544)):
#0  0x00007efcec314078 in ?? () from /usr/lib/libglib-2.0.so.0
#1  0x00007efcec316934 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#2  0x00007efcec316f74 in ?? () from /usr/lib/libglib-2.0.so.0
#3  0x00007efcec3170ec in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0x00007efcf8f8059b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007efcf8f2a0da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#6  0x00007efcf8d4d0f3 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#7  0x00007efcff1a1445 in ?? () from /usr/lib/libQt5Qml.so.5
#8  0x00007efcf8d51d78 in ?? () from /usr/lib/libQt5Core.so.5
#9  0x00007efcee913454 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007efcf814c7df in clone () from /usr/lib/libc.so.6

Thread 6 (Thread 0x7efcb842c700 (LWP 20540)):
#0  0x00007efcf814348d in poll () from /usr/lib/libc.so.6
#1  0x00007efcec316fd6 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007efcec3170ec in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007efcf8f8059b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007efcf8f2a0da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007efcf8d4d0f3 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007efcf61f73e4 in KDevelop::CompletionWorkerThread::run (this=0x275d5d0) at /home/milian/projects/kf5/src/extragear/kdevelop/kdevplatform/language/codecompletion/codecompletionmodel.cpp:89
#7  0x00007efcf8d51d78 in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007efcee913454 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007efcf814c7df in clone () from /usr/lib/libc.so.6

Thread 5 (Thread 0x7efcc3fff700 (LWP 20539)):
#0  0x00007efcf813f4ed in read () from /usr/lib/libc.so.6
#1  0x00007efcec359c80 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007efcec316ab4 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#3  0x00007efcec316f74 in ?? () from /usr/lib/libglib-2.0.so.0
#4  0x00007efcec3170ec in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#5  0x00007efcf8f8059b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#6  0x00007efcf8f2a0da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#7  0x00007efcf8d4d0f3 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#8  0x00007efcf61f73e4 in KDevelop::CompletionWorkerThread::run (this=0x25fb1e0) at /home/milian/projects/kf5/src/extragear/kdevelop/kdevplatform/language/codecompletion/codecompletionmodel.cpp:89
#9  0x00007efcf8d51d78 in ?? () from /usr/lib/libQt5Core.so.5
#10 0x00007efcee913454 in start_thread () from /usr/lib/libpthread.so.0
#11 0x00007efcf814c7df in clone () from /usr/lib/libc.so.6

Thread 4 (Thread 0x7efccc2e6700 (LWP 20538)):
#0  0x00007efcee9194b8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007efcf8d52b66 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007efcf60a31be in KDevelop::DUChainPrivate::CleanupThread::run (this=0x25b3ca0) at /home/milian/projects/kf5/src/extragear/kdevelop/kdevplatform/language/duchain/duchain.cpp:282
#3  0x00007efcf8d51d78 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007efcee913454 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007efcf814c7df in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7efcd7df0700 (LWP 20537)):
#0  0x00007efcf814348d in poll () from /usr/lib/libc.so.6
#1  0x00007efcec316fd6 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007efcec3170ec in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007efcf8f8059b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007efcf8f2a0da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007efcf8d4d0f3 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007efcfbdbbe75 in ?? () from /usr/lib/libQt5DBus.so.5
#7  0x00007efcf8d51d78 in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007efcee913454 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007efcf814c7df in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7efcdd87b700 (LWP 20536)):
#0  0x00007efcf814348d in poll () from /usr/lib/libc.so.6
#1  0x00007efcead378e0 in ?? () from /usr/lib/libxcb.so.1
#2  0x00007efcead39679 in xcb_wait_for_event () from /usr/lib/libxcb.so.1
#3  0x00007efcdf192469 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#4  0x00007efcf8d51d78 in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007efcee913454 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007efcf814c7df in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7efd00069840 (LWP 20535)):
[KCrash Handler]
#6  KateLineLayout::viewLineCount (this=0x0) at /home/milian/projects/kf5/src/frameworks/ktexteditor/src/render/katelinelayout.cpp:178
#7  0x00007efcfdcc55a5 in KateLineLayout::viewLine (this=0x0, viewLine=-1) at /home/milian/projects/kf5/src/frameworks/ktexteditor/src/render/katelinelayout.cpp:184
#8  0x00007efcfdcbeab1 in KateLayoutCache::textLayout (this=0x66d7c70, realLine=48, _viewLine=-1) at /home/milian/projects/kf5/src/frameworks/ktexteditor/src/render/katelayoutcache.cpp:368
#9  0x00007efcfdd39d6d in KateViewInternal::previousLayout (this=0xa5d5b20) at /home/milian/projects/kf5/src/frameworks/ktexteditor/src/view/kateviewinternal.cpp:1350
#10 0x00007efcfdd3a158 in KateViewInternal::cursorUp (this=0xa5d5b20, sel=false) at /home/milian/projects/kf5/src/frameworks/ktexteditor/src/view/kateviewinternal.cpp:1529
#11 0x00007efcfdd299de in KTextEditor::ViewPrivate::up (this=0xb5b4090) at /home/milian/projects/kf5/src/frameworks/ktexteditor/src/view/kateview.cpp:2824
#12 0x00007efcfde77716 in KTextEditor::ViewPrivate::qt_static_metacall (_o=0xb5b4090, _c=QMetaObject::InvokeMetaMethod, _id=66, _a=0x7fff02739b70) at /home/milian/projects/kf5/build/frameworks/ktexteditor/src/moc_kateview.cpp:684
#13 0x00007efcf8f574e9 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#14 0x00007efcf9c05472 in QAction::triggered(bool) () from /usr/lib/libQt5Widgets.so.5
#15 0x00007efcf9c07e60 in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQt5Widgets.so.5
#16 0x00007efcf9c087dc in QAction::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#17 0x00007efcf9c0be3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#18 0x00007efcf9c135b1 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#19 0x00007efcf8f2bc80 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#20 0x00007efcf94a66a8 in QShortcutMap::dispatchEvent(QKeyEvent*) () from /usr/lib/libQt5Gui.so.5
#21 0x00007efcf94a6769 in QShortcutMap::tryShortcut(QKeyEvent*) () from /usr/lib/libQt5Gui.so.5
#22 0x00007efcf945f2cd in QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) () from /usr/lib/libQt5Gui.so.5
#23 0x00007efcf94768a4 in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () from /usr/lib/libQt5Gui.so.5
#24 0x00007efcf947bc45 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/libQt5Gui.so.5
#25 0x00007efcf9459cbb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Gui.so.5
#26 0x00007efcdf1c8310 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#27 0x00007efcec316dd7 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#28 0x00007efcec317040 in ?? () from /usr/lib/libglib-2.0.so.0
#29 0x00007efcec3170ec in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#30 0x00007efcf8f8057f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#31 0x00007efcf8f2a0da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#32 0x00007efcf8f325cc in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#33 0x000000000040dc7c in main (argc=3, argv=0x7fff0273c088) at /home/milian/projects/kf5/src/extragear/kdevelop/kdevelop/app/main.cpp:745

Reported using DrKonqi
Comment 1 Kevin Funk 2016-08-20 14:24:29 UTC
Shouldn't that be assigned to the ktexteditor product?
Comment 2 Milian Wolff 2016-08-22 10:50:32 UTC
yes
Comment 3 Dominik Haumann 2016-09-08 13:32:57 UTC
Git commit 09a1e864d54735ebcab6bf31198fdef969b92a67 by Dominik Haumann.
Committed on 08/09/2016 at 13:32.
Pushed by dhaumann into branch 'master'.

Fix crash: Make sure the display cursor is valid after text folding

This bug existed at least since KDE 4.3 (2009), took a long time to track it down.

FIXED-IN: KDE Frameworks 5.27
Differential-Revision: https://phabricator.kde.org/D2709

M  +38   -0    autotests/src/katefoldingtest.cpp
M  +1    -0    autotests/src/katefoldingtest.h
M  +7    -0    src/view/kateviewinternal.cpp

http://commits.kde.org/ktexteditor/09a1e864d54735ebcab6bf31198fdef969b92a67