Bug 76934 - Opening a file while searching files (with embedded Kfind) crashes Konqui
Summary: Opening a file while searching files (with embedded Kfind) crashes Konqui
Status: RESOLVED UNMAINTAINED
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: 3.5
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 151714 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-07 15:22 UTC by Iván Sánchez Ortega
Modified: 2009-08-20 22:33 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 Iván Sánchez Ortega 2004-03-07 15:22:28 UTC
Version:           3.2.0 (using KDE 3.2 BRANCH >= 20040204,  (testing/unstable))
Compiler:          gcc version 3.3.3 20040125 (prerelease) (Debian)
OS:          Linux (i686) release 2.4.24-1-k7

Something is wrong with embedded Kfind... Please do the following:

- Open Konqueror, browse to a local directory with several files
- Show embedded Kfind (tools -> search files)
- Do a search query that should last some time (a quick search won't reproduce this one). A query for a file contaning some text will do fine.
- *WHILE* Kfind is searching, and some results are already shown, click on one of them. A *.html will do fine.
- See how Konqui switchs to the embedded viewer mode, then crashes.

I got this one while searching for some words in a wget-ted web.

This is with Konqui CVS 20040215.

I couldn't get a backtrace (compiled w/o debug simbols :-(  )
Comment 1 Tommi Tervo 2004-10-21 16:18:08 UTC
Cannot reproduce. Could you build with debug symbols if you still can reproduce this crash with 3.3.x konqueror?
Comment 2 Iván Sánchez Ortega 2004-10-21 16:53:50 UTC
> Cannot reproduce. Could you build with debug symbols if you still
> can reproduce this crash with 3.3.x konqueror?

While trying to reproduce (in 3.3.0), I found that launching an embedded 
kfindpart directly crashes Konqueror :-/

(In order to do so, I went to Kcontrol to configure file types & associations, 
in order to be able to "open" a inode/directory with kfindpart).

drkonqui shows me the following backtrace:

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 11174)]
[KCrash handler]
#5  0x41c838ee in KFindPart::KFindPart () from /usr/lib/kde3/libkfindpart.so
#6  0x41c854e1 in KParts::GenericFactory<KFindPart>::createPartObject ()
   from /usr/lib/kde3/libkfindpart.so
#7  0x4019cfdf in KParts::Factory::createPart () from /usr/lib/libkparts.so.2
#8  0x4009a4ed in KonqViewFactory::create ()
   from /usr/lib/libkdeinit_konqueror.so
#9  0x4008ab67 in KonqFrame::attach () from /usr/lib/libkdeinit_konqueror.so
#10 0x40077cc4 in KonqView::switchView ()
   from /usr/lib/libkdeinit_konqueror.so
#11 0x40078655 in KonqView::changeViewMode ()
   from /usr/lib/libkdeinit_konqueror.so
#12 0x400aaf92 in KonqMainWindow::slotViewModeToggle ()
   from /usr/lib/libkdeinit_konqueror.so
#13 0x400c73a0 in KonqMainWindow::qt_invoke ()
   from /usr/lib/libkdeinit_konqueror.so
#14 0x40d2452c in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#15 0x40d24b60 in QObject::activate_signal_bool () from /usr/lib/libqt-mt.so.3
#16 0x40606e8a in KToggleAction::toggled () from /usr/lib/libkdeui.so.4
#17 0x405faea5 in KToggleAction::slotActivated () from /usr/lib/libkdeui.so.4
#18 0x405fb608 in KRadioAction::slotActivated () from /usr/lib/libkdeui.so.4
#19 0x40606eff in KToggleAction::qt_invoke () from /usr/lib/libkdeui.so.4
#20 0x4060727d in KRadioAction::qt_invoke () from /usr/lib/libkdeui.so.4
#21 0x40096beb in KonqViewModeAction::qt_invoke ()
   from /usr/lib/libkdeinit_konqueror.so
