Bug 217367

Summary: KMail hangs when I'm writing e-mail
Product: [Applications] kmail Reporter: Unknown <null>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: major CC: barbour, bjoern, eerott
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Unknown 2009-12-04 19:55:04 UTC
Version:           ismeretlen (using 4.3.80 (KDE 4.3.80 (KDE 4.4 Beta1)) "release 9", KDE:KDE4:UNSTABLE:Desktop / openSUSE_11.2)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.31.5-0.1-desktop

Although there is no crash, but when I'm writing an e-mail with KMail, it hangs randomly. So there is the composer window, but there is absolutely no response to the keyboard input (however the cursor blinks).
Some time after I try to close the window, KWin wants to terminate Kontact.

The mail is not saved either, so I have to write it again.
Comment 1 Unknown 2009-12-07 18:21:43 UTC
Mostly occures when I press Ctrl+Enter...
Comment 2 Björn Ruberg 2009-12-08 01:17:37 UTC
Well, I know that the kmail composer can get quite slow - but not that slow. Pressing Ctrl+Enter normaly (default configuration) sends the mail you are writing. Is there a special reason why you are pressing Ctl+Enter? Might help to reproduce your problem.
Comment 3 Unknown 2009-12-08 23:26:10 UTC
No, there's not any special reason; I use it to send mails. 

I haven't discovered what can cause this, and it's unpredictable when it occurs, so I'm unable to reproduce it (yet).
Comment 4 Unknown 2009-12-22 00:07:28 UTC
INFO: It freezes when I'm writing mails, when I attach something, when it is in background, when it is in foreground, when I touch it and when I don't touch it. Randomly.

I'm really sorry that I cannot say anymore but that KMail freezes twice a day (for me at least) doesn't mean that this bug is 'RESOLVED'.

It's ridiculous that I have to write mails in KWrite and then copy-paste into the composer part. And I don't litter lots of forums with my sole problem but I file it here, then you close your mistake as RESOLVED. I disagree.
Comment 5 Björn Ruberg 2009-12-22 11:16:19 UTC
Sorry, must have seen this as an old 3.x line bug. There is of course no reason to close this - in the contrary as this is a Beta problem. 

Can you post the link to the forum thread too?
Comment 6 Unknown 2009-12-28 09:00:05 UTC
Sorry for being impatient in my previous comment.

After I resumed my laptop from sleep, Kontact stopped working (clicking on the system tray icon did nothing). I don't know whether it is related to this bug, but I have the console output:

