Bug 242511 - Kate crashes with regex search/replace
Summary: Kate crashes with regex search/replace
Status: RESOLVED DUPLICATE of bug 242801
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: 2010-06-22 19:26 UTC by Jesse Sweetland
Modified: 2010-06-26 10:16 UTC (History)
0 users

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 Jesse Sweetland 2010-06-22 19:26:18 UTC
Application: kate (3.4.4)
KDE Platform Version: 4.4.4 (KDE 4.4.4)
Qt Version: 4.6.3
Operating System: Linux 2.6.32-22-generic x86_64
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
Editing a text file with .csv extension.  Text file has 2280 lines in the format:

FOO
FOO,BAR

There are also some blank lines.  I entered the following search/replace expression to remove the "FOO" lines

Search: [A-Z0-9\-]+\n
Replace: <blank>

Every time I do this Kate crashes.  I am using SC 4.4 from the Kubuntu PPA (10.04 LTS).  This may be related to bu 226409, but none of the reports I saw for that ticket mentioned regular expressions or search/replace. (And I have no way of knowing whether the backported patch for 226409 has made it to the Kubuntu PPA.)  Apologies for the duplicate if this is the case.




The crash can be reproduced every time.

 -- Backtrace:
Application: Kate (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f1b72268760 (LWP 16908))]

Thread 2 (Thread 0x7f1b5f166710 (LWP 16909)):
#0  0x00007f1b6f256fb3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f1b7085693e in qt_safe_select (nfds=15, fdread=0x1822310, fdwrite=0x18225a8, fdexcept=0x1822840, orig_timeout=0x0) at kernel/qcore_unix.cpp:143
#2  0x00007f1b7085bf1d in QEventDispatcherUNIXPrivate::doSelect (this=0x1822150, flags=<value optimized out>, timeout=<value optimized out>) at kernel/qeventdispatcher_unix.cpp:218
#3  0x00007f1b7085cd0b in QEventDispatcherUNIX::processEvents (this=0x14e9c40, flags=) at kernel/qeventdispatcher_unix.cpp:920
#4  0x00007f1b7082e6c2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f1b7082ea9c in QEventLoop::exec (this=0x7f1b5f165db0, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f1b7073d8db in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007f1b7080edd8 in QInotifyFileSystemWatcherEngine::run (this=0x12e6c60) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f1b7073ff95 in QThreadPrivate::start (arg=0x12e6c60) at thread/qthread_unix.cpp:248
#9  0x00007f1b704af9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007f1b6f25e6cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f1b72268760 (LWP 16908)):
[KCrash Handler]
#5  KateLineLayout::viewLineCount (this=0x0) at ../../kate/render/katelinelayout.cpp:173
#6  0x00007f1b62e9eeda in KateLayoutCache::viewLine (this=0x15a3c60, realCursor=...) at ../../kate/render/katelayoutcache.cpp:395
#7  0x00007f1b62e9f4d1 in KateLayoutCache::textLayout (this=0x15a3c60, realCursor=...) at ../../kate/render/katelayoutcache.cpp:337
#8  0x00007f1b62f04a1f in KateViewInternal::makeVisible (this=0x159f960, c=<value optimized out>, endCol=<value optimized out>, force=false, center=<value optimized out>, 
    calledExternally=<value optimized out>) at ../../kate/view/kateviewinternal.cpp:691
#9  0x00007f1b62f050d9 in KateViewInternal::updateCursor (this=0x159f960, newCursor=<value optimized out>, force=<value optimized out>, center=false, calledExternally=<value optimized out>)
    at ../../kate/view/kateviewinternal.cpp:1915
#10 0x00007f1b62f051a9 in KateViewInternal::editEnd (this=0x159f960, editTagLineStart=<value optimized out>, editTagLineEnd=<value optimized out>, tagFrom=<value optimized out>)
    at ../../kate/view/kateviewinternal.cpp:3400
