Bug 263686 - Kate crashes intermittently when replacing text containing line feeds
Summary: Kate crashes intermittently when replacing text containing line feeds
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: triaged
: 272993 287739 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-01-19 21:01 UTC by Aaron Winborn
Modified: 2018-10-27 03:44 UTC (History)
4 users (show)

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 Aaron Winborn 2011-01-19 21:01:49 UTC
Application: kate (3.4.5)
KDE Platform Version: 4.4.5 (KDE 4.4.5) (Compiled from sources)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-27-generic i686
Distribution: Ubuntu 10.04.1 LTS

-- Information about the crash:
I pasted the results of an svn st, such as the following:

?      devel.drush.inc
!      ui.mouse.js
!      devel_themer.module
!      devel_themer.css
!      generate/generate-og2list-mail.php
!      generate/generate-og-users.php
?      krumo/skins/CVS/Entries.Log
!      devel_themer.info
!      ui.draggable.js
?      performance/CVS/Entries.Log
!      loader-little.gif
!      devel_themer.install
!      themer-bar.png
!      devel_themer_ie_fix.css
!      devel_themer.js

Then I did a search and replace to replace all line feeds + ! with a space. It crashed 2 times consecutively before succeeding the third.

The crash can be reproduced some of the time.

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

Thread 2 (Thread 0xb4f24b70 (LWP 21231)):
#0  0x0068ae16 in *__GI_clock_gettime (clock_id=6877172, tp=0xb4f23fb8) at ../sysdeps/unix/clock_gettime.c:100
#1  0x005716fb in qt_gettime () at kernel/qcore_unix.cpp:111
#2  0x00576825 in QTimerInfoList::updateCurrentTime (this=0x9ad45f4) at kernel/qeventdispatcher_unix.cpp:340
#3  0x0057686a in QTimerInfoList::timerWait (this=0x9ad45f4, tm=...) at kernel/qeventdispatcher_unix.cpp:443
#4  0x00574818 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xb4f240cc) at kernel/qeventdispatcher_glib.cpp:136
#5  0x005748a5 in timerSourcePrepare (source=0x0, timeout=0x68eff4) at kernel/qeventdispatcher_glib.cpp:169
#6  0x0654daca in g_main_context_prepare () from /lib/libglib-2.0.so.0
#7  0x0654dee9 in ?? () from /lib/libglib-2.0.so.0
#8  0x0654e4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#9  0x0057460f in QEventDispatcherGlib::processEvents (this=0x98976b0, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#10 0x00547059 in QEventLoop::processEvents (this=0xb4f24290, flags=) at kernel/qeventloop.cpp:149
#11 0x005474aa in QEventLoop::exec (this=0xb4f24290, flags=...) at kernel/qeventloop.cpp:201
#12 0x004435a8 in QThread::exec (this=0x9ac92f8) at thread/qthread.cpp:487
#13 0x00526c1b in QInotifyFileSystemWatcherEngine::run (this=0x9ac92f8) at io/qfilesystemwatcher_inotify.cpp:248
#14 0x0044632e in QThreadPrivate::start (arg=0x9ac92f8) at thread/qthread_unix.cpp:248
#15 0x0030896e in start_thread (arg=0xb4f24b70) at pthread_create.c:300
#16 0x00adca4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb7884aa0 (LWP 21229)):
[KCrash Handler]
#5  QTextLine::cursorToX (this=0xbf929148, cursorPos=0xbf9290ac, edge=QTextLine::Leading) at text/qtextlayout.cpp:2280
#6  0x01957045 in QTextLine::cursorToX (this=0x9817478, range=..., pos=...) at /usr/include/qt4/QtGui/qtextlayout.h:218
#7  KateRenderer::cursorToX (this=0x9817478, range=..., pos=...) at ../../kate/render/katerenderer.cpp:948
#8  0x0195738a in KateRenderer::cursorToX (this=0x9817478, range=..., pos=..., returnPastLine=false) at ../../kate/render/katerenderer.cpp:953
#9  0x019d2f76 in KateViewInternal::makeVisible (this=0xa3fe978, c=..., endCol=0, force=false, center=false, calledExternally=false) at ../../kate/view/kateviewinternal.cpp:691
#10 0x019d36a0 in KateViewInternal::updateCursor (this=0xa3fe978, newCursor=..., force=true, center=<value optimized out>, calledExternally=<value optimized out>)
    at ../../kate/view/kateviewinternal.cpp:1915