[/usr/bin/akonadi_maildispatcher_agent] akonadi_maildispatcher_agent(6300) MailDispatcherAgent::MailDispatcherAgent: maildispatcheragent: At your service, sir!
[/usr/bin/akonadi_nepomuk_contact_feeder] Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)               
[/usr/bin/akonadi_nepomuk_contact_feeder] "/usr/bin/akonadi_nepomuk_contact_feeder(6301)" Error in thread 140527723784176 : "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"                                                                 
[/usr/bin/akonadi_nepomuk_contact_feeder] akonadi_nepomuk_contact_feeder(6301)/nepomuk (library) <unnamed>::GlobalModelContainer::init: Connecting to local socket "/home/aki/.kde4/share/apps/nepomuk/socket"                                                                                                                    
[/usr/bin/akonadi_nepomuk_contact_feeder] "/usr/bin/akonadi_nepomuk_contact_feeder(6301)" Error in thread 140527723784176 : "QLocalSocket::connectToServer: Invalid name"                                                                                                                                                         
[/usr/bin/akonadi_nepomuk_contact_feeder] akonadi_nepomuk_contact_feeder(6301)/nepomuk (library) <unnamed>::GlobalModelContainer::init: Failed to connect to Nepomuk server via local socket "/home/aki/.kde4/share/apps/nepomuk/socket"                                                                                          
[/usr/bin/akonadi_vcard_resource] Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)                         
[akonadiserver] Database "akonadi" opened using driver "QMYSQL"                                                                                                  
[/usr/bin/akonadi_maildispatcher_agent] akonadi_maildispatcher_agent(6300) OutboxQueue::Private::localFoldersChanged: Requesting outbox folder.                  
[/usr/bin/akonadi_nepomuk_contact_feeder] Nepomuk server already running.                                                                                        
[/usr/bin/akonadi_maildispatcher_agent] akonadi_maildispatcher_agent(6300) MailDispatcherAgent::doSetOnline: Online. Dispatching messages.                       
[/usr/bin/akonadi_maildispatcher_agent] akonadi_maildispatcher_agent(6300) MailDispatcherAgent::Private::dispatch: Empty queue.                                  
[akonadiserver] Database "akonadi" opened using driver "QMYSQL"                                                                                                  
[/usr/bin/akonadi_maildispatcher_agent] akonadi_maildispatcher_agent(6300) OutboxQueue::Private::localFoldersChanged: Changed outbox to 9                        
[/usr/bin/akonadi_maildispatcher_agent] akonadi_maildispatcher_agent(6300) OutboxQueue::Private::initQueue: Fetching items in collection 9                       
[/usr/bin/akonadi_maildispatcher_agent] akonadi_maildispatcher_agent(6300) OutboxQueue::Private::collectionFetched: Fetched 0 items.                             
[akonadiserver] Database "akonadi" opened using driver "QMYSQL"                                                                                                  
[akonadiserver] Database "akonadi" opened using driver "QMYSQL"                                                                                                  
<unknown program name>(6263)/: Communication problem with  "kontact" , it probably crashed.                                                                      
Error message was:  "org.freedesktop.DBus.Error.NoReply" : " "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken." "                                               

[/usr/bin/akonadi_nepomuk_contact_feeder] akonadi_nepomuk_contact_feeder(6301)/kdeui (KNotification) KNotification::slotReceivedId: 0
[/usr/bin/akonadi_nepomuk_contact_feeder] akonadi_nepomuk_contact_feeder(6301)/kdeui (KNotification) KNotification::close: 0                           
[/usr/bin/akonadi_nepomuk_contact_feeder] akonadi_nepomuk_contact_feeder(6301)/kdeui (KNotification) KNotification::~KNotification: -2                 
kontact(6264) KMail::AccountManager::singleCheckMail: account "xxxx xxxx" busy, queuing

                                                                            
kontact(6264)/khtml (caret) DOM::Selection::validate: [character:baseIsStart] true Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 )                         
kontact(6264)/khtml (caret) DOM::Selection::moveTo: Selection[ Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) 1 ] Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 )                                                                                              
kontact(6264)/khtml (caret) DOM::Selection::validate: Selection[ Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) 1 ] 0                                                                                                                                                
kontact(6264)/khtml (caret) DOM::Selection::validate: [character:baseIsStart] true Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 )                         
kontact(6264)/khtml (caret) DOM::Selection::moveTo: Selection[ Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) 1 ] Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 )                                                                                              
kontact(6264)/khtml (caret) DOM::Selection::validate: Selection[ Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) 1 ] 0                                                                                                                                                
kontact(6264)/khtml (caret) DOM::Selection::validate: [character:baseIsStart] true Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 )                         


And then I attached a GDB to it, and here is the backtrace:

(gdb) bt
#0  0x00007f5d6cff3033 in poll () from /lib64/libc.so.6
#1  0x00007f5d65bba58c in g_main_context_poll (n_fds=<value optimized out>, fds=<value optimized out>, priority=<value optimized out>, 
    timeout=<value optimized out>, context=<value optimized out>) at gmain.c:2904                                                      
#2  g_main_context_iterate (n_fds=<value optimized out>, fds=<value optimized out>, priority=<value optimized out>, timeout=<value optimized out>, 
    context=<value optimized out>) at gmain.c:2586
