Bug 312497

Summary: File Indexing is in an infinite file loop
Product: [Unmaintained] nepomuk Reporter: Jessie A. Morris <jessie>
Component: generalAssignee: Nepomuk Bugs Coordination <nepomuk-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: me, nepomuk-bugs
Priority: NOR    
Version: 4.9.95 RC1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jessie A. Morris 2013-01-02 18:06:46 UTC
Application: nepomukservicestub (0.1.0)
KDE Platform Version: 4.9.95
Qt Version: 4.8.3
Operating System: Linux 3.5.0-21-generic x86_64
Distribution: Ubuntu 12.10

-- Information about the crash:
- What I was doing when the application crashed:
The Nepomuk File Indexer was running and was indexing files. In my directory structure, there are several symbolic links to parent directories (Wine directories who have symlinks to /, /home/, etc. It appeared to be about 4 levels deep.

My directory structure looks like so:

/home/jessie:
lrwxrwxrwx  1 jessie jessie    38 Dec 21 12:03 PlayOnLinux's virtual drives -> /home/jessie/.PlayOnLinux//wineprefix//

/home/jessie/PlayOnLinux's virtual drives:

drwxrwxr-x 4 jessie jessie 4096 Dec 26 13:45 Safari/

/home/jessie/.../Safari:

drwxrwxr-x 2 jessie jessie    4096 Dec 21 12:09 dosdevices/

/home/jessie/.../Safari/dosdevices:
lrwxrwxrwx 1 jessie jessie 10 Dec 21 12:09 c: -> ../drive_c/                                            
lrwxrwxrwx 1 jessie jessie  1 Dec 21 12:09 z: -> // 


Since z: is a symlink to "/", it gets stuck in an infinate recursive loop, reindexing all files again and again and again ad infinity.

- Unusual behavior I noticed:
Before Nepomuk crashed, I observed in the file indexer taskbar icon, that it was indexing something like:

/home/jessie/PlayOnLinux's virtual drives/Safari/dosdevices/z:/home/jessie/PlayOnLinux's virtual drives/Safari/dosdevices/z:/home/jessie/PlayOnLinux's virtual drives/Safari/dosdevices/z:/home/jessie/Music

The crash can be reproduced some of the time.

-- Backtrace:
Application: Nepomuk Service Stub (nepomukservicestub), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#5  0x00007f9552ce4425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x00007f9552ce7b8b in abort () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x00007f9552d2239e in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#8  0x00007f9552db882c in __fortify_fail () from /lib/x86_64-linux-gnu/libc.so.6
#9  0x00007f9552db7700 in __chk_fail () from /lib/x86_64-linux-gnu/libc.so.6
#10 0x00007f9552db87be in __fdelt_warn () from /lib/x86_64-linux-gnu/libc.so.6
#11 0x00007f95551ee854 in QProcessPrivate::waitForStarted (this=0x2bf1ff0, msecs=30000) at io/qprocess_unix.cpp:1038
#12 0x00007f95551a8f53 in QProcess::waitForFinished (this=0x3848160, msecs=30000) at io/qprocess.cpp:1752
#13 0x00007f95444bdc86 in Nepomuk2::FileIndexingJob::slotProcessTimerTimeout (this=0x26509d0) at ../../../services/fileindexer/fileindexingjob.cpp:89
#14 0x00007f9555228f5f in QMetaObject::activate (sender=0x37a84f0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#15 0x00007f955522826c in QObject::event (this=0x37a84f0, e=<optimized out>) at kernel/qobject.cpp:1157
#16 0x00007f955353be9c in QApplicationPrivate::notify_helper (this=this@entry=0x1316df0, receiver=receiver@entry=0x37a84f0, e=e@entry=0x7fff150efc80) at kernel/qapplication.cpp:4562
#17 0x00007f955354030a in QApplication::notify (this=0x7fff150f0120, receiver=0x37a84f0, e=0x7fff150efc80) at kernel/qapplication.cpp:4423
#18 0x00007f9554543626 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#19 0x00007f955521356e in QCoreApplication::notifyInternal (this=0x7fff150f0120, receiver=0x37a84f0, event=0x7fff150efc80) at kernel/qcoreapplication.cpp:915
#20 0x00007f9555244462 in sendEvent (event=0x7fff150efc80, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#21 QTimerInfoList::activateTimers (this=0x131bd60) at kernel/qeventdispatcher_unix.cpp:611
#22 0x00007f9555241584 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:186
#23 timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:180
#24 0x00007f95552415a1 in idleTimerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:233
#25 0x00007f95521beab5 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007f95521bede8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f95521beea4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007f9555241bf6 in QEventDispatcherGlib::processEvents (this=0x12f4780, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#29 0x00007f95535e0c1e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#30 0x00007f95552122bf in QEventLoop::processEvents (this=this@entry=0x7fff150eff00, flags=...) at kernel/qeventloop.cpp:149
#31 0x00007f9555212548 in QEventLoop::exec (this=0x7fff150eff00, flags=...) at kernel/qeventloop.cpp:204
#32 0x00007f9555217708 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#33 0x0000000000403dd0 in main (argc=<optimized out>, argv=0x7fff150f0368) at ../../servicestub/main.cpp:177

Reported using DrKonqi
Comment 1 Vishesh Handa 2013-01-07 09:31:40 UTC

*** This bug has been marked as a duplicate of bug 312113 ***