Bug 174176 - Kate crashes with SIGABRT when, after using block selection mode to move the cursor outside the text, you try to move the cursor in line selection mode with the arrow keys.
Summary: Kate crashes with SIGABRT when, after using block selection mode to move the ...
Status: RESOLVED DUPLICATE of bug 177905
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: HI crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-03 16:18 UTC by Sjur Gjøstein Karevoll
Modified: 2008-12-16 19:12 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sjur Gjøstein Karevoll 2008-11-03 16:18:01 UTC
Version:            (using KDE 4.1.2)
OS:                Linux
Installed from:    Ubuntu Packages

Plugins: None

How to reproduce:
Open kate into any file, enter block selection mode, move the cursor so the character behind it doesn't exist (if you're using e.g right arrow to move the cursor it would've jumped to the next line if you were in line selection mode), exit block selection mode, use the right or left arrow keys to move the cursor.

Expected behaviour: 
The cursor should jump to the end of the current line (moving left) or the beginning of the next line (moving right).

Backtrace:

Application: Kate (kate), signal SIGABRT
(no debugging symbols found)
(no debugging symbols found)
...
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0x7fc7541e76f0 (LWP 12312)]
(no debugging symbols found)
(no debugging symbols found)
...
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#5  0x00007fc753ab1fd5 in raise () from /lib/libc.so.6
#6  0x00007fc753ab3b43 in abort () from /lib/libc.so.6
#7  0x00007fc75246a6b5 in qt_message_output () from /usr/lib/libQtCore.so.4
#8  0x00007fc75246a7fd in qFatal () from /usr/lib/libQtCore.so.4
#9  0x00007fc7490eec20 in ?? () from /usr/lib/kde4/katepart.so
#10 0x00007fc7490d7165 in ?? () from /usr/lib/kde4/katepart.so
#11 0x00007fc75256f134 in QMetaObject::activate ()
   from /usr/lib/libQtCore.so.4
#12 0x00007fc752e5ef57 in QAction::triggered () from /usr/lib/libQtGui.so.4
#13 0x00007fc752e5f720 in QAction::activate () from /usr/lib/libQtGui.so.4
#14 0x00007fc752e62d17 in QAction::event () from /usr/lib/libQtGui.so.4
#15 0x00007fc752ebbb93 in QWidgetAction::event () from /usr/lib/libQtGui.so.4
#16 0x00007fc752e64c3d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#17 0x00007fc752e6c9ea in QApplication::notify () from /usr/lib/libQtGui.so.4
#18 0x00007fc750c39b8b in KApplication::notify () from /usr/lib/libkdeui.so.5
#19 0x00007fc75255ad61 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#20 0x00007fc752e9a23d in ?? () from /usr/lib/libQtGui.so.4
#21 0x00007fc752e9bb6c in ?? () from /usr/lib/libQtGui.so.4
#22 0x00007fc752e6da12 in QApplication::notify () from /usr/lib/libQtGui.so.4
#23 0x00007fc750c39b8b in KApplication::notify () from /usr/lib/libkdeui.so.5
#24 0x00007fc75255ad61 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#25 0x00007fc752ef35f4 in ?? () from /usr/lib/libQtGui.so.4
#26 0x00007fc752ef58d7 in ?? () from /usr/lib/libQtGui.so.4
#27 0x00007fc752ecf3c0 in QApplication::x11ProcessEvent ()
   from /usr/lib/libQtGui.so.4
#28 0x00007fc752ef72f4 in ?? () from /usr/lib/libQtGui.so.4
#29 0x00007fc74faced3b in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#30 0x00007fc74fad250d in ?? () from /usr/lib/libglib-2.0.so.0
#31 0x00007fc74fad26cb in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#32 0x00007fc75258315f in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#33 0x00007fc752ef6a9f in ?? () from /usr/lib/libQtGui.so.4
#34 0x00007fc752559682 in QEventLoop::processEvents ()
   from /usr/lib/libQtCore.so.4
#35 0x00007fc75255980d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#36 0x00007fc75255bcbd in QCoreApplication::exec ()
   from /usr/lib/libQtCore.so.4
#37 0x00007fc753df5d15 in kdemain () from /usr/lib/libkdeinit4_kate.so
#38 0x00007fc753a9d466 in __libc_start_main () from /lib/libc.so.6
#39 0x0000000000400659 in _start ()
#0  0x00007fc753b275f0 in nanosleep () from /lib/libc.so.6
Comment 1 Dominik Haumann 2008-11-04 14:49:55 UTC
Can reproduce as described:

