Bug 168111 - KGet crash in Nepomuk integration
Summary: KGet crash in Nepomuk integration
Status: RESOLVED FIXED
Alias: None
Product: kget
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KGet authors
URL:
Keywords:
: 168190 168431 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-02 15:40 UTC by James
Modified: 2009-06-07 19:01 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
backtrace (7.22 KB, text/plain)
2008-08-05 20:51 UTC, Lukas Appelhans
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James 2008-08-02 15:40:58 UTC
Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          g++ 4.3.1 
OS:                Linux

I set 9 files to download, and after around 30 minutes kget segfaulted. Repeated attempts to load kget again lead to a segfault. I updated KDE to trunk version (as of 2:00pm GMT 2nd August) and the fault remains.

Here is the backtrace:

Application: KGet (kget), signal SIGSEGV

Thread 1 (Thread 0xb5e74700 (LWP 2455)):
[KCrash Handler]
#6  0xb6b38f57 in Nepomuk::ResourceData::isValid (this=0xf1) at /home/kde-devel/kde/src/KDE/kdelibs/nepomuk/core/resourcedata.cpp:463
#7  0xb6b56320 in Nepomuk::Resource::isValid (this=0x82ae578) at /home/kde-devel/kde/src/KDE/kdelibs/nepomuk/core/resource.cpp:262
#8  0xb7c1005e in NepomukHandler::saveFileProperties (this=0x82ae570) at /home/kde-devel/kde/src/KDE/kdenetwork/kget/core/nepomukhandler.cpp:62
#9  0xb7bfb061 in Transfer::setStatus (this=0x829e730, jobStatus=Job::Finished, text=@0xbf9905b0, pix=@0xbf99059c) at /home/kde-devel/kde/src/KDE/kdenetwork/kget/core/transfer.cpp:220
#10 0xb5e65062 in TransferKio::slotResult (this=0x829e728, kioJob=0x82ae570) at /home/kde-devel/kde/src/KDE/kdenetwork/kget/transfer-plugins/kio/transferKio.cpp:124
#11 0xb5e6539c in TransferKio::qt_metacall (this=0x829e728, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xbf9906dc)
    at /home/kde-devel/kde/build/KDE/kdenetwork/kget/transfer-plugins/kio/transferKio.moc:90
#12 0xb699481b in QMetaObject::activate (sender=0x82ae570, from_signal_index=<value optimized out>, to_signal_index=7, argv=0xf1)
    at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qobject.cpp:3010
#13 0xb6994eb2 in QMetaObject::activate (sender=0x82ae570, m=0xb77b4508, local_signal_index=3, argv=0xbf9906dc) at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qobject.cpp:3080
#14 0xb76a3694 in KJob::result (this=0x82ae570, _t1=0x82ae570) at /home/kde-devel/kde/build/KDE/kdelibs/kdecore/kjob.moc:186
#15 0xb76a3bd2 in KJob::emitResult (this=0x82ae570) at /home/kde-devel/kde/src/KDE/kdelibs/kdecore/jobs/kjob.cpp:290
#16 0xb790c3a1 in KIO::FileCopyJob::slotResult (this=0x82ae570, job=0x81aa650) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/job.cpp:2125
#17 0xb790cf97 in KIO::FileCopyJob::qt_metacall (this=0x82ae570, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbf99083c) at /home/kde-devel/kde/build/KDE/kdelibs/kio/jobclasses.moc:658
#18 0xb699481b in QMetaObject::activate (sender=0x81aa650, from_signal_index=<value optimized out>, to_signal_index=7, argv=0xf1)
    at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qobject.cpp:3010
#19 0xb6994eb2 in QMetaObject::activate (sender=0x81aa650, m=0xb77b4508, local_signal_index=3, argv=0xbf99083c) at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qobject.cpp:3080
#20 0xb76a3694 in KJob::result (this=0x81aa650, _t1=0x81aa650) at /home/kde-devel/kde/build/KDE/kdelibs/kdecore/kjob.moc:186
#21 0xb76a3bd2 in KJob::emitResult (this=0x81aa650) at /home/kde-devel/kde/src/KDE/kdelibs/kdecore/jobs/kjob.cpp:290
#22 0xb7906019 in KIO::SimpleJob::slotFinished (this=0x81aa650) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/job.cpp:498
#23 0xb79063f2 in KIO::TransferJob::slotFinished (this=0x81aa650) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/job.cpp:967
#24 0xb790393c in KIO::SimpleJob::slotError (this=0x81aa650, err=112, errorText=@0xbf990bec) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/job.cpp:510
#25 0xb79057a4 in KIO::SimpleJob::qt_metacall (this=0x81aa650, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbf990b38) at /home/kde-devel/kde/build/KDE/kdelibs/kio/jobclasses.moc:155
#26 0xb790d23e in KIO::TransferJob::qt_metacall (this=0x81aa650, _c=QMetaObject::InvokeMetaMethod, _id=31, _a=0xbf990b38) at /home/kde-devel/kde/build/KDE/kdelibs/kio/jobclasses.moc:324
#27 0xb699481b in QMetaObject::activate (sender=0x82ef088, from_signal_index=<value optimized out>, to_signal_index=6, argv=0xf1)
    at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qobject.cpp:3010
