Bug 301965

Summary: Kmail2 not work correctly
Product: [Frameworks and Libraries] Akonadi Reporter: Danilo Marcucci <danilo>
Component: Mixed Maildir resourceAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: andreas_barth, bruno, carstengrohmann, crissi99, danilo, krammer, winter
Priority: NOR    
Version: 4.8   
Target Milestone: ---   
Platform: Fedora RPMs   
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
New crash information added by DrKonqi
New crash information added by DrKonqi
Backtrace with local variables from crash 2013-10-10
New crash information added by DrKonqi

Description Danilo Marcucci 2012-06-15 12:37:33 UTC
Application: akonadi_mixedmaildir_resource (4.8)
KDE Platform Version: 4.8.3 (4.8.3)
Qt Version: 4.8.2
Operating System: Linux 3.3.8-1.fc16.i686.PAE i686
Distribution: "Fedora release 16 (Verne)"

-- Information about the crash:
Dear,
while I was reading and deleting the mails i have received the error message.
kmail2 remained open but the emails were no longer visible in the box.

-- Backtrace:
Application: Cartelle di KMail di tipo  (akonadi_mixedmaildir_resource), signal: Segmentation fault
Using host libthread_db library "/lib/libthread_db.so.1".
[KCrash Handler]
#7  __memmove_ssse3_rep () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S:1306
#8  0x4bdcfeb3 in KMBox::MBox::purge (this=0x91bf550, deletedEntries=..., movedEntries=0xbfa38b48) at /usr/include/bits/string3.h:58
#9  0x080824e6 in MBoxContext::purge (this=0x91bf540, movedEntries=...) at /usr/src/debug/kdepim-runtime-4.8.3/resources/mixedmaildir/mixedmaildirstore.cpp:174
#10 0x0807e115 in MixedMaildirStore::Private::visit (this=0x91db028, job=0x91a9f98) at /usr/src/debug/kdepim-runtime-4.8.3/resources/mixedmaildir/mixedmaildirstore.cpp:2196
#11 0x4a1b3008 in Akonadi::FileStore::StoreCompactJob::accept (this=0x91a9f98, visitor=0x91db028) at /usr/src/debug/kdepim-runtime-4.8.3/resources/shared/filestore/storecompactjob.cpp:54
#12 0x080672ed in MixedMaildirStore::processJob (this=0x91da7b8, job=0x91a9f98) at /usr/src/debug/kdepim-runtime-4.8.3/resources/mixedmaildir/mixedmaildirstore.cpp:2287
#13 0x4a1ac3ce in Akonadi::FileStore::AbstractLocalStore::Private::processJobs (this=0x91d75c0, jobs=...) at /usr/src/debug/kdepim-runtime-4.8.3/resources/shared/filestore/abstractlocalstore.cpp:295
#14 0x4a1ac43a in qt_static_metacall (_a=0xbfa38d48, _o=0x91da7b8, _c=<optimized out>, _id=<optimized out>) at /usr/src/debug/kdepim-runtime-4.8.3/i686-redhat-linux-gnu/resources/shared/filestore/abstractlocalstore.moc:49
#15 Akonadi::FileStore::AbstractLocalStore::qt_static_metacall (_o=0x91da7b8, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfa38d48) at /usr/src/debug/kdepim-runtime-4.8.3/i686-redhat-linux-gnu/resources/shared/filestore/abstractlocalstore.moc:43
#16 0xb68eed91 in QMetaObject::activate (sender=0x91d92c8, m=0x4a1bb3a4, local_signal_index=0, argv=0xbfa38d48) at kernel/qobject.cpp:3547
#17 0x4a1b2056 in Akonadi::FileStore::AbstractJobSession::jobsReady (this=0x91d92c8, _t1=...) at /usr/src/debug/kdepim-runtime-4.8.3/i686-redhat-linux-gnu/resources/shared/filestore/session_p.moc:98
#18 0x4a1b279d in runNextJob (this=0x91d8740) at /usr/src/debug/kdepim-runtime-4.8.3/resources/shared/filestore/sessionimpls.cpp:142
#19 qt_static_metacall (_id=0, _o=0x91d92c8, _c=<optimized out>, _a=<optimized out>) at /usr/src/debug/kdepim-runtime-4.8.3/i686-redhat-linux-gnu/resources/shared/filestore/sessionimpls_p.moc:49
#20 Akonadi::FileStore::FiFoQueueJobSession::qt_static_metacall (_o=0x91d92c8, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfa38e20) at /usr/src/debug/kdepim-runtime-4.8.3/i686-redhat-linux-gnu/resources/shared/filestore/sessionimpls_p.moc:43
#21 0xb68eed91 in QMetaObject::activate (sender=0x91d8748, m=0xb6a37bd8, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3547
#22 0xb6944b56 in QTimer::timeout (this=0x91d8748) at .moc/release-shared/moc_qtimer.cpp:147
#23 0xb68fa2d6 in QTimer::timerEvent (this=0x91d8748, e=0xbfa3932c) at kernel/qtimer.cpp:280
#24 0xb68f5634 in QObject::event (this=0x91d8748, e=0xbfa3932c) at kernel/qobject.cpp:1157
#25 0xb6b73ca4 in notify_helper (e=0xbfa3932c, receiver=0x91d8748, this=0x913f240) at kernel/qapplication.cpp:4551
#26 QApplicationPrivate::notify_helper (this=0x913f240, receiver=0x91d8748, e=0xbfa3932c) at kernel/qapplication.cpp:4523
#27 0xb6b79073 in QApplication::notify (this=0xbfa3932c, receiver=0x91d8748, e=0xbfa3932c) at kernel/qapplication.cpp:4280
#28 0x4b9d9e42 in KApplication::notify (this=0xbfa39640, receiver=0x91d8748, event=0xbfa3932c) at /usr/src/debug/kdelibs-4.8.3/kdeui/kernel/kapplication.cpp:311
#29 0xb68da94e in QCoreApplication::notifyInternal (this=0xbfa39640, receiver=0x91d8748, event=0xbfa3932c) at kernel/qcoreapplication.cpp:915
#30 0xb690f760 in sendEvent (event=0xbfa3932c, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#31 QTimerInfoList::activateTimers (this=0x9137834) at kernel/qeventdispatcher_unix.cpp:611
#32 0xb690ce49 in timerSourceDispatch (source=0x9137800) at kernel/qeventdispatcher_glib.cpp:186
#33 timerSourceDispatch (source=0x9137800) at kernel/qeventdispatcher_glib.cpp:180
#34 0x49752aff in g_main_dispatch (context=0x9140c70) at gmain.c:2441
#35 g_main_context_dispatch (context=0x9140c70) at gmain.c:3011
#36 0x49753240 in g_main_context_iterate (context=0x9140c70, block=1232477456, dispatch=1, self=0x91420b8) at gmain.c:3089
#37 0x497534ef in g_main_context_iteration (context=0x9140c70, may_block=1) at gmain.c:3152
#38 0xb690d678 in QEventDispatcherGlib::processEvents (this=0x9112850, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#39 0xb6c2875b in QGuiEventDispatcherGlib::processEvents (this=0x9112850, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#40 0xb68d953e in QEventLoop::processEvents (this=0xbfa395a4, flags=...) at kernel/qeventloop.cpp:149
#41 0xb68d97e9 in QEventLoop::exec (this=0xbfa395a4, flags=...) at kernel/qeventloop.cpp:204
#42 0xb68dec8b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#43 0xb6b71ad5 in QApplication::exec () at kernel/qapplication.cpp:3812
#44 0x4f52b7e2 in Akonadi::ResourceBase::init (r=0x920fa30) at /usr/src/debug/kdepimlibs-4.8.3/akonadi/resourcebase.cpp:412
#45 0x08064fd9 in Akonadi::ResourceBase::init<MixedMaildirResource> (argc=3, argv=0xbfa39714) at /usr/include/kde4/akonadi/resourcebase.h:188
#46 0x0805463c in main (argc=3, argv=0xbfa39714) at /usr/src/debug/kdepim-runtime-4.8.3/resources/mixedmaildir/mixedmaildirresource.cpp:826

