Bug 305529 - kactivitymanagerd crashes on startup [ActivityRankingPlugin]
Summary: kactivitymanagerd crashes on startup [ActivityRankingPlugin]
Status: RESOLVED FIXED
Alias: None
Product: kactivitymanagerd
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources FreeBSD
: NOR crash
Target Milestone: ---
Assignee: Ivan Čukić
URL:
Keywords:
: 316087 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-21 02:39 UTC by Raphael Kubo da Costa
Modified: 2014-08-07 18:15 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Kubo da Costa 2012-08-21 02:39:21 UTC
Whenever kactivitymanagerd is started (either manually via gdb, or when Dolphin is loaded, or when KDE starts), it crashes.

I'm using both kactivities and nepomuk-core from the master branch (respectively at v4.8.90-39-g90c38c5 and v4.9.0-63-ga14b147).

Relevant backtrace:
(gdb) thr 4
[Switching to thread 4 (Thread 80bc0e800 (LWP 102366))]
#0  0x0000000804b8bc3c in poll () from /lib/libc.so.7
(gdb) bt
#0  0x0000000804b8bc3c in poll () from /lib/libc.so.7
#1  0x0000000802ee8103 in poll () from /lib/libthr.so.3
#2  0x000000080b8b2ff1 in ?? () from /usr/local/lib/libdbus-1.so.3
#3  0x000000080b8b2244 in ?? () from /usr/local/lib/libdbus-1.so.3
#4  0x000000080b899e1e in ?? () from /usr/local/lib/libdbus-1.so.3
#5  0x000000080b89ad1d in ?? () from /usr/local/lib/libdbus-1.so.3
#6  0x000000080b89c48f in dbus_connection_send_with_reply_and_block () from /usr/local/lib/libdbus-1.so.3
#7  0x00000008026d15cf in q_dbus_connection_send_with_reply_and_block (connection=0x80bc753c0, message=0x80bc39400, timeout_milliseconds=-1, error=0x7fffff9f99a0)
    at /usr/home/rakuco/kde4/src/qt-4.8/src/dbus/qdbus_symbols_p.h:135
#8  0x00000008026dcdcc in QDBusConnectionPrivate::sendWithReply (this=0x80bc3ba00, message=..., sendMode=1, timeout=-1)
    at /usr/home/rakuco/kde4/src/qt-4.8/src/dbus/qdbusintegrator.cpp:1904
#9  0x00000008026dff98 in QDBusConnectionPrivate::getNameOwnerNoCache (this=0x80bc3ba00, serviceName=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/dbus/qdbusintegrator.cpp:2332
#10 0x00000008026dec99 in QDBusConnectionPrivate::connectSignal (this=0x80bc3ba00, key=..., hook=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/dbus/qdbusintegrator.cpp:2127
#11 0x00000008026df93a in QDBusConnectionPrivate::connectRelay (this=0x80bc3ba00, service=..., path=..., interface=..., receiver=0x811460320, 
    signal=0x801b60350 "2propertyAdded(QString,QString,QVariantList)") at /usr/home/rakuco/kde4/src/qt-4.8/src/dbus/qdbusintegrator.cpp:2269
#12 0x00000008026f0ab2 in QDBusAbstractInterface::connectNotify (this=0x811460320, signal=0x801b60350 "2propertyAdded(QString,QString,QVariantList)")
    at /usr/home/rakuco/kde4/src/qt-4.8/src/dbus/qdbusabstractinterface.cpp:595
#13 0x0000000802b3f76c in QObject::connect (sender=0x811460320, signal=0x801b60351 "propertyAdded(QString,QString,QVariantList)", receiver=0x8114b58c0, 
    method=0x801b602b9 "slotPropertyAdded(QString,QString,QVariantList)", type=Qt::AutoConnection) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qobject.cpp:2648
#14 0x0000000801b2aa27 in Nepomuk2::ResourceWatcher::start (this=0x8114b58c0)
    at /home/rakuco/kde4/src/kde/kdelibs/nepomuk-core/libnepomukcore/datamanagement/resourcewatcher.cpp:118