#28 0xb6994eb2 in QMetaObject::activate (sender=0x82ef088, m=0xb7a8aec4, local_signal_index=2, argv=0xbf990b38) at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qobject.cpp:3080
#29 0xb79af27d in KIO::SlaveInterface::error (this=0x82ef088, _t1=112, _t2=@0xbf990bec) at /home/kde-devel/kde/build/KDE/kdelibs/kio/slaveinterface.moc:151
#30 0xb79b13e2 in KIO::SlaveInterface::dispatch (this=0x82ef088, _cmd=102, rawdata=@0xbf990ca4) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/slaveinterface.cpp:213
#31 0xb79b1056 in KIO::SlaveInterface::dispatch (this=0x82ef088) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/slaveinterface.cpp:91
#32 0xb79a36da in KIO::Slave::gotInput (this=0x82ef088) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/slave.cpp:319
#33 0xb79a4b32 in KIO::Slave::qt_metacall (this=0x82ef088, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbf990da8) at /home/kde-devel/kde/build/KDE/kdelibs/kio/slave.moc:75
#34 0xb699481b in QMetaObject::activate (sender=0x82b1f88, from_signal_index=<value optimized out>, to_signal_index=4, argv=0xf1)
    at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qobject.cpp:3010
#35 0xb6994eb2 in QMetaObject::activate (sender=0x82b1f88, m=0xb7a87b20, local_signal_index=0, argv=0x0) at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qobject.cpp:3080
#36 0xb78d5427 in KIO::Connection::readyRead (this=0x82b1f88) at /home/kde-devel/kde/build/KDE/kdelibs/kio/connection.moc:84
#37 0xb78d6363 in KIO::ConnectionPrivate::dequeue (this=0x82cce58) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/connection.cpp:82
#38 0xb78d729d in KIO::Connection::qt_metacall (this=0x82b1f88, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x82e9dd8) at /home/kde-devel/kde/build/KDE/kdelibs/kio/connection.moc:72
#39 0xb698e18b in QMetaCallEvent::placeMetaCall (this=0x82cadc0, object=0x82b1f88) at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qobject.cpp:535
#40 0xb69901d1 in QObject::event (this=0x82b1f88, e=0x82cadc0) at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qobject.cpp:1140
#41 0xb6dd659c in QApplicationPrivate::notify_helper (this=0x80c84e8, receiver=0x82b1f88, e=0x82cadc0) at /home/kde-devel/kde/src/qt-copy/src/gui/kernel/qapplication.cpp:3772
#42 0xb6ddb119 in QApplication::notify (this=0xbf9915a8, receiver=0x82b1f88, e=0x82cadc0) at /home/kde-devel/kde/src/qt-copy/src/gui/kernel/qapplication.cpp:3366
#43 0xb7de1313 in KApplication::notify (this=0xbf9915a8, receiver=0x82b1f88, event=0x82cadc0) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:311
#44 0xb697fab9 in QCoreApplication::notifyInternal (this=0xbf9915a8, receiver=0x82b1f88, event=0x82cadc0) at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qcoreapplication.cpp:587
#45 0xb6980e69 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x80b1438) at ../../include/QtCore/../../../../src/qt-copy/src/corelib/kernel/qcoreapplication.h:215
#46 0xb698108d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qcoreapplication.cpp:1091
#47 0xb69ab06f in postEventSourceDispatch (s=0x80c38c0) at ../../include/QtCore/../../../../src/qt-copy/src/corelib/kernel/qcoreapplication.h:220
#48 0xb6399cbe in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#49 0xb639d093 in ?? () from /usr/lib/libglib-2.0.so.0
#50 0x080c3838 in ?? ()
#51 0x00000000 in ?? ()
Comment 1 Lukas Appelhans 2008-08-02 15:44:51 UTC
Confirmed, it's a bug in Nepomuk...

Lukas
Comment 2 James 2008-08-02 17:15:40 UTC
Just got a similar but different backtrace leading up to NepoMuk that segfaults in different code:

Application: KGet (kget), signal SIGSEGV

