[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#701463: kate: Kate crashes when selected text is deleted



Hello!


Lisandro Damián Nicanor Pérez Meyer wrote:
> Hi! I'm unable to reproduce this bug in any of my machines. We also have
> not received any complaints of this kind of behaviour from kate from other
> users, and I really think kate is used a lot, so I'm suspecting a problem
> in your side.

First thank you for your effort!

I cant really guarantee that there are problems in my configuration (even 
though I tried it with complete new users and on three indepently installed 
machines), but I am afraid there are some (very annoying!) bugs left in kate, 
at least in VI mode. I hope it can be fixed for wheezy.

This is the most important bug and the easiest one to reproduce. I hope the 
instructions below are more clear.

> Please create a new user account and try again. If you can't reproduce it
> there, then the problem may be in a personal config file. Else, maybe you
> have some corrupted package.

I installed the debian package and debtags tells me all md5 sums are ok.

> Of course, if you can reproduce this in another system, please try being
> more explicit on how to reproduce it, maybe there is something I'm missing
> when I'm trying it (I've followed all your steps).

Open kate (even on a complete new kde user), alt+f2, type "kate"
klick close for the tipps
go into the menu and change the mode to VI:
settings -> configure kate -> editing -> vi input mode -> Use Vi input mode
press ok
insert following text (between ---) by pressing "i" and then typing the text:
---
a
b
c
---
leave the cursor at the very last position and press "v", then the up cursor 
and then "D".

-> crash, new report attached (seems different then the last one). On another 
i386 laptop I got the same crash report.

Expected behaviour: last two lines should be deleted.

best regards
Application: Kate (kate), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fbe8b84a760 (LWP 821))]

Thread 2 (Thread 0x7fbe77a00700 (LWP 822)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fbe78d1ce77 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7fbe7902a640) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007fbe78d1cea9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007fbe887a9b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#4  0x00007fbe8b1b5a7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fbe8b84a760 (LWP 821)):
[KCrash Handler]
#6  QTextLine::cursorToX (this=0x7fffa4d9d448, cursorPos=0x7fffa4d9d38c, edge=QTextLine::Leading) at text/qtextlayout.cpp:2494
#7  0x00007fbe793a4fb6 in cursorToX (edge=QTextLine::Leading, cursorPos=0, this=<optimized out>) at /usr/include/qt4/QtGui/qtextlayout.h:230
#8  KateRenderer::cursorToX (this=this@entry=0x16edab0, range=..., pos=...) at ../../part/render/katerenderer.cpp:984
#9  0x00007fbe793a505e in KateRenderer::cursorToX (this=0x16edab0, range=..., pos=..., returnPastLine=false) at ../../part/render/katerenderer.cpp:989
#10 0x00007fbe793f9c3a in KateViewInternal::makeVisible (this=this@entry=0x16f2ce0, c=..., endCol=0, force=force@entry=false, center=center@entry=false, calledExternally=calledExternally@entry=false) at ../../part/view/kateviewinternal.cpp:641
#11 0x00007fbe793facdf in KateViewInternal::updateCursor (this=0x16f2ce0, newCursor=..., force=<optimized out>, center=false, calledExternally=false) at ../../part/view/kateviewinternal.cpp:1847
#12 0x00007fbe7941920d in KateViNormalMode::commandDeleteToEOL (this=0x2475030) at ../../part/vimode/katevinormalmode.cpp:708
#13 0x00007fbe794255b6 in KateViNormalMode::executeCommand (this=this@entry=0x2475030, cmd=cmd@entry=0x1be4ee0) at ../../part/vimode/katevinormalmode.cpp:433
#14 0x00007fbe794266c0 in KateViNormalMode::handleKeypress (this=0x2475030, e=<optimized out>) at ../../part/vimode/katevinormalmode.cpp:362
#15 0x00007fbe7940e404 in KateViInputModeManager::handleKeypress (this=0x1ce5e00, e=0x7fffa4d9dfd0) at ../../part/vimode/kateviinputmodemanager.cpp:102
#16 0x00007fbe793ffefe in keyPressEvent (e=0x7fffa4d9dfd0, this=0x16f2ce0) at ../../part/view/kateviewinternal.cpp:2282
#17 KateViewInternal::keyPressEvent (this=0x16f2ce0, e=0x7fffa4d9dfd0) at ../../part/view/kateviewinternal.cpp:2215
#18 0x00007fbe793f822b in KateViewInternal::eventFilter (this=0x16f2ce0, obj=0x16f2ce0, e=0x7fffa4d9dfd0) at ../../part/view/kateviewinternal.cpp:2167
#19 0x00007fbe89079cc6 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, receiver=0x16f2ce0, event=0x7fffa4d9dfd0) at kernel/qcoreapplication.cpp:1025
#20 0x00007fbe8a6016dc in QApplicationPrivate::notify_helper (this=this@entry=0x125c660, receiver=receiver@entry=0x16f2ce0, e=e@entry=0x7fffa4d9dfd0) at kernel/qapplication.cpp:4552
#21 0x00007fbe8a606704 in QApplication::notify (this=<optimized out>, receiver=0x16f2ce0, e=0x7fffa4d9dfd0) at kernel/qapplication.cpp:3997
#22 0x00007fbe898a7886 in KApplication::notify (this=0x7fffa4d9f230, receiver=0x16f2ce0, event=0x7fffa4d9dfd0) at ../../kdeui/kernel/kapplication.cpp:311
#23 0x00007fbe89079b5e in QCoreApplication::notifyInternal (this=0x7fffa4d9f230, receiver=0x16f2ce0, event=0x7fffa4d9dfd0) at kernel/qcoreapplication.cpp:915
#24 0x00007fbe8a69ea9a in QKeyMapper::sendKeyEvent (keyWidget=keyWidget@entry=0x16f2ce0, grab=grab@entry=false, type=QEvent::KeyPress, code=68, modifiers=..., text=..., autorepeat=autorepeat@entry=false, count=1, nativeScanCode=40, nativeVirtualKey=68, nativeModifiers=1) at kernel/qkeymapper_x11.cpp:1866
#25 0x00007fbe8a69eed1 in QKeyMapperPrivate::translateKeyEvent (this=0x129e060, keyWidget=0x16f2ce0, event=0x7fffa4d9e9f0, grab=false) at kernel/qkeymapper_x11.cpp:1836
#26 0x00007fbe8a67bb28 in QApplication::x11ProcessEvent (this=0x7fffa4d9f230, event=0x7fffa4d9e9f0) at kernel/qapplication_x11.cpp:3539
#27 0x00007fbe8a6a2bc2 in x11EventSourceDispatch (s=0x125e100, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#28 0x00007fbe882db355 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007fbe882db688 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007fbe882db744 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007fbe890a8276 in QEventDispatcherGlib::processEvents (this=0x1227b30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#32 0x00007fbe8a6a283e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#33 0x00007fbe890788af in QEventLoop::processEvents (this=this@entry=0x7fffa4d9edc0, flags=...) at kernel/qeventloop.cpp:149
#34 0x00007fbe89078b38 in QEventLoop::exec (this=0x7fffa4d9edc0, flags=...) at kernel/qeventloop.cpp:204
#35 0x00007fbe8907dcf8 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#36 0x00007fbe8b46b81d in kdemain (argc=<optimized out>, argv=0x7fffa4d9f300) at ../../../kate/app/katemain.cpp:377
#37 0x00007fbe8b0f9ead in __libc_start_main (main=<optimized out>, argc=<optimized out>, ubp_av=<optimized out>, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffa4d9f3a8) at libc-start.c:228
#38 0x0000000000400761 in _start ()

Reply to: