Bug 180251

Summary: crash using offline imap when del eting message
Product: [Unmaintained] kmail Reporter: Freek de Kruijf <f.de.kruijf>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: james, jtamate, w.richert
Priority: NOR    
Version: 1.10.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Freek de Kruijf 2009-01-10 14:32:04 UTC
Version:           1.10.3 (using KDE 4.1.3)
OS:                Linux
Installed from:    SuSE RPMs

I have two offline imap accounts in KMail. Downloading/refreshing these accounts works OK. Opening a new message in the inbox folder is OK and the status changes from unread to read.
However pressing Del or choosing Delete in the pulldown box crashes the application (both Kontact and KMail).
Comment 1 Freek de Kruijf 2009-01-10 14:33:54 UTC
kmail.kcrash is:
Programma: KMail (kmail), signaal SIGFPE
[?1034h(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
(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)
(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)
(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)
(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)
(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)
(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)
(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)
(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)
(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)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#5  0x00007f303d397e1e in Q3GDict::look_string(QString const&, void*, int) ()
   from /usr/lib64/libQt3Support.so.4
#6  0x00007f3042a3debd in ?? () from /usr/lib64/libkmailprivate.so.4
#7  0x00007f3042a53c9f in ?? () from /usr/lib64/libkmailprivate.so.4
#8  0x00007f3044747454 in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/lib64/libQtCore.so.4
#9  0x00007f3042a93b16 in ?? () from /usr/lib64/libkmailprivate.so.4
#10 0x00007f3042a93fdf in ?? () from /usr/lib64/libkmailprivate.so.4
#11 0x00007f3044747454 in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/lib64/libQtCore.so.4
#12 0x00007f3042ab6526 in ?? () from /usr/lib64/libkmailprivate.so.4
#13 0x00007f3042ab8c84 in ?? () from /usr/lib64/libkmailprivate.so.4
#14 0x00007f3042b7ef3b in ?? () from /usr/lib64/libkmailprivate.so.4
#15 0x00007f3042b7dcd5 in ?? () from /usr/lib64/libkmailprivate.so.4
#16 0x00007f3042ab74ae in ?? () from /usr/lib64/libkmailprivate.so.4
#17 0x00007f3042c33bb2 in KMMoveCommand::execute() ()
   from /usr/lib64/libkmailprivate.so.4
#18 0x00007f3042c22a62 in KMCommand::slotPostTransfer(KMCommand::Result) ()
   from /usr/lib64/libkmailprivate.so.4
#19 0x00007f3042c2c4ee in KMCommand::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libkmailprivate.so.4
#20 0x00007f3042c2c785 in KMMoveCommand::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libkmailprivate.so.4
#21 0x00007f3044747454 in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/lib64/libQtCore.so.4
#22 0x00007f3042c1f91e in KMCommand::messagesTransfered(KMCommand::Result) ()
   from /usr/lib64/libkmailprivate.so.4
#23 0x00007f3042c34959 in KMCommand::transferSelectedMsgs() ()
   from /usr/lib64/libkmailprivate.so.4
#24 0x00007f3042c34b5d in KMCommand::slotStart() ()
   from /usr/lib64/libkmailprivate.so.4
#25 0x00007f3042c2c502 in KMCommand::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libkmailprivate.so.4
#26 0x00007f3042c2c785 in KMMoveCommand::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libkmailprivate.so.4
#27 0x00007f3044747454 in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/lib64/libQtCore.so.4
#28 0x00007f304474d6ff in ?? () from /usr/lib64/libQtCore.so.4
#29 0x00007f3044741da3 in QObject::event(QEvent*) ()
   from /usr/lib64/libQtCore.so.4
#30 0x00007f303a6271bd in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    () from /usr/lib64/libQtGui.so.4
#31 0x00007f303a62ef8a in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib64/libQtGui.so.4
#32 0x00007f303c130bab in KApplication::notify(QObject*, QEvent*) ()
   from /usr/lib64/libkdeui.so.5
#33 0x00007f3044733091 in QCoreApplication::notifyInternal(QObject*, QEvent*)
    () from /usr/lib64/libQtCore.so.4
#34 0x00007f304475f1c0 in ?? () from /usr/lib64/libQtCore.so.4
#35 0x00007f304475b58d in ?? () from /usr/lib64/libQtCore.so.4
#36 0x00007f3037afb0db in g_main_context_dispatch ()
   from /usr/lib64/libglib-2.0.so.0
#37 0x00007f3037afe8ad in ?? () from /usr/lib64/libglib-2.0.so.0
#38 0x00007f3037afea6b in g_main_context_iteration ()
   from /usr/lib64/libglib-2.0.so.0
#39 0x00007f304475b4ef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#40 0x00007f303a6b797f in ?? () from /usr/lib64/libQtGui.so.4
#41 0x00007f30447319a2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#42 0x00007f3044731b2d in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#43 0x00007f3044733ffd in QCoreApplication::exec() ()
   from /usr/lib64/libQtCore.so.4
#44 0x00000000004030db in _start ()
Comment 2 Jaime Torres 2009-01-10 23:31:34 UTC
Hi, thanks for your bug report.
Unfortunately, the backtrace you posted is not very useful. You can read in:
http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports 
further instructions on how to get a more detailed one. 
Thank you. 
Comment 3 Freek de Kruijf 2009-01-12 13:42:40 UTC
I added all the KDE4.1 repositories of openSUSE 11.1 and updated all KDE4 packages. However there is no libkmailprivate-debuginfo package in these repositories.
I could make a test account on my server so you can access the test imap account with imap offline and experience the crash yourself.
Please indicate if you are interested and I will make the test account and test if that account has the same problem.
Comment 4 Jaime Torres 2009-01-12 13:50:46 UTC
The debug packages are:

kdepim4-debuginfo, (and, optionally, with more information) kdepim4-debugsource,
kdepimlibs4-debuginfo and kdepimlibs4-debugsource.
Comment 5 Freek de Kruijf 2009-01-12 14:58:37 UTC
Programma: KMail (kmail), signaal SIGFPE
[Thread debugging using libthread_db enabled]
[KCrash handler]                             
#5  0x00007f070a8e7e1e in Q3GDict::look_string(QString const&, void*, int) ()
   from /usr/lib64/libQt3Support.so.4                                        
#6  0x00007f070ff8decd in KMHeaders::msgRemoved (this=0xa77f50, id=337,      
    msgId=@0x7fff1a182720) at /usr/include/Qt3Support/q3dict.h:77            
#7  0x00007f070ffa3caf in KMHeaders::qt_metacall (this=0xa77f50,             
    _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>,             
    _a=0x7fff1a1825b0)                                                       
    at /usr/src/debug/kdepim-4.1.3/build/kmail/kmheaders.moc:155             
