Bug 123267 - find select replace crash
Summary: find select replace crash
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 128277 135336 151222 158728 159966 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-08 10:52 UTC by gg
Modified: 2008-03-27 21:52 UTC (History)
5 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 gg 2006-03-08 10:52:53 UTC
Version:           3.3 (using KDE KDE 3.5.0)
Installed from:    SuSE RPMs
OS:                Linux

edit->find-select-replace
search for: TODO
replace with: @TODO
the searched string is found but when I press replace in the Replace tab it crashes. here is the stack:
Using host libthread_db library "/lib/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 1105424160 (LWP 17854)]
[New Thread 1120496560 (LWP 17963)]
[Thread debugging using libthread_db enabled]
[New Thread 1105424160 (LWP 17854)]
[New Thread 1120496560 (LWP 17963)]
[Thread debugging using libthread_db enabled]
[New Thread 1105424160 (LWP 17854)]
[New Thread 1120496560 (LWP 17963)]
[KCrash handler]
#7  0x42dda3f2 in KateDocument::removeTrailingSpace ()
   from /opt/kde3/lib/kde3/libkatepart.so
#8  0x42dd9609 in KateDocument::editRemoveText ()
   from /opt/kde3/lib/kde3/libkatepart.so
#9  0x42ddb38a in KateDocument::removeText ()
   from /opt/kde3/lib/kde3/libkatepart.so
#10 0x42ddbbdf in KateDocument::removeText ()
   from /opt/kde3/lib/kde3/libkatepart.so
#11 0x42d523d0 in KateDocument::clear () from /opt/kde3/lib/kde3/libkatepart.so
#12 0x42d8e7d4 in KateDocument::setText ()
   from /opt/kde3/lib/kde3/libkatepart.so
#13 0x423ea662 in ReplaceWidget::makeReplacements ()
   from /opt/kde3/lib/kde3/libkdevreplace.so
#14 0x423eaa92 in ReplaceWidget::replace ()
   from /opt/kde3/lib/kde3/libkdevreplace.so
#15 0x423eb03b in ReplaceWidget::qt_invoke ()
   from /opt/kde3/lib/kde3/libkdevreplace.so
#16 0x41545cfe in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#17 0x415464a6 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#18 0x4189611c in QButton::clicked () from /usr/lib/qt3/lib/libqt-mt.so.3
#19 0x415dd1f4 in QButton::mouseReleaseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#20 0x4157b8d5 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#21 0x414e3b9f in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#22 0x414e5f08 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#23 0x4116d75e in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#24 0x414821b3 in QETWidget::translateMouseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#25 0x4148108d in QApplication::x11ProcessEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0x41491b35 in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#27 0x414fb841 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#28 0x414fb686 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#29 0x414e561f in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#30 0x0804ec39 in main ()
Comment 1 Jens Dagerbo 2006-03-08 22:59:18 UTC
Is the crash reproducible? I can't repeat it here.

The KDevelop part of the code hasn't changed in years, and we only call KTextEditor::EditInterface::setText(). The crash is deep in katepart, I'm assuming it's their problem. Reassigning.
Comment 2 Dominik Haumann 2006-03-08 23:38:55 UTC
Please try to unset the option
  [ ] Remove trailing spaces
and test again. Does it still crash? If so, we need the backtrace.
Can you update to least recent KDE version and retry (do SuSE's Yast Online Update)?

I couldn't find an obvious place, where it could crash. I cannot reproduce, either.
Comment 3 gg 2006-03-09 08:34:45 UTC
This happened erery time I tried to replace in a certain project. I suspectected is smth. related to the opened files (there were some - 10-20) so I closed all of them and tried again. It worked.
Comment 4 miguell 2006-04-09 11:14:42 UTC
Also experienced here (KDevelop 3.3.1, Kate 2.5.2, KDE 3.5.2 from Debian Unstable).  Same backtrace.  Closing all open files and retrying worked.
Comment 5 Dominik Haumann 2006-04-19 09:28:49 UTC
looks similar to bug #117266. Though, not same bt.
Comment 6 Dominik Haumann 2006-06-23 17:41:02 UTC
Recent commits in KDE 3.5 branch may have fixed this. So please try again with KDE 3.5 branch or upcoming KDE 3.5.4.
Comment 7 Andreas Kling 2006-08-30 21:03:27 UTC
This was indeed fixed in 554150 (see also bug 127928 and bug 124507)
Comment 8 Bram Schoenmakers 2006-10-09 19:44:57 UTC
*** Bug 135336 has been marked as a duplicate of this bug. ***
Comment 9 Dominik Haumann 2006-11-21 16:19:43 UTC
*** Bug 128277 has been marked as a duplicate of this bug. ***
Comment 10 Tommi Tervo 2007-10-23 11:03:13 UTC
*** Bug 151222 has been marked as a duplicate of this bug. ***
Comment 11 Andreas Pakulat 2008-03-03 21:36:17 UTC
*** Bug 158728 has been marked as a duplicate of this bug. ***
Comment 12 Andreas Pakulat 2008-03-03 23:10:47 UTC
*** Bug 158728 has been marked as a duplicate of this bug. ***
Comment 13 Andreas Pakulat 2008-03-27 21:52:28 UTC
*** Bug 159966 has been marked as a duplicate of this bug. ***