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

List:       kde-devel
Subject:    Crash in dolphin with Nepomuk services running
From:       "Alex Merry I'v" <huntedhacker () tiscali ! co ! uk>
Date:       2007-08-31 20:27:50
Message-ID: 200708312127.56401.huntedhacker () tiscali ! co ! uk
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/mixed)]


I've spent the last few hours trying to debug a crash in dolphin, and 
I'm stuck.

System:
Arch linux
libxml-2.6.29
raptor-1.4.15
rasqal-0.9.14
redland-1.0.5
Up-to-date svn KDE 4 build environment

What happens is that I start strigidaemon and nepomukdaemon, start 
dolphin and hover over a file (not a folder).  Dolphin crashes about 
half a second later (just when the information panel changes to show 
the info for the file being hovered over).

GDB backtrace (from Dr Konqi) and relevant valgrind output (both from 
the same session) attached.

I've got as far as figuring that 
Strigi::SaxEventAnalyzer::Private::init() is creating an xmlParserCtxt 
(for libxml) with itself as the user_data, but for some reason raptor 
is handling error messages and when an error occurs in xmlParseChunk 
(in Strigi::SaxEventAnalyzer::Private::push()), its error handler gets 
called.  However, this is expecting a raptor_error_handlers structure 
in the user_data.  So it tries to access a member that doesn't exist, 
and crashes.

I'm not sure how Raptor gets involved.  It's a dependency of Redland, 
which is a dependency of Soprano, which is used by Nepomuk.

One more thing: I get this crash consistently across successive runs of 
dolphin.  However, restarting nepomukdaemon (and nepomukcoreservices) 
sometimes cures the problem for one or two runs of dolphin.

Any help or pointers appreciated.

Alex


-- 
KDE: http://www.kde.org
Ubuntu/Kubuntu: http://www.ubuntu.org http://www.kubuntu.org

["dolphin-strigi-error.bt" (text/plain)]

[?1034hUsing host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 102669552 (LWP 13549)]
[New Thread 153729936 (LWP 13553)]
[KCrash handler]
#14 0x006f002e in ?? ()
#15 0x0985f7bf in raptor_log_error (level=RAPTOR_LOG_LEVEL_ERROR, 
    handler=0x6f002e, handler_data=0x730000, locator=0x32002f, 
    message=0x64f6498 "XML parser error: Document is empty")
    at raptor_general.c:914
#16 0x09867f6f in raptor_libxml_xmlStructuredErrorFunc (user_data=0x66db5d0, 
    err=0x64ec298) at raptor_libxml.c:623
#17 0x0601e228 in __xmlRaiseError () from /usr/lib/libxml2.so.2
#18 0x06022e23 in xmlFatalErr () from /usr/lib/libxml2.so.2
#19 0x06034d90 in xmlParseChunk__internal_alias () from /usr/lib/libxml2.so.2
#20 0x04f39f8a in Strigi::SaxEventAnalyzer::Private::push ()
   from /home/kde-devel/kde/lib/libstreamanalyzer.so.0
#21 0x04f3a0b0 in Strigi::SaxEventAnalyzer::Private::init ()
   from /home/kde-devel/kde/lib/libstreamanalyzer.so.0
#22 0x04f39a65 in Strigi::SaxEventAnalyzer::handleData ()
   from /home/kde-devel/kde/lib/libstreamanalyzer.so.0
#23 0x04f17495 in Strigi::EventThroughAnalyzer::handleData ()
   from /home/kde-devel/kde/lib/libstreamanalyzer.so.0
#24 0x04f967f7 in Strigi::DataEventInputStream::read ()
   from /home/kde-devel/kde/lib/libstreams.so.0
#25 0x04f3c8ca in Strigi::StreamAnalyzerPrivate::analyze ()
   from /home/kde-devel/kde/lib/libstreamanalyzer.so.0
#26 0x04f3cf99 in Strigi::StreamAnalyzer::analyze ()
   from /home/kde-devel/kde/lib/libstreamanalyzer.so.0
