Bug 158728 - Find-Select-Replace crash when clicked on Replace
Summary: Find-Select-Replace crash when clicked on Replace
Status: RESOLVED DUPLICATE of bug 123267
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 3.5.0
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-03 19:13 UTC by Premysl Paska
Modified: 2008-03-04 15:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
a bzipped project on which it crashes (85.10 KB, application/x-bzip)
2008-03-04 00:08 UTC, Premysl Paska
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Premysl Paska 2008-03-03 19:13:30 UTC
Version:           3.5.0 (using KDE 3.5.8)
Installed from:    Gentoo Packages
Compiler:          GCC 4.1.2 CFLAGS="-march=pentium4 -O2 -pipe"
OS:                Linux

this may be another duplicate of bug 123267, but it was fixed 18 months ago and my system is quite up do date (no Gentoo ebuild for KDevelop 3.5.1 yet)

The description:
I have an open project.
I open File-Select-Replace and enter the following:
  Text to find: FindactiveBranch
  Replacement text: FindActiveBranch
  [x] Case Sensitive
  (x) Whole Words Only
  (x) All files
I click Find, 5 occurrences in two files are found
I keep all selected and click Replace
KDevelop Crashes with the following back-trace:

[?1034h(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
...
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb5f8b6d0 (LWP 5365)]
[New Thread 0xb4997b90 (LWP 5427)]
[New Thread 0xb5654b90 (LWP 5418)]
(no debugging symbols found)
...
(no debugging symbols found)
[KCrash handler]
#6  0xb4b04eb2 in KateDocument::removeTrailingSpace ()
   from /usr/kde/3.5/lib/kde3/libkatepart.so
#7  0xb4b0602f in KateDocument::editRemoveText ()
   from /usr/kde/3.5/lib/kde3/libkatepart.so
#8  0xb4b079a7 in KateDocument::removeText ()
   from /usr/kde/3.5/lib/kde3/libkatepart.so
#9  0xb4b08421 in KateDocument::removeText ()
   from /usr/kde/3.5/lib/kde3/libkatepart.so
#10 0xb4a722fd in KateDocument::clear ()
   from /usr/kde/3.5/lib/kde3/libkatepart.so
#11 0xb4a7aecb in KateDocument::setText ()
   from /usr/kde/3.5/lib/kde3/libkatepart.so
#12 0xb5b85df9 in ReplaceWidget::makeReplacements ()
   from /usr/lib/kde3/libkdevreplace.so
#13 0xb5b86278 in ReplaceWidget::replace ()
   from /usr/lib/kde3/libkdevreplace.so
#14 0xb5b87117 in ReplaceWidget::qt_invoke ()
   from /usr/lib/kde3/libkdevreplace.so
#15 0xb684f3f0 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#16 0xb684ff30 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#17 0xb6b66e68 in QButton::clicked () from /usr/qt/3/lib/libqt-mt.so.3
#18 0xb68db835 in QButton::mouseReleaseEvent ()
   from /usr/qt/3/lib/libqt-mt.so.3
#19 0xb688534e in QWidget::event () from /usr/qt/3/lib/libqt-mt.so.3
#20 0xb67f4a0c in QApplication::internalNotify ()
   from /usr/qt/3/lib/libqt-mt.so.3
#21 0xb67f56f7 in QApplication::notify () from /usr/qt/3/lib/libqt-mt.so.3
#22 0xb6efded9 in KApplication::notify () from /usr/kde/3.5/lib/libkdecore.so.4
#23 0xb6798e69 in QETWidget::translateMouseEvent ()
   from /usr/qt/3/lib/libqt-mt.so.3
#24 0xb6798761 in QApplication::x11ProcessEvent ()
   from /usr/qt/3/lib/libqt-mt.so.3
#25 0xb67a791f in QEventLoop::processEvents () from /usr/qt/3/lib/libqt-mt.so.3
#26 0xb680a2ad in QEventLoop::enterLoop () from /usr/qt/3/lib/libqt-mt.so.3
#27 0xb680a152 in QEventLoop::exec () from /usr/qt/3/lib/libqt-mt.so.3
#28 0xb67f453d in QApplication::exec () from /usr/qt/3/lib/libqt-mt.so.3
#29 0x0804e6b2 in ?? ()
#30 0xbffa50dc in ?? ()
#31 0x08091620 in ?? ()
#32 0xbffa5258 in ?? ()
#33 0x00000001 in ?? ()
#34 0x08052c75 in ?? ()
#35 0x00000001 in ?? ()
#36 0x08052d60 in ?? ()
#37 0x08052d19 in ?? ()
#38 0x080524dc in ?? ()
#39 0x080524c8 in _IO_stdin_used ()
#40 0x0000003f in ?? ()
#41 0xb5f8eaa0 in ?? ()
#42 0x0000c885 in ?? ()
#43 0x08064dd8 in ?? ()
#44 0x00000028 in ?? ()
#45 0xb6f749c8 in vtable for KApplication ()
   from /usr/kde/3.5/lib/libkdecore.so.4
#46 0xbffa51e0 in ?? ()
#47 0x080821a0 in ?? ()
#48 0x00000000 in ?? ()

reproducible: yes
(in most cases it does not crash, but if it does in a case, it does crash always)

I can provide the sources on which it crashes.
Comment 1 Premysl Paska 2008-03-03 20:18:59 UTC
I've tested the circumstances a little more. As said in https://bugs.kde.org/show_bug.cgi?id=123267#c3 it helps when some tabs are closed (not necessarily all of them), but when you open them again it keeps going.

I have observed the following condition required for the crash: There must be at least two open tabs and no tabs are closed since the project was opened (with restoration of the open tabs). And the open tabs must include at least one of the files affected by the replacement. On the other hand, you can open a new tab after opening the project and it still crashes.

Quite strange circumstances... :)
Comment 2 Andreas Pakulat 2008-03-03 21:36:16 UTC
As far as I can see it is a duplicate. If it still happens for you you should file a bugreport for kate, as this is not a kdevelop problem but a kate bug.

