Bug 236600 - KMimeType Crash
Summary: KMimeType Crash
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Knut resource (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Volker Krause
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-06 19:30 UTC by Milian Wolff
Modified: 2015-04-11 16:05 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milian Wolff 2010-05-06 19:30:21 UTC
Application: akonadi_knut_resource (0.1)
KDE Platform Version: 4.4.75 (KDE 4.4.75 (KDE 4.5 >= 20100505)) (Compiled from sources)
Qt Version: 4.6.2
Operating System: Linux 2.6.31-21-generic x86_64
Distribution: Ubuntu 9.10

-- Information about the crash:
I ran akonadi unittests and somehow made it crash. I've no idea how it got triggered...

I'm not 100% sure whether it's not maybe a build-screwup on my side. Please close as invalid if so.

-- Backtrace:
Application: Akonadi Resource (akonadi_knut_resource), signal: Aborted
The current source language is "auto; currently c".
[KCrash Handler]
#5  0x00007fb63ecf94b5 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x00007fb63ecfcf50 in *__GI_abort () at abort.c:92
#7  0x00007fb63fa6d864 in qt_message_output (msgType=QtFatalMsg, buf=<value optimized out>) at global/qglobal.cpp:2250
#8  0x00007fb63fa6da42 in qt_message (msgType=QtFatalMsg, msg=0x7fb63fbcaf08 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fff0c8e7dc0) at global/qglobal.cpp:2296
#9  0x00007fb63fa6dbf5 in qFatal (msg=0x2f2b <Address 0x2f2b out of bounds>) at global/qglobal.cpp:2479
#10 0x00007fb6411430d1 in KMimeTypeFactory (this=0x1b8db20) at /home/speedy/projects/kde4/kdelibs/kdecore/services/kmimetypefactory.cpp:46
#11 0x00007fb64114680b in KSycocaFactorySingleton<KMimeTypeFactory>::self (this=0x1b9b000) at /home/speedy/projects/kde4/kdelibs/kdecore/sycoca/ksycocafactory.h:200
#12 0x00007fb64114353a in KMimeTypeFactory::self () at /home/speedy/projects/kde4/kdelibs/kdecore/services/kmimetypefactory.cpp:91
#13 0x00007fb64114c271 in KMimeType::mimeType (_name=..., options=KMimeType::ResolveAliases) at /home/speedy/projects/kde4/kdelibs/kdecore/services/kmimetype.cpp:159
#14 0x00007fb6422e8c22 in Akonadi::MonitorPrivate::isMimeTypeMonitored (this=0x1b987a0, mimetype=...) at /home/speedy/projects/kde4/kdepimlibs/akonadi/monitor_p.h:202
#15 0x00007fb6422e8a39 in Akonadi::MonitorPrivate::isItemMonitored (this=0x1b987a0, item=1, collection=3, collectionDest=-1, mimetype=..., resource=...)
    at /home/speedy/projects/kde4/kdepimlibs/akonadi/monitor_p.h:83
#16 0x00007fb6422e5c7d in Akonadi::MonitorPrivate::acceptNotification (this=0x1b987a0, msg=...) at /home/speedy/projects/kde4/kdepimlibs/akonadi/monitor_p.cpp:141
#17 0x00007fb6422e6d97 in Akonadi::MonitorPrivate::slotNotify (this=0x1b987a0, msgs=...) at /home/speedy/projects/kde4/kdepimlibs/akonadi/monitor_p.cpp:287
#18 0x00007fb642246d9a in Akonadi::ChangeRecorderPrivate::slotNotify (this=0x1b987a0, msgs=...) at /home/speedy/projects/kde4/kdepimlibs/akonadi/changerecorder_p.h:51
#19 0x00007fb6422e3e4f in Akonadi::Monitor::qt_metacall (this=0x1b89160, _c=QMetaObject::InvokeMetaMethod, _id=20, _a=0x7fff0c8e8350)
    at /home/speedy/projects/.build/kde4/kdepimlibs/akonadi/monitor.moc:147
#20 0x00007fb64224656b in Akonadi::ChangeRecorder::qt_metacall (this=0x1b89160, _c=QMetaObject::InvokeMetaMethod, _id=24, _a=0x7fff0c8e8350)
    at /home/speedy/projects/.build/kde4/kdepimlibs/akonadi/changerecorder.moc:72
#21 0x00007fb63fb7cc0f in QMetaObject::activate (sender=0x1b95430, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3293
#22 0x00007fb64233968b in OrgFreedesktopAkonadiNotificationManagerInterface::notify (this=0x1b95430, _t1=...)
    at /home/speedy/projects/.build/kde4/kdepimlibs/akonadi/notificationmanagerinterface.moc:85
#23 0x00007fb642339635 in OrgFreedesktopAkonadiNotificationManagerInterface::qt_metacall (this=0x1b95430, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff0c8e85d0)
    at /home/speedy/projects/.build/kde4/kdepimlibs/akonadi/notificationmanagerinterface.moc:73
#24 0x00007fb63fea425e in QDBusConnectionPrivate::deliverCall (this=<value optimized out>, object=<value optimized out>, msg=<value optimized out>, metaTypes=..., slotIdx=<value optimized out>)
    at qdbusintegrator.cpp:904
#25 0x00007fb63feae64f in QDBusCallDeliveryEvent::placeMetaCall (this=0x0, object=0x2f2b) at qdbusintegrator_p.h:101
#26 0x00007fb63fb79b49 in QObject::event (this=0x1b95430, e=0x1b8a480) at kernel/qobject.cpp:1248
#27 0x00007fb64051312c in QApplicationPrivate::notify_helper (this=0x1a74370, receiver=0x1b95430, e=0x1b8a480) at kernel/qapplication.cpp:4300
#28 0x00007fb64051971b in QApplication::notify (this=0x7fff0c8e90d0, receiver=0x1b95430, e=0x1b8a480) at kernel/qapplication.cpp:4183
#29 0x00007fb64175e2ef in KApplication::notify (this=0x7fff0c8e90d0, receiver=0x1b95430, event=0x1b8a480) at /home/speedy/projects/kde4/kdelibs/kdeui/kernel/kapplication.cpp:302
#30 0x00007fb63fb69e0c in QCoreApplication::notifyInternal (this=0x7fff0c8e90d0, receiver=0x1b95430, event=0x1b8a480) at kernel/qcoreapplication.cpp:704
#31 0x00007fb63fb6c587 in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x1a5dcd0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#32 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x1a5dcd0) at kernel/qcoreapplication.cpp:1345
#33 0x00007fb63fb937f3 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#34 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#35 0x00007fb63a9a1bce in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#36 0x00007fb63a9a5598 in ?? () from /lib/libglib-2.0.so.0
#37 0x00007fb63a9a56c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#38 0x00007fb63fb93333 in QEventDispatcherGlib::processEvents (this=0x1a5d420, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#39 0x00007fb6405c2f0e in QGuiEventDispatcherGlib::processEvents (this=0x2f2b, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#40 0x00007fb63fb68732 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#41 0x00007fb63fb68b0c in QEventLoop::exec (this=0x7fff0c8e9040, flags=) at kernel/qeventloop.cpp:201
#42 0x00007fb63fb6c84b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#43 0x00007fb6422f43ec in Akonadi::ResourceBase::init (r=0x1b88f80) at /home/speedy/projects/kde4/kdepimlibs/akonadi/resourcebase.cpp:228
#44 0x000000000040868d in Akonadi::ResourceBase::init<KnutResource> (argc=3, argv=0x7fff0c8e9238) at /home/speedy/projects/compiled/kde4/include/akonadi/resourcebase.h:186
#45 0x000000000040782e in main (argc=3, argv=0x7fff0c8e9238) at /home/speedy/projects/kde4/kdepim/runtime/resources/knut/knutresource.cpp:273

Reported using DrKonqi
Comment 1 Thomas McGuire 2010-05-06 20:37:00 UTC
SVN commit 1123737 by tmcguire:

Don't crash in the Knut resource when using the syscoca.

Reason was a dbus timeout.
Now, start klauncher before starting the agents, so that kdeinit and
kded are ready when the agents start.

BUG: 236600

 M  +7 -0      setup.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1123737
Comment 2 Thomas McGuire 2010-05-09 15:39:45 UTC
Not yet fixed according to Milian.

Please try something like in http://pastebin.com/LpYAVu6M