#27 0x048cc353 in KFileMetaInfoPrivate::init (this=0x651f9f8, 
    stream=@0xbee0a4e4, url=@0xbee0a590, mtime=1184282061)
    at /home/kde-devel/src/KDE/kdelibs/kio/kio/kfilemetainfo.cpp:189
#28 0x048cc496 in KFileMetaInfo (this=0xbee0a564, url=@0xbee0a590)
    at /home/kde-devel/src/KDE/kdelibs/kio/kio/kfilemetainfo.cpp:222
#29 0x0807d444 in InfoSidebarPage::showMetaInfo (this=0x6784bf8)
    at /home/kde-devel/src/KDE/kdebase/apps/dolphin/src/infosidebarpage.cpp:292
#30 0x0807dfa9 in InfoSidebarPage::showItemInfo (this=0x6784bf8)
    at /home/kde-devel/src/KDE/kdebase/apps/dolphin/src/infosidebarpage.cpp:217
#31 0x0807dfdf in InfoSidebarPage::slotTimeout (this=0x6784bf8)
    at /home/kde-devel/src/KDE/kdebase/apps/dolphin/src/infosidebarpage.cpp:223
#32 0x0807e29e in InfoSidebarPage::qt_metacall (this=0x6784bf8, 
    _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbee0ab14)
    at /home/kde-devel/build/KDE/kdebase/apps/dolphin/src/infosidebarpage.moc:79
#33 0x04147526 in QMetaObject::activate (sender=0x656e198, 
    from_signal_index=4, to_signal_index=4, argv=0x0)
    at /home/kde-devel/src/qt-copy/src/corelib/kernel/qobject.cpp:3072
#34 0x04147f31 in QMetaObject::activate (sender=0x656e198, m=0x41bbb04, 
    local_signal_index=0, argv=0x0)
    at /home/kde-devel/src/qt-copy/src/corelib/kernel/qobject.cpp:3134
#35 0x0416d821 in QTimer::timeout (this=0x656e198)
    at .moc/debug-shared/moc_qtimer.cpp:125
#36 0x04150874 in QTimer::timerEvent (this=0x656e198, e=0xbee0b0e4)
    at /home/kde-devel/src/qt-copy/src/corelib/kernel/qtimer.cpp:246
#37 0x041452e8 in QObject::event (this=0x656e198, e=0xbee0b0e4)
    at /home/kde-devel/src/qt-copy/src/corelib/kernel/qobject.cpp:1083
#38 0x05404423 in QApplicationPrivate::notify_helper (this=0x625d498, 
    receiver=0x656e198, e=0xbee0b0e4)
    at /home/kde-devel/src/qt-copy/src/gui/kernel/qapplication.cpp:3538
#39 0x0540473c in QApplication::notify (this=0xbee0b360, receiver=0x656e198, 
    e=0xbee0b0e4)
    at /home/kde-devel/src/qt-copy/src/gui/kernel/qapplication.cpp:3097
#40 0x04663ba3 in KApplication::notify (this=0xbee0b360, receiver=0x656e198, 
    event=0xbee0b0e4)
    at /home/kde-devel/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:300
#41 0x04133414 in QCoreApplication::notifyInternal (this=0xbee0b360, 
    receiver=0x656e198, event=0xbee0b0e4)
    at /home/kde-devel/src/qt-copy/src/corelib/kernel/qcoreapplication.cpp:509
#42 0x04136761 in QCoreApplication::sendEvent (receiver=0x656e198, 
    event=0xbee0b0e4)
    at ../../include/QtCore/../../../../src/qt-copy/src/corelib/kernel/qcoreapplication.h:186
#43 0x04160289 in QTimerInfoList::activateTimers (this=0x6263144)
    at /home/kde-devel/src/qt-copy/src/corelib/kernel/qeventdispatcher_unix.cpp:541
#44 0x0415dbba in timerSourceDispatch (source=0x6263110)
    at /home/kde-devel/src/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:142
#45 0x05e83226 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#46 0x05e865b2 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#47 0x05e86b6e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#48 0x0415cb48 in QEventDispatcherGlib::processEvents (this=0x625d918, 
    flags=@0xbee0b258)
    at /home/kde-devel/src/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:325