#22 0x40d244a6 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#23 0x40d24354 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#24 0x4106928e in QButton::clicked () from /usr/lib/libqt-mt.so.3
#25 0x40db697a in QButton::mouseReleaseEvent () from /usr/lib/libqt-mt.so.3
#26 0x40d5a697 in QWidget::event () from /usr/lib/libqt-mt.so.3
#27 0x40cc7bcf in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#28 0x40cc72c4 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#29 0x408691a3 in KApplication::notify () from /usr/lib/libkdecore.so.4
#30 0x40c5c640 in QETWidget::translateMouseEvent ()
   from /usr/lib/libqt-mt.so.3
#31 0x40c5a2ce in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3
#32 0x40c711a4 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#33 0x40cd9f28 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#34 0x40cd9dd8 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#35 0x40cc7e21 in QApplication::exec () from /usr/lib/libqt-mt.so.3
#36 0x4006bb5c in kdemain () from /usr/lib/libkdeinit_konqueror.so
#37 0x0804861b in ?? ()
#38 0x00000002 in ?? ()
#39 0xbffffbe4 in ?? ()
#40 0xbffffbb8 in ?? ()
#41 0x41421dc6 in __libc_start_main () from /lib/libc.so.6



Hope it helps,
Comment 3 Iván Sánchez Ortega 2005-04-12 12:04:29 UTC
kfindpart still crashes in my computer in KDE 3.4.0. Open konqueror, switch to kfindpart, and kaboom!. Relevant portion of the backtrace follows :


[KCrash handler]
#3  0x437324be in KFindPart::KFindPart () from /usr/lib/kde3/libkfindpart.so
#4  0x437340b1 in KParts::GenericFactory<KFindPart>::createPartObject ()
   from /usr/lib/kde3/libkfindpart.so
#5  0x400514af in KParts::Factory::createPart () from /usr/lib/libkparts.so.2
#6  0x415e0f6d in KonqViewFactory::create ()
   from /usr/lib/libkdeinit_konqueror.so
#7  0x415d2647 in KonqFrame::attach () from /usr/lib/libkdeinit_konqueror.so
#8  0x415becd4 in KonqView::switchView ()
   from /usr/lib/libkdeinit_konqueror.so
#9  0x415bf67d in KonqView::changeViewMode ()
   from /usr/lib/libkdeinit_konqueror.so
#10 0x415f4243 in KonqMainWindow::slotViewModeToggle ()
   from /usr/lib/libkdeinit_konqueror.so
#11 0x4161205d in KonqMainWindow::qt_invoke ()
   from /usr/lib/libkdeinit_konqueror.so
#12 0x40a6b71c in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#13 0x40a6bd50 in QObject::activate_signal_bool () from /usr/lib/libqt-mt.so.3
#14 0x41122c2a in KToggleAction::toggled () from /usr/lib/libkdeui.so.4
#15 0x41116c35 in KToggleAction::slotActivated () from /usr/lib/libkdeui.so.4
#16 0x41117388 in KRadioAction::slotActivated () from /usr/lib/libkdeui.so.4
#17 0x4110e099 in KAction::slotPopupActivated () from /usr/lib/libkdeui.so.4
#18 0x4110eaf1 in KAction::qt_invoke () from /usr/lib/libkdeui.so.4
#19 0x41122c84 in KToggleAction::qt_invoke () from /usr/lib/libkdeui.so.4
#20 0x4112301d in KRadioAction::qt_invoke () from /usr/lib/libkdeui.so.4
#21 0x40a6b71c in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#22 0x40daa62a in QSignal::signal () from /usr/lib/libqt-mt.so.3
#23 0x40a8591d in QSignal::activate () from /usr/lib/libqt-mt.so.3
#24 0x40b730d9 in QPopupMenu::mouseReleaseEvent () from /usr/lib/libqt-mt.so.3
#25 0x40aa1b37 in QWidget::event () from /usr/lib/libqt-mt.so.3
#26 0x40a0ee1f in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#27 0x40a0e514 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#28 0x40668ac5 in KApplication::notify () from /usr/lib/libkdecore.so.4
#29 0x409a31a1 in QETWidget::translateMouseEvent ()
   from /usr/lib/libqt-mt.so.3