Reported using DrKonqi
Comment 1 Danilo Marcucci 2012-07-10 08:49:05 UTC
Created attachment 72421 [details]
New crash information added by DrKonqi

akonadi_mixedmaildir_resource (4.8) on KDE Platform 4.8.4 (4.8.4) using Qt 4.8.2

Dear, 
while I was reading and deleting the mails i have received the error message. kmail2 remained open but the emails were no longer visible in the box.
This error is same the Bug 301965.
This error appears occasionally and I 'm not sent everytime its.

-- Backtrace (Reduced):
#7  __memmove_ssse3_rep () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S:1297
#8  0xb7149e13 in KMBox::MBox::purge (this=0xa553e08, deletedEntries=..., movedEntries=0xbfa597c8) at /usr/include/bits/string3.h:58
#9  0x080824e6 in MBoxContext::purge (this=0xa553df8, movedEntries=...) at /usr/src/debug/kdepim-runtime-4.8.4/resources/mixedmaildir/mixedmaildirstore.cpp:174
#10 0x0807e115 in MixedMaildirStore::Private::visit (this=0x9e32f90, job=0xa7e5210) at /usr/src/debug/kdepim-runtime-4.8.4/resources/mixedmaildir/mixedmaildirstore.cpp:2196
#11 0xb773a5e8 in Akonadi::FileStore::StoreCompactJob::accept (this=0xa7e5210, visitor=0x9e32f90) at /usr/src/debug/kdepim-runtime-4.8.4/resources/shared/filestore/storecompactjob.cpp:54
Comment 2 Danilo Marcucci 2013-01-03 14:08:03 UTC
Created attachment 76159 [details]
New crash information added by DrKonqi

