Bug 309728

Summary: Akonadi IMAP resource crashes when I shutdown or reboot my system
Product: [Frameworks and Libraries] Akonadi Reporter: Boris Kukushkin <bkukushkin>
Component: IMAP resourceAssignee: Kevin Ottens <ervin>
Status: RESOLVED DUPLICATE    
Severity: crash CC: apcomptec, dschridde+kde, dvratil, kdepim-bugs, me, prcoder, vkrause, walter.von.entferndt
Priority: NOR    
Version: 4.9   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi

Description Boris Kukushkin 2012-11-08 06:39:11 UTC
Application: akonadi_imap_resource (4.9)
KDE Platform Version: 4.9.2
Qt Version: 4.8.2
Operating System: Linux 3.2.0-32-generic-pae i686
Distribution: Ubuntu 12.04.1 LTS

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

The only thing that needs to be done is to shutdown or reboot my system. Almost every time after the desktop is switched off I end up with the error window on the black background telling that there was an IMAP crash.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Google Mail of type Почтовый сервер IMAP (akonadi_imap_resource), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xb49bb9c0 (LWP 2347))]

Thread 3 (Thread 0xb1e59b40 (LWP 2551)):
#0  0xb550edcd in __GI_clock_gettime (clock_id=1, tp=0xb1e58fc8) at ../sysdeps/unix/clock_gettime.c:116
#1  0xb723d3b5 in do_gettime (frac=0xb1e58fc0, sec=0xb1e58fb8) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0xb73276f6 in QTimerInfoList::updateCurrentTime (this=0xb1502074) at kernel/qeventdispatcher_unix.cpp:343
#4  0xb7327a4a in QTimerInfoList::timerWait (this=0xb1502074, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#5  0xb73262f3 in timerSourcePrepareHelper (src=<optimized out>, timeout=0xb1e590cc) at kernel/qeventdispatcher_glib.cpp:136
#6  0xb732638d in timerSourcePrepare (source=0xb1502040, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#7  0xb5458872 in g_main_context_prepare (context=0xb15004e0, priority=0xb1e59128) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:2836
#8  0xb5458faf in g_main_context_iterate (dispatch=1, block=1, context=0xb15004e0, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3126
#9  g_main_context_iterate (context=0xb15004e0, block=1, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3083
#10 0xb5459201 in g_main_context_iteration (context=0xb15004e0, may_block=1) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3207
#11 0xb7326db7 in QEventDispatcherGlib::processEvents (this=0xb1500468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#12 0xb72f267d in QEventLoop::processEvents (this=0xb1e59250, flags=...) at kernel/qeventloop.cpp:149
#13 0xb72f2919 in QEventLoop::exec (this=0xb1e59250, flags=...) at kernel/qeventloop.cpp:204
#14 0xb71db9ec in QThread::exec (this=0x9951950) at thread/qthread.cpp:501
#15 0xb651f299 in KIMAP::SessionThread::run (this=0x9951950) at ../../kimap/sessionthread.cpp:181
#16 0xb71dee80 in QThreadPrivate::start (arg=0x9951950) at thread/qthread_unix.cpp:307
#17 0xb557fd4c in start_thread (arg=0xb1e59b40) at pthread_create.c:308
#18 0xb571dd3e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xb14ffb40 (LWP 2846)):
#0  0xb7752424 in __kernel_vsyscall ()
#1  0xb570d3eb in read () at ../sysdeps/unix/syscall-template.S:82
#2  0xb54976ae in read (__nbytes=16, __buf=0xb14ff08c, __fd=<optimized out>) at /usr/include/i386-linux-gnu/bits/unistd.h:45
#3  g_wakeup_acknowledge (wakeup=0xb0b01300) at /build/buildd/glib2.0-2.32.3/./glib/gwakeup.c:212
#4  0xb5458bd2 in g_main_context_check (context=0xb0b02000, max_priority=2147483647, fds=0xb0b05d60, n_fds=1) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:2980
#5  0xb5459042 in g_main_context_iterate (dispatch=1, block=-1253676464, context=0xb0b02000, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3143
#6  g_main_context_iterate (context=0xb0b02000, block=-1253676464, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3083
#7  0xb5459201 in g_main_context_iteration (context=0xb0b02000, may_block=1) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3207
#8  0xb7326db7 in QEventDispatcherGlib::processEvents (this=0xb0b03218, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#9  0xb72f267d in QEventLoop::processEvents (this=0xb14ff250, flags=...) at kernel/qeventloop.cpp:149
#10 0xb72f2919 in QEventLoop::exec (this=0xb14ff250, flags=...) at kernel/qeventloop.cpp:204
#11 0xb71db9ec in QThread::exec (this=0x9953690) at thread/qthread.cpp:501
#12 0xb651f299 in KIMAP::SessionThread::run (this=0x9953690) at ../../kimap/sessionthread.cpp:181
#13 0xb71dee80 in QThreadPrivate::start (arg=0x9953690) at thread/qthread_unix.cpp:307
#14 0xb557fd4c in start_thread (arg=0xb14ffb40) at pthread_create.c:308
#15 0xb571dd3e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb49bb9c0 (LWP 2347)):
[KCrash Handler]
#7  ref (this=0x80000003) at /usr/include/qt4/QtCore/qatomic_i386.h:120
#8  QSharedDataPointer (o=..., this=0xbfcdbd9c) at /usr/include/qt4/QtCore/qshareddata.h:93
#9  assignEntityPrivate (one=..., other=...) at ../../akonadi/entity.cpp:49
#10 0xb752b4cb in Akonadi::Entity::Entity (this=0xbfcdbe68, other=...) at ../../akonadi/entity.cpp:56
#11 0xb7561653 in Akonadi::Collection::Collection (this=0xbfcdbe68, other=...) at ../../akonadi/collection.cpp:72
#12 0xb7629774 in Task (this=0xbfcdbe5c) at ../../akonadi/resourcescheduler_p.h:67
#13 Akonadi::ResourceScheduler::currentTask (this=0x998c8c0) at ../../akonadi/resourcescheduler.cpp:368
#14 0xb7624608 in Akonadi::ResourceBase::cancelTask (this=0x9937540) at ../../akonadi/resourcebase.cpp:854
#15 0xb76247c2 in Akonadi::ResourceBase::cancelTask (this=0x9937540, msg=...) at ../../akonadi/resourcebase.cpp:882
#16 0x0806180e in ResourceState::cancelTask (this=0x99abfb8, errorString=...) at ../../../resources/imap/resourcestate.cpp:390
#17 0x0808adeb in ResourceTask::cancelTask (this=0x99544c0, errorString=...) at ../../../resources/imap/resourcetask.cpp:285
#18 0x0808ae58 in ResourceTask::onPoolDisconnect (this=0x99544c0) at ../../../resources/imap/resourcetask.cpp:136
#19 0xb730ab81 in QMetaObject::activate (sender=0x9949958, m=0x80ae598, local_signal_index=7, argv=0x0) at kernel/qobject.cpp:3547
#20 0x0809b2f7 in SessionPool::disconnectDone (this=0x9949958) at ./sessionpool.moc:167
#21 0x0809b939 in SessionPool::disconnect (this=0x9949958, termination=SessionPool::LogoutSession) at ../../../resources/imap/sessionpool.cpp:129
#22 0x0809ba0f in SessionPool::~SessionPool (this=0x9949958, __in_chrg=<optimized out>) at ../../../resources/imap/sessionpool.cpp:54
#23 0x0809bb30 in SessionPool::~SessionPool (this=0x9949958, __in_chrg=<optimized out>) at ../../../resources/imap/sessionpool.cpp:55
#24 0xb73091e1 in QObjectPrivate::deleteChildren (this=0x9931638) at kernel/qobject.cpp:1908
#25 0xb730e951 in QObject::~QObject (this=0x9937540, __in_chrg=<optimized out>) at kernel/qobject.cpp:927
#26 0xb7535117 in Akonadi::AgentBase::~AgentBase (this=0x9937540, __in_chrg=<optimized out>) at ../../akonadi/agentbase.cpp:507
#27 0xb761ed46 in Akonadi::ResourceBase::~ResourceBase (this=0x9937540, __in_chrg=<optimized out>) at ../../akonadi/resourcebase.cpp:394
#28 0x0805ae40 in ImapResource::~ImapResource (this=0x9937540, __in_chrg=<optimized out>) at ../../../resources/imap/imapresource.cpp:157
#29 0xb761fe2f in Akonadi::ResourceBase::init (r=0x9937540) at ../../akonadi/resourcebase.cpp:452
#30 0x0805ec57 in Akonadi::ResourceBase::init<ImapResource> (argc=3, argv=0xbfcdc314) at /usr/include/akonadi/resourcebase.h:188
#31 0x0805891b in main (argc=3, argv=0xbfcdc314) at ../../../resources/imap/imapresource.cpp:652