#30 0x409a123e in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3
#31 0x409b8254 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#32 0x40a211d8 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#33 0x40a0f0d1 in QApplication::enter_loop () from /usr/lib/libqt-mt.so.3
#34 0x40b75f49 in QPopupMenu::exec () from /usr/lib/libqt-mt.so.3
#35 0x40ba341c in QToolButton::popupTimerDone () from /usr/lib/libqt-mt.so.3
#36 0x40ba2fd6 in QToolButton::openPopup () from /usr/lib/libqt-mt.so.3
#37 0x411b71ac in KToolBarButton::eventFilter () from /usr/lib/libkdeui.so.4
#38 0x40a6904e in QObject::activate_filters () from /usr/lib/libqt-mt.so.3
#39 0x40a68f7c in QObject::event () from /usr/lib/libqt-mt.so.3
#40 0x40aa1aaf in QWidget::event () from /usr/lib/libqt-mt.so.3
#41 0x40a0ee1f in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#42 0x40a0e514 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#43 0x40668ac5 in KApplication::notify () from /usr/lib/libkdecore.so.4
#44 0x409a35b0 in QETWidget::translateMouseEvent ()
   from /usr/lib/libqt-mt.so.3
#45 0x409a123e in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3
#46 0x409b8254 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#47 0x40a211d8 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#48 0x40a21088 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#49 0x40a0f071 in QApplication::exec () from /usr/lib/libqt-mt.so.3
#50 0x415b22cc in kdemain () from /usr/lib/libkdeinit_konqueror.so
#51 0x41557786 in kdeinitmain () from /usr/lib/kde3/konqueror.so
#52 0x0804cbd2 in ?? ()
[...]
#141 0xbffff948 in ?? ()
#142 0x400f6d23 in operator delete () from /usr/lib/libstdc++.so.5
Comment 4 lexual 2006-08-09 01:07:02 UTC
confirming for 3.5.4
Comment 5 Frank Osterfeld 2006-08-22 21:11:39 UTC
Lexual: Can you provide a recent backtrace (as the report is older and the bt may have changed)? Which view mode do you use (View->View Mode in the menu).
Comment 6 Raúl 2006-12-07 13:46:59 UTC
I also notice this behaviour on 3.5.5. My view is detailed list view. I attach a recent backtrace:
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1500690208 (LWP 5655)]
[KCrash handler]
#6  0xa71b4406 in QString::length (this=0x904dc30) at ../include/qstring.h:880
#7  0xa759f49e in QString::find (this=0xaffd0174, str=@0x904dc30, index=0, 
    cs=false) at tools/qstring.cpp:2916
#8  0xa381ec0b in KQuery::processQuery (this=0x904dbb0, file=0x9008fb8)
    at /home/sid-user/kdebase/kdebase-3.5.5/./kfind/kquery.cpp:374
#9  0xa381d243 in KQuery::checkEntries (this=0x904dbb0)
    at /home/sid-user/kdebase/kdebase-3.5.5/./kfind/kquery.cpp:135
#10 0xa381d347 in KQuery::slotListEntries (this=0x904dbb0, list=@0xaffd04f0)
    at /home/sid-user/kdebase/kdebase-3.5.5/./kfind/kquery.cpp:123
#11 0xa381d57c in KQuery::qt_invoke (this=0x904dbb0, _id=3, _o=0xaffd0330)
    at ./kquery.moc:157
#12 0xa7289cb3 in QObject::activate_signal (this=0x8de4e90, clist=0x8f69718, 
    o=0xaffd0330) at kernel/qobject.cpp:2356
