Bug 307429

Summary: Crash while editing C++ code
Product: [Applications] kate Reporter: Josep M. Perez <josep.m.perez>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: christoph, olivier.jg
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Josep M. Perez 2012-09-26 10:05:57 UTC
Application: kdevelop (4.3.1)
KDE Platform Version: 4.8.4 (4.8.4)
Qt Version: 4.8.2
Operating System: Linux 3.2.0-3-rt-amd64 x86_64
Distribution: Debian GNU/Linux unstable (sid)

-- Information about the crash:
- What I was doing when the application crashed:

Crashed while editing C++ source code. Some part of the code was folded (hidden).

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f19fdc44760 (LWP 31444))]

Thread 10 (Thread 0x7f19dbf67700 (LWP 352)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216
#1  0x00007f19fc0e9167 in wait (time=1000, this=0xf7b140) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x23379f0, time=1000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f19f80be62b in ?? () from /usr/lib/libkdevplatformlanguage.so.5
#4  0x00007f19fc0e8d0b in QThreadPrivate::start (arg=0x23379d0) at thread/qthread_unix.cpp:307
#5  0x00007f19fa183b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#6  0x00007f19fadfa70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f19c5eb5700 (LWP 1030)):
#0  0x00007f19fadefac3 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f19f5d8d4d4 in g_main_context_poll (n_fds=1, fds=0x7f19d40032c0, timeout=-1, context=0x2fc2500, priority=<optimized out>) at /tmp/buildd/glib2.0-2.33.12+really2.32.3/./glib/gmain.c:3440
#2  g_main_context_iterate (context=context@entry=0x2fc2500, block=block@entry=1, dispatch=dispatch@entry=1, self=<error reading variable: Unhandled dwarf expression opcode 0xfa>) at /tmp/buildd/glib2.0-2.33.12+really2.32.3/./glib/gmain.c:3141
#3  0x00007f19f5d8d5f4 in g_main_context_iteration (context=0x2fc2500, may_block=1) at /tmp/buildd/glib2.0-2.33.12+really2.32.3/./glib/gmain.c:3207
#4  0x00007f19fc212296 in QEventDispatcherGlib::processEvents (this=0x2fc22f0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f19fc1e28af in QEventLoop::processEvents (this=this@entry=0x7f19c5eb4e40, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f19fc1e2b38 in QEventLoop::exec (this=0x7f19c5eb4e40, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f19fc0e5d70 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007f19fc0e8d0b in QThreadPrivate::start (arg=0x2fc1d40) at thread/qthread_unix.cpp:307
#9  0x00007f19fa183b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#10 0x00007f19fadfa70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f19c56b4700 (LWP 1031)):
#0  0x00007f19fadee73d in read () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f19f5dc84ef in read (__nbytes=16, __buf=0x7f19c56b3c80, __fd=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/unistd.h:45
#2  g_wakeup_acknowledge (wakeup=0x7f19d4002380) at /tmp/buildd/glib2.0-2.33.12+really2.32.3/./glib/gwakeup.c:212
#3  0x00007f19f5d8d059 in g_main_context_check (context=context@entry=0x2fc3080, max_priority=2147483647, fds=fds@entry=0x2fd2960, n_fds=n_fds@entry=1) at /tmp/buildd/glib2.0-2.33.12+really2.32.3/./glib/gmain.c:2980
#4  0x00007f19f5d8d472 in g_main_context_iterate (context=context@entry=0x2fc3080, block=block@entry=1, dispatch=dispatch@entry=1, self=<error reading variable: Unhandled dwarf expression opcode 0xfa>) at /tmp/buildd/glib2.0-2.33.12+really2.32.3/./glib/gmain.c:3143
#5  0x00007f19f5d8d5f4 in g_main_context_iteration (context=0x2fc3080, may_block=1) at /tmp/buildd/glib2.0-2.33.12+really2.32.3/./glib/gmain.c:3207
#6  0x00007f19fc212296 in QEventDispatcherGlib::processEvents (this=0x2fc2fa0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0x00007f19fc1e28af in QEventLoop::processEvents (this=this@entry=0x7f19c56b3e40, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007f19fc1e2b38 in QEventLoop::exec (this=0x7f19c56b3e40, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007f19fc0e5d70 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#10 0x00007f19fc0e8d0b in QThreadPrivate::start (arg=0x2fba750) at thread/qthread_unix.cpp:307
#11 0x00007f19fa183b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#12 0x00007f19fadfa70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f19c46d0700 (LWP 1036)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f19dd0631d7 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007f19dd063209 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007f19fa183b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#4  0x00007f19fadfa70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f19c3180700 (LWP 1050)):
#0  g_mutex_unlock (mutex=mutex@entry=0x47a8a90) at /tmp/buildd/glib2.0-2.33.12+really2.32.3/./glib/gthread-posix.c:224
#1  0x00007f19f5d8cd05 in g_main_context_prepare (context=context@entry=0x47a8a90, priority=priority@entry=0x7f19c317fcb8) at /tmp/buildd/glib2.0-2.33.12+really2.32.3/./glib/gmain.c:2834
#2  0x00007f19f5d8d3fb in g_main_context_iterate (context=context@entry=0x47a8a90, block=block@entry=1, dispatch=dispatch@entry=1, self=<error reading variable: Unhandled dwarf expression opcode 0xfa>) at /tmp/buildd/glib2.0-2.33.12+really2.32.3/./glib/gmain.c:3126
#3  0x00007f19f5d8d5f4 in g_main_context_iteration (context=0x47a8a90, may_block=1) at /tmp/buildd/glib2.0-2.33.12+really2.32.3/./glib/gmain.c:3207
#4  0x00007f19fc212296 in QEventDispatcherGlib::processEvents (this=0x47a8580, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f19fc1e28af in QEventLoop::processEvents (this=this@entry=0x7f19c317fe10, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f19fc1e2b38 in QEventLoop::exec (this=0x7f19c317fe10, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f19fc0e5d70 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007f19fc1c31bf in QInotifyFileSystemWatcherEngine::run (this=0x47a7db0) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007f19fc0e8d0b in QThreadPrivate::start (arg=0x47a7db0) at thread/qthread_unix.cpp:307
#10 0x00007f19fa183b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#11 0x00007f19fadfa70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f19c1f14700 (LWP 1147)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f19f30bec0d in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f19f30bed19 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f19fa183b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#4  0x00007f19fadfa70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f19c0816700 (LWP 1151)):
#0  0x00007f19fadefac3 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=3519) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f19f5d8d4d4 in g_main_context_poll (n_fds=1, fds=0x7f19d48efda0, timeout=3519, context=0x4c31600, priority=<optimized out>) at /tmp/buildd/glib2.0-2.33.12+really2.32.3/./glib/gmain.c:3440
#2  g_main_context_iterate (context=context@entry=0x4c31600, block=block@entry=1, dispatch=dispatch@entry=1, self=<error reading variable: Unhandled dwarf expression opcode 0xfa>) at /tmp/buildd/glib2.0-2.33.12+really2.32.3/./glib/gmain.c:3141
#3  0x00007f19f5d8d5f4 in g_main_context_iteration (context=0x4c31600, may_block=1) at /tmp/buildd/glib2.0-2.33.12+really2.32.3/./glib/gmain.c:3207
#4  0x00007f19fc212296 in QEventDispatcherGlib::processEvents (this=0x4cfccf0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f19fc1e28af in QEventLoop::processEvents (this=this@entry=0x7f19c0815e40, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f19fc1e2b38 in QEventLoop::exec (this=0x7f19c0815e40, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f19fc0e5d70 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007f19fc0e8d0b in QThreadPrivate::start (arg=0x4cfc9c0) at thread/qthread_unix.cpp:307
#9  0x00007f19fa183b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#10 0x00007f19fadfa70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f197f343700 (LWP 1236)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f19fc0e920b in wait (time=18446744073709551615, this=0x13f4d80) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x10b8f90, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f19f3aae301 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x13f2cb0, th=0x63d9ae0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f19f3ab0b4b in ThreadWeaver::WorkingHardState::applyForWork (this=0x11109c0, th=0x63d9ae0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f19f3ab0b64 in ThreadWeaver::WorkingHardState::applyForWork (this=0x11109c0, th=0x63d9ae0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007f19f3ab0b64 in ThreadWeaver::WorkingHardState::applyForWork (this=0x11109c0, th=0x63d9ae0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00007f19f3aaf9bf in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7f197f342e40, parent=0x13f2cb0, th=th@entry=0x63d9ae0) at ../../../threadweaver/Weaver/Thread.cpp:87
#8  0x00007f19f3aafa4b in ThreadWeaver::Thread::run (this=0x63d9ae0) at ../../../threadweaver/Weaver/Thread.cpp:142
#9  0x00007f19fc0e8d0b in QThreadPrivate::start (arg=0x63d9ae0) at thread/qthread_unix.cpp:307
#10 0x00007f19fa183b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#11 0x00007f19fadfa70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f197eb42700 (LWP 1237)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f19fc0e920b in wait (time=18446744073709551615, this=0x13f4d80) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x10b8f90, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f19f3aae301 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x13f2cb0, th=0x7f19d48e17d0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f19f3ab0b4b in ThreadWeaver::WorkingHardState::applyForWork (this=0x11109c0, th=0x7f19d48e17d0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f19f3aaf9bf in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7f197eb41e40, parent=0x13f2cb0, th=th@entry=0x7f19d48e17d0) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f19f3aafa4b in ThreadWeaver::Thread::run (this=0x7f19d48e17d0) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f19fc0e8d0b in QThreadPrivate::start (arg=0x7f19d48e17d0) at thread/qthread_unix.cpp:307
#8  0x00007f19fa183b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#9  0x00007f19fadfa70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f19fdc44760 (LWP 31444)):
[KCrash Handler]
#6  0x000000000060f760 in QString::shared_null ()
#7  0x00007f19dd41a97e in Kate::TextBuffer::rangesForLine (this=<optimized out>, line=870, view=0x3f5eae0, rangesWithAttributeOnly=false) at ../../part/buffer/katetextbuffer.cpp:820
#8  0x00007f19dd4ef391 in KateView::updateRangesIn (this=0x3f5eae0, activationType=KTextEditor::Attribute::ActivateCaretIn) at ../../part/view/kateview.cpp:2830
#9  0x00007f19dd4ffa1f in KateViewInternal::updateCursor (this=this@entry=0x3f604f0, newCursor=..., force=force@entry=false, center=center@entry=false, calledExternally=calledExternally@entry=false) at ../../part/view/kateviewinternal.cpp:1875
#10 0x00007f19dd502f26 in KateViewInternal::cursorDown (this=0x3f604f0, sel=true) at ../../part/view/kateviewinternal.cpp:1454
#11 0x00007f19fc1f954f in QMetaObject::activate (sender=0x3feef40, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff2d2b38a0) at kernel/qobject.cpp:3547
#12 0x00007f19fb587502 in QAction::triggered (this=this@entry=0x3feef40, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#13 0x00007f19fb5876f0 in QAction::activate (this=0x3feef40, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1257
#14 0x00007f19fb587857 in QAction::event (this=<optimized out>, e=<optimized out>) at kernel/qaction.cpp:1183
#15 0x00007f19fc938057 in KAction::event (this=<optimized out>, event=0x7fff2d2b3e40) at ../../kdeui/actions/kaction.cpp:131
#16 0x00007f19fb58d70c in QApplicationPrivate::notify_helper (this=this@entry=0xba5810, receiver=receiver@entry=0x3feef40, e=e@entry=0x7fff2d2b3e40) at kernel/qapplication.cpp:4556
#17 0x00007f19fb591b8a in QApplication::notify (this=0x7fff2d2b5730, receiver=0x3feef40, e=0x7fff2d2b3e40) at kernel/qapplication.cpp:4417
#18 0x00007f19fca118a6 in KApplication::notify (this=0x7fff2d2b5730, receiver=0x3feef40, event=0x7fff2d2b3e40) at ../../kdeui/kernel/kapplication.cpp:311
#19 0x00007f19fc1e3b5e in QCoreApplication::notifyInternal (this=0x7fff2d2b5730, receiver=0x3feef40, event=0x7fff2d2b3e40) at kernel/qcoreapplication.cpp:915
#20 0x00007f19fb5be474 in sendEvent (event=0x7fff2d2b3e40, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#21 QShortcutMap::dispatchEvent (this=this@entry=0xba5930, e=e@entry=0x7fff2d2b4410) at kernel/qshortcutmap.cpp:879
#22 0x00007f19fb5bf983 in QShortcutMap::tryShortcutEvent (this=0xba5930, o=<optimized out>, e=0x7fff2d2b4410) at kernel/qshortcutmap.cpp:364
#23 0x00007f19fb593869 in QApplication::notify (this=0x7fff2d2b5730, receiver=0x3f604f0, e=0x7fff2d2b4410) at kernel/qapplication.cpp:3980
#24 0x00007f19fca118a6 in KApplication::notify (this=0x7fff2d2b5730, receiver=0x3f604f0, event=0x7fff2d2b4410) at ../../kdeui/kernel/kapplication.cpp:311
#25 0x00007f19fc1e3b5e in QCoreApplication::notifyInternal (this=0x7fff2d2b5730, receiver=0x3f604f0, event=0x7fff2d2b4410) at kernel/qcoreapplication.cpp:915
#26 0x00007f19fb62aa9a in QKeyMapper::sendKeyEvent (keyWidget=keyWidget@entry=0x3f604f0, grab=grab@entry=false, type=QEvent::KeyPress, code=16777237, modifiers=..., text=..., autorepeat=autorepeat@entry=true, count=1, nativeScanCode=116, nativeVirtualKey=65364, nativeModifiers=17) at kernel/qkeymapper_x11.cpp:1866
#27 0x00007f19fb62aed1 in QKeyMapperPrivate::translateKeyEvent (this=0xbe3c90, keyWidget=0x3f604f0, event=0x7fff2d2b4e30, grab=false) at kernel/qkeymapper_x11.cpp:1836
#28 0x00007f19fb607b28 in QApplication::x11ProcessEvent (this=0x7fff2d2b5730, event=0x7fff2d2b4e30) at kernel/qapplication_x11.cpp:3539
#29 0x00007f19fb62ebc2 in x11EventSourceDispatch (s=s@entry=0xb944a0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#30 0x00007f19f5d8d205 in g_main_dispatch (context=0xba6740) at /tmp/buildd/glib2.0-2.33.12+really2.32.3/./glib/gmain.c:2539
#31 g_main_context_dispatch (context=context@entry=0xba6740) at /tmp/buildd/glib2.0-2.33.12+really2.32.3/./glib/gmain.c:3075
#32 0x00007f19f5d8d538 in g_main_context_iterate (context=context@entry=0xba6740, block=block@entry=1, dispatch=dispatch@entry=1, self=<error reading variable: Unhandled dwarf expression opcode 0xfa>) at /tmp/buildd/glib2.0-2.33.12+really2.32.3/./glib/gmain.c:3146
#33 0x00007f19f5d8d5f4 in g_main_context_iteration (context=0xba6740, may_block=1) at /tmp/buildd/glib2.0-2.33.12+really2.32.3/./glib/gmain.c:3207
#34 0x00007f19fc212276 in QEventDispatcherGlib::processEvents (this=0xb929c0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#35 0x00007f19fb62e83e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#36 0x00007f19fc1e28af in QEventLoop::processEvents (this=this@entry=0x7fff2d2b5200, flags=...) at kernel/qeventloop.cpp:149
#37 0x00007f19fc1e2b38 in QEventLoop::exec (this=0x7fff2d2b5200, flags=...) at kernel/qeventloop.cpp:204
#38 0x00007f19fc1e7cf8 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#39 0x0000000000409b68 in main (argc=<optimized out>, argv=<optimized out>) at ../../app/main.cpp:479

Reported using DrKonqi
Comment 1 Christoph Cullmann 2012-10-27 12:25:36 UTC
We need a testcase to reproduce, otherwise this is not findable :(
Comment 2 Dominik Haumann 2013-01-20 15:50:40 UTC

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