Bug 163942 - crashed when replace using RegExp
Summary: crashed when replace using RegExp
Status: RESOLVED DUPLICATE of bug 161113
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-13 07:06 UTC by Zhang Junbo
Modified: 2008-06-13 08:39 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 Zhang Junbo 2008-06-13 07:06:16 UTC
Version:            (using KDE 4.0.80)
Installed from:    Ubuntu Packages

copy the complete text in below brace into kwrite(includes all spaces and tabs, and not include the brace)
{
ooobasis-dev3.0-base               ooobasis-dev3.0-graphicfilter
ooobasis-dev3.0-calc               ooobasis-dev3.0-headless     
ooobasis-dev3.0-core01             ooobasis-dev3.0-images       
ooobasis-dev3.0-core02             ooobasis-dev3.0-impress      
ooobasis-dev3.0-core03             ooobasis-dev3.0-javafilter   
ooobasis-dev3.0-core04             ooobasis-dev3.0-kde-integration
ooobasis-dev3.0-core05             ooobasis-dev3.0-math           
ooobasis-dev3.0-core06             ooobasis-dev3.0-onlineupdate   
ooobasis-dev3.0-core07             ooobasis-dev3.0-ooofonts       
ooobasis-dev3.0-core08             ooobasis-dev3.0-ooolinguistic  
ooobasis-dev3.0-draw               ooobasis-dev3.0-pyuno          
ooobasis-dev3.0-emailmerge         ooobasis-dev3.0-testtool       
ooobasis-dev3.0-en-us              ooobasis-dev3.0-writer         
ooobasis-dev3.0-en-us-base         ooobasis-dev3.0-xsltfilter     
ooobasis-dev3.0-en-us-calc         ooo-dev3                       
ooobasis-dev3.0-en-us-draw         ooo-dev3-base                  
ooobasis-dev3.0-en-us-help         ooo-dev3-calc                  
ooobasis-dev3.0-en-us-impress      ooo-dev3-draw                  
ooobasis-dev3.0-en-us-math         ooo-dev3-en-us                 
ooobasis-dev3.0-en-us-onlineupd    ooo-dev3-impress               
ooobasis-dev3.0-en-us-res          ooo-dev3-math                  
ooobasis-dev3.0-en-us-writer       ooo-dev3-writer                
ooobasis-dev3.0-gnome-integration  ooodev-ure     
}

Choose replace "\n" as RegExp into a space, once I click the button "replace all", the kwrite would crash.
Comment 1 Christophe Marin 2008-06-13 08:34:07 UTC
BT :

Application: KWrite (kwrite), signal SIGABRT
[Thread debugging using libthread_db enabled]
[New Thread 0xb627d720 (LWP 13286)]
[KCrash handler]
#6  0xb7f9a430 in __kernel_vsyscall ()
#7  0xb66335e0 in raise () from /lib/i686/cmov/libc.so.6
#8  0xb6634fb8 in abort () from /lib/i686/cmov/libc.so.6
#9  0xb74737f3 in qt_message_output (msgType=QtFatalMsg, 
    buf=0xbfcb1710 "ASSERT: \"m_textLine\" in file /media/kde/src/KDE/kdelibs/kate/render/katelinelayout.cpp, line 68") at global/qglobal.cpp:2058
#10 0xb7473857 in qFatal (msg=0xb75bf518 "ASSERT: \"%s\" in file %s, line %d")
    at global/qglobal.cpp:2260
#11 0xb7473c79 in qt_assert (assertion=0xb471c12d "m_textLine", 
    file=0xb471c16c "/media/kde/src/KDE/kdelibs/kate/render/katelinelayout.cpp", line=68) at global/qglobal.cpp:1828
#12 0xb4673456 in KateLineLayout::textLine (this=0x978ebc0)
    at /media/kde/src/KDE/kdelibs/kate/render/katelinelayout.cpp:68
#13 0xb46734bf in KateLineLayout::isValid (this=0x978ebc0)
    at /media/kde/src/KDE/kdelibs/kate/render/katelinelayout.cpp:120