akonadi_mixedmaildir_resource (4.8) on KDE Platform 4.8.5 (4.8.5) using Qt 4.8.3

I was deleting an email from a subfolder of kmail folder.
Usually go back all right going on kmail folder with the right mouse button I click on it and I select update folder and its subfolders

-- Backtrace (Reduced):
#7  __memmove_ssse3_rep () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S:1305
#8  0xb70f2e13 in KMBox::MBox::purge (this=0x8c27608, deletedEntries=..., movedEntries=0xbf943158) at /usr/include/bits/string3.h:58
#9  0x080824e6 in MBoxContext::purge (this=0x8c275f8, movedEntries=...) at /usr/src/debug/kdepim-runtime-4.8.5/resources/mixedmaildir/mixedmaildirstore.cpp:174
#10 0x0807e115 in MixedMaildirStore::Private::visit (this=0x8d3e220, job=0x8e926b0) at /usr/src/debug/kdepim-runtime-4.8.5/resources/mixedmaildir/mixedmaildirstore.cpp:2196
#11 0xb76e45e8 in Akonadi::FileStore::StoreCompactJob::accept (this=0x8e926b0, visitor=0x8d3e220) at /usr/src/debug/kdepim-runtime-4.8.5/resources/shared/filestore/storecompactjob.cpp:54
Comment 3 Jekyll Wu 2013-03-07 18:02:48 UTC
*** Bug 307002 has been marked as a duplicate of this bug. ***
Comment 4 Christophe Marin 2013-03-09 11:37:38 UTC
KDE 4.8.x is obsolete. 
Please retry with 4.10.1 and add a recent backtrace if you're able to reproduce this crash.
Comment 5 Carsten Grohmann 2013-09-16 18:08:57 UTC
Created attachment 82343 [details]
New crash information added by DrKonqi

akonadi_mixedmaildir_resource (4.10) on KDE Platform 4.10.5 using Qt 4.8.5

- What I was doing when the application crashed:
I've deleted some emails in my inbox in parallel to sending an single email.

