Bug 238995 - Kmail crashes after starting
Summary: Kmail crashes after starting
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.13.2
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-27 12:30 UTC by dave
Modified: 2012-08-19 10: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 dave 2010-05-27 12:30:31 UTC
Application: kmail (1.13.2)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-22-generic i686
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
upgrade from 9.10 -> 10.04, deleted some files then upon next start kmail crashed
attempted fixes
delete indexes - Failed
Today Fresh install from liveCD, did a apt-get akonadi and had some files d/l and installed
started akonadi service myself
started kmail - Crashed!
have search drive for akonadi log files - none found
dmesg|grep akonadi got this
[   13.622939] type=1505 audit(1274953768.874:10):  operation="profile_load" pid=897 name="/usr/sbin/mysqld-akonadi"

Looked at akonadi rescources configuration -> local folders this had nothing in it so entered the directory to my mail (home/dave/.kde/share/kmail/mail/)
this being @ 4th attempt to get kmail working (and that is only tonight!!)

advice 


The crash can be reproduced every time.

 -- Backtrace:
Application: KMail (kmail), signal: Aborted
[Current thread is 1 (Thread 0xb77d8780 (LWP 2227))]

Thread 3 (Thread 0xb3c98b70 (LWP 2265)):
#0  0x024692db in g_main_context_acquire () from /lib/libglib-2.0.so.0
#1  0x0246ae5e in ?? () from /lib/libglib-2.0.so.0
#2  0x0246b4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x05c9660f in QEventDispatcherGlib::processEvents (this=0x9909220, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#4  0x05c69059 in QEventLoop::processEvents (this=0xb3c98220, flags=) at kernel/qeventloop.cpp:149
#5  0x05c694aa in QEventLoop::exec (this=0xb3c98220, flags=...) at kernel/qeventloop.cpp:201
#6  0x05b655a8 in QThread::exec (this=0x9933338) at thread/qthread.cpp:487
#7  0x05c48c1b in QInotifyFileSystemWatcherEngine::run (this=0x9933338) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x05b6832e in QThreadPrivate::start (arg=0x9933338) at thread/qthread_unix.cpp:248
#9  0x0086a96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#10 0x00bf7a4e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xb3276b70 (LWP 2268)):
#0  0x00883422 in __kernel_vsyscall ()
#1  0x00be9b86 in poll () from /lib/tls/i686/cmov/libc.so.6
#2  0x05f0b718 in ?? () from /lib/tls/i686/cmov/libresolv.so.2
#3  0x05f098a3 in __libc_res_nquery () from /lib/tls/i686/cmov/libresolv.so.2
#4  0x05f09e8b in ?? () from /lib/tls/i686/cmov/libresolv.so.2
#5  0x05f0a119 in __libc_res_nsearch () from /lib/tls/i686/cmov/libresolv.so.2
#6  0x0808cbd6 in _nss_dns_gethostbyname3_r () from /lib/tls/i686/cmov/libnss_dns.so.2
#7  0x0808cf2b in _nss_dns_gethostbyname2_r () from /lib/tls/i686/cmov/libnss_dns.so.2
#8  0x00c0eb0d in gethostbyname2_r () from /lib/tls/i686/cmov/libc.so.6
#9  0x00bd0010 in ?? () from /lib/tls/i686/cmov/libc.so.6
#10 0x00bd1a65 in getaddrinfo () from /lib/tls/i686/cmov/libc.so.6
#11 0x07dd357a in QHostInfoAgent::fromName (hostName=...) at kernel/qhostinfo_unix.cpp:211
#12 0x07dc7bf9 in QHostInfo::fromName (name=...) at kernel/qhostinfo.cpp:226
#13 0x015e109d in QtConcurrent::StoredFunctorCall1<QHostInfo, QHostInfo (*)(QString const&), QString>::runFunctor (this=0x9957040) at /usr/include/qt4/QtCore/qtconcurrentstoredfunctioncall.h:274
#14 0x015e1741 in QtConcurrent::RunFunctionTask<QHostInfo>::run (this=0x9957040) at /usr/include/qt4/QtCore/qtconcurrentrunbase.h:103
#15 0x05b5d25c in QThreadPoolThread::run (this=0x9c07710) at concurrent/qthreadpool.cpp:106
#16 0x05b6832e in QThreadPrivate::start (arg=0x9c07710) at thread/qthread_unix.cpp:248
#17 0x0086a96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#18 0x00bf7a4e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb77d8780 (LWP 2227)):
[KCrash Handler]
#6  0x00883422 in __kernel_vsyscall ()
#7  0x00b54651 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0x00b57a82 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0x00af352f in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#10 0x00af1465 in ?? () from /usr/lib/libstdc++.so.6
#11 0x00af14a2 in std::terminate() () from /usr/lib/libstdc++.so.6
#12 0x00af155b in __cxa_rethrow () from /usr/lib/libstdc++.so.6
#13 0x05c7e75a in QMetaObject::activate (sender=0x9cbd6f8, m=0x5d7d188, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3303
#14 0x05c85fe7 in QSingleShotTimer::timeout (this=0x9cbd6f8) at .moc/release-shared/qtimer.moc:82
#15 0x05c860fc in QSingleShotTimer::timerEvent (this=0x9cbd6f8) at kernel/qtimer.cpp:308
#16 0x05c7b254 in QObject::event (this=0x9cbd6f8, e=0x6) at kernel/qobject.cpp:1212
#17 0x088cc4dc in QApplicationPrivate::notify_helper (this=0x943c050, receiver=0x9cbd6f8, e=0xbff23fe0) at kernel/qapplication.cpp:4300
#18 0x088d305e in QApplication::notify (this=0xbff243f0, receiver=0x9cbd6f8, e=0xbff23fe0) at kernel/qapplication.cpp:3704
#19 0x002eff2a in KApplication::notify (this=0xbff243f0, receiver=0x9cbd6f8, event=0xbff23fe0) at ../../kdeui/kernel/kapplication.cpp:302
#20 0x05c6aa3b in QCoreApplication::notifyInternal (this=0xbff243f0, receiver=0x9cbd6f8, event=0xbff23fe0) at kernel/qcoreapplication.cpp:704
#21 0x05c99d66 in QCoreApplication::sendEvent (this=0x942bf74) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#22 QTimerInfoList::activateTimers (this=0x942bf74) at kernel/qeventdispatcher_unix.cpp:603
#23 0x05c968e4 in timerSourceDispatch (source=0x942bf40) at kernel/qeventdispatcher_glib.cpp:184
#24 0x024675e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#25 0x0246b2d8 in ?? () from /lib/libglib-2.0.so.0
#26 0x0246b4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#27 0x05c965d5 in QEventDispatcherGlib::processEvents (this=0x93f8278, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#28 0x0898c135 in QGuiEventDispatcherGlib::processEvents (this=0x93f8278, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#29 0x05c69059 in QEventLoop::processEvents (this=0xbff242a4, flags=) at kernel/qeventloop.cpp:149
#30 0x05c694aa in QEventLoop::exec (this=0xbff242a4, flags=...) at kernel/qeventloop.cpp:201
#31 0x05c6d69f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#32 0x088cc577 in QApplication::exec () at kernel/qapplication.cpp:3579
#33 0x0804ab0e in main (argc=1, argv=0xbff245b4) at ../../kmail/main.cpp:156