#3  0x00007f5d65bba8d0 in IA__g_main_context_iteration (context=0x646d20, may_block=1) at gmain.c:2654
#4  0x00007f5d6e3930a3 in QEventDispatcherGlib::processEvents (this=0x610970, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#5  0x00007f5d6d7fc75e in QGuiEventDispatcherGlib::processEvents (this=0x112f600, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#6  0x00007f5d6e368432 in QEventLoop::processEvents (this=<value optimized out>, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
) at kernel/qeventloop.cpp:149
#7  0x00007f5d6e36880c in QEventLoop::exec (this=0x7fff2d170160, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
) at kernel/qeventloop.cpp:201
#8  0x00007f5d6edbaaa4 in KWallet::Wallet::openWallet (name=<value optimized out>, w=<value optimized out>, ot=Synchronous)
    at /usr/src/debug/kdelibs-4.3.85/kdeui/util/kwallet.cpp:260
#9  0x00007f5d577a6f74 in KMKernel::wallet (this=0xbaef90) at /usr/src/debug/kdepim-4.3.85/kmail/kmkernel.cpp:2493
#10 0x00007f5d57731201 in KMail::NetworkAccount::readPassword (this=0xd3f6f0) at /usr/src/debug/kdepim-4.3.85/kmail/networkaccount.cpp:338
#11 0x00007f5d576d00ea in KMail::AccountManager::readPasswords (this=<value optimized out>) at /usr/src/debug/kdepim-4.3.85/kmail/accountmanager.cpp:438
#12 0x00007f5d5772ee1d in KMail::NetworkAccount::passwd (this=<value optimized out>) at /usr/src/debug/kdepim-4.3.85/kmail/networkaccount.cpp:95
#13 0x00007f5d5773dc78 in KMail::ImapAccountBase::makeConnection (this=0xd3f6f0) at /usr/src/debug/kdepim-4.3.85/kmail/imapaccountbase.cpp:306
#14 0x00007f5d5777fa5f in KMFolderCachedImap::serverSyncInternal (this=0xc3b300) at /usr/src/debug/kdepim-4.3.85/kmail/kmfoldercachedimap.cpp:904
#15 0x00007f5d57789508 in KMFolderCachedImap::serverSync (this=0xc3b300, recurse=true) at /usr/src/debug/kdepim-4.3.85/kmail/kmfoldercachedimap.cpp:815
#16 0x00007f5d5774c7cb in KMAcctCachedImap::processNewMail (this=0xd3f6f0, folder=0xc3b300, recurse=4)
    at /usr/src/debug/kdepim-4.3.85/kmail/kmacctcachedimap.cpp:262
#17 0x00007f5d576d1810 in KMail::AccountManager::processNextCheck (this=0xc92e20, _newMail=<value optimized out>)
    at /usr/src/debug/kdepim-4.3.85/kmail/accountmanager.cpp:230
#18 0x00007f5d576d1f0a in KMail::AccountManager::singleCheckMail (this=0xc92e20, account=0xfffffffffffffdfc, interactive=<value optimized out>)
    at /usr/src/debug/kdepim-4.3.85/kmail/accountmanager.cpp:157
#19 0x00007f5d576d2209 in KMail::AccountManager::checkMail (this=0xc92e20, _interactive=true) at /usr/src/debug/kdepim-4.3.85/kmail/accountmanager.cpp:352
#20 0x00007f5d5788cb8d in KMMainWidget::qt_metacall (this=0xd45c30, _c=InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff2d1715a0)
    at /usr/src/debug/kdepim-4.3.85/build/kmail/kmmainwidget.moc:363
#21 0x00007f5d6e37c8ff in QMetaObject::activate (sender=0xbf0140, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff)
    at kernel/qobject.cpp:3267