#13 0xa7abcd6d in KIO::ListJob::entries (this=0x8de4e90, t0=0x8de4e90, 
    t1=@0xaffd04f0) at ./jobclasses.moc:1699
#14 0xa7abcdd8 in KIO::ListJob::gotEntries (this=0x8de4e90, list=@0xaffd04f0)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kio/job.cpp:2055
#15 0xa7b1d54e in KIO::ListJob::qt_invoke (this=0x8de4e90, _id=21, 
    _o=0xaffd0420) at ./jobclasses.moc:1739
#16 0xa7289cb3 in QObject::activate_signal (this=0x903eed0, clist=0x8634dd8, 
    o=0xaffd0420) at kernel/qobject.cpp:2356
#17 0xa7abcd6d in KIO::ListJob::entries (this=0x903eed0, t0=0x903eed0, 
    t1=@0xaffd04f0) at ./jobclasses.moc:1699
#18 0xa7b1d200 in KIO::ListJob::slotListEntries (this=0x903eed0, 
    list=@0xaffd0764)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kio/job.cpp:2048
#19 0xa7b1d580 in KIO::ListJob::qt_invoke (this=0x903eed0, _id=19, 
    _o=0xaffd05a4) at ./jobclasses.moc:1737
#20 0xa7289cb3 in QObject::activate_signal (this=0x902b410, clist=0x900eab0, 
    o=0xaffd05a4) at kernel/qobject.cpp:2356
#21 0xa7aba794 in KIO::SlaveInterface::listEntries (this=0x902b410, 
    t0=@0xaffd0764) at ./slaveinterface.moc:255
#22 0xa7b1b015 in KIO::SlaveInterface::dispatch (this=0x902b410, _cmd=106, 
    rawdata=@0xaffd07b0)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kio/slaveinterface.cpp:263
#23 0xa7b18ed8 in KIO::SlaveInterface::dispatch (this=0x902b410)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kio/slaveinterface.cpp:173
#24 0xa7ac9fab in KIO::Slave::gotInput (this=0x902b410)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kio/kio/slave.cpp:300
#25 0xa7b08a60 in KIO::Slave::qt_invoke (this=0x902b410, _id=4, _o=0xaffd08d8)
    at ./slave.moc:113
#26 0xa7289cb3 in QObject::activate_signal (this=0x8f88e38, clist=0x90038d0, 
    o=0xaffd08d8) at kernel/qobject.cpp:2356
#27 0xa728a5ba in QObject::activate_signal (this=0x8f88e38, signal=2, 
    param=33) at kernel/qobject.cpp:2449
#28 0xa7613a87 in QSocketNotifier::activated (this=0x8f88e38, t0=33)
    at .moc/debug-shared-mt/moc_qsocketnotifier.cpp:85
#29 0xa72ac45e in QSocketNotifier::event (this=0x8f88e38, e=0xaffd0c30)
    at kernel/qsocketnotifier.cpp:258
#30 0xa7221bd6 in QApplication::internalNotify (this=0xaffd0f6c, 
    receiver=0x8f88e38, e=0xaffd0c30) at kernel/qapplication.cpp:2635
#31 0xa72239f3 in QApplication::notify (this=0xaffd0f6c, receiver=0x8f88e38, 
    e=0xaffd0c30) at kernel/qapplication.cpp:2358
#32 0xa7917e0e in KApplication::notify (this=0xaffd0f6c, receiver=0x8f88e38, 
    event=0xaffd0c30)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kdecore/kapplication.cpp:550
#33 0xa71b53d1 in QApplication::sendEvent (receiver=0x8f88e38, 
    event=0xaffd0c30) at ../include/qapplication.h:520
#34 0xa7213f89 in QEventLoop::activateSocketNotifiers (this=0x80c44d0)
    at kernel/qeventloop_unix.cpp:578
#35 0xa71c9704 in QEventLoop::processEvents (this=0x80c44d0, flags=4)
    at kernel/qeventloop_x11.cpp:383