#11 0x019d379b in KateViewInternal::editEnd (this=0xa3fe978, editTagLineStart=2, editTagLineEnd=2, tagFrom=true) at ../../kate/view/kateviewinternal.cpp:3400
#12 0x019b2d19 in KateView::editEnd (this=0xa4a9458, editTagLineStart=2, editTagLineEnd=2, tagFrom=<value optimized out>) at ../../kate/view/kateview.cpp:1602
#13 0x0191ab54 in KateDocument::editEnd (this=0xa023868) at ../../kate/document/katedocument.cpp:981
#14 0x0196bb5f in KateSearchBar::findAll (this=0xa847d90, inputRange=..., replacement=0xbf92948c) at ../../kate/search/katesearchbar.cpp:999
#15 0x0196c0de in KateSearchBar::onPowerReplaceAll (this=0xa847d90) at ../../kate/search/katesearchbar.cpp:1030
#16 0x019751d1 in KateSearchBar::qt_metacall (this=0xa847d90, _c=QMetaObject::InvokeMetaMethod, _id=43, _a=0xbf9295d8) at ./katesearchbar.moc:124
#17 0x0054dc9a in QMetaObject::metacall (object=0xa847d90, cl=QMetaObject::InvokeMetaMethod, idx=43, argv=0xbf9295d8) at kernel/qmetaobject.cpp:237
#18 0x0055c3d5 in QMetaObject::activate (sender=0x99b3c30, m=0x62d58c4, local_signal_index=2, argv=0xbf9295d8) at kernel/qobject.cpp:3293
#19 0x060c5479 in QAbstractButton::clicked (this=0x99b3c30, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#20 0x05da4ea9 in QAbstractButtonPrivate::emitClicked (this=0xa70d180) at widgets/qabstractbutton.cpp:546
#21 0x05da5cf4 in QAbstractButtonPrivate::click (this=0xa70d180) at widgets/qabstractbutton.cpp:539
#22 0x05da5fae in QAbstractButton::mouseReleaseEvent (this=0x99b3c30, e=0xbf929d10) at widgets/qabstractbutton.cpp:1121
#23 0x059f87f8 in QWidget::event (this=0x99b3c30, event=0xbf929d10) at kernel/qwidget.cpp:7998
#24 0x05da4d4e in QAbstractButton::event (this=0x99b3c30, e=0xbf9290ac) at widgets/qabstractbutton.cpp:1080
#25 0x05e4f1f2 in QPushButton::event (this=0x99b3c30, e=0xbf929d10) at widgets/qpushbutton.cpp:679
#26 0x0599a4dc in QApplicationPrivate::notify_helper (this=0x95443f0, receiver=0x99b3c30, e=0xbf929d10) at kernel/qapplication.cpp:4300
#27 0x059a19f7 in QApplication::notify (this=0xbf92a614, receiver=0x99b3c30, e=0xbf929d10) at kernel/qapplication.cpp:3865
#28 0x010f440a in KApplication::notify (this=0xbf92a614, receiver=0x99b3c30, event=0xbf929d10) at ../../kdeui/kernel/kapplication.cpp:302
#29 0x00548a3b in QCoreApplication::notifyInternal (this=0xbf92a614, receiver=0x99b3c30, event=0xbf929d10) at kernel/qcoreapplication.cpp:704
#30 0x059a0952 in QCoreApplication::sendEvent (receiver=0x99b3c30, event=0xbf929d10, alienWidget=0x99b3c30, nativeWidget=0xa847d90, buttonDown=0x62de058, lastMouseReceiver=..., spontaneous=true)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#31 QApplicationPrivate::sendMouseEvent (receiver=0x99b3c30, event=0xbf929d10, alienWidget=0x99b3c30, nativeWidget=0xa847d90, buttonDown=0x62de058, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:2965
#32 0x05a2c088 in QETWidget::translateMouseEvent (this=0xa847d90, event=0xbf92a22c) at kernel/qapplication_x11.cpp:4368
#33 0x05a2b511 in QApplication::x11ProcessEvent (this=0xbf92a614, event=0xbf92a22c) at kernel/qapplication_x11.cpp:3379
#34 0x05a5a60a in x11EventSourceDispatch (s=0x95475f8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#35 0x0654a5e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#36 0x0654e2d8 in ?? () from /lib/libglib-2.0.so.0
#37 0x0654e4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#38 0x005745d5 in QEventDispatcherGlib::processEvents (this=0x9545bd8, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#39 0x05a5a135 in QGuiEventDispatcherGlib::processEvents (this=0x9545bd8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#40 0x00547059 in QEventLoop::processEvents (this=0xbf92a524, flags=) at kernel/qeventloop.cpp:149
#41 0x005474aa in QEventLoop::exec (this=0xbf92a524, flags=...) at kernel/qeventloop.cpp:201
#42 0x0054b69f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#43 0x0599a577 in QApplication::exec () at kernel/qapplication.cpp:3579
#44 0x0274fa65 in kdemain (argc=2, argv=0x950ac40) at ../../../kate/app/katemain.cpp:377
#45 0x0804e133 in launch (argc=<value optimized out>, _name=<value optimized out>, args=<value optimized out>, cwd=0x0, envc=1, envs=0x950ae29 "DISPLAY=:0.0", reset_env=false, tty=0x0, 
    avoid_loops=false, startup_id_str=0x950ae3a "aaron-desktop;1295381844;143971;2888_TIME7428947") at ../../kinit/kinit.cpp:717
