[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: KDE/kdebase/runtime/nepomuk/strigibackend
From:       Michael Jansen <kde () michael-jansen ! biz>
Date:       2009-09-03 17:33:43
Message-ID: 200909031933.44005.kde () michael-jansen ! biz
[Download RAW message or body]

I finally found time to debug that. In other words it finally annoyed me enough.

Here is the backtrace. Do you need something else?

(gdb) bt
#0  0x00007ffff4bba645 in raise () from /lib64/libc.so.6
#1  0x00007ffff4bbbc33 in abort () from /lib64/libc.so.6
#2  0x00007ffff79f9f25 in qt_message_output (msgType=QtFatalMsg, buf=<value 
optimized out>) at global/qglobal.cpp:2042
#3  0x00007ffff79fa06b in qFatal (msg=<value optimized out>) at 
global/qglobal.cpp:2241
#4  0x00007ffff79fa10a in qt_assert (assertion=<value optimized out>, file=<value 
optimized out>, line=-1) at global/qglobal.cpp:1811
#5  0x00007fffebe00a5c in Strigi::Soprano::IndexWriter::addTriplet 
(this=0x732fe0, s=<value optimized out>, p=<value optimized out>, o=<value 
optimized out>)
    at 
/home/mjansen/stage/kde/trunk/src/KDE/kdebase/runtime/nepomuk/strigibackend/sopranoindexwriter.cpp:511
 #6  0x00007fffee7f01f7 in Strigi::AnalysisResult::addTriplet (this=0x1e4c470, 
subject=@0x7fffe67afb70, predicate=@0x7fffeea96340, object=@0x7fffeea96368)
    at 
/home/mjansen/stage/kde/trunk/src/kdesupport/strigi/src/streamanalyzer/analysisresult.cpp:367
 #7  0x00007fffee83b0da in processAddress (idx=@0x1e4c470, 
address=@0x7fffe67afa18) at 
/home/mjansen/stage/kde/trunk/src/kdesupport/strigi/src/streamanalyzer/endanalyzers/mailendanalyzer.cpp:135
 #8  0x00007fffee83b4a5 in MailEndAnalyzer::analyze (this=0x1e77050, 
idx=@0x1e4c470, in=0x1ead650)
    at 
/home/mjansen/stage/kde/trunk/src/kdesupport/strigi/src/streamanalyzer/endanalyzers/mailendanalyzer.cpp:163
 #9  0x00007fffee825bac in Strigi::StreamAnalyzerPrivate::analyze 
(this=0x7e8470, idx=@0x1e4c470, input=0x1ead650)
    at 
/home/mjansen/stage/kde/trunk/src/kdesupport/strigi/src/streamanalyzer/streamanalyzer.cpp:419
 #10 0x00007fffee826448 in Strigi::StreamAnalyzer::analyze (this=0x7fffe67b0fc0, 
idx=@0x1e4c470, input=0x1ea5370)
    at 
/home/mjansen/stage/kde/trunk/src/kdesupport/strigi/src/streamanalyzer/streamanalyzer.cpp:363
 #11 0x00007fffee7f1f52 in Strigi::AnalysisResult::indexChild 
(this=0x7fffe67b0440, name=@0x7fffe67b0050, mt=1246486216, file=0x1ea5370)
    at 
/home/mjansen/stage/kde/trunk/src/kdesupport/strigi/src/streamanalyzer/analysisresult.cpp:249
 #12 0x00007fffee83ba9d in MailEndAnalyzer::analyze (this=0x1803e30, 
idx=@0x7fffe67b0440, in=0x1e702c0)
    at 
/home/mjansen/stage/kde/trunk/src/kdesupport/strigi/src/streamanalyzer/endanalyzers/mailendanalyzer.cpp:201
 #13 0x00007fffee825bac in Strigi::StreamAnalyzerPrivate::analyze 
(this=0x7e8470, idx=@0x7fffe67b0440, input=0x1e702c0)
    at 
/home/mjansen/stage/kde/trunk/src/kdesupport/strigi/src/streamanalyzer/streamanalyzer.cpp:419
 #14 0x00007fffee826448 in Strigi::StreamAnalyzer::analyze (this=0x7fffe67b0fc0, 
idx=@0x7fffe67b0440, input=0x7fffe67b0350)
    at 
/home/mjansen/stage/kde/trunk/src/kdesupport/strigi/src/streamanalyzer/streamanalyzer.cpp:363
 #15 0x00007fffee7f06e0 in Strigi::AnalysisResult::index (this=0x7fffe67b0440, 
file=0x7fffe67b0350) at 
/home/mjansen/stage/kde/trunk/src/kdesupport/strigi/src/streamanalyzer/analysisresult.cpp:232
 #16 0x00007fffecc698f5 in Nepomuk::IndexScheduler::analyzeFile (this=<value 
optimized out>, file=@0x1d719f0, analyzer=0x7fffe67b0fc0)
    at 
/home/mjansen/stage/kde/trunk/src/KDE/kdebase/runtime/nepomuk/services/strigi/indexscheduler.cpp:339
 #17 0x00007fffecc69f3b in Nepomuk::IndexScheduler::updateDir (this=0x794d10, 
dir=@0x1b23008, analyzer=0x7fffe67b0fc0, flags={i = -428143952})
    at 
