Bug 295546

Summary: Crash on exit after shutting akonadiserver down
Product: [Frameworks and Libraries] Akonadi Reporter: Daniel Faust <hessijames>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: kavol
Priority: NOR    
Version: 4.8   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Daniel Faust 2012-03-08 18:06:19 UTC
Application: kmail (4.8.0)
KDE Platform Version: 4.8.1 (4.8.1) "release 481"
Qt Version: 4.8.0
Operating System: Linux 3.1.9-1.4-desktop x86_64
Distribution: "openSUSE 12.1 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:

I had to shutdown akonadiserver via akonadictl because kmail was stalled trying to retrieve a message. After starting akonadiserver again kmail still wasn't reacting, the systray icon still worked though. During quiting kmail it crashed.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f37a8835780 (LWP 2423))]

Thread 3 (Thread 0x7f3789d9c700 (LWP 2705)):
#0  0x00007f37a397ee6c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f379a037c12 in ?? () from /usr/lib64/libQtWebKit.so.4
#2  0x00007f379a037c49 in ?? () from /usr/lib64/libQtWebKit.so.4
#3  0x00007f37a397af05 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f37a5b7163d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f378949b700 (LWP 2706)):
#0  0x00007fff5e5ff8de in ?? ()
#1  0x00007f379e005e91 in clock_gettime () from /lib64/librt.so.1
#2  0x00007f37a70f8a24 in do_gettime (frac=0x7f378949aba8, sec=0x7f378949aba0) at tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#4  0x00007f37a71cf0bd in QTimerInfoList::updateCurrentTime (this=0x7f377c001ed0) at kernel/qeventdispatcher_unix.cpp:343
#5  0x00007f37a71cf3f3 in QTimerInfoList::timerWait (this=0x7f377c001ed0, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#6  0x00007f37a71cde2c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f378949ac6c) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007f379dd50b22 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#8  0x00007f379dd5192d in ?? () from /usr/lib64/libglib-2.0.so.0
#9  0x00007f379dd51f59 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#10 0x00007f37a71ce956 in QEventDispatcherGlib::processEvents (this=0x7f377c0008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#11 0x00007f37a719e682 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#12 0x00007f37a719e8d7 in QEventLoop::exec (this=0x7f378949ae00, flags=...) at kernel/qeventloop.cpp:204
#13 0x00007f37a709f537 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#14 0x00007f37a70a255b in QThreadPrivate::start (arg=0xb4c3f0) at thread/qthread_unix.cpp:298
#15 0x00007f37a397af05 in start_thread () from /lib64/libpthread.so.0
#16 0x00007f37a5b7163d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f37a8835780 (LWP 2423)):
[KCrash Handler]
#6  QSharedDataPointer (o=..., this=0x7fff5e5ca060) at /usr/include/QtCore/qshareddata.h:93
#7  assignEntityPrivate (one=..., other=...) at /usr/src/debug/kdepimlibs-4.8.1/akonadi/entity.cpp:49
#8  0x00007f37a21d2c94 in Akonadi::Entity::Entity (this=0x7fff5e5ca110, other=<optimized out>) at /usr/src/debug/kdepimlibs-4.8.1/akonadi/entity.cpp:56
#9  0x00007f37a7620148 in KMMainWidget::slotCollectionPropertiesContinued (this=0x1a87910, job=<optimized out>) at /usr/src/debug/kdepim-4.8.1/kmail/kmmainwidget.cpp:4482
#10 0x00007f37a7627e2e in KMMainWidget::qt_static_metacall (_o=0x1a87910, _c=<optimized out>, _id=<optimized out>, _a=0x7fff5e5ca3f0) at /usr/src/debug/kdepim-4.8.1/build/kmail/kmmainwidget.moc:483
#11 0x00007f37a71b3761 in QMetaObject::activate (sender=0x1b5ea30, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff5e5ca3f0) at kernel/qobject.cpp:3556
#12 0x00007f37a7c64522 in KJob::result (this=<optimized out>, _t1=0x1b5ea30) at /usr/src/debug/kdelibs-4.8.1/build/kdecore/kjob.moc:208
#13 0x00007f37a7c64560 in KJob::emitResult (this=0x1b5ea30) at /usr/src/debug/kdelibs-4.8.1/kdecore/jobs/kjob.cpp:318
#14 0x00007f37a71b3761 in QMetaObject::activate (sender=0xf55b60, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff5e5ca7a0) at kernel/qobject.cpp:3556
#15 0x00007f37a3bc93cd in QDBusInterfacePrivate::metacall (this=0x17e9630, c=<optimized out>, id=0, argv=0x7fff5e5ca7a0) at qdbusinterface.cpp:278
#16 0x00007f37a3bb4f6b in QDBusConnectionPrivate::deliverCall (this=0x652360, object=0xf55b60, msg=..., metaTypes=..., slotIdx=5) at qdbusintegrator.cpp:947
#17 0x00007f37a71b8926 in QObject::event (this=0xf55b60, e=<optimized out>) at kernel/qobject.cpp:1204
#18 0x00007f37a6524e84 in notify_helper (e=0x1a5e120, receiver=0xf55b60, this=0x66eea0) at kernel/qapplication.cpp:4550
#19 QApplicationPrivate::notify_helper (this=0x66eea0, receiver=0xf55b60, e=0x1a5e120) at kernel/qapplication.cpp:4522
#20 0x00007f37a6529d03 in QApplication::notify (this=0x7fff5e5cb280, receiver=0xf55b60, e=0x1a5e120) at kernel/qapplication.cpp:4411
#21 0x00007f37a824e656 in KApplication::notify (this=0x7fff5e5cb280, receiver=0xf55b60, event=0x1a5e120) at /usr/src/debug/kdelibs-4.8.1/kdeui/kernel/kapplication.cpp:311
#22 0x00007f37a719f89c in QCoreApplication::notifyInternal (this=0x7fff5e5cb280, receiver=0xf55b60, event=0x1a5e120) at kernel/qcoreapplication.cpp:876
#23 0x00007f37a71a313a in sendEvent (event=0x1a5e120, receiver=0xf55b60) at kernel/qcoreapplication.h:231
#24 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x60b720) at kernel/qcoreapplication.cpp:1500
#25 0x00007f37a71ce4c3 in sendPostedEvents () at kernel/qcoreapplication.h:236
#26 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#27 0x00007f379dd5158d in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#28 0x00007f379dd51d88 in ?? () from /usr/lib64/libglib-2.0.so.0
#29 0x00007f379dd51f59 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#30 0x00007f37a71ce8ef in QEventDispatcherGlib::processEvents (this=0x60b000, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#31 0x00007f37a65c82de in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#32 0x00007f37a719e682 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#33 0x00007f37a719e8d7 in QEventLoop::exec (this=0x7fff5e5cb160, flags=...) at kernel/qeventloop.cpp:204
#34 0x00007f37a71a3435 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#35 0x0000000000402df3 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kdepim-4.8.1/kmail/main.cpp:145
Comment 1 kavol 2012-03-22 12:44:07 UTC
Created attachment 69809 [details]
New crash information added by DrKonqi

