Bug 269650 - Crash when searching for filename
Summary: Crash when searching for filename
Status: RESOLVED FIXED
Alias: None
Product: nepomuk
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Sebastian Trueg
URL:
Keywords:
: 274057 275117 280920 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-28 23:29 UTC by Peter Hedlund
Modified: 2011-08-29 19:38 UTC (History)
4 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 Peter Hedlund 2011-03-28 23:29:18 UTC
Application: nepomukservicestub (0.2)
KDE Platform Version: 4.6.1 (4.6.1)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-7-generic x86_64
Distribution: Ubuntu Natty (development branch)

-- Information about the crash:
I was trying to search for all files named *.pdf in within a hierarchy of subfolders

-- Backtrace:
Application: Nepomuk Service Stub (nepomukservicestub), signal: Segmentation fault
[KCrash Handler]
#6  QHashData::nextNode (node=0x7f5e301a5cf0) at tools/qhash.cpp:290
#7  0x00007f5e36932b25 in operator++ (this=0x1f5e470) at /usr/include/qt4/QtCore/qhash.h:423
#8  operator++ (this=0x1f5e470) at /usr/include/qt4/QtCore/qset.h:150
#9  QSet<Nepomuk::Query::Result>::toList (this=0x1f5e470) at /usr/include/qt4/QtCore/qset.h:298
#10 0x00007f5e3693192d in Nepomuk::Query::Folder::entries (this=<value optimized out>) at ../../../../nepomuk/services/queryservice/folder.cpp:109
#11 0x00007f5e369334fa in Nepomuk::Query::FolderConnection::list (this=0x7f5e30153b00) at ../../../../nepomuk/services/queryservice/folderconnection.cpp:54
#12 0x00007f5e36935280 in QueryAdaptor::qt_metacall (this=0x7f5e3016ee40, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7fff83b3e210) at queryadaptor.moc:113
#13 0x00007f5e467189fa in QDBusConnectionPrivate::deliverCall (this=0x1edfe20, object=0x7f5e3016ee40, msg=..., metaTypes=..., slotIdx=10) at qdbusintegrator.cpp:942
#14 0x00007f5e46719b1a in QDBusConnectionPrivate::activateCall (this=0x1edfe20, object=0x7f5e3016ee40, flags=273, msg=...) at qdbusintegrator.cpp:845
#15 0x00007f5e4671a33a in QDBusConnectionPrivate::activateObject (this=0x1edfe20, node=..., msg=..., pathStartPos=<value optimized out>) at qdbusintegrator.cpp:1410
#16 0x00007f5e4671a578 in QDBusActivateObjectEvent::placeMetaCall (this=0x1fb31d0) at qdbusintegrator.cpp:1524
#17 0x00007f5e46ade49a in QObject::event (this=0x7f5e30153b00, e=<value optimized out>) at kernel/qobject.cpp:1226
#18 0x00007f5e44e1a9e4 in QApplicationPrivate::notify_helper (this=0x1e3bf40, receiver=0x7f5e30153b00, e=0x1fb31d0) at kernel/qapplication.cpp:4462
#19 0x00007f5e44e1f3aa in QApplication::notify (this=<value optimized out>, receiver=0x7f5e30153b00, e=0x1fb31d0) at kernel/qapplication.cpp:4341
#20 0x00007f5e45e08866 in KApplication::notify (this=0x7fff83b3f010, receiver=0x7f5e30153b00, event=0x1fb31d0) at ../../kdeui/kernel/kapplication.cpp:311
#21 0x00007f5e46aca49c in QCoreApplication::notifyInternal (this=0x7fff83b3f010, receiver=0x7f5e30153b00, event=0x1fb31d0) at kernel/qcoreapplication.cpp:731
#22 0x00007f5e46acdc25 in sendEvent (receiver=0x0, event_type=0, data=0x1dfd8a0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#23 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1dfd8a0) at kernel/qcoreapplication.cpp:1372
#24 0x00007f5e46af5253 in sendPostedEvents (s=0x1e3edc0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#25 postEventSourceDispatch (s=0x1e3edc0) at kernel/qeventdispatcher_glib.cpp:277
#26 0x00007f5e438c2bcd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f5e438c33a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007f5e438c3639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007f5e46af53ef in QEventDispatcherGlib::processEvents (this=0x1dfd4a0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#30 0x00007f5e44ec1dfe in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#31 0x00007f5e46ac9882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#32 0x00007f5e46ac9abc in QEventLoop::exec (this=0x7fff83b3ee20, flags=...) at kernel/qeventloop.cpp:201
#33 0x00007f5e46acdecb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#34 0x0000000000403c3f in main (argc=2, argv=<value optimized out>) at ../../../nepomuk/servicestub/main.cpp:165

Reported using DrKonqi
Comment 1 Vishesh Handa 2011-07-30 14:13:00 UTC
Git commit 12c12a721f712888d3fc44a3d45fdcdb743e2a13 by Vishesh Handa.
Committed on 30/07/2011 at 16:08.
Pushed by vhanda into branch 'KDE/4.7'.

Thread safey in the Query Service

The Nepomuk::Query::Folder::initialListingDone() function can be called via dbus
at any point via the FolderConnection, at that point the listingFinished() function
might be in the process of changing m_initialListingDone's value => CRASH

Ditto with Nepomuk::Query::Folder::entries(). It can be called via
FolderConnection's list method.

BUG: 269650
REVIEW: 102129

M  +4    -0    nepomuk/services/queryservice/folder.cpp
M  +1    -1    nepomuk/services/queryservice/folder.h

http://commits.kde.org/kde-runtime/12c12a721f712888d3fc44a3d45fdcdb743e2a13
Comment 2 Vishesh Handa 2011-07-30 14:13:03 UTC
Git commit 026161ec5f40990e74ba820129d9418928f20764 by Vishesh Handa.
Committed on 30/07/2011 at 16:08.
Pushed by vhanda into branch 'master'.

Thread safey in the Query Service

The Nepomuk::Query::Folder::initialListingDone() function can be called via dbus
at any point via the FolderConnection, at that point the listingFinished() function
might be in the process of changing m_initialListingDone's value => CRASH

Ditto with Nepomuk::Query::Folder::entries(). It can be called via
FolderConnection's list method.

BUG: 269650
REVIEW: 102129

M  +4    -0    nepomuk/services/queryservice/folder.cpp
M  +1    -1    nepomuk/services/queryservice/folder.h

http://commits.kde.org/kde-runtime/026161ec5f40990e74ba820129d9418928f20764
Comment 3 Vishesh Handa 2011-07-31 14:32:47 UTC
*** Bug 275117 has been marked as a duplicate of this bug. ***
Comment 4 Vishesh Handa 2011-07-31 14:55:08 UTC
*** Bug 274057 has been marked as a duplicate of this bug. ***
Comment 5 Vishesh Handa 2011-08-29 19:38:05 UTC
*** Bug 280920 has been marked as a duplicate of this bug. ***