#15 0x0000000801b2c907 in Nepomuk2::ResourceWatcher::qt_static_metacall (_o=0x8114b58c0, _c=QMetaObject::InvokeMetaMethod, _id=22, _a=0x7fffff9fa3b0)
    at /usr/home/rakuco/kde4/src/build/kde/kdelibs/nepomuk-core/libnepomukcore/resourcewatcher.moc:143
#16 0x0000000802b2ec2c in QMetaMethod::invoke (this=0x7fffff9fa830, object=0x8114b58c0, connectionType=Qt::DirectConnection, returnValue=..., val0=..., val1=..., val2=..., 
    val3=..., val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qmetaobject.cpp:1664
#17 0x0000000802b2decc in QMetaObject::invokeMethod (obj=0x8114b58c0, member=0x801b5816a "start", type=Qt::AutoConnection, ret=..., val0=..., val1=..., val2=..., val3=..., 
    val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qmetaobject.cpp:1179
#18 0x0000000801ad345b in QMetaObject::invokeMethod (obj=0x8114b58c0, member=0x801b5816a "start", type=Qt::AutoConnection, val0=..., val1=..., val2=..., val3=..., val4=..., 
    val5=..., val6=..., val7=..., val8=..., val9=...) at /home/rakuco/kde4/qt4/include/QtCore/qobjectdefs.h:418
#19 0x0000000801ad1403 in Nepomuk2::ResourceData::addToWatcher (this=0x8114b7460)
    at /home/rakuco/kde4/src/kde/kdelibs/nepomuk-core/libnepomukcore/resource/resourcedata.cpp:336
#20 0x0000000801ad1481 in Nepomuk2::ResourceData::load (this=0x8114b7460) at /home/rakuco/kde4/src/kde/kdelibs/nepomuk-core/libnepomukcore/resource/resourcedata.cpp:347
#21 0x0000000801ad04a0 in Nepomuk2::ResourceData::property (this=0x8114b7460, uri=...)
    at /home/rakuco/kde4/src/kde/kdelibs/nepomuk-core/libnepomukcore/resource/resourcedata.cpp:234
#22 0x0000000801adbe99 in Nepomuk2::Resource::property (this=0x7fffff9fae80, uri=...)
    at /home/rakuco/kde4/src/kde/kdelibs/nepomuk-core/libnepomukcore/resource/resource.cpp:202
#23 0x0000000801adda61 in Nepomuk2::Resource::symbols (this=0x7fffff9fae80) at /home/rakuco/kde4/src/kde/kdelibs/nepomuk-core/libnepomukcore/resource/resource.cpp:553
#24 0x00000000004219cd in NepomukActivityManager::syncActivities (this=0x80c603c40, activityIds=...)
    at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/NepomukActivityManager.cpp:248
#25 0x0000000000420776 in NepomukActivityManager::reinit (this=0x80c603c40) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/NepomukActivityManager.cpp:121
#26 0x000000000040da45 in NepomukActivityManager::qt_static_metacall (_o=0x80c603c40, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x80bc1af98)
    at /usr/home/rakuco/kde4/src/build/kde/kdelibs/kactivities/src/service/moc_NepomukActivityManager.cpp:62
#27 0x0000000802b3b82f in QMetaCallEvent::placeMetaCall (this=0x80bff2790, object=0x80c603c40) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qobject.cpp:525
#28 0x0000000802b3cab5 in QObject::event (this=0x80c603c40, e=0x80bff2790) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qobject.cpp:1195
#29 0x000000080336e4a4 in QApplicationPrivate::notify_helper (this=0x80bc2f700, receiver=0x80c603c40, e=0x80bff2790)
    at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qapplication.cpp:4557
#30 0x000000080336bae0 in QApplication::notify (this=0x80be04dc0, receiver=0x80c603c40, e=0x80bff2790) at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qapplication.cpp:3939
#31 0x000000080104d173 in KApplication::notify (this=0x80be04dc0, receiver=0x80c603c40, event=0x80bff2790)
    at /home/rakuco/kde4/src/kde/kdelibs/kdeui/kernel/kapplication.cpp:311
