Bug 387776

Summary: akonadi_mbox_resource segfaults instantly
Product: [Frameworks and Libraries] Akonadi Reporter: Alois Wohlschlager <alois1>
Component: MBox ResourceAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alois Wohlschlager 2017-12-10 14:01:52 UTC
When opening KMail, akonadi_mbox_resource instantly crashes with a segmentation fault. This seems to happen before the mail is read from the local spool.

Backtrace:

Application: akonadi_mbox_resource (akonadi_mbox_resource), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7eff76667900 (LWP 16339))]

Thread 5 (Thread 0x7eff4ffff700 (LWP 16344)):
#0  0x00007eff718ada6d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007eff6aa37119 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007eff6aa3722c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007eff723e710b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007eff7238c2aa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007eff721ab35a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007eff721b022d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007eff6cb79519 in start_thread (arg=0x7eff4ffff700) at pthread_create.c:456
#8  0x00007eff718b7a5f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 4 (Thread 0x7eff5c8a9700 (LWP 16342)):
#0  0x00007eff718ada6d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007eff6aa37119 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007eff6aa3722c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007eff723e710b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007eff7238c2aa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007eff721ab35a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007eff721b022d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007eff6cb79519 in start_thread (arg=0x7eff5c8a9700) at pthread_create.c:456
#8  0x00007eff718b7a5f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 3 (Thread 0x7eff5d0aa700 (LWP 16341)):
#0  0x00007eff718ada6d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007eff6aa37119 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007eff6aa3722c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007eff723e710b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007eff7238c2aa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007eff721ab35a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007eff72f3ee45 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007eff721b022d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007eff6cb79519 in start_thread (arg=0x7eff5d0aa700) at pthread_create.c:456
#9  0x00007eff718b7a5f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 2 (Thread 0x7eff5fef5700 (LWP 16340)):
#0  0x00007eff718ada6d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007eff69e92150 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007eff69e93ee9 in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007eff62057029 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007eff721b022d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007eff6cb79519 in start_thread (arg=0x7eff5fef5700) at pthread_create.c:456
#6  0x00007eff718b7a5f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 1 (Thread 0x7eff76667900 (LWP 16339)):
[KCrash Handler]
#6  QHash<QByteArray, Akonadi::Attribute*>::findNode (this=this@entry=0x20, akey=..., ahp=ahp@entry=0x0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:922
#7  0x00007eff7585771f in QHash<QByteArray, Akonadi::Attribute*>::contains (akey=..., this=0x20) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:897
#8  Akonadi::Collection::hasAttribute (this=<optimized out>, type=...) at ./src/core/collection.cpp:189
#9  0x00005653ca5ce49f in Akonadi::Collection::attribute<DeletedItemsAttribute> (option=Akonadi::Collection::AddIfMissing, this=0x7ffe948370f0) at /usr/include/KF5/AkonadiCore/collection.h:566
#10 MboxResource::onCollectionFetch (this=0x5653cb07cb70, job=<optimized out>) at ./resources/mbox/mboxresource.cpp:349
#11 0x00007eff723bce6f in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007eff728290bc in KJob::result(KJob*, KJob::QPrivateSignal) () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#13 0x00007eff72829bf1 in KJob::finishJob(bool) () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#14 0x00007eff75902969 in Akonadi::Job::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./obj-x86_64-linux-gnu/src/core/KF5AkonadiCore_autogen/include/moc_job.cpp:110
#15 0x00007eff723bd8c2 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007eff7425f59c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007eff74266e64 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007eff7238e258 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007eff723909cd in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007eff723e7ac3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007eff6aa36f67 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007eff6aa371a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007eff6aa3722c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007eff723e70ef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00007eff7238c2aa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007eff72395214 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007eff75c08f6d in Akonadi::ResourceBase::init(Akonadi::ResourceBase*) () from /usr/lib/x86_64-linux-gnu/libKF5AkonadiAgentBase.so.5
#28 0x00005653ca5d3de7 in Akonadi::ResourceBase::init<MboxResource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/KF5/AkonadiAgentBase/resourcebase.h:196
#29 0x00007eff717eb561 in __libc_start_main (main=0x5653ca5c5bf0 <main(int, char**)>, argc=3, argv=0x7ffe94837aa8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe94837a98) at ../csu/libc-start.c:297
#30 0x00005653ca5c5c2a in _start ()
Comment 1 Justin Zobel 2020-12-17 05:32:32 UTC
Thank you for the crash report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 2 Alois Wohlschlager 2020-12-19 12:53:34 UTC
Works again since long.