-- Backtrace (Reduced):
#7  __memmove_ssse3_rep () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S:505
#8  0xb70c874a in memmove (__len=<optimized out>, __src=<optimized out>, __dest=0xb2164652) at /usr/include/i386-linux-gnu/bits/string3.h:57
#9  KMBox::MBox::purge (this=this@entry=0x9306e50, deletedEntries=..., movedEntries=movedEntries@entry=0xbfa38da4) at ../../kmbox/mbox.cpp:386
#10 0x080804aa in MBoxContext::purge (this=this@entry=0x9306e40, movedEntries=...) at ../../../resources/mixedmaildir/mixedmaildirstore.cpp:174
#11 0x0807c25a in MixedMaildirStore::Private::visit (this=0x92f9af8, job=0x92f0040) at ../../../resources/mixedmaildir/mixedmaildirstore.cpp:2197
Comment 6 Carsten Grohmann 2013-09-16 19:21:22 UTC
Created attachment 82345 [details]
New crash information added by DrKonqi

akonadi_mixedmaildir_resource (4.10) on KDE Platform 4.10.5 using Qt 4.8.5

- What I was doing when the application crashed:
I moved an email from my local inbox in another local folder.

-- Backtrace (Reduced):
#7  __memmove_ssse3_rep () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S:583
#8  0xb71a374a in memmove (__len=<optimized out>, __src=<optimized out>, __dest=0xb23f1933) at /usr/include/i386-linux-gnu/bits/string3.h:57
#9  KMBox::MBox::purge (this=this@entry=0x93ccd38, deletedEntries=..., movedEntries=movedEntries@entry=0xbfcd36d4) at ../../kmbox/mbox.cpp:386
#10 0x080804aa in MBoxContext::purge (this=this@entry=0x93ccd28, movedEntries=...) at ../../../resources/mixedmaildir/mixedmaildirstore.cpp:174
#11 0x0807c25a in MixedMaildirStore::Private::visit (this=0x93d1ad8, job=0xb7fa2d8) at ../../../resources/mixedmaildir/mixedmaildirstore.cpp:2197
Comment 7 Carsten Grohmann 2013-09-24 19:56:38 UTC
Created attachment 82478 [details]
New crash information added by DrKonqi

akonadi_mixedmaildir_resource (4.10) on KDE Platform 4.10.5 using Qt 4.8.5

- What I was doing when the application crashed:
I have deleted an email in my local inbox. The application doesn't crash every time I'm deleting an email. But sometimes it crashes.

-- Backtrace (Reduced):
#7  __memmove_ssse3_rep () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S:855
#8  0xb70ea74a in memmove (__len=<optimized out>, __src=<optimized out>, __dest=0xb22e7a44) at /usr/include/i386-linux-gnu/bits/string3.h:57
#9  KMBox::MBox::purge (this=this@entry=0x8f85d10, deletedEntries=..., movedEntries=movedEntries@entry=0xbfb8e824) at ../../kmbox/mbox.cpp:386
#10 0x080804aa in MBoxContext::purge (this=this@entry=0x8f85d00, movedEntries=...) at ../../../resources/mixedmaildir/mixedmaildirstore.cpp:174
#11 0x0807c25a in MixedMaildirStore::Private::visit (this=0x8f99ba0, job=0x93025a0) at ../../../resources/mixedmaildir/mixedmaildirstore.cpp:2197
Comment 8 Carsten Grohmann 2013-09-24 19:56:38 UTC
Created attachment 82479 [details]
New crash information added by DrKonqi

akonadi_mixedmaildir_resource (4.10) on KDE Platform 4.10.5 using Qt 4.8.5

- What I was doing when the application crashed:
I have deleted an email in my local inbox. The application doesn't crash every time I'm deleting an email. But sometimes it crashes.

-- Backtrace (Reduced):
#7  __memmove_ssse3_rep () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S:855
#8  0xb70ea74a in memmove (__len=<optimized out>, __src=<optimized out>, __dest=0xb22e7a44) at /usr/include/i386-linux-gnu/bits/string3.h:57
#9  KMBox::MBox::purge (this=this@entry=0x8f85d10, deletedEntries=..., movedEntries=movedEntries@entry=0xbfb8e824) at ../../kmbox/mbox.cpp:386
#10 0x080804aa in MBoxContext::purge (this=this@entry=0x8f85d00, movedEntries=...) at ../../../resources/mixedmaildir/mixedmaildirstore.cpp:174
#11 0x0807c25a in MixedMaildirStore::Private::visit (this=0x8f99ba0, job=0x93025a0) at ../../../resources/mixedmaildir/mixedmaildirstore.cpp:2197
Comment 9 Carsten Grohmann 2013-09-24 19:56:38 UTC
Created attachment 82480 [details]
New crash information added by DrKonqi