#32 0x0000000802b23c7a in QCoreApplication::notifyInternal (this=0x80be04dc0, receiver=0x80c603c40, event=0x80bff2790)
    at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:915
#33 0x0000000802b27595 in QCoreApplication::sendEvent (receiver=0x80c603c40, event=0x80bff2790)
    at ../../include/QtCore/../../../../qt-4.8/src/corelib/kernel/qcoreapplication.h:231
#34 0x0000000802b24c8e in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x80c432080)
    at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:1539
#35 0x0000000802b248af in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:1432
#36 0x0000000802b607d3 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../../../qt-4.8/src/corelib/kernel/qcoreapplication.h:236
#37 0x0000000802b5f7ac in postEventSourceDispatch (s=0x8114a4080) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:279
#38 0x0000000808095fbe in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.0
#39 0x0000000808096779 in ?? () from /usr/local/lib/libglib-2.0.so.0
#40 0x000000080809685b in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0
#41 0x0000000802b60083 in QEventDispatcherGlib::processEvents (this=0x811460040, flags=...)
    at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:424
#42 0x0000000802b211a4 in QEventLoop::processEvents (this=0x7fffff9fbd60, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:149
#43 0x0000000802b2132e in QEventLoop::exec (this=0x7fffff9fbd60, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:204
#44 0x00000008009cd866 in KJob::exec (this=0x8114b5620) at /home/rakuco/kde4/src/kde/kdelibs/kdecore/jobs/kjob.cpp:210
#45 0x0000000801ad1a3c in Nepomuk2::ResourceData::setProperty (this=0x8114b7460, uri=..., value=...)
    at /home/rakuco/kde4/src/kde/kdelibs/nepomuk-core/libnepomukcore/resource/resourcedata.cpp:401
#46 0x0000000801adbf19 in Nepomuk2::Resource::setProperty (this=0x7fffff9fbf90, uri=..., value=...)
    at /home/rakuco/kde4/src/kde/kdelibs/nepomuk-core/libnepomukcore/resource/resource.cpp:216
#47 0x000000000042191b in NepomukActivityManager::syncActivities (this=0x80c603c40, activityIds=...)
    at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/NepomukActivityManager.cpp:239
#48 0x0000000000420776 in NepomukActivityManager::reinit (this=0x80c603c40) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/NepomukActivityManager.cpp:121
#49 0x000000000040da45 in NepomukActivityManager::qt_static_metacall (_o=0x80c603c40, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x80bc1af80)
    at /usr/home/rakuco/kde4/src/build/kde/kdelibs/kactivities/src/service/moc_NepomukActivityManager.cpp:62
#50 0x0000000802b3b82f in QMetaCallEvent::placeMetaCall (this=0x80bff26f0, object=0x80c603c40) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qobject.cpp:525
#51 0x0000000802b3cab5 in QObject::event (this=0x80c603c40, e=0x80bff26f0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qobject.cpp:1195
#52 0x000000080336e4a4 in QApplicationPrivate::notify_helper (this=0x80bc2f700, receiver=0x80c603c40, e=0x80bff26f0)
    at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qapplication.cpp:4557
#53 0x000000080336bae0 in QApplication::notify (this=0x80be04dc0, receiver=0x80c603c40, e=0x80bff26f0) at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qapplication.cpp:3939
#54 0x000000080104d173 in KApplication::notify (this=0x80be04dc0, receiver=0x80c603c40, event=0x80bff26f0)
    at /home/rakuco/kde4/src/kde/kdelibs/kdeui/kernel/kapplication.cpp:311
#55 0x0000000802b23c7a in QCoreApplication::notifyInternal (this=0x80be04dc0, receiver=0x80c603c40, event=0x80bff26f0)
    at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:915
#56 0x0000000802b27595 in QCoreApplication::sendEvent (receiver=0x80c603c40, event=0x80bff26f0)
    at ../../include/QtCore/../../../../qt-4.8/src/corelib/kernel/qcoreapplication.h:231
#57 0x0000000802b24c8e in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x80c432080)
    at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:1539
