Bug 193676

Summary: KFind crashes if "close" is pressed imediatly after "stop"
Product: [Applications] kfind Reporter: Alex Dănilă <alex.danila.web>
Component: generalAssignee: Eric Coquelle <coquelle>
Status: RESOLVED FIXED    
Severity: crash CC: alex.danila.web, andresbajotierra
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alex Dănilă 2009-05-22 21:09:47 UTC
Application that crashed: kfind
Version of the application: 2.0
KDE Version: 4.2.85 (KDE 4.2.85 (KDE 4.3 Beta1))
Qt Version: 4.5.1
Operating System: Linux 2.6.30-rc5-02044-ga4d7749 x86_64
Distribution: Debian GNU/Linux unstable (sid)

What I was doing when the application crashed:
If KFind is in the middle of a search and "Stop" is pressed and then shortly after also "Close" is pressed it will crash.

Steps:
1.Start a search that takes at least a few seconds
2.Press stop
3.Press close shortly after stop

 -- Backtrace:
Application: KFind (kfind), signal: Segmentation fault
[KCrash Handler]
#5  KIO::Slave::deref (this=0x1b4f580) at /home/kde4/kdesvn/kdelibs/kio/kio/slave.cpp:242
#6  0x00007fd02b58551e in KIO::Slave::gotInput (this=0x1b4f580) at /home/kde4/kdesvn/kdelibs/kio/kio/slave.cpp:335
#7  0x00007fd02b5864f0 in KIO::Slave::qt_metacall (this=0x1b4f580, _c=QMetaObject::InvokeMetaMethod, _id=32, _a=0x7fff514ea3c0) at /home/kde4/kdesvn/build/kdelibs/kio/slave.moc:76
#8  0x00007fd02a21a5ad in QMetaObject::activate (sender=0x2a22fd0, from_signal_index=<value optimized out>, to_signal_index=4, argv=0x20)
    at /home/kde4/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:3108
#9  0x00007fd02b4cf38b in KIO::ConnectionPrivate::dequeue (this=0x1b85b40) at /home/kde4/kdesvn/kdelibs/kio/kio/connection.cpp:82
#10 0x00007fd02b4d0132 in KIO::Connection::qt_metacall (this=0x2a22fd0, _c=QMetaObject::InvokeMetaMethod, _id=32, _a=0x24d8a80) at /home/kde4/kdesvn/build/kdelibs/kio/connection.moc:73
#11 0x00007fd02a216f21 in QObject::event (this=0x2a22fd0, e=0x1ec6220) at /home/kde4/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:1106
#12 0x00007fd02900234d in QApplicationPrivate::notify_helper (this=0x19e6d80, receiver=0x2a22fd0, e=0x1ec6220) at /home/kde4/kdesvn/qt-copy/src/gui/kernel/qapplication.cpp:4057
#13 0x00007fd02900ad9a in QApplication::notify (this=0x7fff514eaea0, receiver=0x2a22fd0, e=0x1ec6220) at /home/kde4/kdesvn/qt-copy/src/gui/kernel/qapplication.cpp:4022
#14 0x00007fd02aff066e in KApplication::notify (this=0x7fff514eaea0, receiver=0x2a22fd0, event=0x1ec6220) at /home/kde4/kdesvn/kdelibs/kdeui/kernel/kapplication.cpp:307
#15 0x00007fd02a20804c in QCoreApplication::notifyInternal (this=0x7fff514eaea0, receiver=0x2a22fd0, event=0x1ec6220) at /home/kde4/kdesvn/qt-copy/src/corelib/kernel/qcoreapplication.cpp:606
#16 0x00007fd02a2089a7 in QCoreApplicationPrivate::sendPostedEvents (receiver=<value optimized out>, event_type=0, data=0x19cdf70)
    at ../../include/QtCore/../../../../qt-copy/src/corelib/kernel/qcoreapplication.h:213
#17 0x00007fd02a22dac3 in postEventSourceDispatch (s=<value optimized out>) at ../../include/QtCore/../../../../qt-copy/src/corelib/kernel/qcoreapplication.h:218
#18 0x00007fd02517bf7a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#19 0x00007fd02517f640 in ?? () from /usr/lib/libglib-2.0.so.0
#20 0x00007fd02517f7dc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#21 0x00007fd02a22d75f in QEventDispatcherGlib::processEvents (this=0x19cd780, flags=<value optimized out>) at /home/kde4/kdesvn/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:324
#22 0x00007fd029088eff in QGuiEventDispatcherGlib::processEvents (this=0x1b4f580, flags=<value optimized out>) at /home/kde4/kdesvn/qt-copy/src/gui/kernel/qguieventdispatcher_glib.cpp:202
#23 0x00007fd02a2069f2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 1364110640}) at /home/kde4/kdesvn/qt-copy/src/corelib/kernel/qeventloop.cpp:149
#24 0x00007fd02a206b85 in QEventLoop::exec (this=0x7fff514ead80, flags={i = 1364110752}) at /home/kde4/kdesvn/qt-copy/src/corelib/kernel/qeventloop.cpp:196
#25 0x00007fd029459529 in QDialog::exec (this=0x7fff514eae30) at /home/kde4/kdesvn/qt-copy/src/gui/dialogs/qdialog.cpp:498
#26 0x000000000041d6fa in main (argc=1, argv=0x7fff514eb508) at /home/kde4/kdesvn/kdebase/apps/kfind/main.cpp:74
Comment 1 Dario Andres 2009-05-22 21:13:32 UTC
Can you detail which search options did you used ? I will try to reproduce and fix. Thanks
Comment 2 Alex Dănilă 2009-05-23 00:20:36 UTC
The search was:

Name/Location
  named: *
  look in: file:///home/kde4 (home of dev. user KDE4)
  + include subfolders

Contents
  File type: All files and folders
  Text: kfiledialog

Other details:
You need to let the search go on for a few seconds for a crash.
Crash stops happening after more runs (maybe disk cache influences this).
Comment 3 Dario Andres 2009-05-23 17:24:06 UTC
I could not reproduce. Please try again with the next Beta release.
I have included a change some days ago that could have fixed this (or it could have been fixed on kdelibs side). Thanks
Comment 4 Dario Andres 2009-06-26 15:54:58 UTC
Have you tried with beta2? Thanks
Comment 5 Alex Dănilă 2009-06-26 21:44:31 UTC
It's fixed.
Thank you.