Thread 1 (Thread 0xb5e7c700 (LWP 3664)):
[KCrash Handler]
#6  0xb6939ee8 in QUrl::isEmpty (this=0xb66fb121) at /home/kde-devel/kde/src/qt-copy/src/corelib/io/qurl.cpp:3805
#7  0xb6b40f7f in Nepomuk::ResourceData::isValid (this=0xb66fb10d) at /home/kde-devel/kde/src/KDE/kdelibs/nepomuk/core/resourcedata.cpp:467
#8  0xb6b5e320 in Nepomuk::Resource::isValid (this=0x82c6418) at /home/kde-devel/kde/src/KDE/kdelibs/nepomuk/core/resource.cpp:262
#9  0xb7c1805e in NepomukHandler::saveFileProperties (this=0x82c6410) at /home/kde-devel/kde/src/KDE/kdenetwork/kget/core/nepomukhandler.cpp:62
#10 0xb7c03061 in Transfer::setStatus (this=0x8294e10, jobStatus=Job::Finished, text=@0xbfc98920, pix=@0xbfc9890c) at /home/kde-devel/kde/src/KDE/kdenetwork/kget/core/transfer.cpp:220
#11 0xb5e6d062 in TransferKio::slotResult (this=0x8294e08, kioJob=0x82c6410) at /home/kde-devel/kde/src/KDE/kdenetwork/kget/transfer-plugins/kio/transferKio.cpp:124
#12 0xb5e6d39c in TransferKio::qt_metacall (this=0x8294e08, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xbfc98a4c)
    at /home/kde-devel/kde/build/KDE/kdenetwork/kget/transfer-plugins/kio/transferKio.moc:90
#13 0xb699c81b in QMetaObject::activate (sender=0x82c6410, from_signal_index=<value optimized out>, to_signal_index=7, argv=0xb66fb121)
    at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qobject.cpp:3010
#14 0xb699ceb2 in QMetaObject::activate (sender=0x82c6410, m=0xb77bc508, local_signal_index=3, argv=0xbfc98a4c) at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qobject.cpp:3080
#15 0xb76ab694 in KJob::result (this=0x82c6410, _t1=0x82c6410) at /home/kde-devel/kde/build/KDE/kdelibs/kdecore/kjob.moc:186
#16 0xb76abbd2 in KJob::emitResult (this=0x82c6410) at /home/kde-devel/kde/src/KDE/kdelibs/kdecore/jobs/kjob.cpp:290
#17 0xb79145b0 in KIO::FileCopyJob::slotResult (this=0x82c6410, job=0x81cc058) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/job.cpp:2191
#18 0xb7914f97 in KIO::FileCopyJob::qt_metacall (this=0x82c6410, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbfc98bac) at /home/kde-devel/kde/build/KDE/kdelibs/kio/jobclasses.moc:658
#19 0xb699c81b in QMetaObject::activate (sender=0x81cc058, from_signal_index=<value optimized out>, to_signal_index=7, argv=0xb66fb121)
    at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qobject.cpp:3010
#20 0xb699ceb2 in QMetaObject::activate (sender=0x81cc058, m=0xb77bc508, local_signal_index=3, argv=0xbfc98bac) at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qobject.cpp:3080
#21 0xb76ab694 in KJob::result (this=0x81cc058, _t1=0x81cc058) at /home/kde-devel/kde/build/KDE/kdelibs/kdecore/kjob.moc:186
#22 0xb76abbd2 in KJob::emitResult (this=0x81cc058) at /home/kde-devel/kde/src/KDE/kdelibs/kdecore/jobs/kjob.cpp:290
#23 0xb790e019 in KIO::SimpleJob::slotFinished (this=0x81cc058) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/job.cpp:498
#24 0xb790e3f2 in KIO::TransferJob::slotFinished (this=0x81cc058) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/job.cpp:967
#25 0xb79153c9 in KIO::TransferJob::qt_metacall (this=0x81cc058, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0xbfc98df8) at /home/kde-devel/kde/build/KDE/kdelibs/kio/jobclasses.moc:336
#26 0xb699c81b in QMetaObject::activate (sender=0x81cd740, from_signal_index=<value optimized out>, to_signal_index=8, argv=0xb66fb121)
    at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qobject.cpp:3010
#27 0xb699ceb2 in QMetaObject::activate (sender=0x81cd740, m=0xb7a92ec4, local_signal_index=4, argv=0x0) at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qobject.cpp:3080
#28 0xb79b71e1 in KIO::SlaveInterface::finished (this=0x81cd740) at /home/kde-devel/kde/build/KDE/kdelibs/kio/slaveinterface.moc:163
#29 0xb79b916a in KIO::SlaveInterface::dispatch (this=0x81cd740, _cmd=104, rawdata=@0xbfc98fa4) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/slaveinterface.cpp:176
#30 0xb79b9056 in KIO::SlaveInterface::dispatch (this=0x81cd740) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/slaveinterface.cpp:91
#31 0xb79ab6da in KIO::Slave::gotInput (this=0x81cd740) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/slave.cpp:319
#32 0xb79acb32 in KIO::Slave::qt_metacall (this=0x81cd740, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbfc990a8) at /home/kde-devel/kde/build/KDE/kdelibs/kio/slave.moc:75
#33 0xb699c81b in QMetaObject::activate (sender=0x82b8a10, from_signal_index=<value optimized out>, to_signal_index=4, argv=0xb66fb121)
    at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qobject.cpp:3010
