Bug 252520

Summary: kwrite crash on search and replace with regexp
Product: [Applications] kate Reporter: Bruno <webmaster>
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Bruno 2010-09-27 10:29:51 UTC
Application: kwrite (4.4.4 (KDE 4.4.4) "release 2")
KDE Platform Version: 4.4.4 (KDE 4.4.4) "release 2"
Qt Version: 4.6.3
Operating System: Linux 2.6.34.7-0.2-default x86_64
Distribution: "openSUSE 11.3 (x86_64)"

-- Information about the crash:
I was creating a hosts file from a csv.

1: Replaced all ',' with '\t';

2: I needed to prefix 'SWSOS' to beggining of each line and did a replace '\n' with '\nSWSOS', pressed replace and kwrite crashed.

Reopened the file and did the same procedure and there was no further crash. Additionally i had done the same procedure with another file, some minutes before, and worked without crashing as well.

The crash does not seem to be reproducible.

 -- Backtrace:
Application: KWrite (kdeinit4), signal: Segmentation fault
[KCrash Handler]
#5  KateLineLayout::viewLineCount (this=0x0) at /usr/src/debug/kdelibs-4.4.4/kate/render/katelinelayout.cpp:173
#6  0x00007f80b1745a29 in KateLayoutCache::viewLine (this=0x12fad90, realCursor=...) at /usr/src/debug/kdelibs-4.4.4/kate/render/katelayoutcache.cpp:395
#7  0x00007f80b179a791 in KateViewInternal::viewLineOffset (this=0x14c26f0, virtualCursor=..., offset=28, keepX=false) at /usr/src/debug/kdelibs-4.4.4/kate/view/kateviewinternal.cpp:1352
#8  0x00007f80b179d0cc in KateViewInternal::makeVisible (this=0x14c26f0, c=..., endCol=0, force=false, center=<value optimized out>, calledExternally=false)
    at /usr/src/debug/kdelibs-4.4.4/kate/view/kateviewinternal.cpp:667
#9  0x00007f80b17a1321 in KateViewInternal::updateCursor (this=0x14c26f0, newCursor=<value optimized out>, force=<value optimized out>, center=false, calledExternally=false)
    at /usr/src/debug/kdelibs-4.4.4/kate/view/kateviewinternal.cpp:1915
#10 0x00007f80b17a13f9 in KateViewInternal::editEnd (this=0x14c26f0, editTagLineStart=<value optimized out>, editTagLineEnd=<value optimized out>, tagFrom=<value optimized out>)
    at /usr/src/debug/kdelibs-4.4.4/kate/view/kateviewinternal.cpp:3400
#11 0x00007f80b1711f21 in KateDocument::editEnd (this=0x1434850) at /usr/src/debug/kdelibs-4.4.4/kate/document/katedocument.cpp:981
#12 0x00007f80b17515a1 in KateSearchBar::findAll (this=0x1362c90, inputRange=..., replacement=0x7fff41e3b4d0) at /usr/src/debug/kdelibs-4.4.4/kate/search/katesearchbar.cpp:999
#13 0x00007f80b1751a39 in KateSearchBar::onPowerReplaceAll (this=0x1362c90) at /usr/src/debug/kdelibs-4.4.4/kate/search/katesearchbar.cpp:1030
#14 0x00007f80b1757243 in KateSearchBar::qt_metacall (this=0x1362c90, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff41e3b630)
    at /usr/src/debug/kdelibs-4.4.4/build/kate/katesearchbar.moc:124