/home/mjansen/stage/kde/trunk/src/KDE/kdebase/runtime/nepomuk/services/strigi/indexscheduler.cpp:311
 #18 0x00007fffecc69ff7 in Nepomuk::IndexScheduler::updateDir (this=0x794d10, 
dir=@0xa38ef8, analyzer=0x7fffe67b0fc0, flags={i = -428143072})
    at 
/home/mjansen/stage/kde/trunk/src/KDE/kdebase/runtime/nepomuk/services/strigi/indexscheduler.cpp:318
 #19 0x00007fffecc69ff7 in Nepomuk::IndexScheduler::updateDir (this=0x794d10, 
dir=@0x7fffe67b0f60, analyzer=0x7fffe67b0fc0, flags={i = -428142640})
    at 
/home/mjansen/stage/kde/trunk/src/KDE/kdebase/runtime/nepomuk/services/strigi/indexscheduler.cpp:318
 #20 0x00007fffecc6a3b0 in Nepomuk::IndexScheduler::run (this=0x794d10) at 
/home/mjansen/stage/kde/trunk/src/KDE/kdebase/runtime/nepomuk/services/strigi/indexscheduler.cpp:224
 #21 0x00007ffff7a01e75 in QThreadPrivate::start (arg=0x794d10) at 
thread/qthread_unix.cpp:188
#22 0x00007ffff778e070 in start_thread () from /lib64/libpthread.so.0
#23 0x00007ffff4c5b10d in clone () from /lib64/libc.so.6
#24 0x0000000000000000 in ?? ()


On Saturday 22 August 2009 10:11:07 Sebastian Trüg wrote:
> Hi Michael,
> 
> run the service in a debugger. First stop it:
> 
> qdbus org.kde.NepomukServer /servicemanager
> org.kde.nepomuk.ServiceManager.stopService nepomukstrigiservice
> 
> then run it in gdb:
> 
> gdb nepomukservicestub
> # run nepomukstrigiservice
> 
> wait until it crashes and see which strigi analyser plugin is the problem
> by looking at the backtrace.
> 
> Cheers,
> Sebastian
> 
> On Friday 21 August 2009 20:32:32 Michael Jansen wrote:
> > Hi Sebastian
> > 
> > I get output like
> > 
> > [/kde/trunk/base/bin/nepomukservicestub] nepomukstrigiservice(28727)
> > Strigi::Soprano::IndexWriter::addTriplet: Attempt to add :swiuv
> > http://www.w3.org/1999/02/22-rdf-syntax-ns#type
> > http://www.semanticdesktop.org/ontologies/2007/03/22/nco#Contact to
> > IndexWriter with currentResult = NULL
> > ASSERT: "d->currentResult" in file
> > /home/mjansen/stage/kde/trunk/src/KDE/kdebase/runtime/nepomuk/strigibacke
> > nd /sopranoindexwriter.cpp, line 505
> > 
> > [/kde/trunk/base/bin/nepomukservicestub] nepomukstrigiservice(28722)
> > Strigi::Soprano::IndexWriter::addTriplet: Attempt to add :pfgre
> > http://www.w3.org/1999/02/22-rdf-syntax-ns#type
> > http://www.semanticdesktop.org/ontologies/2007/03/22/nco#Contact to
> > IndexWriter with currentResult = NULL
> > ASSERT: "d->currentResult" in file
> > /home/mjansen/stage/kde/trunk/src/KDE/kdebase/runtime/nepomuk/strigibacke
> > nd /sopranoindexwriter.cpp, line 505
> > 
> > here. Any idea what i can do to find out what file/??? ... is the problem
> > so someone can reproduce and fix it? It crashes really often.
> > 
> > Mike
> > 
> > On Friday 21 August 2009 18:36:55 Michael Jansen wrote:
> > > SVN commit 1014141 by mjansen:
> > > 
> > > Add some debug output and code to be able to find out why that stuff
> > > crashes so often for me.
> > > 
> > > M  +11 -0     sopranoindexwriter.cpp
> > > 
> > > 
> > > ---
> > > trunk/KDE/kdebase/runtime/nepomuk/strigibackend/sopranoindexwriter.cpp
> > > #1014140:1014141 @@ -41,6 +41,7 @@
> > > #include <QtCore/QUuid>
> > > 
> > > #include <KUrl>
> > > +#include <KDebug>
> > > 
> > > #include <sys/stat.h>
> > > #include <stdlib.h>
> > > @@ -496,6 +497,16 @@
> > > // Thus, we can just remember that and use it here.
> > > //
> > > 
> > > +    // mjansen: 08/2009 - I get many crashes here and can't print s, p
> > > and o +    // from the debugger with the core files. So print out this
> > > information +    // and then die.
> > > +    if (!d->currentResult) {
> > > +        kWarning() << "Attempt to add" << s.c_str() << p.c_str() <<
> > > o.c_str() << "to IndexWriter with currentResult = NULL"; +
> > > Q_ASSERT(d->currentResult);
> > > +        // In production just return.
> > > +        return;
> > > +    }
> > > +
> > > FileMetaData* md = static_cast<FileMetaData*>(
> > > d->currentResult->writerData() );
> > > 
> > > QUrl subject = d->mapNode( md, s );
> 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic