Application that crashed: kmail Version of the application: 1.12.0 KDE Version: 4.3.00 (KDE 4.3.0) Qt Version: 4.5.2 Operating System: Linux 2.6.29.6-217.2.8.fc11.x86_64 x86_64 Distribution: "Fedora release 11 (Leonidas)" What I was doing when the application crashed: This has happened many times since updating to 4.3 (never before) I try to send a mail. Composer window is grayed out. But mail send seems to hang. Try to close composer. Select 'save as draft'. Nothing happens. Window still grayed. Just choose 'discard'. Window closes. Now outbox has a mail. Choose 'send queued messages'. This triggers crash. Sending was still hung. Maybe I tried to delete message it was sending, triggering crash? -- Backtrace: Application: KMail (kmail), signal: Segmentation fault [Current thread is 1 (Thread 0x7f826a4eb820 (LWP 14303))] Thread 6 (Thread 0x7f82584a7910 (LWP 17875)): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:220 #1 0x00007f82562fa5c1 in ?? () from /usr/lib64/libxine.so.1 #2 0x00000037ffa0686a in start_thread (arg=<value optimized out>) at pthread_create.c:297 #3 0x00000037feede39d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #4 0x0000000000000000 in ?? () Thread 5 (Thread 0x7f824bf39910 (LWP 17876)): #0 timerSourcePrepare (source=<value optimized out>, timeout=0x7f824bf38d9c) at kernel/qeventdispatcher_glib.cpp:141 #1 0x0000003801a3aa9a in g_main_context_prepare () from /lib64/libglib-2.0.so.0 #2 0x0000003801a3ae71 in ?? () from /lib64/libglib-2.0.so.0 #3 0x0000003801a3b3a0 in g_main_context_iteration () from /lib64/libglib-2.0.so.0 #4 0x00000036acd6840e in QEventDispatcherGlib::processEvents (this=0x7f8250002710, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:329 #5 0x00000036acd3e5f2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 36}) at kernel/qeventloop.cpp:149 #6 0x00000036acd3e9c4 in QEventLoop::exec (this=0x7f824bf38f30, flags={i = 0}) at kernel/qeventloop.cpp:201 #7 0x00000036acc56f6b in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487 #8 0x00007f8256553b4e in Phonon::Xine::XineThread::run (this=0x23d7ff0) at /usr/src/debug/phonon-4.3.1/xine/xinethread.cpp:143 #9 0x00000036acc59cd5 in QThreadPrivate::start (arg=0x23d7ff0) at thread/qthread_unix.cpp:188 #10 0x00000037ffa0686a in start_thread (arg=<value optimized out>) at pthread_create.c:297 #11 0x00000037feede39d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #12 0x0000000000000000 in ?? () Thread 4 (Thread 0x7f824b538910 (LWP 17877)): #0 0x00000037feed50b3 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87 #1 0x00007f824ce117f3 in ?? () from /usr/lib64/libpulse.so.0 #2 0x00007f824cdff2c4 in pa_mainloop_poll () from /usr/lib64/libpulse.so.0 #3 0x00007f824cdff673 in pa_mainloop_iterate () from /usr/lib64/libpulse.so.0 #4 0x00007f824cdff6e6 in pa_mainloop_run () from /usr/lib64/libpulse.so.0 #5 0x00007f824ce11870 in ?? () from /usr/lib64/libpulse.so.0 #6 0x00007f824cbc6c47 in ?? () from /usr/lib64/libpulsecommon-0.9.15.so #7 0x00000037ffa0686a in start_thread (arg=<value optimized out>) at pthread_create.c:297 #8 0x00000037feede39d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #9 0x0000000000000000 in ?? () Thread 3 (Thread 0x7f824ab37910 (LWP 17878)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261 #1 0x00007f825630b493 in ?? () from /usr/lib64/libxine.so.1 #2 0x00000037ffa0686a in start_thread (arg=<value optimized out>) at pthread_create.c:297 #3 0x00000037feede39d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #4 0x0000000000000000 in ?? () Thread 2 (Thread 0x7f8249b12910 (LWP 17879)): #0 0x00000037feed70e2 in select () from /lib64/libc.so.6 #1 0x00007f8256322a85 in xine_usec_sleep () from /usr/lib64/libxine.so.1 #2 0x00007f8256308289 in ?? () from /usr/lib64/libxine.so.1 #3 0x00000037ffa0686a in start_thread (arg=<value optimized out>) at pthread_create.c:297 #4 0x00000037feede39d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #5 0x0000000000000000 in ?? () Thread 1 (Thread 0x7f826a4eb820 (LWP 14303)): [KCrash Handler] #5 0x000000000248c4b0 in ?? () #6 0x00007f826c025c8a in KMMsgBase::syncIndexString (this=0x3200760) at /usr/src/debug/kdepim-4.3.0/kmail/kmmsgbase.cpp:1208 #7 0x00007f826c190f38 in KMFolderIndex::updateIndex (this=0x110ffb0, aboutToClose=<value optimized out>) at /usr/src/debug/kdepim-4.3.0/kmail/kmfolderindex.cpp:57 #8 0x00007f826c091dc2 in KMFolderMaildir::reallyDoClose (this=0x3200760) at /usr/src/debug/kdepim-4.3.0/kmail/kmfoldermaildir.cpp:199 #9 0x00007f826bfe8cac in KMSender::cleanup (this=0x1b217a0) at /usr/src/debug/kdepim-4.3.0/kmail/kmsender.cpp:615 #10 0x00007f826bfebc69 in KMSender::slotResult (this=0x1b217a0, job=<value optimized out>) at /usr/src/debug/kdepim-4.3.0/kmail/kmsender.cpp:729 #11 0x00007f826bfec3b8 in KMSender::qt_metacall (this=0x1b217a0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff6ff212e0) at /usr/src/debug/kdepim-4.3.0/x86_64-redhat-linux-gnu/kmail/kmsender.moc:73 #12 0x00000036acd54fdc in QMetaObject::activate (sender=0x32e9c20, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x37ff169e90) at kernel/qobject.cpp:3113 #13 0x00000036aeaee322 in KJob::result (this=0x3200760, _t1=0x32e9c20) at /usr/src/debug/kdelibs-4.3.0/x86_64-redhat-linux-gnu/kdecore/kjob.moc:188 #14 0x00000036aeaee69f in KJob::emitResult (this=0x32e9c20) at /usr/src/debug/kdelibs-4.3.0/kdecore/jobs/kjob.cpp:304 #15 0x00000036aeaee738 in KJob::kill (this=0x32e9c20, verbosity=KJob::EmitResult) at /usr/src/debug/kdelibs-4.3.0/kdecore/jobs/kjob.cpp:112 #16 0x00007f826bfec36c in KMSender::qt_metacall (this=0x1b217a0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff6ff21450) at /usr/src/debug/kdepim-4.3.0/x86_64-redhat-linux-gnu/kmail/kmsender.moc:75 #17 0x00000036acd54fdc in QMetaObject::activate (sender=0x2010fd0, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x37ff169e90) at kernel/qobject.cpp:3113 #18 0x00007f826bb423e2 in KPIM::ProgressItem::progressItemCanceled (this=0x3200760, _t1=0x2010fd0) at /usr/src/debug/kdepim-4.3.0/x86_64-redhat-linux-gnu/libkdepim/progressmanager.moc:118 #19 0x00007f826bb437bd in KPIM::ProgressItem::cancel (this=0x2010fd0) at /usr/src/debug/kdepim-4.3.0/libkdepim/progressmanager.cpp:100 #20 0x00007f826bb44320 in KPIM::TransactionItem::qt_metacall (this=0x246bb30, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>) at /usr/src/debug/kdepim-4.3.0/x86_64-redhat-linux-gnu/libkdepim/progressdialog.moc:120 #21 0x00000036acd54fdc in QMetaObject::activate (sender=0x1f25a20, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x37ff169e90) at kernel/qobject.cpp:3113 #22 0x00000036ae58d317 in QAbstractButton::clicked (this=0x3200760, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:200 #23 0x00000036ae2f142b in QAbstractButtonPrivate::emitClicked (this=0x32e7d90) at widgets/qabstractbutton.cpp:543 #24 0x00000036ae2f303b in QAbstractButtonPrivate::click (this=0x32e7d90) at widgets/qabstractbutton.cpp:536 #25 0x00000036ae2f3285 in QAbstractButton::mouseReleaseEvent (this=0x1f25a20, e=0x7fff6ff21d30) at widgets/qabstractbutton.cpp:1115 #26 0x00000036adfde100 in QWidget::event (this=0x1f25a20, event=0x7fff6ff21d30) at kernel/qwidget.cpp:7549 #27 0x00000036adf8f69c in QApplicationPrivate::notify_helper (this=0xe18fc0, receiver=0x1f25a20, e=0x7fff6ff21d30) at kernel/qapplication.cpp:4056 #28 0x00000036adf96dc1 in QApplication::notify (this=<value optimized out>, receiver=0x1f25a20, e=0x7fff6ff21d30) at kernel/qapplication.cpp:3758 #29 0x00000036af610546 in KApplication::notify (this=0x7fff6ff25e30, receiver=0x1f25a20, event=0x7fff6ff21d30) at /usr/src/debug/kdelibs-4.3.0/kdeui/kernel/kapplication.cpp:302 #30 0x00000036acd3fcbc in QCoreApplication::notifyInternal (this=0x7fff6ff25e30, receiver=0x1f25a20, event=0x7fff6ff21d30) at kernel/qcoreapplication.cpp:610 #31 0x00000036adf96080 in QCoreApplication::sendSpontaneousEvent (event=<value optimized out>, receiver=<value optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:216 #32 QApplicationPrivate::sendMouseEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qapplication.cpp:2924 #33 0x00000036adffbece in QETWidget::translateMouseEvent (this=0x1c30be0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4404 #34 0x00000036adffaf6a in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff6ff23860) at kernel/qapplication_x11.cpp:3545 #35 0x00000036ae022c7c in x11EventSourceDispatch (s=<value optimized out>, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146 #36 0x0000003801a37abe in g_main_context_dispatch () from /lib64/libglib-2.0.so.0 #37 0x0000003801a3b278 in ?? () from /lib64/libglib-2.0.so.0 #38 0x0000003801a3b3a0 in g_main_context_iteration () from /lib64/libglib-2.0.so.0 #39 0x00000036acd683b6 in QEventDispatcherGlib::processEvents (this=0xde4750, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327 #40 0x00000036ae02242e in QGuiEventDispatcherGlib::processEvents (this=0x3200760, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202 #41 0x00000036acd3e5f2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 36}) at kernel/qeventloop.cpp:149 #42 0x00000036acd3e9c4 in QEventLoop::exec (this=0x7fff6ff23cb0, flags={i = 0}) at kernel/qeventloop.cpp:201 #43 0x00000036af698b80 in KWallet::Wallet::openWallet (name=<value optimized out>, w=<value optimized out>, ot=KWallet::Wallet::Synchronous) at /usr/src/debug/kdelibs-4.3.0/kdeui/util/kwallet.cpp:252 #44 0x00000036b921f812 in MailTransport::TransportManager::wallet() () from /usr/lib64/libmailtransport.so.4 #45 0x00000036b92155a5 in MailTransport::Transport::readPassword() () from /usr/lib64/libmailtransport.so.4 #46 0x00000036b921e867 in MailTransport::TransportManager::loadPasswords() () from /usr/lib64/libmailtransport.so.4 #47 0x00000036b9214d6d in MailTransport::Transport::password() () from /usr/lib64/libmailtransport.so.4 #48 0x00000036b9225dc4 in MailTransport::SmtpJob::startSmtpJob() () from /usr/lib64/libmailtransport.so.4 #49 0x00000036b9226c7f in MailTransport::SmtpJob::doStart() () from /usr/lib64/libmailtransport.so.4 #50 0x00000036b921d77c in MailTransport::TransportJob::start() () from /usr/lib64/libmailtransport.so.4 #51 0x00007f826bfeb19b in KMSender::doSendMsg (this=0x1b217a0) at /usr/src/debug/kdepim-4.3.0/kmail/kmsender.cpp:592 #52 0x00007f826bfec4e9 in KMSender::doSendQueued (this=0x1b217a0, customTransport=@0x7fff6ff24d90) at /usr/src/debug/kdepim-4.3.0/kmail/kmsender.cpp:244 #53 0x00007f826bfe92cf in KMail::MessageSender::sendQueued (transport=<value optimized out>, this=<value optimized out>) at /usr/src/debug/kdepim-4.3.0/kmail/messagesender.h:77 #54 KMSender::doSend (transport=<value optimized out>, this=<value optimized out>) at /usr/src/debug/kdepim-4.3.0/kmail/kmsender.cpp:194 #55 0x00007f826bf723ec in KMail::MessageSender::send (method=<value optimized out>, msg=<value optimized out>, this=<value optimized out>) at /usr/src/debug/kdepim-4.3.0/kmail/messagesender.h:65 #56 KMComposeWin::slotContinueDoSend (method=<value optimized out>, msg=<value optimized out>, this=<value optimized out>) at /usr/src/debug/kdepim-4.3.0/kmail/kmcomposewin.cpp:3691 #57 0x00007f826bf8115b in KMComposeWin::qt_metacall (this=0x31ae800, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff6ff25130) at /usr/src/debug/kdepim-4.3.0/x86_64-redhat-linux-gnu/kmail/kmcomposewin.moc:313 #58 0x00000036acd54fdc in QMetaObject::activate (sender=0x31ae800, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x37ff169e90) at kernel/qobject.cpp:3113 #59 0x00007f826bf57a6f in KMComposeWin::applyChangesDone (this=0x3200760, _t1=true) at /usr/src/debug/kdepim-4.3.0/x86_64-redhat-linux-gnu/kmail/kmcomposewin.moc:331 #60 0x00007f826bf57b3f in KMComposeWin::slotComposerDone (this=0x31ae800, rc=255) at /usr/src/debug/kdepim-4.3.0/kmail/kmcomposewin.cpp:2012 #61 0x00007f826bf81147 in KMComposeWin::qt_metacall (this=0x31ae800, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff6ff252c0) at /usr/src/debug/kdepim-4.3.0/x86_64-redhat-linux-gnu/kmail/kmcomposewin.moc:312 #62 0x00000036acd54fdc in QMetaObject::activate (sender=0x3202920, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x37ff169e90) at kernel/qobject.cpp:3113 #63 0x00007f826c1e9c1f in MessageComposer::done (this=0x3200760, _t1=true) at /usr/src/debug/kdepim-4.3.0/x86_64-redhat-linux-gnu/kmail/messagecomposer.moc:82 #64 0x00007f826c1e9e95 in MessageComposer::emitDone (this=0x3202920, ok=255) at /usr/src/debug/kdepim-4.3.0/kmail/messagecomposer.cpp:417 #65 0x00007f826c1ea171 in MessageComposer::qt_metacall (this=0x3202920, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff6ff253d0) at /usr/src/debug/kdepim-4.3.0/x86_64-redhat-linux-gnu/kmail/messagecomposer.moc:70 #66 0x00000036acd54fdc in QMetaObject::activate (sender=0x2147090, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x37ff169e90) at kernel/qobject.cpp:3113 #67 0x00000036acd59fdf in QSingleShotTimer::timerEvent (this=0x2147090) at kernel/qtimer.cpp:298 #68 0x00000036acd4ef93 in QObject::event (this=0x2147090, e=0xffffffff) at kernel/qobject.cpp:1075 #69 0x00000036adf8f69c in QApplicationPrivate::notify_helper (this=0xe18fc0, receiver=0x2147090, e=0x7fff6ff259e0) at kernel/qapplication.cpp:4056 #70 0x00000036adf966ce in QApplication::notify (this=0x7fff6ff25e30, receiver=0x2147090, e=0x7fff6ff259e0) at kernel/qapplication.cpp:4021 #71 0x00000036af610546 in KApplication::notify (this=0x7fff6ff25e30, receiver=0x2147090, event=0x7fff6ff259e0) at /usr/src/debug/kdelibs-4.3.0/kdeui/kernel/kapplication.cpp:302 #72 0x00000036acd3fcbc in QCoreApplication::notifyInternal (this=0x7fff6ff25e30, receiver=0x2147090, event=0x7fff6ff259e0) at kernel/qcoreapplication.cpp:610 #73 0x00000036acd6aa72 in QCoreApplication::sendEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.h:213 #74 QTimerInfoList::activateTimers (event=<value optimized out>, receiver=<value optimized out>) at kernel/qeventdispatcher_unix.cpp:572 #75 0x00000036acd6846d in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:165 #76 0x0000003801a37abe in g_main_context_dispatch () from /lib64/libglib-2.0.so.0 #77 0x0000003801a3b278 in ?? () from /lib64/libglib-2.0.so.0 #78 0x0000003801a3b3a0 in g_main_context_iteration () from /lib64/libglib-2.0.so.0 #79 0x00000036acd683b6 in QEventDispatcherGlib::processEvents (this=0xde4750, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327 #80 0x00000036ae02242e in QGuiEventDispatcherGlib::processEvents (this=0x3200760, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202 #81 0x00000036acd3e5f2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 36}) at kernel/qeventloop.cpp:149 #82 0x00000036acd3e9c4 in QEventLoop::exec (this=0x7fff6ff25c80, flags={i = 0}) at kernel/qeventloop.cpp:201 #83 0x00000036acd40b79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888 #84 0x0000000000402e69 in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kdepim-4.3.0/kmail/main.cpp:146 Reported using DrKonqi
*** Bug 200382 has been marked as a duplicate of this bug. ***
There are 2 different bugs here. The first is, why did sending hang? The second is the crash.
I had yet another variant of this bug happen to me today. 1. Composed message and clicked Send. 2. Sending hanged with composer window grayed out. 3. "Send Queued Messages" (no effect) 4. Canceled hung background send operation. 5. "Send Queued Messages" (message was sent) 6. Closed still-grayed-out composer window. 7. Browsed through another couple of mail folders. 8. Left KMail alone. 9. Some time later (probably at the next mail check), KMail spontaneously crashed with the following backtrace: Application: KMail (kmail), signal: Segmentation fault [KCrash Handler] #5 0x00007f3074207260 in KMMsgBase::asIndexString (this=0x266ddc0, length=@0x7fff3112213c) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0/kmail/kmmsgbase.cpp:1155 #6 0x00007f30743a3cf2 in KMFolderIndex::writeMessages (this=0xa16560, msg=<value optimized out>, flush=false, indexStream=0x379ba20) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0/kmail/kmfolderindex.cpp:502 #7 0x00007f30743a42e2 in KMFolderIndex::writeIndex (this=0xa16560, createEmptyIndex=false) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0/kmail/kmfolderindex.cpp:111 #8 0x00007f3074191a21 in FolderStorage::qt_metacall (this=0xa16560, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff31122450) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0_build/kmail/folderstorage.moc:142 #9 0x00007f30743a234a in KMFolderIndex::qt_metacall (this=0x7fff31122090, _c=40295872, _id=823271584, _a=0x0) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0_build/kmail/kmfolderindex.moc:63 #10 0x00007f3074282465 in KMFolderMaildir::qt_metacall (this=0x7fff31122090, _c=40295872, _id=823271584, _a=0x0) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0_build/kmail/kmfoldermaildir.moc:61 #11 0x00007f306f62cf9e in QMetaObject::activate (sender=0xa0e6a0, from_signal_index=<value optimized out>, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3101 #12 0x00007f306f62e433 in QObject::event (this=0xa0e6a0, e=0x266ddc0) at kernel/qobject.cpp:1066 #13 0x00007f306fd007ed in QApplicationPrivate::notify_helper (this=0x7cf320, receiver=0xa0e6a0, e=0x7fff31122b20) at kernel/qapplication.cpp:4056 #14 0x00007f306fd0330a in QApplication::notify (this=0x7fff31125230, receiver=0xa0e6a0, e=0x7fff31122b20) at kernel/qapplication.cpp:4021 #15 0x00007f30750b09cb in KApplication::notify (this=0x7fff31125230, receiver=0xa0e6a0, event=0x7fff31122b20) at /var/tmp/portage/kde-base/kdelibs-4.3.0/work/kdelibs-4.3.0/kdeui/kernel/kapplication.cpp:302 #16 0x00007f306f619c9b in QCoreApplication::notifyInternal (this=0x7fff31125230, receiver=0xa0e6a0, event=0x7fff31122b20) at kernel/qcoreapplication.cpp:606 #17 0x00007f306f648d05 in QTimerInfoList::activateTimers (this=0x7d16c0) at kernel/qcoreapplication.h:213 #18 0x00007f306f645dbd in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:165 #19 0x00007f3067af4d1d in g_main_dispatch (context=0x7d1000) at gmain.c:1824 #20 0x00007f3067af6aad in g_main_context_iterate (context=0x7d1000, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2377 #21 0x00007f3067af6c0c in IA__g_main_context_iteration (context=0x7d1000, may_block=1) at gmain.c:2518 #22 0x00007f306f645d1f in QEventDispatcherGlib::processEvents (this=0x7990d0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327 #23 0x00007f306fd9da6f in QGuiEventDispatcherGlib::processEvents (this=0x7fff31122090, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202 #24 0x00007f306f618932 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 823274912}) at kernel/qeventloop.cpp:149 #25 0x00007f306f618dbd in QEventLoop::exec (this=0x7fff31122f00, flags={i = 823275472}) at kernel/qeventloop.cpp:197 #26 0x00007f3075149b98 in KWallet::Wallet::openWallet (name=@0x7fff31123020, w=<value optimized out>, ot=KWallet::Wallet::Synchronous) at /var/tmp/portage/kde-base/kdelibs-4.3.0/work/kdelibs-4.3.0/kdeui/util/kwallet.cpp:252 #27 0x00007f306ae6747d in MailTransport::TransportManager::wallet (this=0x7d4810) at /var/tmp/portage/kde-base/kdepimlibs-4.3.0/work/kdepimlibs-4.3.0/mailtransport/transportmanager.cpp:420 #28 0x00007f306ae5d59d in MailTransport::Transport::readPassword (this=0x833240) at /var/tmp/portage/kde-base/kdepimlibs-4.3.0/work/kdepimlibs-4.3.0/mailtransport/transport.cpp:245 #29 0x00007f306ae67a2a in MailTransport::TransportManager::loadPasswords (this=0x7d4810) at /var/tmp/portage/kde-base/kdepimlibs-4.3.0/work/kdepimlibs-4.3.0/mailtransport/transportmanager.cpp:445 #30 0x00007f306ae5c86d in MailTransport::Transport::password (this=0x6e9f660) at /var/tmp/portage/kde-base/kdepimlibs-4.3.0/work/kdepimlibs-4.3.0/mailtransport/transport.cpp:76 #31 0x00007f306ae6ffe6 in MailTransport::SmtpJob::startSmtpJob (this=0x7422d30) at /var/tmp/portage/kde-base/kdepimlibs-4.3.0/work/kdepimlibs-4.3.0/mailtransport/smtpjob.cpp:159 #32 0x00007f306ae7113a in MailTransport::SmtpJob::doStart (this=0x7422d30) at /var/tmp/portage/kde-base/kdepimlibs-4.3.0/work/kdepimlibs-4.3.0/mailtransport/smtpjob.cpp:114 #33 0x00007f306ae656bd in MailTransport::TransportJob::start (this=0x7422d30) at /var/tmp/portage/kde-base/kdepimlibs-4.3.0/work/kdepimlibs-4.3.0/mailtransport/transportjob.cpp:129 #34 0x00007f30741c68fc in KMSender::doSendMsg (this=0xa8e6c0) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0/kmail/kmsender.cpp:592 #35 0x00007f30741c814c in KMSender::doSendQueued (this=0xa8e6c0, customTransport=@0x7fff31124040) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0/kmail/kmsender.cpp:244 #36 0x00007f30741c4705 in KMSender::doSend (this=0xa8e6c0, aMsg=0x266ddc0, sendNow=1) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0/kmail/messagesender.h:77 #37 0x00007f307415038b in KMComposeWin::slotContinueDoSend (this=0x18ab090, sentOk=<value optimized out>) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0/kmail/messagesender.h:65 #38 0x00007f3074150bcc in KMComposeWin::qt_metacall (this=0x18ab090, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff311243c0) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0_build/kmail/kmcomposewin.moc:313 #39 0x00007f306f62cf9e in QMetaObject::activate (sender=0x18ab090, from_signal_index=<value optimized out>, to_signal_index=50, argv=0x0) at kernel/qobject.cpp:3101 #40 0x00007f307412171d in KMComposeWin::slotComposerDone (this=0x18ab090, rc=true) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0_build/kmail/kmcomposewin.moc:331 #41 0x00007f3074150be4 in KMComposeWin::qt_metacall (this=0x18ab090, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff31124530) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0_build/kmail/kmcomposewin.moc:312 #42 0x00007f306f62cf9e in QMetaObject::activate (sender=0x43d2900, from_signal_index=<value optimized out>, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3101 #43 0x00007f3074406bcc in MessageComposer::emitDone (this=0x43d2900, ok=true) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0_build/kmail/messagecomposer.moc:82 #44 0x00007f3074406d4f in MessageComposer::doNextJob (this=0x43d2900) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0/kmail/messagecomposer.cpp:393 #45 0x00007f3074406d89 in MessageComposer::slotDoNextJob (this=0x43d2900) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0/kmail/messagecomposer.cpp:440 #46 0x00007f3074406ebd in MessageComposer::qt_metacall (this=0x43d2900, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fff311246d0) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0_build/kmail/messagecomposer.moc:70 #47 0x00007f306f62cf9e in QMetaObject::activate (sender=0x43f6530, from_signal_index=<value optimized out>, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3101 #48 0x00007f306f638bca in QSingleShotTimer::timerEvent (this=0x43f6530) at .moc/release-shared/qtimer.moc:76 #49 0x00007f306f62e433 in QObject::event (this=0x43f6530, e=0x266ddc0) at kernel/qobject.cpp:1066 #50 0x00007f306fd007ed in QApplicationPrivate::notify_helper (this=0x7cf320, receiver=0x43f6530, e=0x7fff31124db0) at kernel/qapplication.cpp:4056 #51 0x00007f306fd0330a in QApplication::notify (this=0x7fff31125230, receiver=0x43f6530, e=0x7fff31124db0) at kernel/qapplication.cpp:4021 #52 0x00007f30750b09cb in KApplication::notify (this=0x7fff31125230, receiver=0x43f6530, event=0x7fff31124db0) at /var/tmp/portage/kde-base/kdelibs-4.3.0/work/kdelibs-4.3.0/kdeui/kernel/kapplication.cpp:302 #53 0x00007f306f619c9b in QCoreApplication::notifyInternal (this=0x7fff31125230, receiver=0x43f6530, event=0x7fff31124db0) at kernel/qcoreapplication.cpp:606 #54 0x00007f306f648d05 in QTimerInfoList::activateTimers (this=0x7d16c0) at kernel/qcoreapplication.h:213 #55 0x00007f306f645dbd in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:165 #56 0x00007f3067af4d1d in g_main_dispatch (context=0x7d1000) at gmain.c:1824 #57 0x00007f3067af6aad in g_main_context_iterate (context=0x7d1000, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2377 #58 0x00007f3067af6c0c in IA__g_main_context_iteration (context=0x7d1000, may_block=1) at gmain.c:2518 #59 0x00007f306f645d1f in QEventDispatcherGlib::processEvents (this=0x7990d0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327 #60 0x00007f306fd9da6f in QGuiEventDispatcherGlib::processEvents (this=0x7fff31122090, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202 #61 0x00007f306f618932 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 823283760}) at kernel/qeventloop.cpp:149 #62 0x00007f306f618dbd in QEventLoop::exec (this=0x7fff31125080, flags={i = 823283856}) at kernel/qeventloop.cpp:197 #63 0x00007f306f61cbbc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888 #64 0x0000000000403361 in main (argc=<value optimized out>, argv=<value optimized out>) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0/kmail/main.cpp:146
I just had this happen again. This time, instead of waiting to get a backtrace until after the inevitable crash, I attached gdb to the running process just after I clicked Send and observed the composer window to disable but not to close. The "sending mail" background task is stuck at 0%, as is always the case in this scenario. For what it's worth, my wallet was already open at the time I clicked Send, but I had forcibly closed my wallet and reopened it previously without restarting KMail. In other words: 1. Start KMail. 2. Enter password in KWallet popup to open wallet. 3. Force wallet closed. 4. Reopen wallet by accessing it from another application (e.g., Konqueror). 5. Attempt to send a message in KMail. I have no idea whether this sequence has any significance to this bug whatsoever, but I figured it might be worth mentioning since there are some KWallet calls in the backtrace. Here's the backtrace (there's only one thread): #0 0x00007f953f2cf426 in __poll (fds=0x1af6830, nfds=10, timeout=49) at ../sysdeps/unix/sysv/linux/poll.c:87 #1 0x00007f953856e86a in g_main_context_iterate (context=0x872000, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2768 #2 0x00007f953856ec0c in IA__g_main_context_iteration (context=0x872000, may_block=1) at gmain.c:2518 #3 0x00007f95400bdd1f in QEventDispatcherGlib::processEvents (this=0x83a0d0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327 #4 0x00007f95408155be in QGuiEventDispatcherGlib::processEvents (this=0x1af6830, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202 #5 0x00007f9540090932 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 249165136}) at kernel/qeventloop.cpp:149 #6 0x00007f9540090dbd in QEventLoop::exec (this=0x7fff0ed9f6b0, flags={i = 249165696}) at kernel/qeventloop.cpp:197 #7 0x00007f9545bc1b98 in KWallet::Wallet::openWallet (name=@0x7fff0ed9f7d0, w=<value optimized out>, ot=KWallet::Wallet::Synchronous) at /var/tmp/portage/kde-base/kdelibs-4.3.0/work/kdelibs-4.3.0/kdeui/util/kwallet.cpp:252 #8 0x00007f953b8df47d in MailTransport::TransportManager::wallet (this=0x8d57f0) at /var/tmp/portage/kde-base/kdepimlibs-4.3.0/work/kdepimlibs-4.3.0/mailtransport/transportmanager.cpp:420 #9 0x00007f953b8d559d in MailTransport::Transport::readPassword (this=0x874ad0) at /var/tmp/portage/kde-base/kdepimlibs-4.3.0/work/kdepimlibs-4.3.0/mailtransport/transport.cpp:245 #10 0x00007f953b8dfa2a in MailTransport::TransportManager::loadPasswords (this=0x8d57f0) at /var/tmp/portage/kde-base/kdepimlibs-4.3.0/work/kdepimlibs-4.3.0/mailtransport/transportmanager.cpp:445 #11 0x00007f953b8d486d in MailTransport::Transport::password (this=0x357dce0) at /var/tmp/portage/kde-base/kdepimlibs-4.3.0/work/kdepimlibs-4.3.0/mailtransport/transport.cpp:76 #12 0x00007f953b8e7fe6 in MailTransport::SmtpJob::startSmtpJob (this=0x8c83e0) at /var/tmp/portage/kde-base/kdepimlibs-4.3.0/work/kdepimlibs-4.3.0/mailtransport/smtpjob.cpp:159 #13 0x00007f953b8e913a in MailTransport::SmtpJob::doStart (this=0x8c83e0) at /var/tmp/portage/kde-base/kdepimlibs-4.3.0/work/kdepimlibs-4.3.0/mailtransport/smtpjob.cpp:114 #14 0x00007f953b8dd6bd in MailTransport::TransportJob::start (this=0x8c83e0) at /var/tmp/portage/kde-base/kdepimlibs-4.3.0/work/kdepimlibs-4.3.0/mailtransport/transportjob.cpp:129 #15 0x00007f9544c3e8fc in KMSender::doSendMsg (this=0xb2b810) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0/kmail/kmsender.cpp:592 #16 0x00007f9544c4014c in KMSender::doSendQueued (this=0xb2b810, customTransport=@0x7fff0eda07f0) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0/kmail/kmsender.cpp:244 #17 0x00007f9544c3c705 in KMSender::doSend (this=0xb2b810, aMsg=0x24121b0, sendNow=1) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0/kmail/messagesender.h:77 #18 0x00007f9544bc838b in KMComposeWin::slotContinueDoSend (this=0x2d046e0, sentOk=<value optimized out>) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0/kmail/messagesender.h:65 #19 0x00007f9544bc8bcc in KMComposeWin::qt_metacall (this=0x2d046e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff0eda0b70) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0_build/kmail/kmcomposewin.moc:313 #20 0x00007f95400a4f9e in QMetaObject::activate (sender=0x2d046e0, from_signal_index=<value optimized out>, to_signal_index=50, argv=0xffffffffffffffff) at kernel/qobject.cpp:3101 #21 0x00007f9544b9971d in KMComposeWin::slotComposerDone (this=0x2d046e0, rc=true) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0_build/kmail/kmcomposewin.moc:331 #22 0x00007f9544bc8be4 in KMComposeWin::qt_metacall (this=0x2d046e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff0eda0ce0) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0_build/kmail/kmcomposewin.moc:312 #23 0x00007f95400a4f9e in QMetaObject::activate (sender=0xa31ad0, from_signal_index=<value optimized out>, to_signal_index=4, argv=0xffffffffffffffff) at kernel/qobject.cpp:3101 #24 0x00007f9544e7ebcc in MessageComposer::emitDone (this=0xa31ad0, ok=true) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0_build/kmail/messagecomposer.moc:82 #25 0x00007f9544e7ed4f in MessageComposer::doNextJob (this=0xa31ad0) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0/kmail/messagecomposer.cpp:393 #26 0x00007f9544e7ed89 in MessageComposer::slotDoNextJob (this=0xa31ad0) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0/kmail/messagecomposer.cpp:440 #27 0x00007f9544e7eebd in MessageComposer::qt_metacall (this=0xa31ad0, _c=QMetaObject::InvokeMetaMethod, _id=-516, _a=0x7fff0eda0e80) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0_build/kmail/messagecomposer.moc:70 #28 0x00007f95400a4f9e in QMetaObject::activate (sender=0x1826130, from_signal_index=<value optimized out>, to_signal_index=4, argv=0xffffffffffffffff) at kernel/qobject.cpp:3101 #29 0x00007f95400b0bca in QSingleShotTimer::timerEvent (this=0x1826130) at .moc/release-shared/qtimer.moc:76 #30 0x00007f95400a6433 in QObject::event (this=0x1826130, e=0xa) at kernel/qobject.cpp:1066 #31 0x00007f9540776fec in QApplicationPrivate::notify_helper (this=0x870320, receiver=0x1826130, e=0x7fff0eda14f0) at kernel/qapplication.cpp:4056 #32 0x00007f95407786c8 in QApplication::notify (this=0x7fff0eda1970, receiver=0x1826130, e=0x7fff0eda14f0) at kernel/qapplication.cpp:4021 #33 0x00007f9545b289cb in KApplication::notify (this=0x7fff0eda1970, receiver=0x1826130, event=0x7fff0eda14f0) at /var/tmp/portage/kde-base/kdelibs-4.3.0/work/kdelibs-4.3.0/kdeui/kernel/kapplication.cpp:302 #34 0x00007f9540091c9b in QCoreApplication::notifyInternal (this=0x7fff0eda1970, receiver=0x1826130, event=0x7fff0eda14f0) at kernel/qcoreapplication.cpp:606 #35 0x00007f95400c0d05 in QTimerInfoList::activateTimers (this=0x8726c0) at kernel/qcoreapplication.h:213 #36 0x00007f95400bddbd in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:165 #37 0x00007f953856cd1d in g_main_dispatch (context=0x872000) at gmain.c:1824 #38 0x00007f953856eaad in g_main_context_iterate (context=0x872000, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2377 #39 0x00007f953856ec0c in IA__g_main_context_iteration (context=0x872000, may_block=1) at gmain.c:2518 #40 0x00007f95400bdd1f in QEventDispatcherGlib::processEvents (this=0x83a0d0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327 #41 0x00007f95408155be in QGuiEventDispatcherGlib::processEvents (this=0x1af6830, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202 #42 0x00007f9540090932 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 249173872}) at kernel/qeventloop.cpp:149 #43 0x00007f9540090dbd in QEventLoop::exec (this=0x7fff0eda17c0, flags={i = 249173968}) at kernel/qeventloop.cpp:197 #44 0x00007f9540094bbc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888 #45 0x0000000000403361 in main (argc=<value optimized out>, argv=<value optimized out>) at /var/tmp/portage/kde-base/kmail-4.3.0/work/kmail-4.3.0/kmail/main.cpp:146
I just had this happen again. It hasn't happened in quite a while, but I now believe I nailed the problem with my last comment. Earlier this evening, I locked my session using a script I wrote that sends an org.kde.KWallet.closeAllWallets call to org.kde.kwalletd via DBus before locking the session by calling org.freedesktop.ScreenSaver.Lock. Then when I returned, I unlocked my session and started Kopete, which asked for my wallet password in order to connect. My wallet was thus reopened. Then I tried to send a message in KMail, and it hung. I'm now quite certain there is a problem with reconnecting to a wallet that was forced closed and then reopened, and it manifests itself as this apparent hang in KMail.
Confirmed; closing all open wallets, then having another application open the wallet, then sending mail from KMail results in a crash. The crash begins with the composer window being deactivated but not closed; closing the composer window causes the crash. It is possible to leave the window open, send the mail by selecting "send queued messages," and that will not cause the crash.
I use KMail (1.12.2 on KDE 4.3.1 on openSUSE) daily for work and this bug is really really annoying. I repeat this cycle about once a hour: 1) compose mail 2) hit send 3) hit "close window" 4) answer "discard" to question about whether to save the mail 5) go to outbox 6) see KMail crashing 7) open KMail again 8) do "send queued messages" on outbox I'll try Ben's suggestion when it happens again :)
About Ben's suggestion in my case. I have to first cancel sending mail and after that "send queued messages" really works. But after a while KMail crashes anyway (I'm not sure on what action).
*** Bug 210024 has been marked as a duplicate of this bug. ***
if my bug #210024 is really a duplicate of this one, then triggering it does not require forcibly closing the KWallet, since i almost never do this. perhaps it is triggered whenever the wallet is closed for any reason, including by timeout, then reopened by an application other than KMail.
as in comment #8, Ben's suggestion in comment #6 enables me to send the mail only if i cancel the stuck transfer before i choose Send Queued Messages. subsequently closing the (still disabled) composer window and choosing Discard causes KMail to crash. in this case the crash is not picked up by the KDE Crash Handler.
*** Bug 212822 has been marked as a duplicate of this bug. ***
*** Bug 212904 has been marked as a duplicate of this bug. ***
*** Bug 211881 has been marked as a duplicate of this bug. ***
From bug 217241: --- What I was doing when the application crashed: kontact left running over night. On trying to send an email (by hitting the send button in the composer window), the window is fadded and the email to be sent is added to the outbox, but does not get sent. I hit the x button to close the email and was presented with a 'save draft' 'discard' 'cancel' dialog window. I selected cancel and then kontact crashed. Upon restarting kontact, I was given the 'kontact already running' warning window to which I responded 'start anyway'. The email was still in the out box and sent with out error in the restarted kontact. This has happened before (once ever other week), but I can not reliabley reproduce it. I have a hunch that it is related to kwallet interactions. In all the cases that it has crashed I have first started kopete and opened kwallet. The wallet is still open when I attempted to send the email.
*** Bug 217241 has been marked as a duplicate of this bug. ***
*** Bug 238476 has been marked as a duplicate of this bug. ***
This bug appears to have resurfaced in KMail 1.13.5. It doesn't crash anymore, but it simply refuses to send any queued outgoing messages after the wallet has been closed and reopened by another application while KMail is running. Quitting KMail doesn't actually cause it to terminate then, either. I have to send it a SIGTERM and then restart it, and then Send Queued Messages actually works.
*** Bug 262861 has been marked as a duplicate of this bug. ***
*** Bug 280732 has been marked as a duplicate of this bug. ***
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