akonadi_mixedmaildir_resource (4.10) on KDE Platform 4.10.5 using Qt 4.8.5

- What I was doing when the application crashed:
I have deleted an email in my local inbox. The application doesn't crash every time I'm deleting an email. But sometimes it crashes.

-- Backtrace (Reduced):
#7  __memmove_ssse3_rep () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S:855
#8  0xb70ea74a in memmove (__len=<optimized out>, __src=<optimized out>, __dest=0xb22e7a44) at /usr/include/i386-linux-gnu/bits/string3.h:57
#9  KMBox::MBox::purge (this=this@entry=0x8f85d10, deletedEntries=..., movedEntries=movedEntries@entry=0xbfb8e824) at ../../kmbox/mbox.cpp:386
#10 0x080804aa in MBoxContext::purge (this=this@entry=0x8f85d00, movedEntries=...) at ../../../resources/mixedmaildir/mixedmaildirstore.cpp:174
#11 0x0807c25a in MixedMaildirStore::Private::visit (this=0x8f99ba0, job=0x93025a0) at ../../../resources/mixedmaildir/mixedmaildirstore.cpp:2197
Comment 10 Carsten Grohmann 2013-10-09 17:01:24 UTC
Please reopen this bug, because the issue isn't fixed yet and it occurs with current release (4.10) too.

Thanks,
Carsten
Comment 11 Carsten Grohmann 2013-10-10 19:37:56 UTC
Created attachment 82775 [details]
Backtrace with local variables from crash 2013-10-10
Comment 12 Carsten Grohmann 2013-10-10 19:39:27 UTC
Hi,

today akonadi_mixedmaildir_resource has crashed again. The crash has been triggered by deleting emails during KMail was still fetching new emails via pop3.

A full backtrace created by gdb has been attached.

Application details:
Application: akonadi_mixedmaildir_resource (4.10)
KDE Platform Version: 4.10.5
Qt Version: 4.8.6
Operating System: Linux 3.10-3-686-pae i686
Distribution: Debian GNU/Linux testing (jessie)

Regards,
Carsten
Comment 13 Danilo Marcucci 2013-11-05 09:02:43 UTC
Created attachment 83346 [details]
New crash information added by DrKonqi

akonadi_mixedmaildir_resource (4.11) on KDE Platform 4.11.2 using Qt 4.8.5

- What I was doing when the application crashed:

I was deleting a message from the inbox of an account

-- Backtrace (Reduced):
#7  __memmove_ssse3_rep () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S:1298
#8  0x4d68a915 in memmove (__len=<optimized out>, __src=<optimized out>, __dest=0xb6467ca1) at /usr/include/bits/string3.h:57
#9  KMBox::MBox::purge (this=this@entry=0x86131c0, deletedEntries=..., movedEntries=movedEntries@entry=0xbfca0c24) at /usr/src/debug/kdepimlibs-4.11.2/kmbox/mbox.cpp:386
#10 0x08080532 in MBoxContext::purge (this=this@entry=0x86131b0, movedEntries=...) at /usr/src/debug/kdepim-runtime-4.11.2/resources/mixedmaildir/mixedmaildirstore.cpp:174
#11 0x0807c3c2 in MixedMaildirStore::Private::visit (this=0x8627310, job=0x85b5248) at /usr/src/debug/kdepim-runtime-4.11.2/resources/mixedmaildir/mixedmaildirstore.cpp:2197
Comment 14 Jekyll Wu 2014-01-14 12:21:55 UTC
*** Bug 329947 has been marked as a duplicate of this bug. ***
Comment 15 Jekyll Wu 2014-01-14 13:32:51 UTC
*** Bug 298618 has been marked as a duplicate of this bug. ***
Comment 16 Jekyll Wu 2014-03-15 11:59:00 UTC
*** Bug 332178 has been marked as a duplicate of this bug. ***
Comment 17 Denis Kurz 2016-09-24 20:41:08 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 18 Denis Kurz 2017-01-07 22:29:00 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.