#46 0x0804ec6d in handle_launcher_request (sock=<value optimized out>, who=<value optimized out>) at ../../kinit/kinit.cpp:1209
#47 0x0804f190 in handle_requests (waitForPid=<value optimized out>) at ../../kinit/kinit.cpp:1402
#48 0x0804fe4f in main (argc=2, argv=0xbf92b564, envp=0xbf92b570) at ../../kinit/kinit.cpp:1845

Possible duplicates by query: bug 253962, bug 247331, bug 236899, bug 208056.

Reported using DrKonqi
Comment 1 Dario Andres 2011-01-23 15:53:30 UTC
[Comment from a bug triager]
This may be related to bug 236899. Regards
Comment 2 Dominik Haumann 2011-05-15 09:40:18 UTC
*** Bug 272993 has been marked as a duplicate of this bug. ***
Comment 3 Jekyll Wu 2011-11-29 06:34:26 UTC
[from bug 287739]

-- Information about the crash:
kate crashes when replacing multiple linefeeds, the particular regex was just
"\n\n", the replacement text was "\n"
Comment 4 Jekyll Wu 2011-11-29 06:34:43 UTC
*** Bug 287739 has been marked as a duplicate of this bug. ***
Comment 5 Dominik Haumann 2012-07-05 15:39:35 UTC
Aaron, can you still reproduce this?
Comment 6 Christoph Cullmann 2012-10-26 00:28:59 UTC
We can't reproduce the crash, sorry.
If you provide us with some example to do so, we will take a look again.
Thanks for the report.
Comment 7 Andrew Crouthamel 2018-09-23 02:30:30 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Andrew Crouthamel 2018-10-27 03:44:59 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!