Bug 303531

Summary: Kmail crash after akonadi pop server delete
Product: [Applications] kmail2 Reporter: Вохмин Иван <i_vohmin>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: darthmedicus, dialtwentysix, info
Priority: NOR    
Version: 4.8.4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Вохмин Иван 2012-07-14 18:51:50 UTC
Application: kmail (4.8.4)
KDE Platform Version: 4.8.4 (4.8.4)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-26-generic x86_64
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
Kmail was stuck deleting lots of messages (about 30k of them, mostly duplicates). And I have decided to delete pop server because of lots duplicated mails. And after that kmail crashes.

-- Backtrace:
Application: KMail (kmail), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ffab31137c0 (LWP 3538))]

Thread 4 (Thread 0x7ffa8bc82700 (LWP 3569)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ffaa53ffdec in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007ffaa53fff19 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007ffaadf3be9a in start_thread (arg=0x7ffa8bc82700) at pthread_create.c:308
#4  0x00007ffab046c4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7ffa8b381700 (LWP 3570)):
#0  0x00007ffab0460b03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007ffaa8d0c036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffaa8d0c164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffab0df7426 in QEventDispatcherGlib::processEvents (this=0x7ffa840008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007ffab0dc6c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007ffab0dc6ed7 in QEventLoop::exec (this=0x7ffa8b380dc0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007ffab0cc5fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007ffab0cc8fcb in QThreadPrivate::start (arg=0x14ca540) at thread/qthread_unix.cpp:298
#8  0x00007ffaadf3be9a in start_thread (arg=0x7ffa8b381700) at pthread_create.c:308
#9  0x00007ffab046c4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7ffa43df3700 (LWP 3624)):
#0  0x00007ffab047a104 in pthread_mutex_unlock (mutex=0x7ffa38000a60) at forward.c:184
#1  0x00007ffaa8d475d1 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffaa8d0b7e2 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffaa8d0bf5b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffaa8d0c164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffab0df7426 in QEventDispatcherGlib::processEvents (this=0x7ffa380008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007ffab0dc6c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007ffab0dc6ed7 in QEventLoop::exec (this=0x7ffa43df2d90, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007ffab0cc5fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007ffab0da69ff in QInotifyFileSystemWatcherEngine::run (this=0x1a6b250) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007ffab0cc8fcb in QThreadPrivate::start (arg=0x1a6b250) at thread/qthread_unix.cpp:298
#11 0x00007ffaadf3be9a in start_thread (arg=0x7ffa43df3700) at pthread_create.c:308
#12 0x00007ffab046c4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ffab31137c0 (LWP 3538)):
[KCrash Handler]
#6  0x00007ffab03b0445 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007ffab03b3bab in __GI_abort () at abort.c:91
#8  0x00007ffab0cbe50b in qt_message_output (msgType=<optimized out>, buf=0x3bdbbf8 "Fatal Error: Accessed global static 'QList<KMainWindow*> *sMemberList()' after destruction. Defined at ../../kdeui/widgets/kmainwindow.cpp:214") at global/qglobal.cpp:2276
#9  0x00007ffab0cbe8bf in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7ffab2c8b430 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=0x7fff2eb90f98) at global/qglobal.cpp:2322
#10 0x00007ffab0cbea64 in qFatal (msg=<optimized out>) at global/qglobal.cpp:2505
#11 0x00007ffab2be94cf in operator-> (this=<optimized out>) at ../../kdeui/widgets/kmainwindow.cpp:214
#12 operator* (this=<optimized out>) at ../../kdeui/widgets/kmainwindow.cpp:214
#13 KMainWindow::memberList () at ../../kdeui/widgets/kmainwindow.cpp:1176
#14 0x00007ffab1ecf072 in KMKernel::dumpDeadLetters (this=<optimized out>) at ../../kmail/kmkernel.cpp:1283
#15 0x00007ffab1ecf3d7 in kmCrashHandler (sigId=<optimized out>) at ../../kmail/kmkernel.cpp:1135
#16 0x00007ffab2b8db49 in KCrash::defaultCrashHandler (sig=6) at ../../kdeui/util/kcrash.cpp:307
#17 <signal handler called>
#18 0x00007ffab03b0445 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#19 0x00007ffab03b3bab in __GI_abort () at abort.c:91
#20 0x00007ffab0cbe50b in qt_message_output (msgType=<optimized out>, buf=0x9dc5628 "Fatal Error: Accessed global static 'KernelPrivate *sInstance()' after destruction. Defined at ../../mailcommon/mailkernel.cpp:48") at global/qglobal.cpp:2276
#21 0x00007ffab0cbe8bf in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7ffaac2ad9d8 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=0x7fff2eb91a58) at global/qglobal.cpp:2322
#22 0x00007ffab0cbea64 in qFatal (msg=<optimized out>) at global/qglobal.cpp:2505
#23 0x00007ffaac25124f in operator-> (this=<optimized out>) at ../../mailcommon/mailkernel.cpp:48
#24 MailCommon::Kernel::self () at ../../mailcommon/mailkernel.cpp:64
#25 0x00007ffaac241019 in MailCommon::FolderCollection::writeConfig (this=0x1a79570) at ../../mailcommon/foldercollection.cpp:210
#26 0x00007ffaac241a41 in MailCommon::FolderCollection::~FolderCollection (this=0x1a79570, __in_chrg=<optimized out>) at ../../mailcommon/foldercollection.cpp:83
#27 0x00007ffaac241ad9 in MailCommon::FolderCollection::~FolderCollection (this=0x1a79570, __in_chrg=<optimized out>) at ../../mailcommon/foldercollection.cpp:85
#28 0x00007ffaac23f7f6 in deref (value=0x1a79570, d=0x1b6a060) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:342
#29 deref (this=<optimized out>) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:336
#30 ~ExternalRefCount (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:401
#31 ~QSharedPointer (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:466
#32 QMap<long long, QSharedPointer<MailCommon::FolderCollection> >::freeData (x=0x1a68df0, this=<optimized out>) at /usr/include/qt4/QtCore/qmap.h:651
#33 0x00007ffab03b5d3d in __cxa_finalize (d=0x7ffaac4f3320) at cxa_finalize.c:56
#34 0x00007ffaac20f376 in __do_global_dtors_aux () from /usr/lib/libmailcommon.so.4
#35 0x00007fff2eb91ec0 in ?? ()
#36 0x00007fff2eb92630 in ?? ()
#37 0x00007ffaac2a74d1 in _fini () from /usr/lib/libmailcommon.so.4
#38 0x00007fff2eb92630 in ?? ()
#39 0x00007ffab2f6e92d in _dl_fini () at dl-fini.c:259
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Possible duplicates by query: bug 300961, bug 300220, bug 300059, bug 294752, bug 286605.

Reported using DrKonqi
Comment 1 Jekyll Wu 2012-08-19 16:42:18 UTC
*** Bug 304640 has been marked as a duplicate of this bug. ***
Comment 2 Jekyll Wu 2012-08-20 13:46:56 UTC
*** Bug 305491 has been marked as a duplicate of this bug. ***
Comment 3 Steve Wray 2013-10-20 19:14:29 UTC
Created attachment 82978 [details]
New crash information added by DrKonqi

kmail (4.11.2) on KDE Platform 4.11.2 using Qt 4.8.4

Added a new user and changed the directory from "inbox folder" to "example.com" folder and the KMail program crased. Dialog box comes up saying changing the name of the folder I just made back to the original folder. I could not rename to the folder I wanted it to be. Has to be "inbox".

-- Backtrace (Reduced):
#8  0xb5e4baff in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#9  0xb5e4f083 in __GI_abort () at abort.c:90
[...]
#13 0xb75f3ffc in operator-> (this=<optimized out>) at ../../kdeui/widgets/kmainwindow.cpp:214
#14 operator* (this=<optimized out>) at ../../kdeui/widgets/kmainwindow.cpp:214
#15 KMainWindow::memberList () at ../../kdeui/widgets/kmainwindow.cpp:1176
Comment 4 Denis Kurz 2016-09-24 18:10:02 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 5 Denis Kurz 2017-01-07 22:40:56 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.