#49 0x0549aae8 in QGuiEventDispatcherGlib::processEvents (this=0x625d918, 
    flags=@0xbee0b28c)
    at /home/kde-devel/src/qt-copy/src/gui/kernel/qguieventdispatcher_glib.cpp:178
#50 0x041302f6 in QEventLoop::processEvents (this=0xbee0b300, 
    flags=@0xbee0b2c4)
    at /home/kde-devel/src/qt-copy/src/corelib/kernel/qeventloop.cpp:126
#51 0x04130478 in QEventLoop::exec (this=0xbee0b300, flags=@0xbee0b308)
    at /home/kde-devel/src/qt-copy/src/corelib/kernel/qeventloop.cpp:168
#52 0x04133b61 in QCoreApplication::exec ()
    at /home/kde-devel/src/qt-copy/src/corelib/kernel/qcoreapplication.cpp:729
#53 0x05403fa6 in QApplication::exec ()
    at /home/kde-devel/src/qt-copy/src/gui/kernel/qapplication.cpp:3035
#54 0x0807fd0c in main (argc=1, argv=0xbee0b4f4)
    at /home/kde-devel/src/KDE/kdebase/apps/dolphin/src/main.cpp:87
#0  0x3805a004 in ?? ()

["dolphin-strigi-error.valgrind" (text/x-objcsrc)]