#11 0x00007f1b62e5dd71 in KateDocument::editEnd (this=0x12b07c0) at ../../kate/document/katedocument.cpp:981
#12 0x00007f1b62ea851e in KateSearchBar::findAll (this=0x1d59f80, inputRange=<value optimized out>, replacement=<value optimized out>) at ../../kate/search/katesearchbar.cpp:999
#13 0x00007f1b62ea8abb in KateSearchBar::onPowerReplaceAll (this=0x1d59f80) at ../../kate/search/katesearchbar.cpp:1030
#14 0x00007f1b62eb0ee3 in KateSearchBar::qt_metacall (this=0x1d59f80, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffae41ecb0) at ./katesearchbar.moc:124
#15 0x00007f1b70843036 in QMetaObject::activate (sender=0x1d7c530, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3295
#16 0x00007f1b7006acf2 in QAbstractButton::clicked (this=0x0, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#17 0x00007f1b6fd8375b in QAbstractButtonPrivate::emitClicked (this=0x1d7c920) at widgets/qabstractbutton.cpp:546
#18 0x00007f1b6fd845fb in QAbstractButtonPrivate::click (this=0x1d7c920) at widgets/qabstractbutton.cpp:539
#19 0x00007f1b6fd8486c in QAbstractButton::mouseReleaseEvent (this=0x1d7c530, e=0x7fffae41f600) at widgets/qabstractbutton.cpp:1121
#20 0x00007f1b6fa22f12 in QWidget::event (this=0x1d7c530, event=0x7fffae41f600) at kernel/qwidget.cpp:8044
#21 0x00007f1b6f9ccc0c in QApplicationPrivate::notify_helper (this=0x1104a40, receiver=0x1d7c530, e=0x7fffae41f600) at kernel/qapplication.cpp:4302
#22 0x00007f1b6f9d38bb in QApplication::notify (this=0x7fffae4201f0, receiver=0x1d7c530, e=0x7fffae41f600) at kernel/qapplication.cpp:3867
#23 0x00007f1b70d78606 in KApplication::notify (this=0x7fffae4201f0, receiver=0x1d7c530, event=0x7fffae41f600) at ../../kdeui/kernel/kapplication.cpp:302
#24 0x00007f1b7082fd9c in QCoreApplication::notifyInternal (this=0x7fffae4201f0, receiver=0x1d7c530, event=0x7fffae41f600) at kernel/qcoreapplication.cpp:726
#25 0x00007f1b6f9d2a9e in QCoreApplication::sendEvent (receiver=0x1d7c530, event=0x7fffae41f600, alienWidget=0x1d7c530, nativeWidget=0x1d59f80, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#26 QApplicationPrivate::sendMouseEvent (receiver=0x1d7c530, event=0x7fffae41f600, alienWidget=0x1d7c530, nativeWidget=0x1d59f80, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at kernel/qapplication.cpp:2967
#27 0x00007f1b6fa52ba5 in QETWidget::translateMouseEvent (this=0x1d59f80, event=<value optimized out>) at kernel/qapplication_x11.cpp:4380
#28 0x00007f1b6fa514ec in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fffae41ff30) at kernel/qapplication_x11.cpp:3513
#29 0x00007f1b6fa7deb9 in QEventDispatcherX11::processEvents (this=<value optimized out>, flags=) at kernel/qeventdispatcher_x11.cpp:132
#30 0x00007f1b7082e6c2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#31 0x00007f1b7082ea9c in QEventLoop::exec (this=0x7fffae4200b0, flags=) at kernel/qeventloop.cpp:201
#32 0x00007f1b7083373b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#33 0x00007f1b65e54eed in kdemain () from /usr/lib/libkdeinit4_kate.so
#34 0x00000000004070f3 in launch (argc=2, _name=<value optimized out>, args=<value optimized out>, cwd=<value optimized out>, envc=16, envs=<value optimized out>, reset_env=false, tty=0x0, 
    avoid_loops=false, startup_id_str=0x10d3756 "sweetland1;1277227121;365237;1787_TIME216542823") at ../../kinit/kinit.cpp:717
#35 0x0000000000407cb0 in handle_launcher_request (sock=8, who=<value optimized out>) at ../../kinit/kinit.cpp:1209
#36 0x000000000040823a in handle_requests (waitForPid=0) at ../../kinit/kinit.cpp:1402
#37 0x0000000000408e22 in main (argc=4, argv=<value optimized out>, envp=<value optimized out>) at ../../kinit/kinit.cpp:1845

Possible duplicates by query: bug 242205, bug 241992, bug 241213, bug 238292, bug 237002.

Reported using DrKonqi
Comment 1 Dominik Haumann 2010-06-22 23:31:44 UTC
Hm. This is the same backtrace as in bug #226409, which iirc should be fixed for KDE 4.4.4.

@Christoph: Seems the smart group handling is still broken, or?
Comment 2 Dominik Haumann 2010-06-26 10:16:50 UTC

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