Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 226399

Summary: kde-base/kfilereplace-3.5.9 hangs on Replace or Simulate
Product: Gentoo Linux Reporter: Robin Bankhead <gentoo>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED UPSTREAM    
Severity: normal CC: esigra
Priority: High    
Version: 2008.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 245954    

Description Robin Bankhead 2008-06-13 19:48:19 UTC
kfilereplace was run for a search-string 'getDB' (no quotes) and replace-string 'DBCon::getDB' with a filter of *.php. The search was tried first with a dir containing ~70 php and other files in the root dir and 5 subdirs, then with one of the subdirs that only contains 2 small php files. The dir is on a Truecrypt volume mounted as Ext2. Case sensitivity enabled, regex and commands disabled.

After commencing either Replace or Simulate, the program gets hung after about 2 seconds. It continues to use 100% CPU, but no HDD activity. Have left it in this state for >5min when searching the dir containing only 2 files, and it stays hung.

I Ctrl+C'd the program in gdb and got the following backtrace, if it's any help:

Program received signal SIGINT, Interrupt.
[Switching to Thread 0xb6873b00 (LWP 15493)]
0xb73fc081 in QString::contains () from /usr/qt/3/lib/libqt-mt.so.3
(gdb) bt
#0  0xb73fc081 in QString::contains () from /usr/qt/3/lib/libqt-mt.so.3
#1  0xb64f3ca2 in QString::contains (this=0xbf952d8c, c=10 '\n', cs=true)
    at /usr/qt/3/include/qstring.h:480
#2  0xb650b79f in ResultViewEntry::lineNumber (this=0xbf952e0c, line=@0xbf952fcc)
    at configurationclasses.cpp:107
#3  0xb64ea7bb in KFileReplacePart::replacingLoop (this=0x8affeb0, line=@0xbf952fcc,
    item=0xbf952fd0, atLeastOneStringFound=@0xbf95302b, occur=@0xbf952fc8,
    regularExpression=true, askConfirmReplace=@0x8b0f629) at kfilereplacepart.cpp:1231
#4  0xb64eacf1 in KFileReplacePart::replaceAndOverwrite (this=0x8affeb0, currentDir=@0xbf9530e8,
    oldFileName=@0xbf9530c0) at kfilereplacepart.cpp:1132
#5  0xb64ec0fd in KFileReplacePart::recursiveFileReplace (this=0x8affeb0,
    directoryName=@0xbf953138, filesNumber=@0xbf953134) at kfilereplacepart.cpp:1008
#6  0xb64f0f49 in KFileReplacePart::slotReplacingOperation (this=0x8affeb0)
    at kfilereplacepart.cpp:199
#7  0xb64f187e in KFileReplacePart::qt_invoke (this=0x8affeb0, _id=7, _o=0xbf953218)
    at kfilereplacepart.moc:142
#8  0xb714d6d0 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#9  0xb714e210 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#10 0xb79e3b31 in KAction::activated () from /usr/kde/3.5/lib/libkdeui.so.4
#11 0x00000002 in ?? ()
#12 0xb7b82ff4 in ?? () from /usr/kde/3.5/lib/libkdeui.so.4
#13 0xb79e3b82 in KAction::slotActivated () from /usr/kde/3.5/lib/libkdeui.so.4
#14 0x0000000f in ?? ()
#15 0xb7b82ff4 in ?? () from /usr/kde/3.5/lib/libkdeui.so.4
#16 0x00000001 in ?? ()
#17 0xb7b82ff4 in ?? () from /usr/kde/3.5/lib/libkdeui.so.4
#18 0x00000001 in ?? ()
#19 0xb79e3a77 in KAction::slotButtonClicked () from /usr/kde/3.5/lib/libkdeui.so.4
#20 0xb7582ff4 in ?? () from /usr/qt/3/lib/libqt-mt.so.3
---Type <return> to continue, or q <return> to quit---
#21 0xb7b82ff4 in ?? () from /usr/kde/3.5/lib/libkdeui.so.4
#22 0x00000011 in ?? ()
#23 0x08b47640 in ?? ()
#24 0xb79e6967 in KAction::qt_invoke () from /usr/kde/3.5/lib/libkdeui.so.4
#25 0x08b65e50 in ?? ()
#26 0x00000000 in ?? ()
Comment 1 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2009-05-27 19:51:50 UTC
Try with 3.5.10, and try to report upstream, but i doubt it will be fixed as development for 3.5.10 is frozen.
Comment 2 Robin Bankhead 2009-05-28 02:26:05 UTC
I have not been running kde-3.5 for several months now, so I will not be proceeding any further with this bug.