#34 0xb699ceb2 in QMetaObject::activate (sender=0x82b8a10, m=0xb7a8fb20, local_signal_index=0, argv=0x0) at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qobject.cpp:3080
#35 0xb78dd427 in KIO::Connection::readyRead (this=0x82b8a10) at /home/kde-devel/kde/build/KDE/kdelibs/kio/connection.moc:84
#36 0xb78de363 in KIO::ConnectionPrivate::dequeue (this=0x81a89b8) at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/connection.cpp:82
#37 0xb78df29d in KIO::Connection::qt_metacall (this=0x82b8a10, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x8348be8) at /home/kde-devel/kde/build/KDE/kdelibs/kio/connection.moc:72
#38 0xb699618b in QMetaCallEvent::placeMetaCall (this=0x838cf58, object=0x82b8a10) at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qobject.cpp:535
#39 0xb69981d1 in QObject::event (this=0x82b8a10, e=0x838cf58) at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qobject.cpp:1140
#40 0xb6dde59c in QApplicationPrivate::notify_helper (this=0x80c84e8, receiver=0x82b8a10, e=0x838cf58) at /home/kde-devel/kde/src/qt-copy/src/gui/kernel/qapplication.cpp:3772
#41 0xb6de3119 in QApplication::notify (this=0xbfc998a8, receiver=0x82b8a10, e=0x838cf58) at /home/kde-devel/kde/src/qt-copy/src/gui/kernel/qapplication.cpp:3366
#42 0xb7de9313 in KApplication::notify (this=0xbfc998a8, receiver=0x82b8a10, event=0x838cf58) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:311
#43 0xb6987ab9 in QCoreApplication::notifyInternal (this=0xbfc998a8, receiver=0x82b8a10, event=0x838cf58) at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qcoreapplication.cpp:587
#44 0xb6988e69 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x80b1438) at ../../include/QtCore/../../../../src/qt-copy/src/corelib/kernel/qcoreapplication.h:215
#45 0xb698908d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /home/kde-devel/kde/src/qt-copy/src/corelib/kernel/qcoreapplication.cpp:1091
#46 0xb69b306f in postEventSourceDispatch (s=0x80c38c0) at ../../include/QtCore/../../../../src/qt-copy/src/corelib/kernel/qcoreapplication.h:220
#47 0xb63a1cbe in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#48 0xb63a5093 in ?? () from /usr/lib/libglib-2.0.so.0
#49 0x080c3838 in ?? ()
#50 0x00000000 in ?? ()

Comment 3 Lukas Appelhans 2008-08-03 11:52:09 UTC
*** Bug 168190 has been marked as a duplicate of this bug. ***
Comment 4 Lukas Appelhans 2008-08-05 17:37:09 UTC
*** Bug 168431 has been marked as a duplicate of this bug. ***
Comment 5 Sebastian Trueg 2008-08-05 20:37:12 UTC
I was not able to reproduce this. Does this still happen with current trunk?
Comment 6 Lukas Appelhans 2008-08-05 20:50:03 UTC
Yep, still there, I will attach a new backtrace...

Lukas
Comment 7 Lukas Appelhans 2008-08-05 20:51:08 UTC
Created attachment 26669 [details]
backtrace
Comment 8 James 2008-08-06 13:42:16 UTC
Still occurs here, same backtrace. Code checked out from svn trunk 6th August 8am GMT.
Comment 9 Daniel Winter 2008-09-01 03:49:34 UTC
Reassigned to kget, because after some hours of trying to fix it I am quite sure that it is no Nepomuk bug.

There is NepomukHandler::saveFileProperties() call from  m_nepomukHandler->saveFileProperties(); in transfer.cpp which then leads to the crash.

Well at that point m_nepomukHandler doesn't point to a NepomukHandler instance anymore. I tried to figure out where the bug in kget is but i have no clue, because there is no direct way to change the m_nepomukHandler pointer (ok there is, but that is not used.). But the address it points to is changed from the one set in the constrcutor of the Transfer class.
Comment 10 Urs Wolfer 2009-06-07 19:01:14 UTC
KGet nepomuk integration has been reworked quite a lot. If you still can reproduce this bug, please comment here.