*** This bug has been marked as a duplicate of 123267 ***
Comment 3 Premysl Paska 2008-03-03 22:04:20 UTC
Yes, it still happens and I've spent about two hours testing its circumstances.

If it is a bug in Kate, can you please report it? It's KDevelop which crashes not Kate and I don't know what libraries does KDevelop use...
Comment 4 Andreas Pakulat 2008-03-03 23:10:46 UTC
Sorry, but as I can't reproduce it, I can't report any bug. And its also not kdevelop that crashes, but the embedded katepart editor. It just happens to take kdevelop with it when it crashes. You can clearly see that from the backtrace.

So please report this with proper version info against the katepart component.

*** This bug has been marked as a duplicate of 123267 ***
Comment 5 Premysl Paska 2008-03-04 00:08:14 UTC
Created attachment 23775 [details]
a bzipped project on which it crashes

This should help with reproducing the bug.

(You did not say that you couldn't reproduce it, you said that it is a
duplicate.)

I've got KDE 3.5.8. How can I get a "proper version info against the katepart"
?
Comment 6 Amilcar do Carmo Lucas 2008-03-04 00:52:28 UTC
Start kate on a console.
Then goto the menu and select "Help -> about".
That will give you the katepart version number.
Comment 7 Premysl Paska 2008-03-04 01:35:51 UTC
It says Kate 2.5.8 (Using KDE 3.5.8).

(I thought that it is fully determined by the KDE version, but I understand that it is possible to use a different version.)
Comment 8 Andreas Pakulat 2008-03-04 09:29:32 UTC
Can't reproduce any crash with that sample project either.
Comment 9 Premysl Paska 2008-03-04 14:11:34 UTC
Now I've found out that you must have the option "Remove trailing spaces" enabled to reproduce it

Please try it again with it enabled, the option is accessible from Settings -> Configure Editor..., in the dialog it is the section Editing, almost at the bottom.

(It was suspicious to me, why a function named removeTrailingSpace segfaults...)
Comment 10 Andreas Pakulat 2008-03-04 15:03:57 UTC
I also tried that as its also mentioned in the original report. However it still works fine over here. I even opened up all of the files in the project and added some whitespace to some of them.