Bug 175210

Summary: kwrite crashed when trying to do ctrl+c and ctrl+f
Product: [Applications] kate Reporter: SlashDevDsp <slashdevdsp>
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description SlashDevDsp 2008-11-15 13:35:52 UTC
Version:            (using Devel)
Compiler:          g++ 4.1.3 
OS:                Linux
Installed from:    Compiled sources

was editing source code, when i selected some code segment with ctrl+c then on hitting ctrl+f kwrite crashed, attached bt:

Application: KWrite (kwrite), signal SIGSEGV
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[New Thread -1237793088 (LWP 14886)]
[Current thread is 0 (process 14886)]

Thread 1 (Thread -1237793088 (LWP 14886)):
[KCrash Handler]
#6  QTextLine::cursorToX (this=0xbfa37db0, cursorPos=0xbfa37dd4, edge=QTextLine::Leading) at /home/kde-devel/kdesvn/qt-copy/src/gui/text/qtextlayout.cpp:2057
#7  0xb48a77f4 in KateViewInternal::cursorToCoordinate (this=0x8a5aee0, cursor=@0xbfa37e18, realCursor=true, includeBorder=false)
    at /home/kde-devel/kdesvn/build/qt-copy/include/QtGui/../../../../qt-copy/src/gui/text/qtextlayout.h:210
#8  0xb48a7937 in KateViewInternal::inputMethodQuery (this=0x8a5aee0, query=Qt::ImMicroFocus) at /home/kde-devel/kdesvn/kdelibs/kate/view/kateviewinternal.cpp:3639
#9  0xb73d8ad9 in QXIMInputContext::update (this=0x81d4e58) at /home/kde-devel/kdesvn/qt-copy/src/gui/inputmethod/qximinputcontext_x11.cpp:741
#10 0xb6f20580 in QWidget::updateMicroFocus (this=0x8a5aee0) at /home/kde-devel/kdesvn/qt-copy/src/gui/kernel/qwidget.cpp:9682
#11 0xb48ab35b in KateViewInternal::updateCursor (this=0x8a5aee0, newCursor=@0xbfa37fdc, force=false, center=true, calledExternally=false)
    at /home/kde-devel/kdesvn/kdelibs/kate/view/kateviewinternal.cpp:1902
#12 0xb4891ce1 in KateView::setCursorPositionInternal (this=0x8a5f690, position=@0x8545b50, tabwidth=1, calledExternally=false) at /home/kde-devel/kdesvn/kdelibs/kate/view/kateview.cpp:1092
#13 0xb48ef5e4 in KateSearchBar::selectRange (view=0x8a5f690, range=@0x8961ba8) at /home/kde-devel/kdesvn/kdelibs/kate/utils/katesearchbar.cpp:322
#14 0xb48f361a in KateSearchBar::onIncPatternChanged (this=0x8788108, pattern=@0xbfa38264, invokedByUserAction=true) at /home/kde-devel/kdesvn/kdelibs/kate/utils/katesearchbar.cpp:498
#15 0xb48f924f in KateSearchBar::qt_metacall (this=0x8788108, _c=QMetaObject::InvokeMetaMethod, _id=31, _a=0xbfa3821c) at /home/kde-devel/kdesvn/build/kdelibs/kate/katesearchbar.moc:142
#16 0xb6d1385a in QMetaObject::activate (sender=0x84e3a28, from_signal_index=<value optimized out>, to_signal_index=27, argv=<value optimized out>)
    at /home/kde-devel/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:3028
#17 0xb6d13da2 in QMetaObject::activate (sender=0x84e3a28, m=0xb7505c88, local_signal_index=0, argv=0xbfa3821c) at /home/kde-devel/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:3101
#18 0xb7238313 in QLineEdit::textChanged (this=0x84e3a28, _t1=@0xbfa38264) at .moc/release-shared/moc_qlineedit.cpp:208
#19 0xb723e03d in QLineEditPrivate::finishChange (this=0x8a22308, validateFromState=-1, update=true, edited=false) at /home/kde-devel/kdesvn/qt-copy/src/gui/widgets/qlineedit.cpp:2877
#20 0xb723e2af in QLineEditPrivate::setText (this=0x8a22308, txt=@0xbfa38344, pos=11, edited=false) at /home/kde-devel/kdesvn/qt-copy/src/gui/widgets/qlineedit.cpp:2922
#21 0xb723e8ab in QLineEdit::setText (this=0x84e3a28, text=@0xbfa38344) at /home/kde-devel/kdesvn/qt-copy/src/gui/widgets/qlineedit.cpp:388
#22 0xb7ac47f7 in KLineEdit::setText (this=0x84e3a28, text=@0xbfa38344) at /home/kde-devel/kdesvn/kdelibs/kdeui/widgets/klineedit.cpp:530
#23 0xb48f8d95 in KateSearchBar::onMutateIncremental (this=0x8788108) at /home/kde-devel/kdesvn/kdelibs/kate/utils/katesearchbar.cpp:1777
#24 0xb488c587 in KateView::find (this=0x8a5f690) at /home/kde-devel/kdesvn/kdelibs/kate/view/kateview.cpp:1320
#25 0xb4894858 in KateView::qt_metacall (this=0x8a5f690, _c=QMetaObject::InvokeMetaMethod, _id=122, _a=0xbfa384ac) at /home/kde-devel/kdesvn/build/kdelibs/kate/kateview.moc:378
#26 0xb6d1385a in QMetaObject::activate (sender=0x8adfa70, from_signal_index=<value optimized out>, to_signal_index=6, argv=<value optimized out>)
    at /home/kde-devel/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:3028
