Summary: | kactivitymanagerd crashes on startup [ActivityRankingPlugin] | ||
---|---|---|---|
Product: | [Plasma] kactivitymanagerd | Reporter: | Raphael Kubo da Costa <rakuco> |
Component: | general | Assignee: | Ivan Čukić <ivan.cukic> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | avg, nucleo, plasma-bugs, rdieter |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | FreeBSD | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Raphael Kubo da Costa
2012-08-21 02:39:21 UTC
1) Can you get the same output via kcrash dialogue - it would be easier to see which thread caused the crash 2) Can you add the following into the activitymanager-pluginsrc, "Global" section disabledPlugins=org.kde.kactivitymanager.activityranking 3) Remove all previously installed kamd files and reinstall it. (In reply to comment #1) > 1) Can you get the same output via kcrash dialogue - it would be easier to > see which thread caused the crash Curiously enough, no thread is marked as [KCrash Handler] Application: KDE Activity Manager (kactivitymanagerd), signal: Segmentation fault: 11 [New Thread 80bc0f000 (LWP 100616)] [New Thread 80bc0e800 (LWP 100614)] [New Thread 80bc0d000 (LWP 100613)] [New Thread 80bc07400 (LWP 100362)] [Switching to Thread 80bc0e800 (LWP 100614)] 0x0000000802eec0e7 in ?? () from /lib/libthr.so.3 [Current thread is 2 (Thread 80bc0e800 (LWP 100614))] Thread 4 (Thread 80bc07400 (LWP 100362)): #0 0x0000000804bcf63c in nanosleep () from /lib/libc.so.7 #1 0x0000000804b4020a in sleep () from /lib/libc.so.7 #2 0x0000000802ee84c3 in sleep () from /lib/libthr.so.3 #3 0x00000008010cc855 in startProcessInternal (argc=20, argv=0x7fffffffb5d0, waitAndExit=true, directly=false) at /home/rakuco/kde4/src/kde/kdelibs/kdeui/util/kcrash.cpp:558 #4 0x00000008010cc76f in KCrash::startProcess (argc=20, argv=0x7fffffffb5d0, waitAndExit=true) at /home/rakuco/kde4/src/kde/kdelibs/kdeui/util/kcrash.cpp:524 #5 0x00000008010cc6d1 in KCrash::defaultCrashHandler (sig=11) at /home/rakuco/kde4/src/kde/kdelibs/kdeui/util/kcrash.cpp:435 #6 0x0000000802eea9fe in ?? () from /lib/libthr.so.3 #7 0x0000000802eea58f in ?? () from /lib/libthr.so.3 #8 0x00007ffffffff023 in ?? () #9 0x0000000802eea460 in sigaction () from /lib/libthr.so.3 #10 0x00000008029e8f0e in qGetPtrHelper<QScopedPointer<QObjectData> > (p=...) at ../../include/QtCore/../../../../qt-4.8/src/corelib/global/qglobal.h:2455 #11 0x00000008029e8fc2 in QThread::d_func (this=0x0) at ../../include/QtCore/../../../../qt-4.8/src/corelib/thread/qthread.h:130 #12 0x00000008029f25f6 in QThread::exit (this=0x0, returnCode=0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/thread/qthread.cpp:532 #13 0x00000008128c554d in ActivityRankingPlugin::~ActivityRankingPlugin (this=0x80c6486e0, __in_chrg=<optimized out>) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/plugins/activityranking/activityrankingplugin.cpp:71 #14 0x00000008128c55be in ActivityRankingPlugin::~ActivityRankingPlugin (this=0x80c6486e0, __in_chrg=<optimized out>) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/plugins/activityranking/activityrankingplugin.cpp:73 #15 0x00000000004123e9 in KPluginFactory::create<Plugin> (this=0x80bc70fa0, parent=0x80be04dc0, args=...) at /home/rakuco/kde4/include/kpluginfactory.h:511 #16 0x0000000000410712 in Application::loadPlugins (this=0x80be04dc0) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/Application.cpp:165 #17 0x000000000040a76c in Application::qt_static_metacall (_o=0x80be04dc0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x80bc1ae00) at /usr/home/rakuco/kde4/src/build/kde/kdelibs/kactivities/src/service/moc_Application.cpp:49 #18 0x0000000802b3b82f in QMetaCallEvent::placeMetaCall (this=0x80c6e5a60, object=0x80be04dc0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qobject.cpp:525 #19 0x0000000802b3cab5 in QObject::event (this=0x80be04dc0, e=0x80c6e5a60) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qobject.cpp:1195 #20 0x0000000802b25557 in QCoreApplication::event (this=0x80be04dc0, e=0x80c6e5a60) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:1727 #21 0x0000000803368995 in QApplication::event (this=0x80be04dc0, e=0x80c6e5a60) at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qapplication.cpp:2539 #22 0x000000080336e4a4 in QApplicationPrivate::notify_helper (this=0x80bc2f700, receiver=0x80be04dc0, e=0x80c6e5a60) at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qapplication.cpp:4557 #23 0x000000080336bae0 in QApplication::notify (this=0x80be04dc0, receiver=0x80be04dc0, e=0x80c6e5a60) at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qapplication.cpp:3939 #24 0x000000080104d173 in KApplication::notify (this=0x80be04dc0, receiver=0x80be04dc0, event=0x80c6e5a60) at /home/rakuco/kde4/src/kde/kdelibs/kdeui/kernel/kapplication.cpp:311 #25 0x0000000802b23c7a in QCoreApplication::notifyInternal (this=0x80be04dc0, receiver=0x80be04dc0, event=0x80c6e5a60) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:915 #26 0x0000000802b27595 in QCoreApplication::sendEvent (receiver=0x80be04dc0, event=0x80c6e5a60) at ../../include/QtCore/../../../../qt-4.8/src/corelib/kernel/qcoreapplication.h:231 #27 0x0000000802b24c8e in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x80bc1d0f0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:1539 #28 0x0000000802b248af in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:1432 #29 0x0000000802b607d3 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../../../qt-4.8/src/corelib/kernel/qcoreapplication.h:236 #30 0x0000000802b5f7ac in postEventSourceDispatch (s=0x80bc1dda0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:279 #31 0x0000000808095fbe in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.0 #32 0x0000000808096779 in ?? () from /usr/local/lib/libglib-2.0.so.0 #33 0x000000080809685b in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0 #34 0x0000000802b60083 in QEventDispatcherGlib::processEvents (this=0x80bc19b50, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:424 #35 0x000000080344584c in QGuiEventDispatcherGlib::processEvents (this=0x80bc19b50, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qguieventdispatcher_glib.cpp:204 #36 0x0000000802b211a4 in QEventLoop::processEvents (this=0x7fffffffd260, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:149 #37 0x0000000802b2132e in QEventLoop::exec (this=0x7fffffffd260, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:204 #38 0x0000000802b242fa in QCoreApplication::exec () at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:1187 #39 0x000000080336b6ca in QApplication::exec () at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qapplication.cpp:3818 #40 0x0000000000410e4a in main (argc=1, argv=0x7fffffffd410) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/Application.cpp:239 Thread 3 (Thread 80bc0d000 (LWP 100613)): #0 0x0000000804b8bc3c in poll () from /lib/libc.so.7 #1 0x0000000802ee8103 in poll () from /lib/libthr.so.3 #2 0x0000000808096722 in ?? () from /usr/local/lib/libglib-2.0.so.0 #3 0x000000080809685b in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0 #4 0x0000000802b600a6 in QEventDispatcherGlib::processEvents (this=0x80bfef3a0, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:426 #5 0x0000000802b211a4 in QEventLoop::processEvents (this=0x7fffffbfde70, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:149 #6 0x0000000802b2132e in QEventLoop::exec (this=0x7fffffbfde70, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:204 #7 0x00000008029f2563 in QThread::exec (this=0x80bff53e0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/thread/qthread.cpp:501 #8 0x00000000004112ce in Thread::run (this=0x80bff53e0) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/Application.cpp:72 #9 0x00000008029f5079 in QThreadPrivate::start (arg=0x80bff53e0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/thread/qthread_unix.cpp:307 #10 0x0000000802ee6598 in ?? () from /lib/libthr.so.3 #11 0x0000000000000000 in ?? () Thread 2 (Thread 80bc0e800 (LWP 100614)): #0 0x0000000802eec0e7 in ?? () from /lib/libthr.so.3 #1 0x0000000808096393 in ?? () from /usr/local/lib/libglib-2.0.so.0 #2 0x000000080809685b in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0 #3 0x0000000802b600a6 in QEventDispatcherGlib::processEvents (this=0x811460040, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:426 #4 0x0000000802b211a4 in QEventLoop::processEvents (this=0x7fffff9fac10, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:149 #5 0x0000000802b2132e in QEventLoop::exec (this=0x7fffff9fac10, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:204 #6 0x00000008009cd866 in KJob::exec (this=0x8114b5d40) at /home/rakuco/kde4/src/kde/kdelibs/kdecore/jobs/kjob.cpp:210 #7 0x0000000801ad1a3c in Nepomuk2::ResourceData::setProperty (this=0x8114b86a0, uri=..., value=...) at /home/rakuco/kde4/src/kde/kdelibs/nepomuk-core/libnepomukcore/resource/resourcedata.cpp:401 #8 0x0000000801adbf19 in Nepomuk2::Resource::setProperty (this=0x7fffff9fae80, uri=..., value=...) at /home/rakuco/kde4/src/kde/kdelibs/nepomuk-core/libnepomukcore/resource/resource.cpp:216 #9 0x0000000801add91e in Nepomuk2::Resource::setLabel (this=0x7fffff9fae80, value=...) at /home/rakuco/kde4/src/kde/kdelibs/nepomuk-core/libnepomukcore/resource/resource.cpp:536 #10 0x000000000042195f in NepomukActivityManager::syncActivities (this=0x80c6d6af0, activityIds=...) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/NepomukActivityManager.cpp:242 #11 0x0000000000420776 in NepomukActivityManager::reinit (this=0x80c6d6af0) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/NepomukActivityManager.cpp:121 #12 0x000000000040da45 in NepomukActivityManager::qt_static_metacall (_o=0x80c6d6af0, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x80bc1ad70) at /usr/home/rakuco/kde4/src/build/kde/kdelibs/kactivities/src/service/moc_NepomukActivityManager.cpp:62 #13 0x0000000802b3b82f in QMetaCallEvent::placeMetaCall (this=0x80c4226f0, object=0x80c6d6af0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qobject.cpp:525 #14 0x0000000802b3cab5 in QObject::event (this=0x80c6d6af0, e=0x80c4226f0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qobject.cpp:1195 #15 0x000000080336e4a4 in QApplicationPrivate::notify_helper (this=0x80bc2f700, receiver=0x80c6d6af0, e=0x80c4226f0) at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qapplication.cpp:4557 #16 0x000000080336bae0 in QApplication::notify (this=0x80be04dc0, receiver=0x80c6d6af0, e=0x80c4226f0) at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qapplication.cpp:3939 #17 0x000000080104d173 in KApplication::notify (this=0x80be04dc0, receiver=0x80c6d6af0, event=0x80c4226f0) at /home/rakuco/kde4/src/kde/kdelibs/kdeui/kernel/kapplication.cpp:311 #18 0x0000000802b23c7a in QCoreApplication::notifyInternal (this=0x80be04dc0, receiver=0x80c6d6af0, event=0x80c4226f0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:915 #19 0x0000000802b27595 in QCoreApplication::sendEvent (receiver=0x80c6d6af0, event=0x80c4226f0) at ../../include/QtCore/../../../../qt-4.8/src/corelib/kernel/qcoreapplication.h:231 #20 0x0000000802b24c8e in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x80c4ce080) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:1539 #21 0x0000000802b248af in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:1432 #22 0x0000000802b607d3 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../../../qt-4.8/src/corelib/kernel/qcoreapplication.h:236 #23 0x0000000802b5f7ac in postEventSourceDispatch (s=0x8114a4080) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:279 #24 0x0000000808095fbe in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.0 #25 0x0000000808096779 in ?? () from /usr/local/lib/libglib-2.0.so.0 #26 0x000000080809685b in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0 #27 0x0000000802b60083 in QEventDispatcherGlib::processEvents (this=0x811460040, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:424 #28 0x0000000802b211a4 in QEventLoop::processEvents (this=0x7fffff9fbd60, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:149 #29 0x0000000802b2132e in QEventLoop::exec (this=0x7fffff9fbd60, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:204 #30 0x00000008009cd866 in KJob::exec (this=0x8114b5620) at /home/rakuco/kde4/src/kde/kdelibs/kdecore/jobs/kjob.cpp:210 #31 0x0000000801ad1a3c in Nepomuk2::ResourceData::setProperty (this=0x8114b7460, uri=..., value=...) at /home/rakuco/kde4/src/kde/kdelibs/nepomuk-core/libnepomukcore/resource/resourcedata.cpp:401 #32 0x0000000801adbf19 in Nepomuk2::Resource::setProperty (this=0x7fffff9fbf90, uri=..., value=...) at /home/rakuco/kde4/src/kde/kdelibs/nepomuk-core/libnepomukcore/resource/resource.cpp:216 #33 0x000000000042191b in NepomukActivityManager::syncActivities (this=0x80c6d6af0, activityIds=...) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/NepomukActivityManager.cpp:239 #34 0x0000000000420776 in NepomukActivityManager::reinit (this=0x80c6d6af0) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/NepomukActivityManager.cpp:121 #35 0x000000000040da45 in NepomukActivityManager::qt_static_metacall (_o=0x80c6d6af0, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x80bc1ad50) at /usr/home/rakuco/kde4/src/build/kde/kdelibs/kactivities/src/service/moc_NepomukActivityManager.cpp:62 #36 0x0000000802b3b82f in QMetaCallEvent::placeMetaCall (this=0x80c422600, object=0x80c6d6af0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qobject.cpp:525 #37 0x0000000802b3cab5 in QObject::event (this=0x80c6d6af0, e=0x80c422600) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qobject.cpp:1195 #38 0x000000080336e4a4 in QApplicationPrivate::notify_helper (this=0x80bc2f700, receiver=0x80c6d6af0, e=0x80c422600) at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qapplication.cpp:4557 #39 0x000000080336bae0 in QApplication::notify (this=0x80be04dc0, receiver=0x80c6d6af0, e=0x80c422600) at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qapplication.cpp:3939 #40 0x000000080104d173 in KApplication::notify (this=0x80be04dc0, receiver=0x80c6d6af0, event=0x80c422600) at /home/rakuco/kde4/src/kde/kdelibs/kdeui/kernel/kapplication.cpp:311 #41 0x0000000802b23c7a in QCoreApplication::notifyInternal (this=0x80be04dc0, receiver=0x80c6d6af0, event=0x80c422600) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:915 #42 0x0000000802b27595 in QCoreApplication::sendEvent (receiver=0x80c6d6af0, event=0x80c422600) at ../../include/QtCore/../../../../qt-4.8/src/corelib/kernel/qcoreapplication.h:231 #43 0x0000000802b24c8e in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x80c4ce080) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:1539 #44 0x0000000802b248af in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:1432 #45 0x0000000802b607d3 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../../../qt-4.8/src/corelib/kernel/qcoreapplication.h:236 #46 0x0000000802b5f7ac in postEventSourceDispatch (s=0x8114a4080) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:279 #47 0x0000000808095fbe in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.0 #48 0x0000000808096779 in ?? () from /usr/local/lib/libglib-2.0.so.0 #49 0x000000080809685b in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0 #50 0x0000000802b60083 in QEventDispatcherGlib::processEvents (this=0x811460040, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:424 #51 0x0000000802b211a4 in QEventLoop::processEvents (this=0x7fffff9fce70, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:149 #52 0x0000000802b2132e in QEventLoop::exec (this=0x7fffff9fce70, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:204 #53 0x00000008029f2563 in QThread::exec (this=0x80c617860) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/thread/qthread.cpp:501 #54 0x00000000004111e6 in Thread::run (this=0x80c617860) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/Application.cpp:72 #55 0x00000008029f5079 in QThreadPrivate::start (arg=0x80c617860) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/thread/qthread_unix.cpp:307 #56 0x0000000802ee6598 in ?? () from /lib/libthr.so.3 #57 0x0000000000000000 in ?? () Thread 1 (Thread 80bc0f000 (LWP 100616)): #0 0x0000000802ee811d in poll () from /lib/libthr.so.3 #1 0x0000000808096722 in ?? () from /usr/local/lib/libglib-2.0.so.0 #2 0x000000080809685b in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0 #3 0x0000000802b600a6 in QEventDispatcherGlib::processEvents (this=0x811860040, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:426 #4 0x0000000802b211a4 in QEventLoop::processEvents (this=0x7fffff7fbe70, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:149 #5 0x0000000802b2132e in QEventLoop::exec (this=0x7fffff7fbe70, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:204 #6 0x00000008029f2563 in QThread::exec (this=0x80c617660) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/thread/qthread.cpp:501 #7 0x00000000004110fe in Thread::run (this=0x80c617660) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/Application.cpp:72 #8 0x00000008029f5079 in QThreadPrivate::start (arg=0x80c617660) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/thread/qthread_unix.cpp:307 #9 0x0000000802ee6598 in ?? () from /lib/libthr.so.3 #10 0x0000000000000000 in ?? () > 2) Can you add the following into the activitymanager-pluginsrc, "Global" > section > disabledPlugins=org.kde.kactivitymanager.activityranking I do get the following debug output: These are the disabled plugins: ("org.kde.kactivitymanager.activityranking", "activitymanager_plugin_dummy", "activitymanager_plugin_nepomuk") However, a few lines later I also get: Loading library for: "activitymanager_plugin_activityranking" Creating Factory: "activitymanager_plugin_activityranking" Creating plugin: "activitymanager_plugin_activityranking" Backtrace: Application: KDE Activity Manager (kactivitymanagerd), signal: Segmentation fault: 11 [New Thread 80bc0f000 (LWP 100730)] [New Thread 80bc0e800 (LWP 100729)] [New Thread 80bc0d000 (LWP 100728)] [New Thread 80bc07400 (LWP 100634)] [Switching to Thread 80bc0f000 (LWP 100730)] 0x0000000804bcf65c in clock_gettime () from /lib/libc.so.7 [Current thread is 1 (Thread 80bc0f000 (LWP 100730))] Thread 4 (Thread 80bc07400 (LWP 100634)): #0 0x0000000804bcf63c in nanosleep () from /lib/libc.so.7 #1 0x0000000804b4020a in sleep () from /lib/libc.so.7 #2 0x0000000802ee84c3 in sleep () from /lib/libthr.so.3 #3 0x00000008010cc855 in startProcessInternal (argc=20, argv=0x7fffffffb490, waitAndExit=true, directly=false) at /home/rakuco/kde4/src/kde/kdelibs/kdeui/util/kcrash.cpp:558 #4 0x00000008010cc76f in KCrash::startProcess (argc=20, argv=0x7fffffffb490, waitAndExit=true) at /home/rakuco/kde4/src/kde/kdelibs/kdeui/util/kcrash.cpp:524 #5 0x00000008010cc6d1 in KCrash::defaultCrashHandler (sig=11) at /home/rakuco/kde4/src/kde/kdelibs/kdeui/util/kcrash.cpp:435 #6 0x0000000802eea9fe in ?? () from /lib/libthr.so.3 #7 0x0000000802eea58f in ?? () from /lib/libthr.so.3 #8 0x00007ffffffff023 in ?? () #9 0x0000000802eea460 in sigaction () from /lib/libthr.so.3 #10 0x00000008029e8f0e in qGetPtrHelper<QScopedPointer<QObjectData> > (p=...) at ../../include/QtCore/../../../../qt-4.8/src/corelib/global/qglobal.h:2455 #11 0x00000008029e8fc2 in QThread::d_func (this=0x0) at ../../include/QtCore/../../../../qt-4.8/src/corelib/thread/qthread.h:130 #12 0x00000008029f25f6 in QThread::exit (this=0x0, returnCode=0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/thread/qthread.cpp:532 #13 0x00000008128c554d in ActivityRankingPlugin::~ActivityRankingPlugin (this=0x80c6eb7c0, __in_chrg=<optimized out>) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/plugins/activityranking/activityrankingplugin.cpp:71 #14 0x00000008128c55be in ActivityRankingPlugin::~ActivityRankingPlugin (this=0x80c6eb7c0, __in_chrg=<optimized out>) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/plugins/activityranking/activityrankingplugin.cpp:73 #15 0x00000000004123e9 in KPluginFactory::create<Plugin> (this=0x80bc70fa0, parent=0x80be04dc0, args=...) at /home/rakuco/kde4/include/kpluginfactory.h:511 #16 0x0000000000410712 in Application::loadPlugins (this=0x80be04dc0) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/Application.cpp:165 #17 0x000000000040a76c in Application::qt_static_metacall (_o=0x80be04dc0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x80c41d068) at /usr/home/rakuco/kde4/src/build/kde/kdelibs/kactivities/src/service/moc_Application.cpp:49 #18 0x0000000802b3b82f in QMetaCallEvent::placeMetaCall (this=0x80c6e56a0, object=0x80be04dc0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qobject.cpp:525 #19 0x0000000802b3cab5 in QObject::event (this=0x80be04dc0, e=0x80c6e56a0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qobject.cpp:1195 #20 0x0000000802b25557 in QCoreApplication::event (this=0x80be04dc0, e=0x80c6e56a0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:1727 #21 0x0000000803368995 in QApplication::event (this=0x80be04dc0, e=0x80c6e56a0) at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qapplication.cpp:2539 #22 0x000000080336e4a4 in QApplicationPrivate::notify_helper (this=0x80bc2f700, receiver=0x80be04dc0, e=0x80c6e56a0) at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qapplication.cpp:4557 #23 0x000000080336bae0 in QApplication::notify (this=0x80be04dc0, receiver=0x80be04dc0, e=0x80c6e56a0) at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qapplication.cpp:3939 #24 0x000000080104d173 in KApplication::notify (this=0x80be04dc0, receiver=0x80be04dc0, event=0x80c6e56a0) at /home/rakuco/kde4/src/kde/kdelibs/kdeui/kernel/kapplication.cpp:311 #25 0x0000000802b23c7a in QCoreApplication::notifyInternal (this=0x80be04dc0, receiver=0x80be04dc0, event=0x80c6e56a0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:915 #26 0x0000000802b27595 in QCoreApplication::sendEvent (receiver=0x80be04dc0, event=0x80c6e56a0) at ../../include/QtCore/../../../../qt-4.8/src/corelib/kernel/qcoreapplication.h:231 #27 0x0000000802b24c8e in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x80bc1d0f0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:1539 #28 0x0000000802b248af in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:1432 #29 0x0000000802b607d3 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../../../qt-4.8/src/corelib/kernel/qcoreapplication.h:236 #30 0x0000000802b5f7ac in postEventSourceDispatch (s=0x80bc1dda0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:279 #31 0x0000000808095fbe in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.0 #32 0x0000000808096779 in ?? () from /usr/local/lib/libglib-2.0.so.0 #33 0x000000080809685b in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0 #34 0x0000000802b60083 in QEventDispatcherGlib::processEvents (this=0x80bc19b50, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:424 #35 0x000000080344584c in QGuiEventDispatcherGlib::processEvents (this=0x80bc19b50, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qguieventdispatcher_glib.cpp:204 #36 0x0000000802b211a4 in QEventLoop::processEvents (this=0x7fffffffd120, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:149 #37 0x0000000802b2132e in QEventLoop::exec (this=0x7fffffffd120, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:204 #38 0x0000000802b242fa in QCoreApplication::exec () at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:1187 #39 0x000000080336b6ca in QApplication::exec () at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qapplication.cpp:3818 #40 0x0000000000410e4a in main (argc=2, argv=0x7fffffffd2d0) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/Application.cpp:239 Thread 3 (Thread 80bc0d000 (LWP 100728)): #0 0x0000000804bcf65c in clock_gettime () from /lib/libc.so.7 #1 0x0000000802a6261c in do_gettime (sec=0x7fffffbfdb08, frac=0x7fffffbfdb00) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/tools/qelapsedtimer_unix.cpp:123 #2 0x0000000802a6264f in qt_gettime () at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/tools/qelapsedtimer_unix.cpp:140 #3 0x0000000802b62560 in QTimerInfoList::updateCurrentTime (this=0x80c45e460) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_unix.cpp:343 #4 0x0000000802b626b0 in QTimerInfoList::timerWait (this=0x80c45e460, tm=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_unix.cpp:450 #5 0x0000000802b5f383 in timerSourcePrepareHelper (src=0x80c45e400, timeout=0x7fffffbfdc74) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:136 #6 0x0000000802b5f522 in timerSourcePrepare (source=0x80c45e400, timeout=0x7fffffbfdc74) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:169 #7 0x00000008080955b6 in g_main_context_prepare () from /usr/local/lib/libglib-2.0.so.0 #8 0x0000000808096548 in ?? () from /usr/local/lib/libglib-2.0.so.0 #9 0x000000080809685b in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0 #10 0x0000000802b600a6 in QEventDispatcherGlib::processEvents (this=0x80bfe93e0, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:426 #11 0x0000000802b211a4 in QEventLoop::processEvents (this=0x7fffffbfde70, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:149 #12 0x0000000802b2132e in QEventLoop::exec (this=0x7fffffbfde70, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:204 #13 0x00000008029f2563 in QThread::exec (this=0x80bfe7420) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/thread/qthread.cpp:501 #14 0x00000000004112ce in Thread::run (this=0x80bfe7420) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/Application.cpp:72 #15 0x00000008029f5079 in QThreadPrivate::start (arg=0x80bfe7420) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/thread/qthread_unix.cpp:307 #16 0x0000000802ee6598 in ?? () from /lib/libthr.so.3 #17 0x0000000000000000 in ?? () Thread 2 (Thread 80bc0e800 (LWP 100729)): #0 0x0000000802eec0e7 in ?? () from /lib/libthr.so.3 #1 0x00000008080955ac in g_main_context_prepare () from /usr/local/lib/libglib-2.0.so.0 #2 0x0000000808096548 in ?? () from /usr/local/lib/libglib-2.0.so.0 #3 0x000000080809685b in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0 #4 0x0000000802b600a6 in QEventDispatcherGlib::processEvents (this=0x811460040, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:426 #5 0x0000000802b211a4 in QEventLoop::processEvents (this=0x7fffff9fce70, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:149 #6 0x0000000802b2132e in QEventLoop::exec (this=0x7fffff9fce70, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:204 #7 0x00000008029f2563 in QThread::exec (this=0x80c446940) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/thread/qthread.cpp:501 #8 0x00000000004111e6 in Thread::run (this=0x80c446940) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/Application.cpp:72 #9 0x00000008029f5079 in QThreadPrivate::start (arg=0x80c446940) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/thread/qthread_unix.cpp:307 #10 0x0000000802ee6598 in ?? () from /lib/libthr.so.3 #11 0x0000000000000000 in ?? () Thread 1 (Thread 80bc0f000 (LWP 100730)): #0 0x0000000804bcf65c in clock_gettime () from /lib/libc.so.7 #1 0x0000000802a6261c in do_gettime (sec=0x7fffff7fbb08, frac=0x7fffff7fbb00) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/tools/qelapsedtimer_unix.cpp:123 #2 0x0000000802a6264f in qt_gettime () at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/tools/qelapsedtimer_unix.cpp:140 #3 0x0000000802b62560 in QTimerInfoList::updateCurrentTime (this=0x8118612a0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_unix.cpp:343 #4 0x0000000802b626b0 in QTimerInfoList::timerWait (this=0x8118612a0, tm=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_unix.cpp:450 #5 0x0000000802b5f383 in timerSourcePrepareHelper (src=0x811861240, timeout=0x7fffff7fbc74) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:136 #6 0x0000000802b5f522 in timerSourcePrepare (source=0x811861240, timeout=0x7fffff7fbc74) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:169 #7 0x00000008080955b6 in g_main_context_prepare () from /usr/local/lib/libglib-2.0.so.0 #8 0x0000000808096548 in ?? () from /usr/local/lib/libglib-2.0.so.0 #9 0x000000080809685b in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0 #10 0x0000000802b600a6 in QEventDispatcherGlib::processEvents (this=0x811860040, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:426 #11 0x0000000802b211a4 in QEventLoop::processEvents (this=0x7fffff7fbe70, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:149 #12 0x0000000802b2132e in QEventLoop::exec (this=0x7fffff7fbe70, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:204 #13 0x00000008029f2563 in QThread::exec (this=0x80c446740) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/thread/qthread.cpp:501 #14 0x00000000004110fe in Thread::run (this=0x80c446740) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/Application.cpp:72 #15 0x00000008029f5079 in QThreadPrivate::start (arg=0x80c446740) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/thread/qthread_unix.cpp:307 #16 0x0000000802ee6598 in ?? () from /lib/libthr.so.3 #17 0x0000000000000000 in ?? () > 3) Remove all previously installed kamd files and reinstall it. This is a fresh installation. Do you want me to remove any specific file from $KDEHOME? Sorry, my bad disabledPlugins=activitymanager_plugin_activityranking (In reply to comment #3) > Sorry, my bad > disabledPlugins=activitymanager_plugin_activityranking It works fine with this entry in the rc file. I'm now on v4.8.90-56-g7b4fe53 with the same entry in activitymanager-pluginsrc, but the plugin isn't ignored anymore, so kactivitymanagerd has started crashing again. If you update to master, you can disable the kamd plugins in the system settings -> workspace behaviour -> activities -> plugins Hmm, it worked now. A new section has now been added to activitymanager-pluginsrc. Can I remove that General section I had added earlier. And is it a local problem or is there anything to fix in KAMD? > Can I remove that General Yes > And is it a local problem or is there anything to fix in KAMD? I'm unable to reproduce the issue so I can't tell where the fix should be. Anyhow, don't close the report just yet. About this piece: #11 0x00000008029e8fc2 in QThread::d_func (this=0x0) at ../../include/QtCore/../../../../qt-4.8/src/corelib/thread/qthread.h:130 #12 0x00000008029f25f6 in QThread::exit (this=0x0, returnCode=0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/thread/qthread.cpp:532 #13 0x00000008128c554d in ActivityRankingPlugin::~ActivityRankingPlugin (this=0x80c6eb7c0, __in_chrg=<optimized out>) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/plugins/activityranking/activityrankingplugin.cpp:71 #14 0x00000008128c55be in ActivityRankingPlugin::~ActivityRankingPlugin (this=0x80c6eb7c0, __in_chrg=<optimized out>) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/plugins/activityranking/activityrankingplugin.cpp:73 #15 0x00000000004123e9 in KPluginFactory::create<Plugin> (this=0x80bc70fa0, parent=0x80be04dc0, args=...) at /home/rakuco/kde4/include/kpluginfactory.h:511 #16 0x0000000000410712 in Application::loadPlugins (this=0x80be04dc0) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/Application.cpp:165 I was able to reproduce this in a debugger and analyze it a little bit. What happens in frame 15 (KPluginFactory::create<Plugin>) is that qobject_cast doesn't recognize an ActivityRankingPlugin object created by the code in DSO (activitymanager_plugin_activityranking.so) as a Plugin object. I am not sure if this problem is 100% FreeBSD-specific or if other platforms are affected too. Basically it seems like a variation of this more general C++ vs dlopen issue: http://gcc.gnu.org/faq.html#dso There is one instance of Plugin::staticMetatData in kactivitymanagerd executable and there are other instances of it in all the plugin .so files. When a .so is dlopen-ed the runtime linker does not merge these definitions/instances. So, the instances of Plugin subclasses instantiated in DSOs point to the local copy while qobject_cast compares (by pointer comparison) them with the "main" copy. This mismatch leads to inability to properly load any plugin and also to the above crash. I have not investigated the details of the crash, but I suspect that it is also caused by the same kind of a mismatch. Because the destructor does not seem to have any bugs and should properly work on a constructed object. Final note, I was able to work-around this issue by using the advice from the gcc faq to pass -Wl,-E linker flag. I am not why/how things work with that flag on other platforms or for other KDE / Qt programs that make use of plugins. Further info. It looks like on Linux cmake would automatically add -rdynamic option when calling gcc as a linker. -rdynamic translates to -export-dynamic linker option. In my copy of cmake files cmake/Modules/Platform/Linux-GNU.cmake defines __linux_compiler_gnu macro: macro(__linux_compiler_gnu lang) # We pass this for historical reasons. Projects may have # executables that use dlopen but do not set ENABLE_EXPORTS. set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-rdynamic") endmacro() and then cmake/Modules/Platform/Linux-GNU-CXX.cmake has: include(Platform/Linux-GNU) __linux_compiler_gnu(CXX) This treatment is not applied to FreeBSD with GNU/GCC toolchain. Perhaps a bug in cmake? Could anyone please double-check with make VERBOSE=1 that -rdynamic is indeed used on Linux when linking kactivitymanagerd? in any case, according to the above comment the following property should be a cross-platform solution: http://www.cmake.org/cmake/help/v2.8.10/cmake.html#prop_tgt:ENABLE_EXPORTS Also, perhaps it would make sense to amend the FreeBSD ports framework to set CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS at least for Qt and KDE ports. *** Bug 316087 has been marked as a duplicate of this bug. *** Activity Ranking plugin no longer exists http://quickgit.kde.org/?p=kactivities.git&a=commit&h=9481ea40c1cbe781601d7dcc26a9a2300a2d2480 makes kactivitymanagerd not even try to load the plugin by default, otherwise the crash would persist despite it having X-KDE-PluginInfo-EnabledByDefault=false in its .desktop file. |