#8  0x00007f0711c97454 in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/lib64/libQtCore.so.4                                             
#9  0x00007f070ffe3b26 in KMFolder::msgRemoved (this=0x16, _t1=337,           
    _t2=<value optimized out>)                                                
    at /usr/src/debug/kdepim-4.1.3/build/kmail/kmfolder.moc:193               
#10 0x00007f070ffe3fef in KMFolder::qt_metacall (this=0xa45a10,               
    _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>,              
    _a=0x7fff1a1826f0)                                                        
    at /usr/src/debug/kdepim-4.1.3/build/kmail/kmfolder.moc:114               
#11 0x00007f0711c97454 in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/lib64/libQtCore.so.4                                             
#12 0x00007f0710006536 in FolderStorage::msgRemoved (this=0x16, _t1=337,      
    _t2=<value optimized out>)                                                
    at /usr/src/debug/kdepim-4.1.3/build/kmail/folderstorage.moc:220          
#13 0x00007f0710008c94 in FolderStorage::take (this=0xa45b10, idx=337)        
    at /usr/src/debug/kdepim-4.1.3/kmail/folderstorage.cpp:451                
#14 0x00007f07100cef5b in KMFolderMaildir::take (this=0x16, idx=22)           
    at /usr/src/debug/kdepim-4.1.3/kmail/kmfoldermaildir.cpp:919              
#15 0x00007f07100cdcf5 in KMFolderMaildir::addMsgInternal (this=0xa40c50,     
    aMsg=0x109bad0, index_return=0x7fff1a182b7c, stripUid=false)              
    at /usr/src/debug/kdepim-4.1.3/kmail/kmfoldermaildir.cpp:423              
#16 0x00007f07100074be in FolderStorage::moveMsg (this=0xa40c50,              
    aMsg=0x109bad0, aIndex_ret=0x7fff1a182b7c)                                
    at /usr/src/debug/kdepim-4.1.3/kmail/folderstorage.cpp:610                
#17 0x00007f0710183be2 in KMMoveCommand::execute (this=0xe219c0)              
    at /usr/src/debug/kdepim-4.1.3/kmail/kmcommands.cpp:2115                  
#18 0x00007f0710172a92 in KMCommand::slotPostTransfer (this=0xe219c0,         
    result=KMCommand::OK)                                                     
    at /usr/src/debug/kdepim-4.1.3/kmail/kmcommands.cpp:273                   
#19 0x00007f071017c51e in KMCommand::qt_metacall (this=0xe219c0,              
    _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>,              
    _a=0x7fff1a182d40)                                                        
    at /usr/src/debug/kdepim-4.1.3/build/kmail/kmcommands.moc:86              
