Bug 190422 - kmail crashes when opening email while downloading the list from imap server
Summary: kmail crashes when opening email while downloading the list from imap server
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-23 10:53 UTC by Marek Zachara
Modified: 2012-07-09 05:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Zachara 2009-04-23 10:53:21 UTC
Version:            (using KDE 4.2.2)
Compiler:          gcc version 4.1.2 CHOST="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona" CXXFLAGS=${CFLAGS}
OS:                Linux
Installed from:    Gentoo Packages

I have two installations of kde 4.2.2 (my laptop and desktop). Both are Core2, gentoo, 64 bit (x86_64). This problem exists only on one of the machines (desktop) but is 100% reproductible (and annoying). 
When i start kmail (actually kontact with kmail as startup application), it connects to my servers (two IMAP and one POP3) and downloads messages (headers for IMAPs). Now, if i try to open any message while kmail is still synchronizing with the servers, it crashes. If i wait till the synchronization finishes, then i can read/write emails and nothing happens. But if i do it during the synchronization, then i have a guaranteed crash.
This problem persists since 4.2.0 afair, thought it would be fixed eventually, but it seems its not that common.
After crash, the kcrash handlers displays just a list of 'debugging symbols not found' with a bottom line that the stack trace is of no use. I have recompiled kmail/kontact/kdelibs/kdepimlibs/akonadi with debug flag, but it didnt help. The only meaningful information i can supply is the info i got when i run it under gdb:

(gdb) kontact(30250)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/marek/.kde4/share/apps/kmail/mail/.inbox.index" , "r+") == mIndexStream ==  0x2840530
kontact(30250)/kmail (storage internals) KMFolderMaildir::reallyDoClose: fclose(mIndexStream =  0x2840530 )
kontact(30250)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/marek/.kde4/share/apps/kmail/imap/.1045946210.directory/.INBOX.index" , "r+") == mIndexStream ==  0x29153d0
kontact(30250)/kio (Slave) KIO::Slave::createSlave: createSlave "file" for KUrl("file:///usr/share/apps/kdeui/about/kde_infopage.css")
kontact(30250)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-marek/kontactl30250.slave-socket"
kontact(30250)/kio (Slave) KIO::Slave::createSlave: createSlave "file" for KUrl("file:///usr/share/apps/kontact/about/kontact.css")
kontact(30250)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-marek/kontactU30250.slave-socket"
kontact(30250)/kio (Slave) KIO::Slave::createSlave: createSlave "file" for KUrl("file:///usr/share/icons/oxygen/48x48/actions/help-contents.png")
kontact(30250)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-marek/kontactV30250.slave-socket"
kontact(30250)/kio (Slave) KIO::Slave::createSlave: createSlave "file" for KUrl("file:///usr/share/icons/oxygen/48x48/mimetypes/text-html.png")
kontact(30250)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-marek/kontacty30250.slave-socket"
kontact(30250)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/marek/.kde4/share/apps/kmail/imap/.1045946210.index" , "r+") == mIndexStream ==  0x2aad070
kontact(30250)/kdepimlibs (kabc) KABC::StdAddressBook::self: asynchronous= true
kontact(30250)/kresources KRES::Factory::self:
kontact(30250)/kresources KRES::ManagerImpl::ManagerImpl:
kontact(30250)/kresources KRES::ManagerImpl::readConfig:
kontact(30250)/kresources KRES::Factory::self:
kontact(30250)/kresources KRES::ManagerImpl::readResourceConfig: "vuTxN2Mtqp"
kontact(30250)/kresources KRES::Factory::Private::resourceInternal: ( "akonadi" , config )
kontact(30250)/kdepimlibs (kabc) KABC::StdAddressBook::StdAddressBook:
kontact(30250)/kdepimlibs (kabc) KABC::StdAddressBook::self: calling init after instance creation
kontact(30250)/kresources KRES::Resource::open: Opening resource "Akonadi Compatibility Resource"
kontact(30250)/kmail KMReaderWin::parseMsg: The root node is not yet processed! Danger!
kontact(30250)/kmail KMReaderWin::parseMsg: The root node is not yet processed! Danger!
kontact(30250)/kdeui (KAction) KActionCollection::setComponentData: this does not work on a KActionCollection containing actions!
kontact(30250)/kdepimlibs (kabc) KABC::StdAddressBook::self: asynchronous= true
kontact(30250) <unnamed>::UrlHandler::UrlHandler: UrlHandler() (iCalendar)
kontact(30250)/libakonadi Akonadi::Control::Private::exec: Could not start/stop Akonadi!
kontact(30250)/kdepimlibs (kabc): "Unable to open resource 'Akonadi Compatibility Resource'!"
kontact(30250)/kresources KRES::ManagerImpl::writeConfig:
kontact(30250)/kresources KRES::ManagerImpl::writeResourceConfig: Saving resource "vuTxN2Mtqp"
kontact(30250)/kresources KRES::Resource::writeConfig:
kontact(30250)/kresources KRES::ManagerImpl::writeConfig: Saving general info
kontact(30250)/kresources KRES::ManagerImpl::writeConfig: finished
kontact(30250)/kdepimlibs (kabc) KABC::AddressBook::asyncLoad:
kontact(30250)/kdepimlibs (kabc): "Unable to load resource 'Akonadi Compatibility Resource'"
*** KMail got signal 11 (Crashing)
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kontact path = <unknown> pid = 30250
sock_file=/home/marek/.kde4/socket-eriador/kdeinit4__0