#14 0xb4672099 in KateTextLayout::isValid (this=0x9796ca0)
    at /media/kde/src/KDE/kdelibs/kate/render/katetextlayout.cpp:90
#15 0xb46724f2 in KateTextLayout::line (this=0x9796ca0)
    at /media/kde/src/KDE/kdelibs/kate/render/katetextlayout.cpp:95
#16 0xb467035a in KateLayoutCache::updateViewCache (this=0x9478570, 
    startPos=@0x948076c, newViewLineCount=37, viewLinesScrolled=0)
    at /media/kde/src/KDE/kdelibs/kate/render/katelayoutcache.cpp:132
#17 0xb46b25fa in KateViewInternal::tagLines (this=0x9480680, start=
      {_vptr.Cursor = 0xbfcb399c, m_line = -1077200500, m_column = 1, m_range = 0x0}, end=
      {_vptr.Cursor = 0xbfcb398c, m_line = 1, m_column = 0, m_range = 0x9382948}, realCursors=true)
    at /media/kde/src/KDE/kdelibs/kate/view/kateviewinternal.cpp:1951
#18 0xb46b2b10 in KateViewInternal::tagLines (this=0x9480680, start=0, end=1, 
    realLines=<value optimized out>)
    at /media/kde/src/KDE/kdelibs/kate/view/kateviewinternal.cpp:1920
#19 0xb46a45a9 in KateView::tagLines (this=0x947f788, start=0, end=1, 
    realLines=<value optimized out>)
    at /media/kde/src/KDE/kdelibs/kate/view/kateview.cpp:1352
#20 0xb462deda in KateDocument::tagLines (this=0x9382948, start=0, end=1)
    at /media/kde/src/KDE/kdelibs/kate/document/katedocument.cpp:4943
#21 0xb4642cf7 in KateDocument::qt_metacall (this=0x9382948, 
    _c=QMetaObject::InvokeMetaMethod, _id=52, _a=0xbfcb3b78)
    at /media/kde/build/KDE/kdelibs/kate/katedocument.moc:307
#22 0xb758086c in QMetaObject::activate (sender=0x947ea58, 
    from_signal_index=5, to_signal_index=5, argv=0xbfcb3b78)
    at kernel/qobject.cpp:3007
#23 0xb7580cf9 in QMetaObject::activate (sender=0x947ea58, m=0xb472d458, 
    local_signal_index=1, argv=0xbfcb3b78) at kernel/qobject.cpp:3080
#24 0xb464e9b9 in KateBuffer::tagLines (this=0x947ea58, _t1=0, _t2=1)
    at /media/kde/build/KDE/kdelibs/kate/katebuffer.moc:85
#25 0xb464fc2d in KateBuffer::doHighlight (this=0x947ea58, startLine=0, 
    endLine=1, invalidate=true)
    at /media/kde/src/KDE/kdelibs/kate/document/katebuffer.cpp:1042
#26 0xb464fe66 in KateBuffer::editEnd (this=0x947ea58)
    at /media/kde/src/KDE/kdelibs/kate/document/katebuffer.cpp:352
#27 0xb4639cc2 in KateDocument::editEnd (this=0x9382948)
    at /media/kde/src/KDE/kdelibs/kate/document/katedocument.cpp:1088
#28 0xb46d18ba in KateSearchBar::onForAll (this=0x981a810, 
    pattern=@0xbfcb3ed8, inputRange=
      {_vptr.Range = 0xbfcb3ea8, m_start = 0xbfcb3ecc, m_end = 0xbfcb3ed4}, 
    enabledOptions={i = -1077199156}, replacement=0xbfcb3ed4)
    at /media/kde/src/KDE/kdelibs/kate/utils/katesearchbar.cpp:999
#29 0xb46d1ac8 in KateSearchBar::onPowerReplaceAll (this=0x981a810)
    at /media/kde/src/KDE/kdelibs/kate/utils/katesearchbar.cpp:1053