#58 0x0000000802b248af in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:1432
#59 0x0000000802b607d3 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../../../qt-4.8/src/corelib/kernel/qcoreapplication.h:236
#60 0x0000000802b5f7ac in postEventSourceDispatch (s=0x8114a4080) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:279
#61 0x0000000808095fbe in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.0
#62 0x0000000808096779 in ?? () from /usr/local/lib/libglib-2.0.so.0
#63 0x000000080809685b in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0
#64 0x0000000802b60083 in QEventDispatcherGlib::processEvents (this=0x811460040, flags=...)
    at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:424
#65 0x0000000802b211a4 in QEventLoop::processEvents (this=0x7fffff9fce70, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:149
#66 0x0000000802b2132e in QEventLoop::exec (this=0x7fffff9fce70, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:204
#67 0x00000008029f2563 in QThread::exec (this=0x80c416a80) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/thread/qthread.cpp:501
#68 0x00000000004111e6 in Thread::run (this=0x80c416a80) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/Application.cpp:72
#69 0x00000008029f5079 in QThreadPrivate::start (arg=0x80c416a80) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/thread/qthread_unix.cpp:307
#70 0x0000000802ee6598 in ?? () from /lib/libthr.so.3
#71 0x0000000000000000 in ?? ()

(gdb) thr 2
[Switching to thread 2 (Thread 80bc07400 (LWP 101319))]
#0  0x00000008029cfd90 in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::data (this=0x8)
    at ../../include/QtCore/../../../../qt-4.8/src/corelib/tools/qscopedpointer.h:135
135             return d;
(gdb) bt
#0  0x00000008029cfd90 in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::data (this=0x8)
    at ../../include/QtCore/../../../../qt-4.8/src/corelib/tools/qscopedpointer.h:135
#1  0x00000008029e8f0e in qGetPtrHelper<QScopedPointer<QObjectData> > (p=...) at ../../include/QtCore/../../../../qt-4.8/src/corelib/global/qglobal.h:2455
#2  0x00000008029e8fc2 in QThread::d_func (this=0x0) at ../../include/QtCore/../../../../qt-4.8/src/corelib/thread/qthread.h:130
#3  0x00000008029f25f6 in QThread::exit (this=0x0, returnCode=0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/thread/qthread.cpp:532
#4  0x00000008128c554d in ActivityRankingPlugin::~ActivityRankingPlugin (this=0x80c6ec740, __in_chrg=<optimized out>)
    at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/plugins/activityranking/activityrankingplugin.cpp:71
#5  0x00000008128c55be in ActivityRankingPlugin::~ActivityRankingPlugin (this=0x80c6ec740, __in_chrg=<optimized out>)
    at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/plugins/activityranking/activityrankingplugin.cpp:73
#6  0x00000000004123e9 in KPluginFactory::create<Plugin> (this=0x80bc70fa0, parent=0x80be04dc0, args=...) at /home/rakuco/kde4/include/kpluginfactory.h:511
#7  0x0000000000410712 in Application::loadPlugins (this=0x80be04dc0) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/Application.cpp:165
#8  0x000000000040a76c in Application::qt_static_metacall (_o=0x80be04dc0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x80bc1aff8)
    at /usr/home/rakuco/kde4/src/build/kde/kdelibs/kactivities/src/service/moc_Application.cpp:49
#9  0x0000000802b3b82f in QMetaCallEvent::placeMetaCall (this=0x80c431600, object=0x80be04dc0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qobject.cpp:525
#10 0x0000000802b3cab5 in QObject::event (this=0x80be04dc0, e=0x80c431600) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qobject.cpp:1195
#11 0x0000000802b25557 in QCoreApplication::event (this=0x80be04dc0, e=0x80c431600) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:1727
#12 0x0000000803368995 in QApplication::event (this=0x80be04dc0, e=0x80c431600) at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qapplication.cpp:2539
#13 0x000000080336e4a4 in QApplicationPrivate::notify_helper (this=0x80bc2f700, receiver=0x80be04dc0, e=0x80c431600)
    at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qapplication.cpp:4557