hope that helps
Marek
Comment 1 Christophe Marin 2009-05-23 15:15:19 UTC
(In reply to comment #0)
> 
> I have two installations of kde 4.2.2 (my laptop and desktop). Both are Core2,
> gentoo, 64 bit (x86_64). This problem exists only on one of the machines
> (desktop) but is 100% reproductible (and annoying). 

Can you add the backtrace please ?
Comment 2 Marek Zachara 2009-06-10 17:21:13 UTC
This is what i got with GDB - doesnt seem much, but i'm not a debugging expert, so please tell me if i shall run it with some options or so to help get down to the issue.

(gdb) run                                                                    
Starting program: /usr/bin/kmail                                             
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
kmail(8589)/kdepimlibs (mailtransport) MailTransport::Transport::Transport: "1056545306"
kmail(8589)/kdepimlibs (mailtransport) MailTransport::Transport::Transport: "1102776931"
kmail(8589)/kdepimlibs (mailtransport) MailTransport::Transport::Transport: "1560886518"
kmail(8589)/kdepimlibs (mailtransport) MailTransport::Transport::Transport: "181420376" 
kmail(8589)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from  "/var/tmp/kdecache-marek/ksycoca4"
kmail(8589)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/marek/.kde4/share/apps/kmail/mail/.outbox.index" , "r+") == mIndexStream ==  0x1da7630                                                                                                               
kmail(8589)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/marek/.kde4/share/apps/kmail/mail/.drafts.index" , "r+") == mIndexStream ==  0x1dacfb0                                                                                                               
kmail(8589)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/marek/.kde4/share/apps/kmail/mail/.templates.index" , "r+") == mIndexStream ==  0x1ca0db0                                                                                                            
kmail(8589) KWallet::Wallet::openWallet: Pass a valid window to KWallet::Wallet::openWallet().                                                       

Program exited normally.                                                                                                                             
(gdb) kmail(8589)/kdepimlibs (kpgp) Kpgp::Module::checkForPGP: Kpgp: gpg found                                                                       
kmail(8589)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/marek/.kde4/share/apps/kmail/mail/.inbox.index" , "r+") == mIndexStream ==  0x23a0e00                                                                                                                
kmail(8589)/kmail (storage internals) KMFolderMaildir::reallyDoClose: fclose(mIndexStream =  0x23a0e00 )                                             
kmail(8589)/kio (Slave) KIO::Slave::createSlave: createSlave "imaps" for KUrl("imaps://marek@mail.conexe.com:993")                                   
kmail(8589)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-marek/kmailDB8589.slave-socket"            
kmail(8589)/kio (Slave) KIO::Slave::createSlave: createSlave "imaps" for KUrl("imaps://mzachara@mail.ecredit-egypt.com:993")                         
kmail(8589)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-marek/kmailrw8589.slave-socket"            
kmail(8589)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/marek/.kde4/share/apps/kmail/mail/.inbox.index" , "r+") == mIndexStream ==  0x23bee70                                                                                                                
kmail(8589)/kmail (storage internals) KMFolderMaildir::reallyDoClose: fclose(mIndexStream =  0x23bee70 )                                             
kmail(8589)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/marek/.kde4/share/apps/kmail/mail/.inbox.index" , "r+") == mIndexStream ==  0x247a670                                                                                                                
kmail(8589)/kmail (storage internals) KMFolderMaildir::reallyDoClose: fclose(mIndexStream =  0x247a670 )                                             
kmail(8589)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/marek/.kde4/share/apps/kmail/imap/.1045946210.directory/.INBOX.index" , "r+") == mIndexStream ==  0x2554b70                                                                                          
kmail(8589)/kio (Slave) KIO::Slave::createSlave: createSlave "file" for KUrl("file:///usr/share/apps/kdeui/about/kde_infopage.css")                  
kmail(8589)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-marek/kmailYk8589.slave-socket"            
kmail(8589)/kio (Slave) KIO::Slave::createSlave: createSlave "file" for KUrl("file:///usr/share/apps/kmail/about/kmail.css")                         
kmail(8589)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-marek/kmailpw8589.slave-socket"            
kmail(8589)/kio (Slave) KIO::Slave::createSlave: createSlave "file" for KUrl("file:///usr/share/apps/kdeui/about/top-right.png")                     
kmail(8589)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-marek/kmailXV8589.slave-socket"            
kmail(8589)/kio (Slave) KIO::Slave::createSlave: createSlave "file" for KUrl("file:///usr/share/apps/kdeui/about/box-top-left.png")                  
kmail(8589)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-marek/kmailIA8589.slave-socket"            
QPainter::begin: Widget painting can only begin as a result of a paintEvent                                                                          
QPainter::translate: Painter not active                                                                                                              
QPainter::setClipRect: Painter not active                                                                                                            
kmail(8589) KMKernel::getFolder: Folder not found: "/Local"                                                                                          
kmail(8589)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/marek/.kde4/share/apps/kmail/imap/.1045946210.index" , "r+") == mIndexStream ==  0x2604d00                                                                                                           
kmail(8589)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/marek/.kde4/share/apps/kmail/imap/.214344794.index" , "r+") == mIndexStream ==  0x261a240                                                                                                            
kmail(8589)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/marek/.kde4/share/apps/kmail/imap/.1045946210.index" , "r+") == mIndexStream ==  0x24bfc90                                                                                                           
kmail(8589)/kdepimlibs (kabc) KABC::StdAddressBook::self: asynchronous= true                                                                         
kmail(8589)/kresources KRES::Factory::self:                                                                                                          
kmail(8589)/kresources KRES::ManagerImpl::ManagerImpl:                                                                                               
kmail(8589)/kresources KRES::ManagerImpl::readConfig:                                                                                                
kmail(8589)/kresources KRES::Factory::self:                                                                                                          
kmail(8589)/kresources KRES::ManagerImpl::readResourceConfig: "vuTxN2Mtqp"                                                                           
kmail(8589)/kresources KRES::Factory::Private::resourceInternal: ( "akonadi" , config )                                                              
kmail(8589)/kdepimlibs (kabc) KABC::StdAddressBook::StdAddressBook:                                                                                  
kmail(8589)/kdepimlibs (kabc) KABC::StdAddressBook::self: calling init after instance creation                                                       
kmail(8589)/kresources KRES::Resource::open: Opening resource "Akonadi Compatibility Resource"                                                       
kmail(8589) KMReaderWin::parseMsg: The root node is not yet processed! Danger!                                                                       
kmail(8589) KMReaderWin::parseMsg: The root node is not yet processed! Danger!                                                                       
kmail(8589) KMReaderWin::parseMsg: The root node is not yet processed! Danger!                                                                       
kmail(8589) KMReaderWin::parseMsg: The root node is not yet processed! Danger!                                                                       
kmail(8589) KMReaderWin::parseMsg: The root node is not yet processed! Danger!                                                                       
kmail(8589) KMReaderWin::parseMsg: The root node is not yet processed! Danger!                                                                       
kmail(8589) KMReaderWin::parseMsg: The root node is not yet processed! Danger!                                                                       
kmail(8589) KMKernel::getFolder: Folder not found: "/Local"                                                                                          
kmail(8589) KMKernel::getFolder: Folder not found: "/Local"                                                                                          
kmail(8589)/kdepimlibs (kabc) KABC::StdAddressBook::self: asynchronous= true                                                                         
kmail(8589) <unnamed>::UrlHandler::UrlHandler: UrlHandler() (iCalendar)                                                                              
QPainter::begin: Widget painting can only begin as a result of a paintEvent                                                                          
QPainter::translate: Painter not active                                                                                                              
QPainter::setClipRect: Painter not active                                                                                                            
QPainter::hasClipping: Painter not active                                                                                                            
QPainter::setPen: Painter not active                                                                                                                 
QPainter::setBrush: Painter not active                                                                                                               
QPainter::drawRects: Painter not active                                                                                                              
QPainter::hasClipping: Painter not active                                                                                                            
QPainter::setPen: Painter not active                                                                                                                 
QPainter::setBrush: Painter not active                                                                                                               
QPainter::drawRects: Painter not active                                                                                                              
QPainter::hasClipping: Painter not active                                                                                                            
QPainter::setPen: Painter not active                                                                                                                 
QPainter::setBrush: Painter not active                                                                                                               
QPainter::drawRects: Painter not active                                                                                                              
QPainter::hasClipping: Painter not active                                                                                                            
QPainter::setPen: Painter not active                                                                                                                 
QPainter::setBrush: Painter not active
QPainter::drawRects: Painter not active
QPainter::hasClipping: Painter not active
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::drawRects: Painter not active
QPainter::hasClipping: Painter not active
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::drawRects: Painter not active
QPainter::hasClipping: Painter not active
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::drawRects: Painter not active
QPainter::hasClipping: Painter not active
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::drawRects: Painter not active
QPainter::hasClipping: Painter not active
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::drawRects: Painter not active
QPainter::hasClipping: Painter not active
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::drawRects: Painter not active
QPainter::hasClipping: Painter not active
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::drawRects: Painter not active
kmail(8589)/kio (KIOJob) KIO::SlaveInterface::dispatch: error  111   "/_newsletter/images/icons/bg_bordertop.gif"
kmail(8589)/libakonadi Akonadi::Control::Private::exec: Could not start/stop Akonadi!
kmail(8589)/kdepimlibs (kabc): "Unable to open resource 'Akonadi Compatibility Resource'!"
kmail(8589)/kresources KRES::ManagerImpl::writeConfig:
kmail(8589)/kresources KRES::ManagerImpl::writeResourceConfig: Saving resource "vuTxN2Mtqp"
kmail(8589)/kresources KRES::Resource::writeConfig:
kmail(8589)/kresources KRES::ManagerImpl::writeConfig: Saving general info
kmail(8589)/kresources KRES::ManagerImpl::writeConfig: finished
kmail(8589)/kdepimlibs (kabc) KABC::AddressBook::asyncLoad:
kmail(8589)/kdepimlibs (kabc): "Unable to load resource 'Akonadi Compatibility Resource'"
*** KMail got signal 11 (Crashing)
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kmail path = <unknown> pid = 8589
sock_file=/home/marek/.kde4/socket-eriador/kdeinit4__0

(gdb) backtrace
No stack.
(gdb)
Comment 3 Christophe Marin 2009-06-11 22:57:16 UTC
If you want to use gdb, use this command line : 

gdb --args kmail --nofork

(then 'run', trigger the crash and 'bt'). 
That will only give a useful result if you have the debug symbols for kdepim and kdepimlibs.
Comment 4 Marek Zachara 2009-06-13 16:38:08 UTC
i got the following when running kmail in gdb:

(gdb) run                                                                    
Starting program: /usr/bin/kmail --nofork                                    
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
kmail(6214)/kdepimlibs (mailtransport) MailTransport::Transport::Transport: "1056545306"
kmail(6214)/kdepimlibs (mailtransport) MailTransport::Transport::Transport: "1102776931"
kmail(6214)/kdepimlibs (mailtransport) MailTransport::Transport::Transport: "1560886518"
kmail(6214)/kdepimlibs (mailtransport) MailTransport::Transport::Transport: "181420376" 
kmail(6214)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from  "/var/tmp/kdecache-marek/ksycoca4"
kmail(6214) KMMsgDict::readFolderIds: Found serial number zero at index 1891 in folder "/home/marek/.kde4/share/apps/kmail/imap/.1045946210.directory/.INBOX.index.ids"                                                                                                                                   
kmail(6214) KMMsgDict::readFolderIds: Found serial number zero at index 1892 in folder "/home/marek/.kde4/share/apps/kmail/imap/.1045946210.directory/.INBOX.index.ids"                                                                                                                                   
kmail(6214) KMMsgDict::readFolderIds: Found serial number zero at index 16 in folder "/home/marek/.kde4/share/apps/kmail/imap/.1045946210.directory/.INBOX.directory/.AGH.directory/.KN.index.ids"                                                                                                        
kmail(6214) KMMsgDict::readFolderIds: Found serial number zero at index 17 in folder "/home/marek/.kde4/share/apps/kmail/imap/.1045946210.directory/.INBOX.directory/.AGH.directory/.KN.index.ids"                                                                                                        
kmail(6214) KMMsgDict::readFolderIds: Found serial number zero at index 18 in folder "/home/marek/.kde4/share/apps/kmail/imap/.1045946210.directory/.INBOX.directory/.AGH.directory/.KN.index.ids"                                                                                                        
kmail(6214) KMMsgDict::readFolderIds: Found serial number zero at index 19 in folder "/home/marek/.kde4/share/apps/kmail/imap/.1045946210.directory/.INBOX.directory/.AGH.directory/.KN.index.ids"                                                                                                        
kmail(6214)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/marek/.kde4/share/apps/kmail/mail/.outbox.index" , "r+") == mIndexStream ==  0x161b310                                                                                                               
kmail(6214)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/marek/.kde4/share/apps/kmail/mail/.drafts.index" , "r+") == mIndexStream ==  0x176f540                                                                                                               
kmail(6214)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/marek/.kde4/share/apps/kmail/mail/.templates.index" , "r+") == mIndexStream ==  0x176d150                                                                                                            
kmail(6214)/kdepimlibs (kpgp) Kpgp::Module::checkForPGP: Kpgp: gpg found                                                                             
kmail(6214)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/marek/.kde4/share/apps/kmail/mail/.inbox.index" , "r+") == mIndexStream ==  0x1d7b6c0                                                                                                                
kmail(6214)/kmail (storage internals) KMFolderMaildir::reallyDoClose: fclose(mIndexStream =  0x1d7b6c0 )                                             
kmail(6214)/kio (Slave) KIO::Slave::createSlave: createSlave "imaps" for KUrl("imaps://marek@mail.conexe.com:993")                                   
kmail(6214)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-marek/kmailcl6214.slave-socket"            
kmail(6214)/kio (Slave) KIO::Slave::createSlave: createSlave "imaps" for KUrl("imaps://mzachara@mail.ecredit-egypt.com:993")                         
kmail(6214)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-marek/kmailMr6214.slave-socket"            
kmail(6214)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/marek/.kde4/share/apps/kmail/mail/.inbox.index" , "r+") == mIndexStream ==  0x1d93b00                                                                                                                
kmail(6214)/kmail (storage internals) KMFolderMaildir::reallyDoClose: fclose(mIndexStream =  0x1d93b00 )                                             
kmail(6214)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/marek/.kde4/share/apps/kmail/mail/.inbox.index" , "r+") == mIndexStream ==  0x1eacd70                                                                                                                
kmail(6214)/kmail (storage internals) KMFolderMaildir::reallyDoClose: fclose(mIndexStream =  0x1eacd70 )                                             
kmail(6214)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/marek/.kde4/share/apps/kmail/imap/.1045946210.directory/.INBOX.index" , "r+") == mIndexStream ==  0x1dfec70                                                                                          
[New LWP 6221]                                                                                                                                       
[New LWP 6222]                                                                                                                                       
kmail(6214)/kio (Slave) KIO::Slave::createSlave: createSlave "file" for KUrl("file:///usr/share/apps/kdeui/about/kde_infopage.css")                  
kmail(6214)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-marek/kmailKB6214.slave-socket"            
kmail(6214)/kio (Slave) KIO::Slave::createSlave: createSlave "file" for KUrl("file:///usr/share/apps/kmail/about/kmail.css")                         
kmail(6214)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-marek/kmailYk6214.slave-socket"            
QPainter::begin: Widget painting can only begin as a result of a paintEvent                                                                          
QPainter::translate: Painter not active                                                                                                              
QPainter::setClipRect: Painter not active                                                                                                            
kmail(6214)/kio (Slave) KIO::Slave::createSlave: createSlave "file" for KUrl("file:///usr/share/apps/kdeui/about/box-top-left.png")                  
kmail(6214)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-marek/kmailpw6214.slave-socket"            
kmail(6214)/kio (Slave) KIO::Slave::createSlave: createSlave "file" for KUrl("file:///usr/share/apps/kdeui/about/box-top-right.png")                 
kmail(6214)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-marek/kmailXV6214.slave-socket"            
kmail(6214) KMKernel::getFolder: Folder not found: "/Local"                                                                                          
kmail(6214)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/marek/.kde4/share/apps/kmail/imap/.1045946210.index" , "r+") == mIndexStream ==  0x2239dc0                                                                                                           
kmail(6214)/kdeui (KNotification) KNotification::slotReceivedId: 0                                                                                   
kmail(6214)/kdeui (KNotification) KNotification::close: 0                                                                                            
kmail(6214)/kdeui (KNotification) KNotification::~KNotification: -2                                                                                  
kmail(6214)/kdepimlibs (kabc) KABC::StdAddressBook::self: asynchronous= true                                                                         
kmail(6214)/kresources KRES::Factory::self:                                                                                                          
kmail(6214)/kresources KRES::ManagerImpl::ManagerImpl:                                                                                               
kmail(6214)/kresources KRES::ManagerImpl::readConfig:                                                                                                
kmail(6214)/kresources KRES::Factory::self:                                                                                                          
kmail(6214)/kresources KRES::ManagerImpl::readResourceConfig: "vuTxN2Mtqp"                                                                           
kmail(6214)/kresources KRES::Factory::Private::resourceInternal: ( "akonadi" , config )                                                              
[New LWP 6214]                                                                                                                                       
kmail(6214)/kdepimlibs (kabc) KABC::StdAddressBook::StdAddressBook:                                                                                  
kmail(6214)/kdepimlibs (kabc) KABC::StdAddressBook::self: calling init after instance creation                                                       
kmail(6214)/kresources KRES::Resource::open: Opening resource "Akonadi Compatibility Resource"                                                       
kmail(6214)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/marek/.kde4/share/apps/kmail/imap/.1045946210.index" , "r+") == mIndexStream ==  0x210b130                                                                                                           
kmail(6214) KMKernel::getFolder: Folder not found: "/Local"                                                                                          
kmail(6214)/kdepimlibs (kabc) KABC::StdAddressBook::self: asynchronous= true                                                                         
kmail(6214) <unnamed>::UrlHandler::UrlHandler: UrlHandler() (iCalendar)                                                                              
kmail(6214) KMReaderWin::parseMsg: The root node is not yet processed! Danger!                                                                       
kmail(6214) KMKernel::getFolder: Folder not found: "/Local"                                                                                          
kmail(6214) KMKernel::getFolder: Folder not found: "/Local"                                                                                          
kmail(6214) KMKernel::getFolder: Folder not found: "/Local"                                                                                          
kmail(6214) KMReaderWin::parseMsg: The root node is not yet processed! Danger!                                                                       
kmail(6214) KMReaderWin::parseMsg: The root node is not yet processed! Danger!                                                                       
kmail(6214) KMReaderWin::parseMsg: The root node is not yet processed! Danger!                                                                       
kmail(6214) KMReaderWin::parseMsg: The root node is not yet processed! Danger!                                                                       
kmail(6214) KMReaderWin::parseMsg: The root node is not yet processed! Danger!                                                                       
kmail(6214)/libakonadi Akonadi::Control::Private::exec: Could not start/stop Akonadi!                                                                
kmail(6214)/kdepimlibs (kabc): "Unable to open resource 'Akonadi Compatibility Resource'!"                                                           
kmail(6214)/kresources KRES::ManagerImpl::writeConfig:                                                                                               
kmail(6214)/kresources KRES::ManagerImpl::writeResourceConfig: Saving resource "vuTxN2Mtqp"                                                          
kmail(6214)/kresources KRES::Resource::writeConfig:                                                                                                  
kmail(6214)/kresources KRES::ManagerImpl::writeConfig: Saving general info                                                                           
kmail(6214)/kresources KRES::ManagerImpl::writeConfig: finished                                                                                      
kmail(6214)/kdepimlibs (kabc) KABC::AddressBook::asyncLoad:                                                                                          
kmail(6214)/kdepimlibs (kabc): "Unable to load resource 'Akonadi Compatibility Resource'"                                                            

Program received signal SIGSEGV, Segmentation fault.
0x00007f3209f7058a in DwEntity::Headers () from /usr/lib64/libmimelib.so.4
(gdb) bt
#0  0x00007f3209f7058a in DwEntity::Headers () from /usr/lib64/libmimelib.so.4
#1  0x00007f3210680140 in ?? () from /usr/lib64/libkmailprivate.so.4
#2  0x00007f3210680f89 in ?? () from /usr/lib64/libkmailprivate.so.4
#3  0x00007f3210806a45 in ?? () from /usr/lib64/libkmailprivate.so.4
#4  0x00007f32107195c6 in ?? () from /usr/lib64/libkmailprivate.so.4
#5  0x00007f3210725e40 in ?? () from /usr/lib64/libkmailprivate.so.4
#6  0x00007f321071e151 in ?? () from /usr/lib64/libkmailprivate.so.4
#7  0x00007f321071e2fa in ?? () from /usr/lib64/libkmailprivate.so.4
#8  0x00007f321071e77b in ?? () from /usr/lib64/libkmailprivate.so.4
#9  0x00007f3210717b2f in ?? () from /usr/lib64/libkmailprivate.so.4
#10 0x00007f321072123f in ?? () from /usr/lib64/libkmailprivate.so.4
#11 0x00007f320ff278a5 in QMetaObject::activate () from /usr/lib64/qt4/libQtCore.so.4
#12 0x00007f3210863ff9 in ?? () from /usr/lib64/libkmailprivate.so.4
#13 0x00007f321086b2af in ?? () from /usr/lib64/libkmailprivate.so.4
#14 0x00007f321086bd05 in ?? () from /usr/lib64/libkmailprivate.so.4
#15 0x00007f320ff278a5 in QMetaObject::activate () from /usr/lib64/qt4/libQtCore.so.4
#16 0x00007f3210e7dd6a in KJob::result () from /usr/lib64/libkdecore.so.5
#17 0x00007f3210e7e0c3 in KJob::emitResult () from /usr/lib64/libkdecore.so.5
#18 0x00007f32092b1f30 in KIO::SimpleJob::slotFinished () from /usr/lib64/libkio.so.5
#19 0x00007f32092b241d in KIO::TransferJob::slotFinished () from /usr/lib64/libkio.so.5
#20 0x00007f32092b7858 in KIO::TransferJob::qt_metacall () from /usr/lib64/libkio.so.5
#21 0x00007f320ff278a5 in QMetaObject::activate () from /usr/lib64/qt4/libQtCore.so.4
#22 0x00007f32093338e3 in KIO::SlaveInterface::dispatch () from /usr/lib64/libkio.so.5
#23 0x00007f3209333ed9 in KIO::SlaveInterface::dispatch () from /usr/lib64/libkio.so.5
#24 0x00007f320932961f in KIO::Slave::gotInput () from /usr/lib64/libkio.so.5
#25 0x00007f320932a5b1 in KIO::Slave::qt_metacall () from /usr/lib64/libkio.so.5
#26 0x00007f320ff278a5 in QMetaObject::activate () from /usr/lib64/qt4/libQtCore.so.4
#27 0x00007f3209290364 in ?? () from /usr/lib64/libkio.so.5
#28 0x00007f3209290fac in KIO::Connection::qt_metacall () from /usr/lib64/libkio.so.5
#29 0x00007f320ff25f8b in QObject::event () from /usr/lib64/qt4/libQtCore.so.4
#30 0x00007f320f4ffa40 in QApplicationPrivate::notify_helper () from /usr/lib64/qt4/libQtGui.so.4
#31 0x00007f320f50608a in QApplication::notify () from /usr/lib64/qt4/libQtGui.so.4
#32 0x00007f32113b053a in KApplication::notify () from /usr/lib64/libkdeui.so.5
#33 0x00007f320ff1806c in QCoreApplication::notifyInternal () from /usr/lib64/qt4/libQtCore.so.4
#34 0x00007f320ff18f58 in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib64/qt4/libQtCore.so.4
#35 0x00007f320ff39945 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#36 0x00007f32076bad3f in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#37 0x00007f32076bdc5d in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#38 0x00007f32076be1a7 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#39 0x00007f320ff39d90 in QEventDispatcherGlib::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#40 0x00007f320f57652c in ?? () from /usr/lib64/qt4/libQtGui.so.4
#41 0x00007f320ff1766b in QEventLoop::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#42 0x00007f320ff177c8 in QEventLoop::exec () from /usr/lib64/qt4/libQtCore.so.4
#43 0x00007f320ff191e3 in QCoreApplication::exec () from /usr/lib64/qt4/libQtCore.so.4
#44 0x000000000040323c in _start ()
(gdb)
Comment 5 Myriam Schweingruber 2012-07-08 20:06:04 UTC
This backtrace lacks useful debugging symbols. Which exact version is this about? Is this reproducible with Kmail2?
Comment 6 Marek Zachara 2012-07-09 05:46:00 UTC
Well, this bug is 3 years old - and somehow got resolved on the way to KDE 4.8.
At least I'm not experiencing these crashes for quite some time now :)