Bug 337536 - KMail crashed when I edited Incoming accounts, "Local Folders".
Summary: KMail crashed when I edited Incoming accounts, "Local Folders".
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.12.5
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-07-17 10:50 UTC by Ole Reier Ulland
Modified: 2017-01-07 22:42 UTC (History)
1 user (show)

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 Ole Reier Ulland 2014-07-17 10:50:47 UTC
Application: kmail (4.12.5)
KDE Platform Version: 4.12.5
Qt Version: 4.8.6
Operating System: Linux 3.15.4-200.fc20.i686+PAE i686
Distribution (Platform): Fedora RPMs

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

I edited incoming accounts, "Local Folders", then all about 13000 e-mails disappeared, the next minute KMail crashed.

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

Thread 4 (Thread 0xb13ffb40 (LWP 4790)):
#0  0xb7796b1c in __kernel_vsyscall ()
#1  0x4b9bb7ac in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:187
#2  0xb6fc0c44 in WTF::ThreadCondition::wait (this=this@entry=0x8dba10c, mutex=...) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/ThreadingPthreads.cpp:379
#3  0xb6c878dc in JSC::BlockAllocator::blockFreeingThreadMain (this=0x8dba080) at /usr/src/debug/webkit-qtwebkit-23/Source/JavaScriptCore/heap/BlockAllocator.cpp:128
#4  0xb6fa3139 in WTF::threadEntryPoint (contextData=0x8d031b8) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/Threading.cpp:69
#5  0xb6fc056a in WTF::wtfThreadEntryPoint (param=0x8db71e0) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/ThreadingPthreads.cpp:196
#6  0x4b9b7d8a in start_thread (arg=0xb13ffb40) at pthread_create.c:309
#7  0x4b8e1a0e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 3 (Thread 0xafdfeb40 (LWP 4792)):
#0  0xb7796b1c in __kernel_vsyscall ()
#1  0x4b8d53eb in poll () at ../sysdeps/unix/syscall-template.S:81
#2  0x4be02f9c in poll (__timeout=__timeout@entry=4923, __nfds=__nfds@entry=1, __fds=__fds@entry=0xb0a02168) at /usr/include/bits/poll2.h:46
#3  g_poll (fds=fds@entry=0xb0a02168, nfds=nfds@entry=1, timeout=timeout@entry=4923) at gpoll.c:132
#4  0x4bdf38a0 in g_main_context_poll (priority=2147483647, n_fds=1, fds=0xb0a02168, timeout=4923, context=0xb0a004f0) at gmain.c:4007
#5  g_main_context_iterate (context=context@entry=0xb0a004f0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3708
#6  0x4bdf39e9 in g_main_context_iteration (context=0xb0a004f0, may_block=1) at gmain.c:3774
#7  0x4c6981ef in QEventDispatcherGlib::processEvents (this=0xb0a00478, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#8  0x4c664ea0 in QEventLoop::processEvents (this=this@entry=0xafdfe214, flags=...) at kernel/qeventloop.cpp:149
#9  0x4c665231 in QEventLoop::exec (this=this@entry=0xafdfe214, flags=...) at kernel/qeventloop.cpp:204
#10 0x4c5460e5 in QThread::exec (this=this@entry=0x8ce91e0) at thread/qthread.cpp:538
#11 0x4c54624c in QThread::run (this=0x8ce91e0) at thread/qthread.cpp:605
#12 0x4c548beb in QThreadPrivate::start (arg=0x8ce91e0) at thread/qthread_unix.cpp:349
#13 0x4b9b7d8a in start_thread (arg=0xafdfeb40) at pthread_create.c:309
#14 0x4b8e1a0e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 2 (Thread 0xad860b40 (LWP 4988)):
#0  0xb7796b1c in __kernel_vsyscall ()
#1  0x4b9bb7ac in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:187
#2  0x4f013772 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=this@entry=0x4f112500 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#3  0x4f0137c0 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x4f112500 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#4  0x4b9b7d8a in start_thread (arg=0xad860b40) at pthread_create.c:309
#5  0x4b8e1a0e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 1 (Thread 0xb561f7c0 (LWP 4783)):
[KCrash Handler]
#7  0xb7796b1c in __kernel_vsyscall ()
#8  0x4b818b96 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#9  0x4b81a3d3 in __GI_abort () at abort.c:89
#10 0x4c53d7da in qt_message_output (msgType=QtFatalMsg, buf=0x97eb648 "Fatal Error: Accessed global static 'QList<KMainWindow*> *sMemberList()' after destruction. Defined at /builddir/build/BUILD/kdelibs-4.12.5/kdeui/widgets/kmainwindow.cpp:214") at global/qglobal.cpp:2359
#11 0x4c53d9aa in qt_message (msgType=msgType@entry=QtFatalMsg, msg=msg@entry=0x4dfe4a00 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=ap@entry=0xbfcb3244 "k\300") at global/qglobal.cpp:2405
#12 0x4c53df69 in qFatal (msg=msg@entry=0x4dfe4a00 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d") at global/qglobal.cpp:2588
#13 0x4df334dc in operator-> (this=<synthetic pointer>) at /usr/src/debug/kdelibs-4.12.5/kdeui/widgets/kmainwindow.cpp:214
#14 operator* (this=<synthetic pointer>) at /usr/src/debug/kdelibs-4.12.5/kdeui/widgets/kmainwindow.cpp:214
#15 KMainWindow::memberList () at /usr/src/debug/kdelibs-4.12.5/kdeui/widgets/kmainwindow.cpp:1176
#16 0x44b7a826 in KMKernel::dumpDeadLetters (this=0xbfcb50c8) at /usr/src/debug/kdepim-4.12.5/kmail/kmkernel.cpp:1302
#17 0x44b7c331 in kmCrashHandler (sigId=6) at /usr/src/debug/kdepim-4.12.5/kmail/kmkernel.cpp:1146
#18 0x4dec9d17 in KCrash::defaultCrashHandler (sig=6) at /usr/src/debug/kdelibs-4.12.5/kdeui/util/kcrash.cpp:307
#19 <signal handler called>
#20 0xb7796b1c in __kernel_vsyscall ()
#21 0x4b818b96 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#22 0x4b81a3d3 in __GI_abort () at abort.c:89
#23 0x4c53d7da in qt_message_output (msgType=QtFatalMsg, buf=0xae1fc58 "Fatal Error: Accessed global static 'KernelPrivate *sInstance()' after destruction. Defined at /builddir/build/BUILD/kdepim-4.12.5/mailcommon/kernel/mailkernel.cpp:57") at global/qglobal.cpp:2359
#24 0x4c53d9aa in qt_message (msgType=msgType@entry=QtFatalMsg, msg=msg@entry=0x448907ec "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=ap@entry=0xbfcb3c74 "\226\a\211D\214\a\211D\244\a\211D9") at global/qglobal.cpp:2405
#25 0x4c53df69 in qFatal (msg=msg@entry=0x448907ec "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d") at global/qglobal.cpp:2588
#26 0x44830ef4 in operator-> (this=<optimized out>) at /usr/src/debug/kdepim-4.12.5/mailcommon/kernel/mailkernel.cpp:57
#27 MailCommon::Kernel::self () at /usr/src/debug/kdepim-4.12.5/mailcommon/kernel/mailkernel.cpp:73
#28 0x44814552 in MailCommon::FolderCollection::writeConfig (this=this@entry=0x8ca39b0) at /usr/src/debug/kdepim-4.12.5/mailcommon/folder/foldercollection.cpp:218
#29 0x44814fbf in MailCommon::FolderCollection::~FolderCollection (this=0x8ca39b0, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.12.5/mailcommon/folder/foldercollection.cpp:84
#30 0x4481505d in MailCommon::FolderCollection::~FolderCollection (this=0x8ca39b0, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.12.5/mailcommon/folder/foldercollection.cpp:86
#31 0x44813242 in deref (value=0x8ca39b0, d=0x8e02b18) at /usr/include/QtCore/qsharedpointer_impl.h:342
#32 deref (this=<optimized out>) at /usr/include/QtCore/qsharedpointer_impl.h:336
#33 ~ExternalRefCount (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/QtCore/qsharedpointer_impl.h:401
#34 ~QSharedPointer (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/QtCore/qsharedpointer_impl.h:466
#35 QMap<long long, QSharedPointer<MailCommon::FolderCollection> >::freeData (x=0x901d948, this=<optimized out>) at /usr/include/QtCore/qmap.h:652
#36 0x4b81c37a in __cxa_finalize (d=0x448d49a0) at cxa_finalize.c:56
#37 0x447ab6e4 in __do_global_dtors_aux () from /lib/libmailcommon.so.4
#38 0x4b7d5a84 in _dl_fini () at dl-fini.c:252
#39 0x4b81c011 in __run_exit_handlers (status=status@entry=1, listp=0x4b9a43c4 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:82
#40 0x4b81c06d in __GI_exit (status=1) at exit.c:104
#41 0x44831717 in MailCommon::Kernel::emergencyExit (this=this@entry=0x8bc5538, reason=...) at /usr/src/debug/kdepim-4.12.5/mailcommon/kernel/mailkernel.cpp:230
#42 0x44831e07 in MailCommon::Kernel::createDefaultCollectionDone (this=this@entry=0x8bc5538, job=0xcdd8660) at /usr/src/debug/kdepim-4.12.5/mailcommon/kernel/mailkernel.cpp:182
#43 0x44832061 in MailCommon::Kernel::qt_static_metacall (_o=_o@entry=0x8bc5538, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbfcb4544) at /usr/src/debug/kdepim-4.12.5/i686-redhat-linux-gnu/mailcommon/mailkernel.moc:58
#44 0x4c67c395 in QMetaObject::activate (sender=sender@entry=0xcdd8660, m=m@entry=0x4ce7446c <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0xbfcb4544) at kernel/qobject.cpp:3567
#45 0x4ccc42ba in KJob::result (this=this@entry=0xcdd8660, _t1=_t1@entry=0xcdd8660) at /usr/src/debug/kdelibs-4.12.5/i686-redhat-linux-gnu/kdecore/kjob.moc:207
#46 0x4ccc4323 in KJob::emitResult (this=this@entry=0xcdd8660) at /usr/src/debug/kdelibs-4.12.5/kdecore/jobs/kjob.cpp:318
#47 0x41273a42 in Akonadi::TransactionSequence::slotResult (this=0xcdd8660, job=job@entry=0xa1c19e0) at /usr/src/debug/kdepimlibs-4.12.5/akonadi/transactionsequence.cpp:134
#48 0x4124ac71 in Akonadi::SpecialCollectionsRequestJob::slotResult (this=0xcdd8660, job=0xa1c19e0) at /usr/src/debug/kdepimlibs-4.12.5/akonadi/specialcollectionsrequestjob.cpp:356
#49 0x41273191 in Akonadi::TransactionSequence::qt_static_metacall (_o=_o@entry=0xcdd8660, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfcb4764) at /usr/src/debug/kdepimlibs-4.12.5/i686-redhat-linux-gnu/akonadi/moc_transactionsequence.cpp:52
#50 0x4c67c395 in QMetaObject::activate (sender=sender@entry=0xa1c19e0, m=m@entry=0x4ce7446c <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0xbfcb4764) at kernel/qobject.cpp:3567
#51 0x4ccc42ba in KJob::result (this=this@entry=0xa1c19e0, _t1=_t1@entry=0xa1c19e0) at /usr/src/debug/kdelibs-4.12.5/i686-redhat-linux-gnu/kdecore/kjob.moc:207
#52 0x4ccc4323 in KJob::emitResult (this=this@entry=0xa1c19e0) at /usr/src/debug/kdelibs-4.12.5/kdecore/jobs/kjob.cpp:318
#53 0x411ec176 in Akonadi::JobPrivate::handleResponse (this=0x9341018, tag=..., data=...) at /usr/src/debug/kdepimlibs-4.12.5/akonadi/job.cpp:66
#54 0x411ec03a in Akonadi::JobPrivate::handleResponse (this=0xaf6d1d0, tag=..., data=...) at /usr/src/debug/kdepimlibs-4.12.5/akonadi/job.cpp:51
#55 0x41235a69 in Akonadi::SessionPrivate::dataReceived (this=0x899b0a8) at /usr/src/debug/kdepimlibs-4.12.5/akonadi/session.cpp:231
#56 0x4c67c395 in QMetaObject::activate (sender=sender@entry=0x8bbfbe0, m=m@entry=0x4c7d1f98 <QIODevice::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3567
#57 0x4c6cd626 in QIODevice::readyRead (this=this@entry=0x8bbfbe0) at .moc/release-shared/moc_qiodevice.cpp:104
#58 0x4c6cd7c8 in QIODevice::qt_static_metacall (_o=_o@entry=0x8bbfbe0, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfcb4a04) at .moc/release-shared/moc_qiodevice.cpp:53
#59 0x4c67c395 in QMetaObject::activate (sender=sender@entry=0x8bb4334, m=m@entry=0x4c7d1f98 <QIODevice::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3567
#60 0x4c6cd626 in QIODevice::readyRead (this=this@entry=0x8bb4334) at .moc/release-shared/moc_qiodevice.cpp:104
#61 0x4cb07b3d in QAbstractSocketPrivate::canReadNotification (this=0x89d5108) at socket/qabstractsocket.cpp:654
#62 0x4caf37ba in QAbstractSocketEngine::readNotification (this=0x8b185b0) at socket/qabstractsocketengine.cpp:168
#63 0x4cb123d3 in QReadNotifier::event (this=0x8a3c8c0, e=0xbfcb4d50) at socket/qnativesocketengine.cpp:1151
#64 0x41edfbd4 in QApplicationPrivate::notify_helper (this=0x8969250, receiver=0x8a3c8c0, e=0xbfcb4d50) at kernel/qapplication.cpp:4565
#65 0x41ee6b29 in QApplication::notify (this=0xbfcb50b0, receiver=0x8a3c8c0, e=e@entry=0xbfcb4d50) at kernel/qapplication.cpp:4351
#66 0x4de59ec0 in KApplication::notify (this=0xbfcb50b0, receiver=0x8a3c8c0, event=0xbfcb4d50) at /usr/src/debug/kdelibs-4.12.5/kdeui/kernel/kapplication.cpp:311
#67 0x4c6665f6 in QCoreApplication::notifyInternal (this=0xbfcb50b0, receiver=0x8a3c8c0, event=event@entry=0xbfcb4d50) at kernel/qcoreapplication.cpp:953
#68 0x4c699095 in sendEvent (event=0xbfcb4d50, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#69 socketNotifierSourceDispatch (source=source@entry=0x89561b0) at kernel/qeventdispatcher_glib.cpp:117
#70 0x4bdf3556 in g_main_dispatch (context=0x8959778) at gmain.c:3066
#71 g_main_context_dispatch (context=context@entry=0x8959778) at gmain.c:3642
#72 0x4bdf3920 in g_main_context_iterate (context=context@entry=0x8959778, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3713
#73 0x4bdf39e9 in g_main_context_iteration (context=0x8959778, may_block=1) at gmain.c:3774
#74 0x4c6981ef in QEventDispatcherGlib::processEvents (this=this@entry=0x890bed0, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#75 0x41f9636c in QGuiEventDispatcherGlib::processEvents (this=0x890bed0, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#76 0x4c664ea0 in QEventLoop::processEvents (this=this@entry=0xbfcb4f64, flags=...) at kernel/qeventloop.cpp:149
#77 0x4c665231 in QEventLoop::exec (this=this@entry=0xbfcb4f64, flags=...) at kernel/qeventloop.cpp:204
#78 0x4c66b06b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#79 0x41eddee5 in QApplication::exec () at kernel/qapplication.cpp:3823
#80 0x0804a63c in main (argc=3, argv=0xbfcb5204) at /usr/src/debug/kdepim-4.12.5/kmail/main.cpp:146

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