This bug may be a duplicate of or related to bug 308691.

Possible duplicates by query: bug 308691, bug 308070, bug 306740, bug 301647, bug 301110.

Reported using DrKonqi
Comment 1 Jekyll Wu 2012-11-13 04:21:32 UTC
*** Bug 302697 has been marked as a duplicate of this bug. ***
Comment 2 Torsten Eichstädt 2012-12-03 01:56:17 UTC
Created attachment 75600 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.9) on KDE Platform 4.9.3 using Qt 4.8.2

- What I was doing when the application crashed:

Boot and start KDE.
(This text is purely to fullfill bugtrackers requirements on text length :)

-- Backtrace (Reduced):
#6  QSharedDataPointer (o=..., this=0x7fffac024610) at /usr/include/qt4/QtCore/qshareddata.h:93
#7  assignEntityPrivate (one=..., other=...) at ../../akonadi/entity.cpp:49
#8  0x00007f8f042395e4 in Akonadi::Entity::Entity (this=<optimized out>, other=...) at ../../akonadi/entity.cpp:56
#9  0x000000000041a31f in ImapResource::onIdleCollectionFetchDone (this=0x1ef3c20, job=0x1f85940) at ../../../resources/imap/imapresource.cpp:545
#10 0x000000000041af8c in ImapResource::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./imapresource.moc:116
Comment 3 Jekyll Wu 2013-02-20 05:43:38 UTC
*** Bug 315492 has been marked as a duplicate of this bug. ***
Comment 4 Oleg 2013-03-18 15:50:17 UTC
Created attachment 78176 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.9) on KDE Platform 4.9.5 using Qt 4.8.4