#20 0x00007f071017c7b5 in KMMoveCommand::qt_metacall (this=0x16, _c=22, _id=0, 
    _a=0x69dc8ec7)                                                             
    at /usr/src/debug/kdepim-4.1.3/build/kmail/kmcommands.moc:1662             
#21 0x00007f0711c97454 in QMetaObject::activate(QObject*, int, int, void**) () 
   from /usr/lib64/libQtCore.so.4                                              
#22 0x00007f071016f94e in KMCommand::messagesTransfered (this=0x16,            
    _t1=KMCommand::OK)                                                         
    at /usr/src/debug/kdepim-4.1.3/build/kmail/kmcommands.moc:100              
#23 0x00007f0710184989 in KMCommand::transferSelectedMsgs (this=0xe219c0)      
    at /usr/src/debug/kdepim-4.1.3/kmail/kmcommands.cpp:367                    
#24 0x00007f0710184b8d in KMCommand::slotStart (this=0xe219c0)                 
    at /usr/src/debug/kdepim-4.1.3/kmail/kmcommands.cpp:265                    
#25 0x00007f071017c532 in KMCommand::qt_metacall (this=0xe219c0,               
    _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>,               
    _a=0x7fff1a182f90)
    at /usr/src/debug/kdepim-4.1.3/build/kmail/kmcommands.moc:85
#26 0x00007f071017c7b5 in KMMoveCommand::qt_metacall (this=0x16, _c=22, _id=0,
    _a=0x69dc8ec7)
    at /usr/src/debug/kdepim-4.1.3/build/kmail/kmcommands.moc:1662
#27 0x00007f0711c97454 in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/lib64/libQtCore.so.4
#28 0x00007f0711c9d6ff in ?? () from /usr/lib64/libQtCore.so.4
#29 0x00007f0711c91da3 in QObject::event(QEvent*) ()
   from /usr/lib64/libQtCore.so.4
#30 0x00007f0707b771bd in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    () from /usr/lib64/libQtGui.so.4
#31 0x00007f0707b7ef8a in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib64/libQtGui.so.4
#32 0x00007f0709680bab in KApplication::notify(QObject*, QEvent*) ()
   from /usr/lib64/libkdeui.so.5
#33 0x00007f0711c83091 in QCoreApplication::notifyInternal(QObject*, QEvent*)
    () from /usr/lib64/libQtCore.so.4
#34 0x00007f0711caf1c0 in ?? () from /usr/lib64/libQtCore.so.4
#35 0x00007f0711cab58d in ?? () from /usr/lib64/libQtCore.so.4
#36 0x00007f070504b0db in g_main_context_dispatch ()
   from /usr/lib64/libglib-2.0.so.0
#37 0x00007f070504e8ad in ?? () from /usr/lib64/libglib-2.0.so.0
#38 0x00007f070504ea6b in g_main_context_iteration ()
   from /usr/lib64/libglib-2.0.so.0
#39 0x00007f0711cab4ef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore
.so.4
#40 0x00007f0707c0797f in ?? () from /usr/lib64/libQtGui.so.4
#41 0x00007f0711c819a2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#42 0x00007f0711c81b2d in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#43 0x00007f0711c83ffd in QCoreApplication::exec() ()
   from /usr/lib64/libQtCore.so.4
#44 0x00000000004030db in main (argc=<value optimized out>,
    argv=<value optimized out>)
    at /usr/src/debug/kdepim-4.1.3/kmail/main.cpp:146
Comment 6 Jaime Torres 2009-01-12 16:22:49 UTC
This bug is related to bug 127107, bug 159854, bug 172504 and bug 160983
(Some of them with the same backtrace).

As you are able to reproduce it at wish, I pass it to developers.
Comment 7 Thomas McGuire 2009-01-12 16:31:57 UTC
Fixed in KDE 4.2.0, in any case, because of the new message list. I guess.
But there is no KMHeaders and Q3Dict anymore, so chances are good.
Comment 8 Freek de Kruijf 2009-01-14 17:50:36 UTC
I installed KMail from the repository http://download.opensuse.org/repositories/KDE:/KDE4:/Factory:/Desktop/openSUSE_11.1/, which version is 1.10.92. The reported KDE is 4.1.87 which seems to be 4.2 after 20090101. This version works OK.
Comment 9 Dario Andres 2009-01-20 00:15:40 UTC
*** Bug 172504 has been marked as a duplicate of this bug. ***
Comment 10 Dario Andres 2009-01-28 02:46:30 UTC
*** Bug 182119 has been marked as a duplicate of this bug. ***