==13549== Conditional jump or move depends on uninitialised value(s)
==13549==    at 0x985F7A6: raptor_log_error (raptor_general.c:906)
==13549==    by 0x9867F6E: raptor_libxml_xmlStructuredErrorFunc (raptor_libxml.c:623)
==13549==    by 0x601E227: __xmlRaiseError (in /usr/lib/libxml2.so.2.6.29)
==13549==    by 0x6022E22: xmlFatalErr (in /usr/lib/libxml2.so.2.6.29)
==13549==    by 0x6034D8F: xmlParseChunk (in /usr/lib/libxml2.so.2.6.29)
==13549==    by 0x4F39F89: Strigi::SaxEventAnalyzer::Private::push(char const*, int) \
(in /home/kde-devel/kde/lib/libstreamanalyzer.so.0.5.5) ==13549==    by 0x4F3A0AF: \
Strigi::SaxEventAnalyzer::Private::init(char const*, int) (in \
/home/kde-devel/kde/lib/libstreamanalyzer.so.0.5.5) ==13549==    by 0x4F39A64: \
Strigi::SaxEventAnalyzer::handleData(char const*, unsigned) (in \
/home/kde-devel/kde/lib/libstreamanalyzer.so.0.5.5) ==13549==    by 0x4F17494: \
Strigi::EventThroughAnalyzer::handleData(char const*, unsigned) (in \
/home/kde-devel/kde/lib/libstreamanalyzer.so.0.5.5) ==13549==    by 0x4F967F6: \
Strigi::DataEventInputStream::read(char const*&, int, int) (in \
/home/kde-devel/kde/lib/libstreams.so.0.5.5) ==13549==    by 0x4F3C8C9: \
Strigi::StreamAnalyzerPrivate::analyze(Strigi::AnalysisResult&, \
Strigi::StreamBase<char>*) (in /home/kde-devel/kde/lib/libstreamanalyzer.so.0.5.5) \
==13549==    by 0x4F3CF98: Strigi::StreamAnalyzer::analyze(Strigi::AnalysisResult&, \
Strigi::StreamBase<char>*) (in /home/kde-devel/kde/lib/libstreamanalyzer.so.0.5.5) \
==13549== ==13549== Use of uninitialised value of size 4
==13549==    at 0x985F7BC: raptor_log_error (raptor_general.c:914)
==13549==    by 0x9867F6E: raptor_libxml_xmlStructuredErrorFunc (raptor_libxml.c:623)
==13549==    by 0x601E227: __xmlRaiseError (in /usr/lib/libxml2.so.2.6.29)
==13549==    by 0x6022E22: xmlFatalErr (in /usr/lib/libxml2.so.2.6.29)
==13549==    by 0x6034D8F: xmlParseChunk (in /usr/lib/libxml2.so.2.6.29)
==13549==    by 0x4F39F89: Strigi::SaxEventAnalyzer::Private::push(char const*, int) \
(in /home/kde-devel/kde/lib/libstreamanalyzer.so.0.5.5) ==13549==    by 0x4F3A0AF: \
Strigi::SaxEventAnalyzer::Private::init(char const*, int) (in \
/home/kde-devel/kde/lib/libstreamanalyzer.so.0.5.5) ==13549==    by 0x4F39A64: \
Strigi::SaxEventAnalyzer::handleData(char const*, unsigned) (in \
/home/kde-devel/kde/lib/libstreamanalyzer.so.0.5.5) ==13549==    by 0x4F17494: \
Strigi::EventThroughAnalyzer::handleData(char const*, unsigned) (in \
/home/kde-devel/kde/lib/libstreamanalyzer.so.0.5.5) ==13549==    by 0x4F967F6: \
Strigi::DataEventInputStream::read(char const*&, int, int) (in \
/home/kde-devel/kde/lib/libstreams.so.0.5.5) ==13549==    by 0x4F3C8C9: \
Strigi::StreamAnalyzerPrivate::analyze(Strigi::AnalysisResult&, \
Strigi::StreamBase<char>*) (in /home/kde-devel/kde/lib/libstreamanalyzer.so.0.5.5) \
==13549==    by 0x4F3CF98: Strigi::StreamAnalyzer::analyze(Strigi::AnalysisResult&, \
Strigi::StreamBase<char>*) (in /home/kde-devel/kde/lib/libstreamanalyzer.so.0.5.5) \
==13549== ==13549== Jump to the invalid address stated on the next line
==13549==    at 0x6F002E: ???
==13549==    by 0x9867F6E: raptor_libxml_xmlStructuredErrorFunc (raptor_libxml.c:623)
==13549==    by 0x601E227: __xmlRaiseError (in /usr/lib/libxml2.so.2.6.29)
==13549==    by 0x6022E22: xmlFatalErr (in /usr/lib/libxml2.so.2.6.29)
==13549==    by 0x6034D8F: xmlParseChunk (in /usr/lib/libxml2.so.2.6.29)
==13549==    by 0x4F39F89: Strigi::SaxEventAnalyzer::Private::push(char const*, int) \
(in /home/kde-devel/kde/lib/libstreamanalyzer.so.0.5.5) ==13549==    by 0x4F3A0AF: \
Strigi::SaxEventAnalyzer::Private::init(char const*, int) (in \
/home/kde-devel/kde/lib/libstreamanalyzer.so.0.5.5) ==13549==    by 0x4F39A64: \
Strigi::SaxEventAnalyzer::handleData(char const*, unsigned) (in \
/home/kde-devel/kde/lib/libstreamanalyzer.so.0.5.5) ==13549==    by 0x4F17494: \
Strigi::EventThroughAnalyzer::handleData(char const*, unsigned) (in \
/home/kde-devel/kde/lib/libstreamanalyzer.so.0.5.5) ==13549==    by 0x4F967F6: \
Strigi::DataEventInputStream::read(char const*&, int, int) (in \
/home/kde-devel/kde/lib/libstreams.so.0.5.5) ==13549==    by 0x4F3C8C9: \
Strigi::StreamAnalyzerPrivate::analyze(Strigi::AnalysisResult&, \
Strigi::StreamBase<char>*) (in /home/kde-devel/kde/lib/libstreamanalyzer.so.0.5.5) \
==13549==    by 0x4F3CF98: Strigi::StreamAnalyzer::analyze(Strigi::AnalysisResult&, \
Strigi::StreamBase<char>*) (in /home/kde-devel/kde/lib/libstreamanalyzer.so.0.5.5) \
==13549==  Address 0x6F002E is not stack'd, malloc'd or (recently) free'd


["signature.asc" (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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