Bug 306435 - Kmail crashes on startup if config not valid, preventing easy reconfig.
Summary: Kmail crashes on startup if config not valid, preventing easy reconfig.
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.8.4
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-08 06:39 UTC by Michael Hammond
Modified: 2017-01-07 22:37 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 Michael Hammond 2012-09-08 06:39:29 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-29-generic x86_64
Distribution: Ubuntu 12.04.1 LTS

-- Information about the crash:
- What I was doing when the application crashed:
Had just restarted Kmail after rearranging local folders outside of kmail.

- Custom settings of the application:
Insertion of mbox files to be local folders to allow manipulation of imported mail.

-- 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 0x7f84f90e47c0 (LWP 8730))]

Thread 4 (Thread 0x7f84d706c700 (LWP 8734)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f84eb3cedec in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f84eb3cef19 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f84f3f0ae9a in start_thread (arg=0x7f84d706c700) at pthread_create.c:308
#4  0x00007f84f643b4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f84d676b700 (LWP 8735)):
#0  0x00007f84f3f0cf69 in __pthread_mutex_lock (mutex=0x7f84d0000a60) at pthread_mutex_lock.c:92
#1  0x00007f84eed165a1 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f84eecdac36 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f84eecdb0a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f84eecdb164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f84f6dc6426 in QEventDispatcherGlib::processEvents (this=0x7f84d00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f84f6d95c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f84f6d95ed7 in QEventLoop::exec (this=0x7f84d676adc0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f84f6c94fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007f84f6c97fcb in QThreadPrivate::start (arg=0x17014c0) at thread/qthread_unix.cpp:298
#10 0x00007f84f3f0ae9a in start_thread (arg=0x7f84d676b700) at pthread_create.c:308
#11 0x00007f84f643b4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f848f769700 (LWP 8738)):
#0  0x00007f84eed16320 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f84eed165c9 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f84eecda7e2 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f84eecdaf5b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f84eecdb164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f84f6dc6426 in QEventDispatcherGlib::processEvents (this=0x7f84840008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f84f6d95c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f84f6d95ed7 in QEventLoop::exec (this=0x7f848f768d90, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f84f6c94fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007f84f6d759ff in QInotifyFileSystemWatcherEngine::run (this=0x1a2d570) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007f84f6c97fcb in QThreadPrivate::start (arg=0x1a2d570) at thread/qthread_unix.cpp:298
#11 0x00007f84f3f0ae9a in start_thread (arg=0x7f848f769700) at pthread_create.c:308
#12 0x00007f84f643b4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f84f90e47c0 (LWP 8730)):
[KCrash Handler]
#6  0x00007f84f637f445 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f84f6382bab in __GI_abort () at abort.c:91
#8  0x00007f84f6c8d50b in qt_message_output (msgType=<optimized out>, buf=0x24f6298 "Fatal Error: Accessed global static 'QList<KMainWindow*> *sMemberList()' after destruction. Defined at ../../kdeui/widgets/kmainwindow.cpp:214") at global/qglobal.cpp:2276
#9  0x00007f84f6c8d8bf in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f84f8c5a430 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=0x7fff44134658) at global/qglobal.cpp:2322
#10 0x00007f84f6c8da64 in qFatal (msg=<optimized out>) at global/qglobal.cpp:2505
#11 0x00007f84f8bb84cf 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 0x00007f84f7e9e072 in KMKernel::dumpDeadLetters (this=<optimized out>) at ../../kmail/kmkernel.cpp:1283
#15 0x00007f84f7e9e3d7 in kmCrashHandler (sigId=<optimized out>) at ../../kmail/kmkernel.cpp:1135
#16 0x00007f84f8b5cb49 in KCrash::defaultCrashHandler (sig=6) at ../../kdeui/util/kcrash.cpp:307
#17 <signal handler called>
#18 0x00007f84f637f445 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#19 0x00007f84f6382bab in __GI_abort () at abort.c:91
#20 0x00007f84f6c8d50b in qt_message_output (msgType=<optimized out>, buf=0x2522e08 "Fatal Error: Accessed global static 'KernelPrivate *sInstance()' after destruction. Defined at ../../mailcommon/mailkernel.cpp:48") at global/qglobal.cpp:2276
#21 0x00007f84f6c8d8bf in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f84f227c9d8 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=0x7fff44135258) at global/qglobal.cpp:2322
#22 0x00007f84f6c8da64 in qFatal (msg=<optimized out>) at global/qglobal.cpp:2505
#23 0x00007f84f222024f in operator-> (this=<optimized out>) at ../../mailcommon/mailkernel.cpp:48
#24 MailCommon::Kernel::self () at ../../mailcommon/mailkernel.cpp:64
#25 0x00007f84f2210019 in MailCommon::FolderCollection::writeConfig (this=0x1ac1450) at ../../mailcommon/foldercollection.cpp:210
#26 0x00007f84f2210a41 in MailCommon::FolderCollection::~FolderCollection (this=0x1ac1450, __in_chrg=<optimized out>) at ../../mailcommon/foldercollection.cpp:83
#27 0x00007f84f2210ad9 in MailCommon::FolderCollection::~FolderCollection (this=0x1ac1450, __in_chrg=<optimized out>) at ../../mailcommon/foldercollection.cpp:85
#28 0x00007f84f220e7f6 in deref (value=0x1ac1450, d=0x1ac13c0) 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=0x1a2e420, this=<optimized out>) at /usr/include/qt4/QtCore/qmap.h:651
#33 0x00007f84f6384d3d in __cxa_finalize (d=0x7f84f24c2320) at cxa_finalize.c:56
#34 0x00007f84f21de376 in __do_global_dtors_aux () from /usr/lib/libmailcommon.so.4
#35 0x00007fff441356c0 in ?? ()
#36 0x00007fff44135e00 in ?? ()
#37 0x00007f84f22764d1 in _fini () from /usr/lib/libmailcommon.so.4
#38 0x00007fff44135e00 in ?? ()
#39 0x00007f84f8f3d92d in _dl_fini () at dl-fini.c:259
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

This bug may be a duplicate of or related to bug 303531.

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

Reported using DrKonqi
Comment 1 Denis Kurz 2016-09-24 18:21:28 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:38 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.