Bug 330942 - KMail2 crash when I change mail agent (local folders) in akonadi settings
Summary: KMail2 crash when I change mail agent (local folders) in akonadi settings
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.12.2
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-02-09 05:33 UTC by Andrey
Modified: 2017-01-07 22:50 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey 2014-02-09 05:33:37 UTC
Application: kmail (4.12.2)
KDE Platform Version: 4.12.2 (Compiled from sources)
Qt Version: 4.8.5
Operating System: Linux 3.13.1-gentoo x86_64
Distribution: "Gentoo Base System release 2.2"

-- Information about the crash:
KMail2 crash when I change mail agent (local folders) in akonadi settings.

I just open mail agent settings and press OK (few times), without any additional changes.

-- Backtrace:
Application: KMail (kmail), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fca1806c780 (LWP 19301))]

Thread 4 (Thread 0x7fc9f9d65700 (LWP 19397)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fca08354d20 in WTF::TCMalloc_PageHeap::scavengerThread (this=<optimized out>) at wtf/FastMalloc.cpp:2495
#2  0x00007fca08354d8b in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at wtf/FastMalloc.cpp:1618
#3  0x00007fca12de030d in start_thread (arg=0x7fc9f9d65700) at pthread_create.c:308
#4  0x00007fca15099a9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7fc9f945c700 (LWP 19398)):
#0  g_mutex_get_impl (mutex=0x7fc9f40009a0) at /media/trash/system/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/glib/gthread-posix.c:123
#1  0x00007fca0caf4f2b in g_mutex_unlock (mutex=mutex@entry=0x7fc9f40009a0) at /media/trash/system/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/glib/gthread-posix.c:229
#2  0x00007fca0caa2a5c in g_main_context_check (context=context@entry=0x7fc9f40009a0, max_priority=2147483647, fds=fds@entry=0x7fc9f40029c0, n_fds=n_fds@entry=1) at /media/trash/system/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/glib/gmain.c:3543
#3  0x00007fca0caa2ff8 in g_main_context_iterate (context=context@entry=0x7fc9f40009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /media/trash/system/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/glib/gmain.c:3698
#4  0x00007fca0caa31f1 in g_main_context_iteration (context=0x7fc9f40009a0, may_block=1) at /media/trash/system/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/glib/gmain.c:3762
#5  0x00007fca15aa22ef in QEventDispatcherGlib::processEvents (this=0x7fc9f40008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#6  0x00007fca15a68a13 in QEventLoop::processEvents (this=this@entry=0x7fc9f945be20, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007fca15a68ea5 in QEventLoop::exec (this=0x7fc9f945be20, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007fca15931442 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#9  0x00007fca159345e6 in QThreadPrivate::start (arg=0x7fca1a043e10) at thread/qthread_unix.cpp:338
#10 0x00007fca12de030d in start_thread (arg=0x7fc9f945c700) at pthread_create.c:308
#11 0x00007fca15099a9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7fc9e7fff700 (LWP 21488)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fca0169dcdc in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7fca01987340 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007fca0169dd4b in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007fca12de030d in start_thread (arg=0x7fc9e7fff700) at pthread_create.c:308
#4  0x00007fca15099a9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7fca1806c780 (LWP 19301)):
[KCrash Handler]
#6  0x00007fca14fd64ce in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x00007fca14fd7e32 in __GI_abort () at abort.c:90
#8  0x00007fca15927094 in qt_message_output (msgType=<optimized out>, msgType@entry=QtFatalMsg, buf=<optimized out>) at global/qglobal.cpp:2323
#9  0x00007fca1592726c in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, msg=0x7fca17bdfdf0 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=ap@entry=0x7fff431fbd50) at global/qglobal.cpp:2369
#10 0x00007fca15927c71 in qFatal (msg=<optimized out>) at global/qglobal.cpp:2552
#11 0x00007fca17b226ff in operator-> (this=<optimized out>) at /media/trash/system/portage/kde-base/kdelibs-4.12.2/work/kdelibs-4.12.2/kdeui/widgets/kmainwindow.cpp:214
#12 operator* (this=<optimized out>) at /media/trash/system/portage/kde-base/kdelibs-4.12.2/work/kdelibs-4.12.2/kdeui/widgets/kmainwindow.cpp:214
#13 KMainWindow::memberList () at /media/trash/system/portage/kde-base/kdelibs-4.12.2/work/kdelibs-4.12.2/kdeui/widgets/kmainwindow.cpp:1176
#14 0x00007fca16cdf74e in KMKernel::dumpDeadLetters (this=<optimized out>) at /media/trash/system/portage/kde-base/kmail-4.12.2/work/kmail-4.12.2/kmail/kmkernel.cpp:1300
#15 0x00007fca16ce121d in kmCrashHandler (sigId=<optimized out>) at /media/trash/system/portage/kde-base/kmail-4.12.2/work/kmail-4.12.2/kmail/kmkernel.cpp:1144
#16 0x00007fca17aafa88 in KCrash::defaultCrashHandler (sig=6) at /media/trash/system/portage/kde-base/kdelibs-4.12.2/work/kdelibs-4.12.2/kdeui/util/kcrash.cpp:307
#17 <signal handler called>
#18 0x00007fca14fd64ce in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#19 0x00007fca14fd7e32 in __GI_abort () at abort.c:90
#20 0x00007fca15927094 in qt_message_output (msgType=<optimized out>, msgType@entry=QtFatalMsg, buf=<optimized out>) at global/qglobal.cpp:2323
#21 0x00007fca1592726c in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, msg=0x7fca107ebf38 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=ap@entry=0x7fff431fc810) at global/qglobal.cpp:2369
#22 0x00007fca15927c71 in qFatal (msg=<optimized out>) at global/qglobal.cpp:2552
#23 0x00007fca1078a767 in operator-> (this=<optimized out>) at /media/trash/system/portage/kde-base/kmail-4.12.2/work/kmail-4.12.2/mailcommon/kernel/mailkernel.cpp:57
#24 MailCommon::Kernel::self () at /media/trash/system/portage/kde-base/kmail-4.12.2/work/kmail-4.12.2/mailcommon/kernel/mailkernel.cpp:73
#25 0x00007fca1076c6b1 in MailCommon::FolderCollection::writeConfig (this=this@entry=0x7fca1a404720) at /media/trash/system/portage/kde-base/kmail-4.12.2/work/kmail-4.12.2/mailcommon/folder/foldercollection.cpp:218
#26 0x00007fca1076cfc5 in MailCommon::FolderCollection::~FolderCollection (this=0x7fca1a404720, __in_chrg=<optimized out>) at /media/trash/system/portage/kde-base/kmail-4.12.2/work/kmail-4.12.2/mailcommon/folder/foldercollection.cpp:84
#27 0x00007fca1076d08f in MailCommon::FolderCollection::~FolderCollection (this=0x7fca1a404720, __in_chrg=<optimized out>) at /media/trash/system/portage/kde-base/kmail-4.12.2/work/kmail-4.12.2/mailcommon/folder/foldercollection.cpp:86
#28 0x00007fca1076b113 in deref (value=0x7fca1a404720, d=0x7fca19dac810) 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=0x7fca1a00ae70, this=<optimized out>) at /usr/include/qt4/QtCore/qmap.h:652
#33 0x00007fca14fd9c8b in __cxa_finalize (d=0x7fca10a3d000) at cxa_finalize.c:55
#34 0x00007fca106ff2d6 in ?? () from /usr/lib64/libmailcommon.so.4
#35 0x00007fff431fd220 in ?? ()
#36 0x00007fca17ecf34a in _dl_fini () at dl-fini.c:253
Backtrace stopped: frame did not save the PC

Possible duplicates by query: bug 330672, bug 327848, bug 326562, bug 325590, bug 322491.

Reported using DrKonqi
Comment 1 Denis Kurz 2016-09-24 18:24:23 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:50:11 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.