Bug 267976 - Kate crashes when deleting a part of text
Summary: Kate crashes when deleting a part of text
Status: RESOLVED DUPLICATE of bug 247081
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-08 15:57 UTC by Oussama
Modified: 2011-03-08 19:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oussama 2011-03-08 15:57:35 UTC
Application: kate (3.5.1)
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-24-generic i686
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crashed:
I highlighted the text, with the mouse, from the end of the file up to the middle of that and then prssed Delete button on my keyboard. The text I removed was a commented VHDL code, the rest of the code is not commented. The file was opened by another program at the same time. The text file is about 400 lines.

 I reopened Kate and tried again to remove the code and it didn't crach (this time I used pressed shift together with the mouse to highlight the code).

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault
[Current thread is 1 (Thread 0xb7758930 (LWP 9792))]

Thread 3 (Thread 0xb74ecb70 (LWP 9793)):
#0  0x009367d4 in __pthread_mutex_unlock_usercnt () from /lib/libpthread.so.0
#1  0x00873fa6 in pthread_mutex_unlock () from /lib/libc.so.6
#2  0x00987ad8 in g_main_context_check () from /lib/libglib-2.0.so.0
#3  0x0098845e in ?? () from /lib/libglib-2.0.so.0
#4  0x00988ba7 in g_main_loop_run () from /lib/libglib-2.0.so.0
#5  0x01b5e6b4 in ?? () from /usr/lib/libgio-2.0.so.0
#6  0x009af48f in ?? () from /lib/libglib-2.0.so.0
#7  0x00932cc9 in start_thread () from /lib/libpthread.so.0
#8  0x0086669e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xb3b9eb70 (LWP 9796)):
#0  0x009367d4 in __pthread_mutex_unlock_usercnt () from /lib/libpthread.so.0
#1  0x00873fa6 in pthread_mutex_unlock () from /lib/libc.so.6
#2  0x00987b34 in g_main_context_check () from /lib/libglib-2.0.so.0
#3  0x0098845e in ?? () from /lib/libglib-2.0.so.0
#4  0x00988848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0x0063f59f in QEventDispatcherGlib::processEvents (this=0x88ef288, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#6  0x0060f609 in QEventLoop::processEvents (this=0xb3b9e290, flags=) at kernel/qeventloop.cpp:149
#7  0x0060fa8a in QEventLoop::exec (this=0xb3b9e290, flags=...) at kernel/qeventloop.cpp:201
#8  0x0050bb7e in QThread::exec (this=0x8743de0) at thread/qthread.cpp:490
#9  0x005ee35b in QInotifyFileSystemWatcherEngine::run (this=0x8743de0) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x0050edf9 in QThreadPrivate::start (arg=0x8743de0) at thread/qthread_unix.cpp:266
#11 0x00932cc9 in start_thread () from /lib/libpthread.so.0
#12 0x0086669e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb7758930 (LWP 9792)):
[KCrash Handler]
#7  KateLineLayout::viewLineCount (this=0x0) at ../../kate/render/katelinelayout.cpp:173
#8  0x03185a94 in KateLayoutCache::lastViewLine (this=0x879e820, realLine=384) at ../../kate/render/katelayoutcache.cpp:448
#9  0x031f3ffd in KateViewInternal::viewLineOffset (this=0x879fa80, virtualCursor=..., offset=56, keepX=false) at ../../kate/view/kateviewinternal.cpp:1351
#10 0x031f88b8 in KateViewInternal::makeVisible (this=0x879fa80, c=..., endCol=0, force=false, center=false, calledExternally=false) at ../../kate/view/kateviewinternal.cpp:663
#11 0x031fa0bc in KateViewInternal::updateCursor (this=0x879fa80, newCursor=..., force=true, center=false, calledExternally=<value optimized out>) at ../../kate/view/kateviewinternal.cpp:1907
#12 0x031fa39c in KateViewInternal::editEnd (this=0x879fa80, editTagLineStart=224, editTagLineEnd=224, tagFrom=true) at ../../kate/view/kateviewinternal.cpp:3385
#13 0x031d8689 in KateView::editEnd (this=0x879dc08, editTagLineStart=224, editTagLineEnd=224, tagFrom=<value optimized out>) at ../../kate/view/kateview.cpp:1590
#14 0x0313c5a4 in KateDocument::editEnd (this=0x8615060) at ../../kate/document/katedocument.cpp:872
#15 0x031e1c73 in KateView::removeSelectedText (this=0x879dc08) at ../../kate/view/kateview.cpp:1790
#16 0x031406eb in KateDocument::backspace (this=0x8615060, view=0x879dc08, c=...) at ../../kate/document/katedocument.cpp:2734
#17 0x031f5036 in KateViewInternal::doBackspace (this=0x879fa80) at ../../kate/view/kateviewinternal.cpp:846
#18 0x031db35d in KateView::backspace (this=0x879dc08) at ../../kate/view/kateview.cpp:2281
#19 0x031e25c0 in KateView::qt_metacall (this=0x879dc08, _c=QMetaObject::InvokeMetaMethod, _id=50, _a=0xbfefdf48) at ./kateview.moc:370
#20 0x006168ca in QMetaObject::metacall (object=0x879dc08, cl=QMetaObject::InvokeMetaMethod, idx=89, argv=0xbfefdf48) at kernel/qmetaobject.cpp:237
#21 0x006296ad in QMetaObject::activate (sender=0x88d2c18, m=0x1911370, local_signal_index=1, argv=0x0) at kernel/qobject.cpp:3280
#22 0x00f8af99 in QAction::triggered (this=0x88d2c18, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#23 0x00f8c8dc in QAction::activate (this=0x88d2c18, event=QAction::Trigger) at kernel/qaction.cpp:1256
#24 0x00f8eb68 in QAction::event (this=0x32c3a2c, e=0x0) at kernel/qaction.cpp:1182
#25 0x06e44fd3 in KAction::event (this=0x88d2c18, event=0xbfefe468) at ../../kdeui/actions/kaction.cpp:131
#26 0x00f92fdc in QApplicationPrivate::notify_helper (this=0x8437548, receiver=0x88d2c18, e=0xbfefe468) at kernel/qapplication.cpp:4396
#27 0x00f9904e in QApplication::notify (this=0xbfeff3ac, receiver=0x88d2c18, e=0xbfefe468) at kernel/qapplication.cpp:3798
#28 0x06f4768a in KApplication::notify (this=0xbfeff3ac, receiver=0x88d2c18, event=0xbfefe468) at ../../kdeui/kernel/kapplication.cpp:310
#29 0x00610b3b in QCoreApplication::notifyInternal (this=0xbfeff3ac, receiver=0x88d2c18, event=0xbfefe468) at kernel/qcoreapplication.cpp:732
#30 0x00fd476d in sendEvent (this=0x84375f4, e=0xbfefe8e4) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#31 QShortcutMap::dispatchEvent (this=0x84375f4, e=0xbfefe8e4) at kernel/qshortcutmap.cpp:879
#32 0x00fd659e in QShortcutMap::tryShortcutEvent (this=0x84375f4, o=0x879fa80, e=0xbfefe8e4) at kernel/qshortcutmap.cpp:364
#33 0x00f9ac52 in QApplication::notify (this=0xbfeff3ac, receiver=0x879fa80, e=0xbfefe8e4) at kernel/qapplication.cpp:3840
#34 0x06f4768a in KApplication::notify (this=0xbfeff3ac, receiver=0x879fa80, event=0xbfefe8e4) at ../../kdeui/kernel/kapplication.cpp:310
#35 0x00610b3b in QCoreApplication::notifyInternal (this=0xbfeff3ac, receiver=0x879fa80, event=0xbfefe8e4) at kernel/qcoreapplication.cpp:732
#36 0x00f92b9e in sendSpontaneousEvent (receiver=0x879fa80, event=0x32c3a2c) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#37 qt_sendSpontaneousEvent (receiver=0x879fa80, event=0x32c3a2c) at kernel/qapplication.cpp:5388
#38 0x0104f69d in QKeyMapper::sendKeyEvent (keyWidget=0x879fa80, grab=false, type=QEvent::KeyPress, code=16777219, modifiers=..., text=..., autorepeat=<value optimized out>, count=<value optimized out>, nativeScanCode=22, nativeVirtualKey=65288, nativeModifiers=16) at kernel/qkeymapper_x11.cpp:1867
#39 0x01051b49 in QKeyMapperPrivate::translateKeyEvent (this=0x845dde0, keyWidget=0x879fa80, event=0xbfefefac, grab=false) at kernel/qkeymapper_x11.cpp:1837
#40 0x01025387 in QApplication::x11ProcessEvent (this=0xbfeff3ac, event=0xbfefefac) at kernel/qapplication_x11.cpp:3429
#41 0x0105536a in x11EventSourceDispatch (s=0x843a8a8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#42 0x00984855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#43 0x00988668 in ?? () from /lib/libglib-2.0.so.0
#44 0x00988848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#45 0x0063f565 in QEventDispatcherGlib::processEvents (this=0x8418b40, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#46 0x01054be5 in QGuiEventDispatcherGlib::processEvents (this=0x8418b40, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#47 0x0060f609 in QEventLoop::processEvents (this=0xbfeff2a4, flags=) at kernel/qeventloop.cpp:149
#48 0x0060fa8a in QEventLoop::exec (this=0xbfeff2a4, flags=...) at kernel/qeventloop.cpp:201
#49 0x0061400f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#50 0x00f91e07 in QApplication::exec () at kernel/qapplication.cpp:3672
#51 0x00e157b7 in kdemain () from /usr/lib/kde4/libkdeinit/libkdeinit4_kate.so
#52 0x0804859b in _start ()

This bug may be a duplicate of or related to bug 237966.

Possible duplicates by query: bug 262427, bug 254701, bug 252284, bug 249861, bug 249826.

Reported using DrKonqi
Comment 1 Dario Andres 2011-03-08 19:18:27 UTC
[Comment from a bug triager]
This issue is being tracked at bug 247081.
Merging. Thanks

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