kmail (4.8.1) on KDE Platform 4.8.1 (4.8.1) using Qt 4.8.0

- What I was doing when the application crashed:

I was deleting larger number of emails at a time.
During that, akonadi stopped action - the emails weren't moved to trash any longer, and I could not display any email.
I've restarted akonadiserver via akonadiconsole, and the action resumed - emails sheduled to be deleted were moving to trash again, and I could browse other emails.
Meanwhile, I got some popups about conflicts which I've resolved by taking the left (the only difference was in SEEN flag and timestamp).
Then akonadi stopped responding again.
I've restarted akonadiserver for the second time, and after a few seconds kmail crashed.

-- Backtrace (Reduced):
#7  QSharedDataPointer (o=..., this=0x7fffe3de3120) at /usr/include/QtCore/qshareddata.h:93
#8  assignEntityPrivate (one=..., other=...) at /usr/src/debug/kdepimlibs-4.8.1/akonadi/entity.cpp:49
#9  0x0000003607e80854 in Akonadi::Entity::Entity (this=0x7fffe3de3160, other=<optimized out>) at /usr/src/debug/kdepimlibs-4.8.1/akonadi/entity.cpp:56
#10 0x0000003607eefef5 in Akonadi::ConflictHandler::useLocalItem (this=0x19e5be0) at /usr/src/debug/kdepimlibs-4.8.1/akonadi/conflicthandling/conflicthandler.cpp:102
#11 0x0000003607ef00a8 in Akonadi::ConflictHandler::resolve (this=0x19e5be0) at /usr/src/debug/kdepimlibs-4.8.1/akonadi/conflicthandling/conflicthandler.cpp:85
Comment 2 Denis Kurz 2016-09-24 20:38:22 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 3 Denis Kurz 2017-01-07 22:43:09 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.