Application: KWrite (kwrite), signal SIGABRT

Thread 1 (Thread 0xb63bc6c0 (LWP 13094)):
[KCrash Handler]
#6  0xb7fc2410 in __kernel_vsyscall ()
#7  0xb699b085 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb699ca01 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb6c5ac55 in qt_message_output (msgType=QtFatalMsg, buf=0xbf9da1cc "ASSERT: \"valid()\" in file /home/dh/kde/trunk/kdelibs/kate/view/kateviewinternal.cpp, line 856")
    at /home/dh/kde/trunk/qt-copy/src/corelib/global/qglobal.cpp:2102
#10 0xb6c5ad18 in qFatal (msg=0xb6d816b8 "ASSERT: \"%s\" in file %s, line %d") at /home/dh/kde/trunk/qt-copy/src/corelib/global/qglobal.cpp:2303
#11 0xb6c5adc5 in qt_assert (assertion=0xb4d5231f "valid()", file=0xb4d51d0c "/home/dh/kde/trunk/kdelibs/kate/view/kateviewinternal.cpp", line=856)
    at /home/dh/kde/trunk/qt-copy/src/corelib/global/qglobal.cpp:1872
#12 0xb4c9c8cf in KateViewInternal::moveChar (this=0x8220ce8, bias=KateViewInternal::right, sel=false) at /home/dh/kde/trunk/kdelibs/kate/view/kateviewinternal.cpp:856
#13 0xb4c9cbbd in KateViewInternal::cursorRight (this=0x8220ce8, sel=false) at /home/dh/kde/trunk/kdelibs/kate/view/kateviewinternal.cpp:1088
#14 0xb4c7957b in KateView::cursorRight (this=0x81d0400) at /home/dh/kde/trunk/kdelibs/kate/view/kateview.cpp:2457
#15 0xb4c84a21 in KateView::qt_metacall (this=0x81d0400, _c=QMetaObject::InvokeMetaMethod, _id=51, _a=0xbf9dc3ec) at /home/dh/kde/trunk/build/kdelibs/kate/kateview.moc:346
#16 0xb6d4858a in QMetaObject::activate (sender=0x832cb80, from_signal_index=5, to_signal_index=6, argv=0xbf9dc3ec) at /home/dh/kde/trunk/qt-copy/src/corelib/kernel/qobject.cpp:3028
#17 0xb6d488e0 in QMetaObject::activate (sender=0x832cb80, m=0xb7568a38, from_local_signal_index=1, to_local_signal_index=2, argv=0xbf9dc3ec)
    at /home/dh/kde/trunk/qt-copy/src/corelib/kernel/qobject.cpp:3121