#30 0xb46d3a20 in KateSearchBar::qt_metacall (this=0x981a810, 
    _c=QMetaObject::InvokeMetaMethod, _id=20, _a=0xbfcb402c)
    at /media/kde/build/KDE/kdelibs/kate/katesearchbar.moc:155
#31 0xb758086c in QMetaObject::activate (sender=0x981fc40, 
    from_signal_index=29, to_signal_index=30, argv=0xbfcb402c)
    at kernel/qobject.cpp:3007
#32 0xb7580a84 in QMetaObject::activate (sender=0x981fc40, m=0xb70be5e4, 
    from_local_signal_index=2, to_local_signal_index=3, argv=0xbfcb402c)
    at kernel/qobject.cpp:3100
#33 0xb6fe0a70 in QAbstractButton::clicked (this=0x981fc40, _t1=false)
    at .moc/debug-shared/moc_qabstractbutton.cpp:185
#34 0xb6d430ae in QAbstractButtonPrivate::emitClicked (this=0x981fc60)
    at widgets/qabstractbutton.cpp:543
#35 0xb6d44296 in QAbstractButtonPrivate::click (this=0x981fc60)
    at widgets/qabstractbutton.cpp:536
#36 0xb6d44542 in QAbstractButton::mouseReleaseEvent (this=0x981fc40, 
    e=0xbfcb47b4) at widgets/qabstractbutton.cpp:1112
#37 0xb6a323c4 in QWidget::event (this=0x981fc40, event=0xbfcb47b4)
    at kernel/qwidget.cpp:6927
#38 0xb6d43049 in QAbstractButton::event (this=0x981fc40, e=0xbfcb47b4)
    at widgets/qabstractbutton.cpp:1074
#39 0xb6df2191 in QPushButton::event (this=0x981fc40, e=0xbfcb47b4)
    at widgets/qpushbutton.cpp:658
#40 0xb69d6269 in QApplicationPrivate::notify_helper (this=0x9265da8, 
    receiver=0x981fc40, e=0xbfcb47b4) at kernel/qapplication.cpp:3772
#41 0xb69d6de7 in QApplication::notify (this=0xbfcb5130, receiver=0x981fc40, 
    e=0xbfcb47b4) at kernel/qapplication.cpp:3501
#42 0xb7b91801 in KApplication::notify (this=0xbfcb5130, receiver=0x981fc40, 
    event=0xbfcb47b4)
    at /media/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:311
#43 0xb756c26b in QCoreApplication::notifyInternal (this=0xbfcb5130, 
    receiver=0x981fc40, event=0xbfcb47b4) at kernel/qcoreapplication.cpp:583
#44 0xb69e20a3 in QCoreApplication::sendSpontaneousEvent (receiver=0x981fc40, 
    event=0xbfcb47b4)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#45 0xb69dabb0 in QApplicationPrivate::sendMouseEvent (receiver=0x981fc40, 
    event=0xbfcb47b4, alienWidget=0x981fc40, nativeWidget=0x9306258, 
    buttonDown=0xb70cbc20, lastMouseReceiver=@0xb70cbc24)
    at kernel/qapplication.cpp:2766
#46 0xb6a507d2 in QETWidget::translateMouseEvent (this=0x9306258, 
    event=0xbfcb4ca0) at kernel/qapplication_x11.cpp:4133
#47 0xb6a514f7 in QApplication::x11ProcessEvent (this=0xbfcb5130, 
    event=0xbfcb4ca0) at kernel/qapplication_x11.cpp:3133
#48 0xb6a7a8de in x11EventSourceDispatch (s=0x9268cf8, callback=0, 
    user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#49 0xb6393978 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#50 0xb6396bce in ?? () from /usr/lib/libglib-2.0.so.0
#51 0x09268040 in ?? ()
#52 0x00000000 in ?? ()
#0  0xb7f9a430 in __kernel_vsyscall ()
Comment 2 Christophe Marin 2008-06-13 08:39:19 UTC

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