Bug 308545

Summary: kmail crash after stopping akonadiserver
Product: [Applications] kmail2 Reporter: kavol <kavol>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash    
Priority: NOR    
Version: 4.9.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description kavol 2012-10-17 10:59:50 UTC
Application: kmail (4.9.2)
KDE Platform Version: 4.9.2
Qt Version: 4.8.2
Operating System: Linux 3.6.1-1.fc17.x86_64 x86_64
Distribution: "Fedora release 17 (Beefy Miracle)"

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

Akonadi got unrensponsive, I could not display contents of any folder, all I got was the rotating "wait" symbol, so I decided to stop Akonadiserver and start it again.
After stopping, kmail showed some error message about inability to access something, and after clicking ok in that dialogue window, it crashed.

-- Backtrace:
Application: KMail (kmail), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7faf40fc3880 (LWP 32431))]

Thread 3 (Thread 0x7faf339f5700 (LWP 32442)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:166
#1  0x0000003c0981677d in WTF::TCMalloc_PageHeap::scavengerThread (this=0x3c0a200980) at wtf/FastMalloc.cpp:2495
#2  0x0000003c09816889 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at wtf/FastMalloc.cpp:1618
#3  0x0000003b36407d14 in start_thread (arg=0x7faf339f5700) at pthread_create.c:309
#4  0x0000003b35cf167d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7faf330dc700 (LWP 32443)):
#0  0x0000003b35ce8bcf in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x0000003b38c47af4 in g_main_context_poll (n_fds=1, fds=0x7faf2c0029c0, timeout=7786, context=0x7faf2c0009a0, priority=<optimized out>) at gmain.c:3440
#2  g_main_context_iterate (context=context@entry=0x7faf2c0009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3141
#3  0x0000003b38c47c14 in g_main_context_iteration (context=0x7faf2c0009a0, may_block=1) at gmain.c:3207
#4  0x0000003bfeda44e6 in QEventDispatcherGlib::processEvents (this=0x7faf2c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x0000003bfed7510f in QEventLoop::processEvents (this=this@entry=0x7faf330dbd20, flags=...) at kernel/qeventloop.cpp:149
#6  0x0000003bfed75398 in QEventLoop::exec (this=0x7faf330dbd20, flags=...) at kernel/qeventloop.cpp:204
#7  0x0000003bfec78650 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x0000003bfec7b5eb in QThreadPrivate::start (arg=0x19b0c90) at thread/qthread_unix.cpp:307
#9  0x0000003b36407d14 in start_thread (arg=0x7faf330dc700) at pthread_create.c:309
#10 0x0000003b35cf167d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7faf40fc3880 (LWP 32431)):
[KCrash Handler]
#6  0x0000003b35c35925 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x0000003b35c370d8 in __GI_abort () at abort.c:91
#8  0x0000003bfec71234 in qt_message_output (msgType=msgType@entry=QtFatalMsg, buf=<optimized out>) at global/qglobal.cpp:2260
#9  0x0000003bfec713e8 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, msg=0x3c01991dd0 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=ap@entry=0x7fffa5e966f8) at global/qglobal.cpp:2306
#10 0x0000003bfec71574 in qFatal (msg=<optimized out>) at global/qglobal.cpp:2489
#11 0x0000003c018fdc3f in operator-> (this=<optimized out>) at /usr/src/debug/kdelibs-4.9.2/kdeui/widgets/kmainwindow.cpp:214
#12 operator* (this=<optimized out>) at /usr/src/debug/kdelibs-4.9.2/kdeui/widgets/kmainwindow.cpp:214
#13 KMainWindow::memberList () at /usr/src/debug/kdelibs-4.9.2/kdeui/widgets/kmainwindow.cpp:1176
#14 0x0000003c13eecc84 in KMKernel::dumpDeadLetters (this=0x7eaf) at /usr/src/debug/kdepim-4.9.2/kmail/kmkernel.cpp:1332
#15 0x0000003c13eecff7 in kmCrashHandler (sigId=<optimized out>) at /usr/src/debug/kdepim-4.9.2/kmail/kmkernel.cpp:1176
#16 0x0000003c018a51c8 in KCrash::defaultCrashHandler (sig=6) at /usr/src/debug/kdelibs-4.9.2/kdeui/util/kcrash.cpp:307
#17 <signal handler called>
#18 0x0000003b35c35925 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#19 0x0000003b35c370d8 in __GI_abort () at abort.c:91
#20 0x0000003bfec71234 in qt_message_output (msgType=msgType@entry=QtFatalMsg, buf=<optimized out>) at global/qglobal.cpp:2260
#21 0x0000003bfec713e8 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, msg=0x3c12b1bb28 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=ap@entry=0x7fffa5e97158) at global/qglobal.cpp:2306
#22 0x0000003bfec71574 in qFatal (msg=<optimized out>) at global/qglobal.cpp:2489
#23 0x0000003c12aca557 in operator-> (this=<optimized out>) at /usr/src/debug/kdepim-4.9.2/mailcommon/mailkernel.cpp:53
#24 MailCommon::Kernel::self () at /usr/src/debug/kdepim-4.9.2/mailcommon/mailkernel.cpp:69
#25 0x0000003c12abcc69 in MailCommon::FolderCollection::writeConfig (this=this@entry=0x1d8a320) at /usr/src/debug/kdepim-4.9.2/mailcommon/foldercollection.cpp:208
#26 0x0000003c12abd73a in MailCommon::FolderCollection::~FolderCollection (this=0x1d8a320, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.9.2/mailcommon/foldercollection.cpp:83
#27 0x0000003c12abd7b9 in MailCommon::FolderCollection::~FolderCollection (this=0x1d8a320, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.9.2/mailcommon/foldercollection.cpp:85
#28 0x0000003c12abb4d4 in deref (value=0x1d8a320, d=0x1d85800) at /usr/include/QtCore/qsharedpointer_impl.h:342
#29 deref (this=<optimized out>) at /usr/include/QtCore/qsharedpointer_impl.h:336
#30 ~ExternalRefCount (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/QtCore/qsharedpointer_impl.h:401
#31 ~QSharedPointer (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/QtCore/qsharedpointer_impl.h:466
#32 QMap<long long, QSharedPointer<MailCommon::FolderCollection> >::freeData (x=0x1c60750, this=<optimized out>) at /usr/include/QtCore/qmap.h:651
#33 0x0000003b35c38f5a in __cxa_finalize (d=0x3c12d57b88) at cxa_finalize.c:56
#34 0x0000003c12a60ba3 in __do_global_dtors_aux () from /lib64/libmailcommon.so.4
#35 0x00007fffa5e97cc0 in ?? ()
#36 0x0000003b3580f4e7 in _dl_fini () at dl-fini.c:254
Backtrace stopped: frame did not save the PC

Possible duplicates by query: bug 306435, bug 305658, bug 305491, bug 304640, bug 303531.

Reported using DrKonqi
Comment 1 Denis Kurz 2016-09-24 18:01:58 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 22:37:05 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.