- What I was doing when the application crashed: Whaen I reboot my PC akonadi crashes. Only reboot need to reproduce.

-- Backtrace (Reduced):
#8  QSharedDataPointer (o=..., this=0xbfbc1d0c) at /usr/include/QtCore/qshareddata.h:93
#9  assignEntityPrivate (one=..., other=...) at /usr/src/debug/kdepimlibs-4.9.5/akonadi/entity.cpp:49
#10 0x46ca9070 in Akonadi::Entity::Entity (this=0xbfbc1dcc, other=...) at /usr/src/debug/kdepimlibs-4.9.5/akonadi/entity.cpp:56
#11 0x46cde624 in Akonadi::Collection::Collection (this=0xbfbc1dcc, other=...) at /usr/src/debug/kdepimlibs-4.9.5/akonadi/collection.cpp:72
#12 0x46d9e9b5 in Task (this=0xbfbc1dc0) at /usr/src/debug/kdepimlibs-4.9.5/akonadi/resourcescheduler_p.h:67
Comment 5 Brallan Aguilar 2013-04-01 22:04:40 UTC
Created attachment 78564 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.10) on KDE Platform 4.10.1 using Qt 4.8.4

- What I was doing when the application crashed:
I had opened Kontact when I restart my PC and the error appeared.