#27 0xb6d13b60 in QMetaObject::activate (sender=0x8adfa70, m=0xb7500a38, from_local_signal_index=1, to_local_signal_index=2, argv=0xbfa384ac)
    at /home/kde-devel/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:3121
#28 0xb6ed7441 in QAction::triggered (this=0x8adfa70, _t1=false) at .moc/release-shared/moc_qaction.cpp:216
#29 0xb6ed83ff in QAction::activate (this=0x8adfa70, event=QAction::Trigger) at /home/kde-devel/kdesvn/qt-copy/src/gui/kernel/qaction.cpp:1125
#30 0xb6ed9d90 in QAction::event (this=0xbfa37dd4, e=0xbfa37db0) at /home/kde-devel/kdesvn/qt-copy/src/gui/kernel/qaction.cpp:1044
#31 0xb78e84b3 in KAction::event (this=0x8adfa70, event=0xbfa38904) at /home/kde-devel/kdesvn/kdelibs/kdeui/actions/kaction.cpp:88
#32 0xb6edd77f in QApplicationPrivate::notify_helper (this=0x805d008, receiver=0x8adfa70, e=0xbfa38904) at /home/kde-devel/kdesvn/qt-copy/src/gui/kernel/qapplication.cpp:3803
#33 0xb6ee4199 in QApplication::notify (this=0xbfa397ec, receiver=0x8adfa70, e=0xbfa38904) at /home/kde-devel/kdesvn/qt-copy/src/gui/kernel/qapplication.cpp:3393
#34 0xb79d893a in KApplication::notify (this=0xbfa397ec, receiver=0x8adfa70, event=0xbfa38904) at /home/kde-devel/kdesvn/kdelibs/kdeui/kernel/kapplication.cpp:307
#35 0xb6d03119 in QCoreApplication::notifyInternal (this=0xbfa397ec, receiver=0x8adfa70, event=0xbfa38904) at /home/kde-devel/kdesvn/qt-copy/src/corelib/kernel/qcoreapplication.cpp:583
#36 0xb6f0fd89 in QShortcutMap::dispatchEvent (this=0x805d0a4, e=0xbfa38cf4) at ../../include/QtCore/../../../../qt-copy/src/corelib/kernel/qcoreapplication.h:209
#37 0xb6f10b5f in QShortcutMap::tryShortcutEvent (this=0x805d0a4, w=0x8a5aee0, e=0xbfa38cf4) at /home/kde-devel/kdesvn/qt-copy/src/gui/kernel/qshortcutmap.cpp:362
#38 0xb6ee53cd in QApplication::notify (this=0xbfa397ec, receiver=0x8a5aee0, e=0xbfa38cf4) at /home/kde-devel/kdesvn/qt-copy/src/gui/kernel/qapplication.cpp:3430
#39 0xb79d893a in KApplication::notify (this=0xbfa397ec, receiver=0x8a5aee0, event=0xbfa38cf4) at /home/kde-devel/kdesvn/kdelibs/kdeui/kernel/kapplication.cpp:307
#40 0xb6d03119 in QCoreApplication::notifyInternal (this=0xbfa397ec, receiver=0x8a5aee0, event=0xbfa38cf4) at /home/kde-devel/kdesvn/qt-copy/src/corelib/kernel/qcoreapplication.cpp:583
#41 0xb6f32e8e in qt_sendSpontaneousEvent (receiver=0x8a5aee0, event=0xbfa37dd4) at ../../include/QtCore/../../../../qt-copy/src/corelib/kernel/qcoreapplication.h:212
#42 0xb6f6114f in QKeyMapper::sendKeyEvent (keyWidget=0x8a5aee0, grab=false, type=QEvent::KeyPress, code=70, modifiers=@0xbfa38e94, text=@0xbfa38e6c, autorepeat=false, count=1, nativeScanCode=41, 
    nativeVirtualKey=102, nativeModifiers=4) at /home/kde-devel/kdesvn/qt-copy/src/gui/kernel/qkeymapper_x11.cpp:1652
#43 0xb6f63814 in QKeyMapperPrivate::translateKeyEvent (this=0x807e4c0, keyWidget=0x8a5aee0, event=0xbfa39358, grab=false) at /home/kde-devel/kdesvn/qt-copy/src/gui/kernel/qkeymapper_x11.cpp:1623
#44 0xb6f3e4c7 in QApplication::x11ProcessEvent (this=0xbfa397ec, event=0xbfa39358) at /home/kde-devel/kdesvn/qt-copy/src/gui/kernel/qapplication_x11.cpp:3053
#45 0xb6f645a4 in x11EventSourceDispatch (s=0x80602e8, callback=0, user_data=0x0) at /home/kde-devel/kdesvn/qt-copy/src/gui/kernel/qguieventdispatcher_glib.cpp:142
#46 0xb660711c in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#47 0xb660a55f in ?? () from /usr/lib/libglib-2.0.so.0
#48 0x0805f640 in ?? ()
#49 0x00000000 in ?? ()
Comment 1 Dario Andres 2008-12-04 17:23:07 UTC
This may be related to bug 173197 (similar backtrace, KateViewInternal::cursorToCoordinate)
Comment 2 Dario Andres 2008-12-04 17:24:50 UTC
Also may be related to bug 171027
Comment 3 Dominik Haumann 2008-12-15 11:48:59 UTC
Pretty sure a duplicate of bug #171027.

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