#15 0x00007f80c0404a1f in QMetaObject::activate (sender=0x15dc170, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff41e3b630) at kernel/qobject.cpp:3295
#16 0x00007f80bfc1b082 in QAbstractButton::clicked (this=<value optimized out>, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#17 0x00007f80bf96668b in QAbstractButtonPrivate::emitClicked (this=0x15dc550) at widgets/qabstractbutton.cpp:546
#18 0x00007f80bf967a3b in QAbstractButtonPrivate::click (this=0x15dc550) at widgets/qabstractbutton.cpp:539
#19 0x00007f80bf967cac in QAbstractButton::mouseReleaseEvent (this=0x15dc170, e=0x7fff41e3bfb0) at widgets/qabstractbutton.cpp:1121
#20 0x00007f80bf615dbc in QWidget::event (this=0x15dc170, event=0x7fff41e3bfb0) at kernel/qwidget.cpp:8044
#21 0x00007f80bf5c54d4 in QApplicationPrivate::notify_helper (this=0x679640, receiver=0x15dc170, e=0x7fff41e3bfb0) at kernel/qapplication.cpp:4302
#22 0x00007f80bf5ce34a in QApplication::notify (this=<value optimized out>, receiver=0x15dc170, e=0x7fff41e3bfb0) at kernel/qapplication.cpp:3867
#23 0x00007f80c087cc06 in KApplication::notify (this=0x7fff41e3cce0, receiver=0x15dc170, event=0x7fff41e3bfb0) at /usr/src/debug/kdelibs-4.4.4/kdeui/kernel/kapplication.cpp:302
#24 0x00007f80c03f0e4c in QCoreApplication::notifyInternal (this=0x7fff41e3cce0, receiver=0x15dc170, event=0x7fff41e3bfb0) at kernel/qcoreapplication.cpp:726
#25 0x00007f80bf5c71e5 in sendEvent (receiver=0x15dc170, event=0x7fff41e3bfb0, alienWidget=0x15dc170, nativeWidget=0x1362c90, buttonDown=0x7f80c0071b28, lastMouseReceiver=..., spontaneous=true)
    at ../../src/corelib/kernel/qcoreapplication.h:215
#26 QApplicationPrivate::sendMouseEvent (receiver=0x15dc170, event=0x7fff41e3bfb0, alienWidget=0x15dc170, nativeWidget=0x1362c90, buttonDown=0x7f80c0071b28, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:2967
#27 0x00007f80bf6416c8 in QETWidget::translateMouseEvent (this=0x1362c90, event=<value optimized out>) at kernel/qapplication_x11.cpp:4380
#28 0x00007f80bf63fe19 in QApplication::x11ProcessEvent (this=0x7fff41e3cce0, event=0x7fff41e3c910) at kernel/qapplication_x11.cpp:3513
#29 0x00007f80bf666492 in x11EventSourceDispatch (s=0x67d2b0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#30 0x00007f80bb669a93 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#31 0x00007f80bb66a270 in ?? () from /usr/lib64/libglib-2.0.so.0
#32 0x00007f80bb66a510 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#33 0x00007f80c041967f in QEventDispatcherGlib::processEvents (this=0x61b8e0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#34 0x00007f80bf66614e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#35 0x00007f80c03f0292 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#36 0x00007f80c03f0495 in QEventLoop::exec (this=0x7fff41e3cc30, flags=...) at kernel/qeventloop.cpp:201
#37 0x00007f80c03f488b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#38 0x00007f80b3836f0d in kdemain (argc=1, argv=0x661d40) at /usr/src/debug/kdebase-4.4.4/apps/kwrite/kwritemain.cpp:691
#39 0x0000000000407659 in launch (argc=1, _name=0x661348 "/usr/bin/kwrite", args=<value optimized out>, cwd=0x0, envc=<value optimized out>, envs=<value optimized out>, reset_env=false, tty=0x0, 
    avoid_loops=false, startup_id_str=0x661375 "BMIGUEL.LIT;1285574445;817399;4342_TIME1890694") at /usr/src/debug/kdelibs-4.4.4/kinit/kinit.cpp:718
#40 0x0000000000408175 in handle_launcher_request (sock=8, who=<value optimized out>) at /usr/src/debug/kdelibs-4.4.4/kinit/kinit.cpp:1210
#41 0x00000000004088ea in handle_requests (waitForPid=<value optimized out>) at /usr/src/debug/kdelibs-4.4.4/kinit/kinit.cpp:1403
#42 0x000000000040953e in main (argc=4, argv=0x7fff41e3e838, envp=0x7fff41e3e860) at /usr/src/debug/kdelibs-4.4.4/kinit/kinit.cpp:1882

Possible duplicates by query: bug 238887, bug 238394, bug 235046, bug 234364, bug 234335.

Reported using DrKonqi
Comment 1 Milian Wolff 2010-10-21 20:00:02 UTC

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