#14 0x000000080336bae0 in QApplication::notify (this=0x80be04dc0, receiver=0x80be04dc0, e=0x80c431600) at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qapplication.cpp:3939
#15 0x000000080104d173 in KApplication::notify (this=0x80be04dc0, receiver=0x80be04dc0, event=0x80c431600)
    at /home/rakuco/kde4/src/kde/kdelibs/kdeui/kernel/kapplication.cpp:311
#16 0x0000000802b23c7a in QCoreApplication::notifyInternal (this=0x80be04dc0, receiver=0x80be04dc0, event=0x80c431600)
    at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:915
#17 0x0000000802b27595 in QCoreApplication::sendEvent (receiver=0x80be04dc0, event=0x80c431600)
    at ../../include/QtCore/../../../../qt-4.8/src/corelib/kernel/qcoreapplication.h:231
#18 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
#19 0x0000000802b248af in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:1432
#20 0x0000000802b607d3 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../../../qt-4.8/src/corelib/kernel/qcoreapplication.h:236
#21 0x0000000802b5f7ac in postEventSourceDispatch (s=0x80bc1dda0) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:279
#22 0x0000000808095fbe in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.0
#23 0x0000000808096779 in ?? () from /usr/local/lib/libglib-2.0.so.0
#24 0x000000080809685b in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0
#25 0x0000000802b60083 in QEventDispatcherGlib::processEvents (this=0x80bc19b90, flags=...)
    at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventdispatcher_glib.cpp:424
#26 0x000000080344584c in QGuiEventDispatcherGlib::processEvents (this=0x80bc19b90, flags=...)
    at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qguieventdispatcher_glib.cpp:204
#27 0x0000000802b211a4 in QEventLoop::processEvents (this=0x7fffffffd0e0, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:149
#28 0x0000000802b2132e in QEventLoop::exec (this=0x7fffffffd0e0, flags=...) at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qeventloop.cpp:204
#29 0x0000000802b242fa in QCoreApplication::exec () at /usr/home/rakuco/kde4/src/qt-4.8/src/corelib/kernel/qcoreapplication.cpp:1187
#30 0x000000080336b6ca in QApplication::exec () at /usr/home/rakuco/kde4/src/qt-4.8/src/gui/kernel/qapplication.cpp:3818
#31 0x0000000000410e4a in main (argc=2, argv=0x7fffffffd298) at /home/rakuco/kde4/src/kde/kdelibs/kactivities/src/service/Application.cpp:239

Reproducible: Always

Steps to Reproduce:
- Launch kactivitymanagerd.
Actual Results:  
Crash.

Expected Results:  
No crashes.
Comment 1 Ivan Čukić 2012-08-21 07:23:30 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.
Comment 2 Raphael Kubo da Costa 2012-08-21 13:43:49 UTC
(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?
Comment 3 Ivan Čukić 2012-08-21 15:12:53 UTC
Sorry, my bad
disabledPlugins=activitymanager_plugin_activityranking
Comment 4 Raphael Kubo da Costa 2012-08-21 15:26:28 UTC
(In reply to comment #3)
> Sorry, my bad
> disabledPlugins=activitymanager_plugin_activityranking

It works fine with this entry in the rc file.
Comment 5 Raphael Kubo da Costa 2012-08-31 21:10:14 UTC
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.
Comment 6 Ivan Čukić 2012-09-01 09:20:09 UTC
If you update to master, you can disable the kamd plugins in the system settings -> workspace behaviour -> activities -> plugins
Comment 7 Raphael Kubo da Costa 2012-09-01 12:08:48 UTC
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?
Comment 8 Ivan Čukić 2012-09-01 12:50:16 UTC
> 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.
Comment 9 Andriy Gapon 2013-04-09 17:20:32 UTC
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.
Comment 10 Andriy Gapon 2013-04-10 14:08:17 UTC
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.
Comment 11 Ivan Čukić 2013-06-02 23:21:22 UTC
*** Bug 316087 has been marked as a duplicate of this bug. ***
Comment 12 Ivan Čukić 2014-05-22 20:44:17 UTC
Activity Ranking plugin no longer exists
Comment 13 Raphael Kubo da Costa 2014-08-07 18:15:30 UTC
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.