Possible duplicates by query: bug 238814, bug 238720, bug 238551, bug 238435, bug 238343.

Reported using DrKonqi
Comment 1 dave 2010-05-29 06:28:27 UTC
Well an update from me.

As I had backed up my home folder i went into /~mail/ and deleted everything there.

Viola it works!! got all emails from the pop server, copied all files from the backup in. then started to go through my newly downloaded emails and started to sort them out, delete those that I'd read or have no interest in now.
went to trash, removed deleted files now guess what - Crash!!!!

below is another bug report from this recent crash.
Will try to recover from this one by looking 

Application: KMail (kmail), signal: Aborted
[Current thread is 1 (Thread 0xb70cb780 (LWP 7904))]

Thread 2 (Thread 0xb35bab70 (LWP 7906)):
#0  0x08335e16 in clock_gettime () from /lib/tls/i686/cmov/librt.so.1
#1  0x054236fb in qt_gettime () at kernel/qcore_unix.cpp:111
#2  0x05428825 in QTimerInfoList::updateCurrentTime (this=0x91cb034) at kernel/qeventdispatcher_unix.cpp:340
#3  0x0542886a in QTimerInfoList::timerWait (this=0x91cb034, tm=...) at kernel/qeventdispatcher_unix.cpp:443
#4  0x05426818 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xb35ba05c) at kernel/qeventdispatcher_glib.cpp:136
#5  0x054268a5 in timerSourcePrepare (source=0x0, timeout=0x8339ff4) at kernel/qeventdispatcher_glib.cpp:169
#6  0x01fe4aca in g_main_context_prepare () from /lib/libglib-2.0.so.0
#7  0x01fe4ee9 in ?? () from /lib/libglib-2.0.so.0
#8  0x01fe54b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#9  0x0542660f in QEventDispatcherGlib::processEvents (this=0x9117420, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#10 0x053f9059 in QEventLoop::processEvents (this=0xb35ba220, flags=) at kernel/qeventloop.cpp:149
#11 0x053f94aa in QEventLoop::exec (this=0xb35ba220, flags=...) at kernel/qeventloop.cpp:201
#12 0x052f55a8 in QThread::exec (this=0x90f7a08) at thread/qthread.cpp:487
#13 0x053d8c1b in QInotifyFileSystemWatcherEngine::run (this=0x90f7a08) at io/qfilesystemwatcher_inotify.cpp:248
#14 0x052f832e in QThreadPrivate::start (arg=0x90f7a08) at thread/qthread_unix.cpp:248
#15 0x0061d96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#16 0x02c2ba4e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb70cb780 (LWP 7904)):
[KCrash Handler]
#6  0x0063a422 in __kernel_vsyscall ()
#7  0x02b88651 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0x02b8ba82 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0x05e5252f in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#10 0x05e50465 in ?? () from /usr/lib/libstdc++.so.6
#11 0x05e504a2 in std::terminate() () from /usr/lib/libstdc++.so.6
#12 0x05e5055b in __cxa_rethrow () from /usr/lib/libstdc++.so.6
#13 0x0540e75a in QMetaObject::activate (sender=0x92a4368, m=0x550d188, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3303
#14 0x05415fe7 in QSingleShotTimer::timeout (this=0x92a4368) at .moc/release-shared/qtimer.moc:82
#15 0x054160fc in QSingleShotTimer::timerEvent (this=0x92a4368) at kernel/qtimer.cpp:308
#16 0x0540b254 in QObject::event (this=0x92a4368, e=0x6) at kernel/qobject.cpp:1212
#17 0x041654dc in QApplicationPrivate::notify_helper (this=0x8c27ed0, receiver=0x92a4368, e=0xbfcbc9a0) at kernel/qapplication.cpp:4300
#18 0x0416c05e in QApplication::notify (this=0xbfcbcdb0, receiver=0x92a4368, e=0xbfcbc9a0) at kernel/qapplication.cpp:3704
#19 0x002eff2a in KApplication::notify (this=0xbfcbcdb0, receiver=0x92a4368, event=0xbfcbc9a0) at ../../kdeui/kernel/kapplication.cpp:302
#20 0x053faa3b in QCoreApplication::notifyInternal (this=0xbfcbcdb0, receiver=0x92a4368, event=0xbfcbc9a0) at kernel/qcoreapplication.cpp:704
#21 0x05429d66 in QCoreApplication::sendEvent (this=0x8bfe894) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#22 QTimerInfoList::activateTimers (this=0x8bfe894) at kernel/qeventdispatcher_unix.cpp:603
#23 0x05426917 in timerSourceDispatch (source=0x8bfed00) at kernel/qeventdispatcher_glib.cpp:184
#24 idleTimerSourceDispatch (source=0x8bfed00) at kernel/qeventdispatcher_glib.cpp:231
#25 0x01fe15e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#26 0x01fe52d8 in ?? () from /lib/libglib-2.0.so.0
#27 0x01fe54b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#28 0x054265d5 in QEventDispatcherGlib::processEvents (this=0x8bcb278, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#29 0x04225135 in QGuiEventDispatcherGlib::processEvents (this=0x8bcb278, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#30 0x053f9059 in QEventLoop::processEvents (this=0xbfcbcc64, flags=) at kernel/qeventloop.cpp:149
#31 0x053f94aa in QEventLoop::exec (this=0xbfcbcc64, flags=...) at kernel/qeventloop.cpp:201
#32 0x053fd69f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#33 0x04165577 in QApplication::exec () at kernel/qapplication.cpp:3579
#34 0x0804ab0e in main (argc=1, argv=0xbfcbcf74) at ../../kmail/main.cpp:156