#22 0x00007f5d6e3840df in QSingleShotTimer::timerEvent (this=0xbf0140) at kernel/qtimer.cpp:308                                                                  
#23 0x00007f5d6e379553 in QObject::event (this=0xbf0140, e=0x7fff2d171d40) at kernel/qobject.cpp:1204                                                            
#24 0x00007f5d6d74e77c in QApplicationPrivate::notify_helper (this=0x643640, receiver=0xbf0140, e=0x7fff2d171d40) at kernel/qapplication.cpp:4293                
#25 0x00007f5d6d754d5b in QApplication::notify (this=0x7fff2d1734c0, receiver=0xbf0140, e=0x7fff2d171d40) at kernel/qapplication.cpp:4176                        
#26 0x00007f5d6ed29a96 in KApplication::notify (this=0x7fff2d1734c0, receiver=0xbf0140, event=0x7fff2d171d40)
    at /usr/src/debug/kdelibs-4.3.85/kdeui/kernel/kapplication.cpp:302
#27 0x00007f5d6e369b1c in QCoreApplication::notifyInternal (this=0x7fff2d1734c0, receiver=0xbf0140, event=0x7fff2d171d40) at kernel/qcoreapplication.cpp:704
#28 0x00007f5d6e396845 in sendEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.h:215
#29 QTimerInfoList::activateTimers (event=<value optimized out>, receiver=<value optimized out>) at kernel/qeventdispatcher_unix.cpp:617
#30 0x00007f5d6e3933b4 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#31 0x00007f5d65bb6dde in g_main_dispatch (context=<value optimized out>) at gmain.c:1960
#32 IA__g_main_context_dispatch (context=<value optimized out>) at gmain.c:2513
#33 0x00007f5d65bba7a8 in g_main_context_iterate (context=0x646d20, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>)
    at gmain.c:2591
#34 0x00007f5d65bba8d0 in IA__g_main_context_iteration (context=0x646d20, may_block=1) at gmain.c:2654
#35 0x00007f5d6e3930a3 in QEventDispatcherGlib::processEvents (this=0x610970, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#36 0x00007f5d6d7fc75e in QGuiEventDispatcherGlib::processEvents (this=0x112f600, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#37 0x00007f5d6e368432 in QEventLoop::processEvents (this=<value optimized out>, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
) at kernel/qeventloop.cpp:149
#38 0x00007f5d6e36880c in QEventLoop::exec (this=0xf2ba20, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
) at kernel/qeventloop.cpp:201
#39 0x00007f5d6f1f0028 in Akonadi::Control::Private::exec (this=0x7b7f10) at /usr/src/debug/kdepimlibs-4.3.85/akonadi/control.cpp:137
#40 0x00007f5d6f1f0d05 in Akonadi::Control::start (parent=0x6545f0) at /usr/src/debug/kdepimlibs-4.3.85/akonadi/control.cpp:233
#41 0x0000000000404811 in KontactApp::newInstance (this=0x7fff2d1734c0) at /usr/src/debug/kdepim-4.3.85/kontact/src/main.cpp:141
#42 0x00007f5d6ed30d96 in KUniqueApplicationAdaptor::newInstance (this=0x6fdd90, asn_id=<value optimized out>, args=...)
    at /usr/src/debug/kdelibs-4.3.85/kdeui/kernel/kuniqueapplication.cpp:459
#43 0x00007f5d6ed313d6 in KUniqueApplicationAdaptor::qt_metacall (this=0x6fdd90, _c=InvokeMetaMethod, _id=-516, _a=0x7fff2d172680)
    at /usr/src/debug/kdelibs-4.3.85/build/kdeui/kuniqueapplication_p.moc:81
#44 0x00007f5d6b8368de in QDBusConnectionPrivate::deliverCall (this=<value optimized out>, object=<value optimized out>, msg=<value optimized out>, metaTypes=
    ..., slotIdx=<value optimized out>) at qdbusintegrator.cpp:904
