Bug 335778

Summary: KMail crash
Product: [Applications] kmail2 Reporter: mmachakowitz5
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 4.13   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description mmachakowitz5 2014-06-04 09:14:28 UTC
Application: kmail (4.13)
KDE Platform Version: 4.13.0
Qt Version: 4.8.6
Operating System: Linux 3.13.0-27-generic x86_64
Distribution: Ubuntu 14.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:hitting "check mail" button,crashing constantly after checking mail.

The crash can be reproduced sometimes.

-- 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 0x7f75a4b1d800 (LWP 10555))]

Thread 6 (Thread 0x7f757dd6f700 (LWP 10558)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f759642981d in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f7596429859 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f759f800182 in start_thread (arg=0x7f757dd6f700) at pthread_create.c:312
#4  0x00007f75a1f7330d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7f753cbcf700 (LWP 10559)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f759616a20d in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f7596458fd6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f759f800182 in start_thread (arg=0x7f753cbcf700) at pthread_create.c:312
#4  0x00007f75a1f7330d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f7537bff700 (LWP 10560)):
#0  0x00007f7599f8a62d in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f7599f8a9b9 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f7599f480f0 in g_main_context_acquire () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f7599f48ea5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f7599f490ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f75a290a7be in QEventDispatcherGlib::processEvents (this=0x7f75300008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#6  0x00007f75a28dc0af in QEventLoop::processEvents (this=this@entry=0x7f7537bfede0, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f75a28dc3a5 in QEventLoop::exec (this=this@entry=0x7f7537bfede0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f75a27d8c5f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:537
#9  0x00007f75a27db32f in QThreadPrivate::start (arg=0x137a100) at thread/qthread_unix.cpp:349
#10 0x00007f759f800182 in start_thread (arg=0x7f7537bff700) at pthread_create.c:312
#11 0x00007f75a1f7330d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f75363ef700 (LWP 10561)):
#0  0x00007f7599f8a635 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f7599f8a989 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f7599f48a6c in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f7599f48f7b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f7599f490ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f75a290a7be in QEventDispatcherGlib::processEvents (this=0x7f75280008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#6  0x00007f75a28dc0af in QEventLoop::processEvents (this=this@entry=0x7f75363eeda0, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f75a28dc3a5 in QEventLoop::exec (this=this@entry=0x7f75363eeda0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f75a27d8c5f in QThread::exec (this=this@entry=0x1906360) at thread/qthread.cpp:537
#9  0x00007f75a28bd823 in QInotifyFileSystemWatcherEngine::run (this=0x1906360) at io/qfilesystemwatcher_inotify.cpp:265
#10 0x00007f75a27db32f in QThreadPrivate::start (arg=0x1906360) at thread/qthread_unix.cpp:349
#11 0x00007f759f800182 in start_thread (arg=0x7f75363ef700) at pthread_create.c:312
#12 0x00007f75a1f7330d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f7535997700 (LWP 10562)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f758c3edffb in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007f758c3ee039 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007f759f800182 in start_thread (arg=0x7f7535997700) at pthread_create.c:312
#4  0x00007f75a1f7330d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f75a4b1d800 (LWP 10555)):
[KCrash Handler]
#6  0x00007f75a1eaef79 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x00007f75a1eb2388 in __GI_abort () at abort.c:89
#8  0x00007f75a27d0c92 in qt_message_output (msgType=msgType@entry=QtFatalMsg, buf=0x1390d38 "Fatal Error: Accessed global static 'QList<KMainWindow*> *sMemberList()' after destruction. Defined at ../../kdeui/widgets/kmainwindow.cpp:214") at global/qglobal.cpp:2383
#9  0x00007f75a27d0ff9 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, msg=msg@entry=0x7f75a479f530 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=ap@entry=0x7fff8e049a28) at global/qglobal.cpp:2429
#10 0x00007f75a27d1804 in qFatal (msg=msg@entry=0x7f75a479f530 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d") at global/qglobal.cpp:2612
#11 0x00007f75a470c02f 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 0x00007f75a39aca9b in KMKernel::dumpDeadLetters (this=0x293b) at ../../kmail/kmkernel.cpp:1314
#15 0x00007f75a39ae2c7 in kmCrashHandler (sigId=<optimized out>) at ../../kmail/kmkernel.cpp:1158
#16 0x00007f75a46b5f08 in KCrash::defaultCrashHandler (sig=6) at ../../kdeui/util/kcrash.cpp:340
#17 <signal handler called>
#18 0x00007f75a1eaef79 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#19 0x00007f75a1eb2388 in __GI_abort () at abort.c:89
#20 0x00007f75a27d0c92 in qt_message_output (msgType=msgType@entry=QtFatalMsg, buf=0x1c11528 "Fatal Error: Accessed global static 'KernelPrivate *sInstance()' after destruction. Defined at ../../mailcommon/kernel/mailkernel.cpp:57") at global/qglobal.cpp:2383
#21 0x00007f75a27d0ff9 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, msg=0x7f759d724c60 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=ap@entry=0x7fff8e04a738) at global/qglobal.cpp:2429
#22 0x00007f75a27d1804 in qFatal (msg=<optimized out>) at global/qglobal.cpp:2612
#23 0x00007f759d679837 in operator-> (this=<optimized out>) at ../../mailcommon/kernel/mailkernel.cpp:57
#24 MailCommon::Kernel::self () at ../../mailcommon/kernel/mailkernel.cpp:73
#25 0x00007f759d6c04b0 in MailCommon::FolderCollection::writeConfig (this=this@entry=0x268dd20) at ../../mailcommon/folder/foldercollection.cpp:218
#26 0x00007f759d6c0d22 in MailCommon::FolderCollection::~FolderCollection (this=0x268dd20, __in_chrg=<optimized out>) at ../../mailcommon/folder/foldercollection.cpp:84
#27 0x00007f759d6c0d99 in MailCommon::FolderCollection::~FolderCollection (this=0x268dd20, __in_chrg=<optimized out>) at ../../mailcommon/folder/foldercollection.cpp:86
#28 0x00007f759d6bf5d4 in deref (value=0x268dd20, d=0x26c56b0) 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=0x13a2600, this=<optimized out>) at /usr/include/qt4/QtCore/qmap.h:652
#33 0x00007f75a1eb489a in __cxa_finalize (d=0x7f759d97c8c0) at cxa_finalize.c:56
#34 0x00007f759d6781f3 in __do_global_dtors_aux () from /usr/lib/libmailcommon.so.4
#35 0x00007fff8e04b310 in ?? ()
#36 0x00007f75a4a9073a in _dl_fini () at dl-fini.c:252
Backtrace stopped: frame did not save the PC

Possible duplicates by query: bug 335225, bug 335224, bug 333358, bug 331710, bug 330942.

Reported using DrKonqi
Comment 1 Denis Kurz 2016-09-24 18:16:33 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 2 Denis Kurz 2017-01-07 21:38:08 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.