Now to try and solve the issue (note I'm plucking at straws) I renamed the lock file in ~/mail to lock.old

this is the bug report I got from starting kmail again

Application: KMail (kmail), signal: Aborted
[Current thread is 1 (Thread 0xb6ffb780 (LWP 8316))]

Thread 3 (Thread 0xb34eab70 (LWP 8318)):
#0  0x07941b22 in poll () from /lib/tls/i686/cmov/libc.so.6
#1  0x0619e4eb in g_poll () from /lib/libglib-2.0.so.0
#2  0x061910ac in ?? () from /lib/libglib-2.0.so.0
#3  0x061914b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#4  0x00b4060f in QEventDispatcherGlib::processEvents (this=0x8725c88, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#5  0x00b13059 in QEventLoop::processEvents (this=0xb34ea220, flags=) at kernel/qeventloop.cpp:149
#6  0x00b134aa in QEventLoop::exec (this=0xb34ea220, flags=...) at kernel/qeventloop.cpp:201
#7  0x00a0f5a8 in QThread::exec (this=0x87b3288) at thread/qthread.cpp:487
#8  0x00af2c1b in QInotifyFileSystemWatcherEngine::run (this=0x87b3288) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00a1232e in QThreadPrivate::start (arg=0x87b3288) at thread/qthread_unix.cpp:248
#10 0x00d5a96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#11 0x0794fa4e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xb2a56b70 (LWP 8321)):
#0  0x00e33422 in __kernel_vsyscall ()
#1  0x00d5f342 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x0795ca34 in pthread_cond_timedwait () from /lib/tls/i686/cmov/libc.so.6
#3  0x00a1320f in QWaitConditionPrivate::wait (this=0x8ac8244, mutex=0x8ac8240, time=30000) at thread/qwaitcondition_unix.cpp:85
#4  QWaitCondition::wait (this=0x8ac8244, mutex=0x8ac8240, time=30000) at thread/qwaitcondition_unix.cpp:159
#5  0x00a072eb in QThreadPoolThread::run (this=0x8940210) at concurrent/qthreadpool.cpp:140
#6  0x00a1232e in QThreadPrivate::start (arg=0x8940210) at thread/qthread_unix.cpp:248
#7  0x00d5a96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0x0794fa4e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb6ffb780 (LWP 8316)):
[KCrash Handler]
#6  0x00e33422 in __kernel_vsyscall ()
#7  0x078ac651 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0x078afa82 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0x00ce952f in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#10 0x00ce7465 in ?? () from /usr/lib/libstdc++.so.6
#11 0x00ce74a2 in std::terminate() () from /usr/lib/libstdc++.so.6
#12 0x00ce755b in __cxa_rethrow () from /usr/lib/libstdc++.so.6
#13 0x00b2875a in QMetaObject::activate (sender=0x8b6e9a0, m=0xc27188, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3303
#14 0x00b2ffe7 in QSingleShotTimer::timeout (this=0x8b6e9a0) at .moc/release-shared/qtimer.moc:82
#15 0x00b300fc in QSingleShotTimer::timerEvent (this=0x8b6e9a0) at kernel/qtimer.cpp:308
#16 0x00b25254 in QObject::event (this=0x8b6e9a0, e=0x6) at kernel/qobject.cpp:1212
#17 0x053a84dc in QApplicationPrivate::notify_helper (this=0x82f1f78, receiver=0x8b6e9a0, e=0xbfea6b50) at kernel/qapplication.cpp:4300
#18 0x053af05e in QApplication::notify (this=0xbfea6f60, receiver=0x8b6e9a0, e=0xbfea6b50) at kernel/qapplication.cpp:3704
#19 0x00624f2a in KApplication::notify (this=0xbfea6f60, receiver=0x8b6e9a0, event=0xbfea6b50) at ../../kdeui/kernel/kapplication.cpp:302
#20 0x00b14a3b in QCoreApplication::notifyInternal (this=0xbfea6f60, receiver=0x8b6e9a0, event=0xbfea6b50) at kernel/qcoreapplication.cpp:704
#21 0x00b43d66 in QCoreApplication::sendEvent (this=0x82c98ac) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#22 QTimerInfoList::activateTimers (this=0x82c98ac) at kernel/qeventdispatcher_unix.cpp:603
#23 0x00b40917 in timerSourceDispatch (source=0x82c9d00) at kernel/qeventdispatcher_glib.cpp:184
#24 idleTimerSourceDispatch (source=0x82c9d00) at kernel/qeventdispatcher_glib.cpp:231
#25 0x0618d5e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#26 0x061912d8 in ?? () from /lib/libglib-2.0.so.0
#27 0x061914b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#28 0x00b405d5 in QEventDispatcherGlib::processEvents (this=0x8296278, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#29 0x05468135 in QGuiEventDispatcherGlib::processEvents (this=0x8296278, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#30 0x00b13059 in QEventLoop::processEvents (this=0xbfea6e14, flags=) at kernel/qeventloop.cpp:149
#31 0x00b134aa in QEventLoop::exec (this=0xbfea6e14, flags=...) at kernel/qeventloop.cpp:201
#32 0x00b1769f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#33 0x053a8577 in QApplication::exec () at kernel/qapplication.cpp:3579
#34 0x0804ab0e in main (argc=1, argv=0xbfea7124) at ../../kmail/main.cpp:156
Comment 2 dave 2010-06-12 14:47:56 UTC
from further testing I believe this has a lot to do with how emails are deleted.

I.e. 
drag/drop into trash - fine
right click (then click trash with shift held down then shift held down again when clicking delete) and then right clicking on trash to delete trash caused kmail to die as above.

Fix was delete all emails in .kde/share/apps/kmail and then delete the mail directory and all subdirectories, then to import all emails back in.

further testing being done to narrow this down further.

dave
Comment 3 Myriam Schweingruber 2012-08-19 10:50:05 UTC
Thank you for your report. Kmail1 is currently unmaintained and the code has changed sufficiently in Kmail2 so the backtraces are not really useful anymore. Should you experience the same crash in Kmail 4.8.5 or later, please open a new report for Kmail2. Thank you for your understanding