Reported using DrKonqi
Comment 1 Laurent Montel 2014-07-17 11:36:47 UTC
What do you means by "I edited incoming accounts, "Local Folders"," ?
Comment 2 Ole Reier Ulland 2014-07-17 13:00:55 UTC
I am now on my web mail account, because I am not able to get KMail to work. I just hope that I will be able to restore my e-mails and get these ones going into the web mail now.

I am in the process of going from Mandriva 2010.2 to Fedora 20. There is a new feature, Settings - Configure KMail - Accounts - Local Folders - Modify. I wanted to understand what this was all about. I think the idea is that different computers can send e-mails to the same place in a file system and all computers showing them all on their screens. I do not know exactly what happened, but I was looking around in there to find out what this was all about, since I had not seen it before. Then all of a sudden all 13000 e-mails were gone. Then after more looking to find out what happened the system told me I had deleted a folder with deleting an account, I believe. The e-mails are still at their place, home/[user name]/.local/share/local-mail/, and all the settings seems to me to be as they should, given the idea that the "incoming account" "Local Folders" should retreive both on start up and on manual mail check.

I do not see any other way out of this than to remove the package "kdepim" and install it again, but the system seems to refuse my attempts to do so. I would very much like to have your ideas about how to go on from here.

Right now KMail says that there are no e-mails in the system at all, at the same time all 13000 are at the place where the account "Local Folders" is retreving from.

Please answer me.


Sincerely,

Ole Reier Ulland
Norway


----- Opprinnelig melding -----
Fra: "Laurent Montel" <montel@kde.org>
Til: "ole reier" <ole.reier@netcom.no>
Sendt: 17. juli 2014 13:36:47
Emne: [kmail2] [Bug 337536] KMail crashed when I edited Incoming accounts, "Local Folders".

https://bugs.kde.org/show_bug.cgi?id=337536

Laurent Montel <montel@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |montel@kde.org

--- Comment #1 from Laurent Montel <montel@kde.org> ---
What do you means by "I edited incoming accounts, "Local Folders"," ?
Comment 3 Denis Kurz 2016-09-24 18:19:11 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 4 Denis Kurz 2017-01-07 22:42:42 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.