#45 0x00007f5d6b8376bf in QDBusConnectionPrivate::activateCall (this=<value optimized out>, object=0x6fdd90, flags=337, msg=...) at qdbusintegrator.cpp:809
#46 0x00007f5d6b83819d in QDBusConnectionPrivate::activateObject (this=<value optimized out>, node=<value optimized out>, msg=...,    pathStartPos=<value optimized out>) at qdbusintegrator.cpp:1362
#47 0x00007f5d6b838438 in QDBusActivateObjectEvent::placeMetaCall (this=0x7a3e30) at qdbusintegrator.cpp:1475
#48 0x00007f5d6e379839 in QObject::event (this=0x7fff2d1734c0, e=0x7a3e30) at kernel/qobject.cpp:1240
#49 0x00007f5d6d75296d in QApplication::event (this=0x7fff2d1734c0, e=0x7a3e30) at kernel/qapplication.cpp:2346
#50 0x00007f5d6d74e77c in QApplicationPrivate::notify_helper (this=0x643640, receiver=0x7fff2d1734c0, e=0x7a3e30) at kernel/qapplication.cpp:4293
#51 0x00007f5d6d754d5b in QApplication::notify (this=0x7fff2d1734c0, receiver=0x7fff2d1734c0, e=0x7a3e30) at kernel/qapplication.cpp:4176
#52 0x00007f5d6ed29a96 in KApplication::notify (this=0x7fff2d1734c0, receiver=0x7fff2d1734c0, event=0x7a3e30)
    at /usr/src/debug/kdelibs-4.3.85/kdeui/kernel/kapplication.cpp:302
#53 0x00007f5d6e369b1c in QCoreApplication::notifyInternal (this=0x7fff2d1734c0, receiver=0x7fff2d1734c0, event=0x7a3e30) at kernel/qcoreapplication.cpp:704
#54 0x00007f5d6e36c297 in sendEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.h:215
#55 QCoreApplicationPrivate::sendPostedEvents (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.cpp:1345
#56 0x00007f5d6e393563 in sendPostedEvents () at kernel/qcoreapplication.h:220
#57 postEventSourceDispatch () at kernel/qeventdispatcher_glib.cpp:276
#58 0x00007f5d65bb6dde in g_main_dispatch (context=<value optimized out>) at gmain.c:1960
#59 IA__g_main_context_dispatch (context=<value optimized out>) at gmain.c:2513
#60 0x00007f5d65bba7a8 in g_main_context_iterate (context=0x646d20, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>)
    at gmain.c:2591
#61 0x00007f5d65bba8d0 in IA__g_main_context_iteration (context=0x646d20, may_block=1) at gmain.c:2654
#62 0x00007f5d6e3930a3 in QEventDispatcherGlib::processEvents (this=0x610970, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#63 0x00007f5d6d7fc75e in QGuiEventDispatcherGlib::processEvents (this=0x112f600, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#64 0x00007f5d6e368432 in QEventLoop::processEvents (this=<value optimized out>, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
) at kernel/qeventloop.cpp:149
#65 0x00007f5d6e36880c in QEventLoop::exec (this=0x7fff2d173400, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
) at kernel/qeventloop.cpp:201
#66 0x00007f5d6e36c55b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#67 0x0000000000403ed7 in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kdepim-4.3.85/kontact/src/main.cpp:221
Comment 7 Björn Ruberg 2009-12-28 10:39:20 UTC
No, that is probably unrelated. Please look through the akonadi bugs whether you can find something about that - if not, file a bug for akonadi. I found your slowless problem reported several times for akonadi.

*** This bug has been marked as a duplicate of bug 219687 ***
Comment 8 Unknown 2010-01-05 17:07:59 UTC
I saw bug 219687, but it is not related to this. My composer (and Kontact) freezes completely.
Now I managed to catch a backtrace in that state and it is totally different from the previous...

To sum up, there are probably 3 different bugs here:
- KMail crash (see above for backtrace)
- Akonadi slowdown when it searches for addressees (see bug 219687)
- KMail hang (freeze but not crash). It could occur when I'm typing, after attaching something, so it's not directly connected to sending