-- Backtrace (Reduced):
#8  QSharedDataPointer (o=..., this=0xbf8f33ec) at /usr/include/QtCore/qshareddata.h:93
#9  assignEntityPrivate (one=..., other=...) at /usr/src/debug/kdepimlibs-4.10.1/akonadi/entity.cpp:49
#10 0x45ff0440 in Akonadi::Entity::Entity (this=0xbf8f34ac, other=...) at /usr/src/debug/kdepimlibs-4.10.1/akonadi/entity.cpp:56
#11 0x460246d4 in Akonadi::Collection::Collection (this=0xbf8f34ac, other=...) at /usr/src/debug/kdepimlibs-4.10.1/akonadi/collection.cpp:72
#12 0x460e3925 in Task (this=0xbf8f34a0) at /usr/src/debug/kdepimlibs-4.10.1/akonadi/resourcescheduler_p.h:67
Comment 6 Nathan Wolf 2013-04-17 03:15:52 UTC
Created attachment 78974 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.10) on KDE Platform 4.10.2 "release 556" using Qt 4.8.4

I loged out of my system as normal and the IMAP resource crashed.

-- Backtrace (Reduced):
#7  0x00007f8eab4ec25d in Akonadi::ResourceBase::cancelTask (this=this@entry=0x1a58b10) at /usr/src/debug/kdepimlibs-4.10.2/akonadi/resourcebase.cpp:861
#8  0x00007f8eab4ec339 in Akonadi::ResourceBase::cancelTask (this=0x1a58b10, msg=...) at /usr/src/debug/kdepimlibs-4.10.2/akonadi/resourcebase.cpp:889
#9  0x000000000041ffeb in ResourceState::cancelTask (this=0x19eec20, errorString=...) at /usr/src/debug/kdepim-runtime-4.10.2/resources/imap/resourcestate.cpp:390
#10 0x0000000000446b91 in ResourceTask::cancelTask (this=0x1b0fdf0, errorString=...) at /usr/src/debug/kdepim-runtime-4.10.2/resources/imap/resourcetask.cpp:285
#11 0x0000000000446be1 in ResourceTask::onPoolDisconnect (this=0x1b0fdf0) at /usr/src/debug/kdepim-runtime-4.10.2/resources/imap/resourcetask.cpp:136
Comment 7 Dennis Schridde 2013-05-03 01:46:25 UTC
Created attachment 79648 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.10) on KDE Platform 4.10.2 using Qt 4.8.4

- What I was doing when the application crashed:

I was shutting down my computer, and Akonadi/IMAP crashed. This happens regularly, but this time I was able to get a backtrace.

-- Backtrace (Reduced):
#6  Task (this=0x7ffff956f050, this@entry=0x7ffff956efd0) at /var/tmp/portage/kde-base/kdepimlibs-4.10.2/work/kdepimlibs-4.10.2/akonadi/resourcescheduler_p.h:67
#7  Akonadi::ResourceScheduler::currentTask (this=0x0) at /var/tmp/portage/kde-base/kdepimlibs-4.10.2/work/kdepimlibs-4.10.2/akonadi/resourcescheduler.cpp:368
#8  0x0000003d30b554f0 in Akonadi::ResourceBase::cancelTask (this=this@entry=0x2961d40) at /var/tmp/portage/kde-base/kdepimlibs-4.10.2/work/kdepimlibs-4.10.2/akonadi/resourcebase.cpp:861
#9  0x0000003d30b55692 in Akonadi::ResourceBase::cancelTask (this=0x2961d40, msg=...) at /var/tmp/portage/kde-base/kdepimlibs-4.10.2/work/kdepimlibs-4.10.2/akonadi/resourcebase.cpp:889
#10 0x000000000041eb9b in ResourceState::cancelTask (this=0x27ea920, errorString=...) at /var/tmp/portage/kde-base/kdepim-runtime-4.10.2/work/kdepim-runtime-4.10.2/resources/imap/resourcestate.cpp:390
Comment 8 Daniel Vrátil 2013-06-09 14:36:42 UTC

*** This bug has been marked as a duplicate of bug 298267 ***