#36 0xa723c129 in QEventLoop::enterLoop (this=0x80c44d0)
    at kernel/qeventloop.cpp:198
#37 0xa723bf4a in QEventLoop::exec (this=0x80c44d0)
    at kernel/qeventloop.cpp:145
#38 0xa722376f in QApplication::exec (this=0xaffd0f6c)
    at kernel/qapplication.cpp:2758
#39 0xa666a495 in kdemain (argc=3, argv=0x8079030)
    at /home/sid-user/kdebase/kdebase-3.5.5/./konqueror/konq_main.cc:206
#40 0xa7f7e524 in kdeinitmain (argc=3, argv=0x8079030) at konqueror_dummy.cc:3
#41 0x0804e457 in launch (argc=3, _name=0x807b8cc "konqueror", 
    args=0x807b915 "", cwd=0x0, envc=0, envs=0x807b91a "", reset_env=false, 
    tty=0x0, avoid_loops=false, startup_id_str=0x8050d2e "0")
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kinit/kinit.cpp:673
#42 0x0804ecf9 in handle_launcher_request (sock=9)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kinit/kinit.cpp:1240
#43 0x0804f092 in handle_requests (waitForPid=0)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kinit/kinit.cpp:1443
#44 0x080502b1 in main (argc=5, argv=0xaffd1a24, envp=0xaffd1a3c)
    at /home/ana/Debian/kdelibs/kdelibs-3.5.5a.dfsg.1/./kinit/kinit.cpp:1909
#45 0xa7cebea8 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#46 0x0804b911 in _start () at ../sysdeps/i386/elf/start.S:119
Comment 7 Sune Vuorela 2006-12-07 20:36:25 UTC
Hi! I have also easily reproduced it following the steps described here.

I use iconview view.

/Sune

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1232250656 (LWP 2879)]
[KCrash handler]
#9  0xb71cdb94 in QChar::unicode (this=0x0) at ../include/qstring.h:195
#10 0xb75a16d8 in QString::find (this=0xbfa4c6b4, str=@0x9a2c7c0, index=0, 
    cs=false) at tools/qstring.cpp:2971
#11 0xb4eb2c0b in KQuery::processQuery (this=0x9a2c740, file=0x99f6d60)
    at /home/sid-user/kdebase/kdebase-3.5.5/./kfind/kquery.cpp:374
[Rest is same as #6]
Comment 8 Mathieu Parent 2007-02-03 22:13:29 UTC
Is this related ? :

- Open Konqueror, browse to a local directory with several files
- Show embedded Kfind (tools -> search files)
- Do a search query that should last some time (a quick search won't reproduce this one). A query for a file contaning some text will do fine.
- *WHILE* Kfind is searching, and some results are already shown, switch display type (hope this is well translated, french is 'Type d'affichage') to another (icon, detail, ...)
- See how Konqui crashes.

(haven't find any bug #)
Comment 9 Mathieu Parent 2007-02-03 22:15:13 UTC
sorry, last comment was konqueror 3.5.5 (on debian etch = 4:3.5.5a.dfsg.1-5)
Comment 10 Tommi Tervo 2007-11-01 21:46:20 UTC
*** Bug 151714 has been marked as a duplicate of this bug. ***
Comment 11 FiNeX 2008-05-04 23:31:58 UTC
Cannot reproduce on 3.5.9.
On KDE 4 kfind has not been integrated yet.
Kfind on KDE 4 (trunk r802881) doesn't crash opening files while the search is not finished.

It seems as fixed.
Comment 12 Frank Reininghaus 2008-09-10 22:06:46 UTC
It still crashes 3.5.10 for me with the same backtrace as in comment 6. Not sure what to do with this one though because I don't know if this functionality is ever going to be implemented in KDE 4.
Comment 13 FiNeX 2009-08-20 22:33:59 UTC
Being not implemented on KDE 4 and being KDE 3 no more mantained. Maybe it is better to set this as "unmantained".