For the latter here is the backtrace:
#0  0x00007f8864536033 in poll () from /lib64/libc.so.6                                                                                                                                                      
#1  0x00007f885d0d158c in g_main_context_poll (n_fds=<value optimized out>, fds=<value optimized out>, priority=<value optimized out>, timeout=<value optimized out>, context=<value optimized out>) at gmain.c:2904
#2  g_main_context_iterate (n_fds=<value optimized out>, fds=<value optimized out>, priority=<value optimized out>, timeout=<value optimized out>, context=<value optimized out>) at gmain.c:2586                   
#3  0x00007f885d0d18d0 in IA__g_main_context_iteration (context=0x646a60, may_block=1) at gmain.c:2654
#4  0x00007f88658d60e3 in QEventDispatcherGlib::processEvents (this=0x610970, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#5  0x00007f8864d3f75e in QGuiEventDispatcherGlib::processEvents (this=0x187a6b0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#6  0x00007f88658ab472 in QEventLoop::processEvents (this=<value optimized out>, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
) at kernel/qeventloop.cpp:149
#7  0x00007f88658ab84c in QEventLoop::exec (this=0x7fff0496c3c0, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
) at kernel/qeventloop.cpp:201
#8  0x00007f8865cb8fa6 in KJob::exec (this=0x11bef50) at /usr/src/debug/kdelibs-4.3.86svn1068163/kdecore/jobs/kjob.cpp:204
#9  0x00007f884e2e8f17 in KabcBridge::expandNickName (nickName=<value optimized out>) at /usr/src/debug/kdepim-4.3.86svn1068163/kmail/kmaddrbook.cpp:117
#10 0x00007f884e5644fd in KMail::StringUtil::expandAliases (recipients=<value optimized out>, distributionListEmpty=<value optimized out>) at /usr/src/debug/kdepim-4.3.86svn1068163/kmail/stringutil.cpp:944
#11 0x00007f884e521f51 in KMail::Util::validateAddresses (parent=0x153b240, addresses=...) at /usr/src/debug/kdepim-4.3.86svn1068163/kmail/util.cpp:141
#12 0x00007f884e22b059 in KMComposeWin::doSend (this=0x153b240, method=<value optimized out>, saveIn=None) at /usr/src/debug/kdepim-4.3.86svn1068163/kmail/kmcomposewin.cpp:3509
#13 0x00007f884e22cd1f in KMComposeWin::slotSendNow (this=0x153b240) at /usr/src/debug/kdepim-4.3.86svn1068163/kmail/kmcomposewin.cpp:3799
#14 0x00007f884e23e602 in KMComposeWin::qt_metacall (this=0x153b240, _c=InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff0496d1d0) at /usr/src/debug/kdepim-4.3.86svn1068163/build/kmail/kmcomposewin.moc:248
#15 0x00007f88658bf93f in QMetaObject::activate (sender=0x15b80d0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3267
#16 0x00007f8864c8b722 in QAction::triggered (this=0x187a6b0, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#17 0x00007f8864c8d79b in QAction::activate (this=0x15b80d0, event=<value optimized out>) at kernel/qaction.cpp:1251
#18 0x00007f886502726a in QAbstractButtonPrivate::click (this=0x16dc6a0) at widgets/qabstractbutton.cpp:528
#19 0x00007f886502751c in QAbstractButton::mouseReleaseEvent (this=0x16d2a60, e=0x7fff0496db20) at widgets/qabstractbutton.cpp:1121
#20 0x00007f88650f346a in QToolButton::mouseReleaseEvent (this=0x187a6b0, e=0xc) at widgets/qtoolbutton.cpp:721
#21 0x00007f8864ce7a52 in QWidget::event (this=0x16d2a60, event=0x7fff0496db20) at kernel/qwidget.cpp:7978
#22 0x00007f8864c9177c in QApplicationPrivate::notify_helper (this=0x643aa0, receiver=0x16d2a60, e=0x7fff0496db20) at kernel/qapplication.cpp:4297
#23 0x00007f8864c9853b in QApplication::notify (this=0x7fff0496e830, receiver=0x16d2a60, e=0x7fff0496db20) at kernel/qapplication.cpp:3862
#24 0x00007f886626db16 in KApplication::notify (this=0x7fff0496e830, receiver=0x16d2a60, event=0x7fff0496db20) at /usr/src/debug/kdelibs-4.3.86svn1068163/kdeui/kernel/kapplication.cpp:302
#25 0x00007f88658acb5c in QCoreApplication::notifyInternal (this=0x7fff0496e830, receiver=0x16d2a60, event=0x7fff0496db20) at kernel/qcoreapplication.cpp:704
#26 0x00007f8864c97716 in sendEvent (event=<value optimized out>, receiver=<value optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:215
#27 QApplicationPrivate::sendMouseEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qapplication.cpp:2962
#28 0x00007f8864d16c65 in QETWidget::translateMouseEvent (this=0x153b240, event=<value optimized out>) at kernel/qapplication_x11.cpp:4368
#29 0x00007f8864d1597a in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff0496e440) at kernel/qapplication_x11.cpp:3501
#30 0x00007f8864d3fb72 in x11EventSourceDispatch (s=0x6485a0, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#31 0x00007f885d0cddde in g_main_dispatch (context=<value optimized out>) at gmain.c:1960
#32 IA__g_main_context_dispatch (context=<value optimized out>) at gmain.c:2513
#33 0x00007f885d0d17a8 in g_main_context_iterate (context=0x646a60, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2591
#34 0x00007f885d0d18d0 in IA__g_main_context_iteration (context=0x646a60, may_block=1) at gmain.c:2654
#35 0x00007f88658d60e3 in QEventDispatcherGlib::processEvents (this=0x610970, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#36 0x00007f8864d3f75e in QGuiEventDispatcherGlib::processEvents (this=0x187a6b0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#37 0x00007f88658ab472 in QEventLoop::processEvents (this=<value optimized out>, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
) at kernel/qeventloop.cpp:149
#38 0x00007f88658ab84c in QEventLoop::exec (this=0x7fff0496e770, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
) at kernel/qeventloop.cpp:201
#39 0x00007f88658af59b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#40 0x0000000000403ed7 in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kdepim-4.3.86svn1068163/kontact/src/main.cpp:221
Comment 9 Unknown 2010-01-08 19:56:25 UTC
After the description of bug 219687 has been refined much more, it seems it is really a duplicate.