#18 0xb6f5b681 in QAction::triggered (this=0x832cb80, _t1=false) at .moc/release-shared/moc_qaction.cpp:216
#19 0xb6f5c29f in QAction::activate (this=0x832cb80, event=QAction::Trigger) at /home/dh/kde/trunk/qt-copy/src/gui/kernel/qaction.cpp:1125
#20 0xb6f5e0e3 in QAction::event (this=0x832cb80, e=0xbf9dc824) at /home/dh/kde/trunk/qt-copy/src/gui/kernel/qaction.cpp:1044
#21 0xb7a06993 in KAction::event (this=0x832cb80, event=0xbf9dc824) at /home/dh/kde/trunk/kdelibs/kdeui/actions/kaction.cpp:88
#22 0xb6f6199c in QApplicationPrivate::notify_helper (this=0x805c110, receiver=0x832cb80, e=0xbf9dc824) at /home/dh/kde/trunk/qt-copy/src/gui/kernel/qapplication.cpp:3803
#23 0xb6f68a69 in QApplication::notify (this=0xbf9dd6bc, receiver=0x832cb80, e=0xbf9dc824) at /home/dh/kde/trunk/qt-copy/src/gui/kernel/qapplication.cpp:3393
#24 0xb7af4bfd in KApplication::notify (this=0xbf9dd6bc, receiver=0x832cb80, event=0xbf9dc824) at /home/dh/kde/trunk/kdelibs/kdeui/kernel/kapplication.cpp:307
#25 0xb6d376d9 in QCoreApplication::notifyInternal (this=0xbf9dd6bc, receiver=0x832cb80, event=0xbf9dc824) at /home/dh/kde/trunk/qt-copy/src/corelib/kernel/qcoreapplication.cpp:583
#26 0xb6f941a5 in QShortcutMap::dispatchEvent (this=0x805c1ac, e=0xbf9dcbd4) at ../../include/QtCore/../../../../qt-copy/src/corelib/kernel/qcoreapplication.h:209
#27 0xb6f94fc7 in QShortcutMap::tryShortcutEvent (this=0x805c1ac, w=0x8220ce8, e=0xbf9dcbd4) at /home/dh/kde/trunk/qt-copy/src/gui/kernel/qshortcutmap.cpp:362
#28 0xb6f69cdf in QApplication::notify (this=0xbf9dd6bc, receiver=0x8220ce8, e=0xbf9dcbd4) at /home/dh/kde/trunk/qt-copy/src/gui/kernel/qapplication.cpp:3430
#29 0xb7af4bfd in KApplication::notify (this=0xbf9dd6bc, receiver=0x8220ce8, event=0xbf9dcbd4) at /home/dh/kde/trunk/kdelibs/kdeui/kernel/kapplication.cpp:307
#30 0xb6d376d9 in QCoreApplication::notifyInternal (this=0xbf9dd6bc, receiver=0x8220ce8, event=0xbf9dcbd4) at /home/dh/kde/trunk/qt-copy/src/corelib/kernel/qcoreapplication.cpp:583
#31 0xb6fb77ee in qt_sendSpontaneousEvent (receiver=0x8220ce8, event=0xbf9dcbd4) at ../../include/QtCore/../../../../qt-copy/src/corelib/kernel/qcoreapplication.h:212
#32 0xb6fe52bb in QKeyMapper::sendKeyEvent (keyWidget=0x8220ce8, grab=false, type=QEvent::KeyPress, code=16777236, modifiers=@0xbf9dcd30, text=@0xbf9dcd64, autorepeat=<value optimized out>, count=1, 
    nativeScanCode=102, nativeVirtualKey=65363, nativeModifiers=0) at /home/dh/kde/trunk/qt-copy/src/gui/kernel/qkeymapper_x11.cpp:1652
#33 0xb6fe718a in QKeyMapperPrivate::translateKeyEvent (this=0x8080048, keyWidget=0x8220ce8, event=0xbf9dd288, grab=false) at /home/dh/kde/trunk/qt-copy/src/gui/kernel/qkeymapper_x11.cpp:1623
#34 0xb6fc2b88 in QApplication::x11ProcessEvent (this=0xbf9dd6bc, event=0xbf9dd288) at /home/dh/kde/trunk/qt-copy/src/gui/kernel/qapplication_x11.cpp:3053
#35 0xb6fe865a in x11EventSourceDispatch (s=0x805f148, callback=0, user_data=0x0) at /home/dh/kde/trunk/qt-copy/src/gui/kernel/qguieventdispatcher_glib.cpp:142
#36 0xb6647cc6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#37 0xb664b083 in ?? () from /usr/lib/libglib-2.0.so.0
#38 0xb664b63e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#39 0xb6d5e628 in QEventDispatcherGlib::processEvents (this=0x805c258, flags=@0xbf9dd428) at /home/dh/kde/trunk/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:319
#40 0xb6fe8455 in QGuiEventDispatcherGlib::processEvents (this=0x805c258, flags=@0xbf9dd458) at /home/dh/kde/trunk/qt-copy/src/gui/kernel/qguieventdispatcher_glib.cpp:198
#41 0xb6d3695d in QEventLoop::processEvents (this=0xbf9dd4b0, flags=@0xbf9dd484) at /home/dh/kde/trunk/qt-copy/src/corelib/kernel/qeventloop.cpp:143
#42 0xb6d36af1 in QEventLoop::exec (this=0xbf9dd4b0, flags=@0xbf9dd4b8) at /home/dh/kde/trunk/qt-copy/src/corelib/kernel/qeventloop.cpp:190
#43 0xb6d38d8a in QCoreApplication::exec () at /home/dh/kde/trunk/qt-copy/src/corelib/kernel/qcoreapplication.cpp:845
#44 0xb6f610a7 in QApplication::exec () at /home/dh/kde/trunk/qt-copy/src/gui/kernel/qapplication.cpp:3331
#45 0xb7fba981 in kdemain (argc=2, argv=0xbf9dda84) at /home/dh/kde/trunk/kdebase/apps/kwrite/kwritemain.cpp:773
#46 0x08048682 in main (argc=) at /home/dh/kde/trunk/build/kdebase/apps/kwrite/kwrite_dummy.cpp:3

Comment 2 Dominik Haumann 2008-12-16 19:12:59 UTC
fixed by Erlend.

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