Bug 253150

Summary: IMAP resource crash
Product: [Frameworks and Libraries] Akonadi Reporter: Peter Grasch <me>
Component: IMAP resourceAssignee: Kevin Ottens <ervin>
Status: RESOLVED FIXED    
Severity: crash CC: kdepim-bugs, me, vkrause
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Peter Grasch 2010-10-03 20:27:48 UTC
Application: akonadi_imap_resource (0.1)
KDE Platform Version: 4.5.70 (4.6 >= 20100927) (Compiled from sources)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-gentoo-r8 x86_64
Distribution: "Gentoo Base System release 2.0.1"

-- Information about the crash:
- What I was doing when the application crashed:
I was just adding a new IMAP resource for my university webserver.

I experienced the same crash (same backtrace) before my last akonadi upgrade and back then I noted that some resources were duplicated (in the Akonadi db). I don't know if it was related or not.

This crash just happened on a clean configuration (removed all configuration files and the akonadi database). This was the second resource I added (the local maildir resource got added automatically) and the second IMAP resource (if that changes anything).

The SVN snapshot was updated hours ago.

-- Backtrace:
Application: Akonadi Resource (akonadi_imap_resource), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f3710be9760 (LWP 3141))]

Thread 3 (Thread 0x7f36fec09710 (LWP 3150)):
#0  0x00007f370b5977f2 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#1  0x00007f370b597c38 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#2  0x00007f370b59821c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f371008e6c6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f3710061432 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007f3710061814 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007f370ff6dead in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007f370ecc1333 in KIMAP::SessionThread::run() () from /usr/lib/libkimap.so.4
#8  0x00007f370ff70e3e in QThreadPrivate::start(void*) () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007f370c0f0c1a in start_thread () from /lib/libpthread.so.0
#10 0x00007f370c833a9d in clone () from /lib/libc.so.6

Thread 2 (Thread 0x7f37014f9710 (LWP 3151)):
#0  0x00007f370c82ad03 in poll () from /lib/libc.so.6
#1  0x00007f370b597dc9 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#2  0x00007f370b59821c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f371008e6c6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f3710061432 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007f3710061814 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007f370ff6dead in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007f370ecc1333 in KIMAP::SessionThread::run() () from /usr/lib/libkimap.so.4
#8  0x00007f370ff70e3e in QThreadPrivate::start(void*) () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007f370c0f0c1a in start_thread () from /lib/libpthread.so.0
#10 0x00007f370c833a9d in clone () from /lib/libc.so.6

Thread 1 (Thread 0x7f3710be9760 (LWP 3141)):
[KCrash Handler]
#6  0x00007f3710685c96 in assignEntityPrivate(QSharedDataPointer<Akonadi::EntityPrivate>&, QSharedDataPointer<Akonadi::EntityPrivate> const&) () from /usr/lib/libakonadi-kde.so.4
#7  0x00007f3710685d2e in Akonadi::Entity::operator=(Akonadi::Entity const&) () from /usr/lib/libakonadi-kde.so.4
#8  0x00007f37106cb740 in Akonadi::CollectionRequester::setCollection(Akonadi::Collection const&) () from /usr/lib/libakonadi-kde.so.4
#9  0x000000000043051a in SetupServer::qt_metacall(QMetaObject::Call, int, void**) ()
#10 0x00007f371007a27f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/qt4/libQtCore.so.4
#11 0x00007f37106b8932 in Akonadi::CollectionFetchJob::collectionsReceived(QList<Akonadi::Collection> const&) () from /usr/lib/libakonadi-kde.so.4
#12 0x00007f37106bad95 in Akonadi::CollectionFetchJobPrivate::timeout() () from /usr/lib/libakonadi-kde.so.4
#13 0x00007f37106b915d in Akonadi::CollectionFetchJob::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libakonadi-kde.so.4
#14 0x00007f371007a27f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/qt4/libQtCore.so.4
#15 0x00007f370d12be22 in KJob::result(KJob*) () from /usr/lib/libkdecore.so.5
#16 0x00007f370d12c0c0 in KJob::emitResult() () from /usr/lib/libkdecore.so.5
#17 0x00007f371072e8f9 in Akonadi::Job::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libakonadi-kde.so.4
#18 0x00007f37106b9100 in Akonadi::CollectionFetchJob::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libakonadi-kde.so.4
#19 0x00007f371007432e in QObject::event(QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#20 0x00007f370f3eac5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#21 0x00007f370f3f07cd in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#22 0x00007f370d73dc16 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#23 0x00007f37100626db in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#24 0x00007f37100655e1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/qt4/libQtCore.so.4
#25 0x00007f371008eb33 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/qt4/libQtCore.so.4
#26 0x00007f370b594211 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#27 0x00007f370b598068 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#28 0x00007f370b59821c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#29 0x00007f371008e673 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#30 0x00007f370f49b81e in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtGui.so.4
#31 0x00007f3710061432 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#32 0x00007f3710061814 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#33 0x00007f370f8d231e in QDialog::exec() () from /usr/lib64/qt4/libQtGui.so.4
#34 0x000000000041f5cd in ImapResource::configureDialog(unsigned long) ()
#35 0x000000000041fe09 in ImapResource::configure(unsigned long) ()
#36 0x00007f37107b1a54 in Akonadi__ControlAdaptor::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libakonadi-kde.so.4
#37 0x00007f37103b9909 in QDBusConnectionPrivate::deliverCall(QObject*, int, QDBusMessage const&, QList<int> const&, int) () from /usr/lib64/qt4/libQtDBus.so.4
#38 0x00007f37103bab13 in QDBusConnectionPrivate::activateCall(QObject*, int, QDBusMessage const&) () from /usr/lib64/qt4/libQtDBus.so.4
#39 0x00007f37103bb585 in QDBusConnectionPrivate::activateObject(QDBusConnectionPrivate::ObjectTreeNode&, QDBusMessage const&, int) () from /usr/lib64/qt4/libQtDBus.so.4
#40 0x00007f37103bb818 in QDBusActivateObjectEvent::placeMetaCall(QObject*) () from /usr/lib64/qt4/libQtDBus.so.4
#41 0x00007f371007432e in QObject::event(QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#42 0x00007f370f3eac5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#43 0x00007f370f3f07cd in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#44 0x00007f370d73dc16 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#45 0x00007f37100626db in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#46 0x00007f37100655e1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/qt4/libQtCore.so.4
#47 0x00007f371008eb33 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/qt4/libQtCore.so.4
#48 0x00007f370b594211 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#49 0x00007f370b598068 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#50 0x00007f370b59821c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#51 0x00007f371008e673 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#52 0x00007f370f49b81e in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtGui.so.4
#53 0x00007f3710061432 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#54 0x00007f3710061814 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#55 0x00007f371006586b in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4
#56 0x00007f371074cfa2 in Akonadi::ResourceBase::init(Akonadi::ResourceBase*) () from /usr/lib/libakonadi-kde.so.4
#57 0x00000000004220c8 in main ()

Reported using DrKonqi
Comment 1 Peter Grasch 2010-12-23 14:25:07 UTC
No longer reproducable.

Regards,
Peter