*** This bug has been marked as a duplicate of bug 219687 ***
Comment 10 Unknown 2010-01-29 11:33:34 UTC
Bug 219687 became a mule and is marked as fixed, but the problem still exists, so I reopen this one.
Comment 11 Unknown 2010-06-10 19:25:23 UTC

*** This bug has been marked as a duplicate of bug 219687 ***
Comment 12 Eero Tamminen 2012-01-20 21:24:32 UTC
I just had this in Debian Squeeze (KDE 4.4.5, kmail 4.4.7, akonadi-server 1.3.1).

As my use-case is exactly as described here rather than the one from bug 219687, I'm adding my comment here rather than there.  It may still help somebody finding this by google.

One of the symptoms could be that "ps" showed myslqld to be Z state, maybe akonadi doesn't handle that well enough.  Kmail backtrace seemed as similar to above as it could without having debug symbols for libkmailprivate.so.4.

Killing kmail and doing:
akonadictl stop
akonadictl start

Seemed to cure it it for now.
Comment 13 Boris 2012-03-09 21:34:38 UTC
I also have noticed kmail hangs while composing (kde 4.6.5 on debian testing). I went searching for a solution because I'd just typed a long email. Couldn't verify any zombie state of mysqld (did I run the wrong command?)

$ ps -eaf | grep mysql
boris     5819  5816  0 Feb14 ?        00:12:55 /usr/sbin/mysqld --defaults-file=/home/boris/.local/share/akonadi//mysql.conf --datadir=/home/boris/.local/share/akonadi/db_data/ --socket=/home/boris/.local/share/akonadi/socket-bordel/mysql.socket
boris    31488 12407  0 22:20 pts/8    00:00:00 grep mysql

but
akonadictl stop
akonadictl start
unhung things. Thank you, Eero Tamminen.