Bug 199271 - Crash after compacting a mbox folder [QVector::*, KMFolderIndex::getMsgBase, KMFolder::getMsgBase, KMail::MessageListView::StorageModel::initializeMessageItem]
Summary: Crash after compacting a mbox folder [QVector::*, KMFolderIndex::getMsgBase, ...
Status: RESOLVED INTENTIONAL
Alias: None
Product: kmail
Classification: Unmaintained
Component: general (show other bugs)
Version: 1.12.90
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 196175 201054 202845 203337 203579 205022 205610 206968 207642 209036 209608 209667 210777 212186 213986 217597 217703 217887 219085 220912 220927 220930 225051 233186 247023 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-07 12:23 UTC by Christophe Marin
Modified: 2011-07-06 22:17 UTC (History)
26 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Full backtrace. (108.97 KB, text/plain)
2009-07-07 12:41 UTC, Christophe Marin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe Marin 2009-07-07 12:23:20 UTC
Version:           1.12.90 (using Devel)
Compiler:          gcc 4.4 
OS:                Linux
Installed from:    Compiled sources

Bug 196175 could have the same origin. 

I was trying to reproduce #197705 but didn't have luck.

What I did: 
- Create a Inbox/test subdir, type mbox,
- Moved a few messages there,
- RMB/Compact directory.

Boom.

kmail(9891) KMail::MboxCompactionJob::executeNow: Compacting ".inbox.directory/test"                                                                                                                 
kmail(9891) KMail::MboxCompactionJob::executeNow: MboxCompactionJob: starting to compact folder "/home/krop/.kde/share/apps/kmail/mail/.inbox.directory/test" into "/home/krop/.kde/share/apps/kmail/mail/.inbox.directory/.test.compacted"                                                                                                                                                               
kmail(9891) KMail::MessageListView::Core::Model::slotStorageModelLayoutChanged: Storage model layout changed                                                                                         
kmail(9891) KMail::MessageListView::Core::Model::printStatistics: Finished filling the view with 49 messages                                                                                         
kmail(9891) KMail::MessageListView::Core::Model::printStatistics: That took 2 msecs inside the model and 2 in total.                                                                                 
kmail(9891) KMail::MessageListView::Core::Model::printStatistics: 100 percent of the time was spent in the model.                                                                                    
kmail(9891) KMail::MessageListView::Core::Model::printStatistics: Time for layoutChanged(), in msecs: 0 ( 0 percent )                                                                                
kmail(9891) KMail::MessageListView::Core::Model::printStatistics: Time to expand tree, in msecs: 0 ( 0 percent )                                                                                     
kmail(9891) KMail::MessageListView::Core::Model::printStatistics: Number of messages per second in the model: 24500                                                                                  
kmail(9891) KMail::MessageListView::Core::Model::printStatistics: Number of messages per second in total: 24500                                                                                      
kmail(9891) KMail::MessageListView::Core::Model::printStatistics: Number of threads: 50                                                                                                              
kmail(9891) KMail::MessageListView::Core::Model::printStatistics: Number of groups: 2                                                                                                                
kmail(9891) KMail::MessageListView::Core::Model::printStatistics: Messages per thread: 0.98                                                                                                          
kmail(9891) KMail::MessageListView::Core::Model::printStatistics: Threads per group: 25                                                                                                              
kmail(9891) KMail::MessageListView::Core::Model::printStatistics: Messages with the same subject: Max: 13 Avg: 2                                                                                     
kmail(9891) KMail::MessageListView::Core::Model::printStatistics:                                                                                                                                    
kmail(9891) KMail::MessageListView::Core::Model::printStatistics: Now follows a breakdown of the jobs.                                                                                               
kmail(9891) KMail::MessageListView::Core::Model::printStatistics:                                                                                                                                    
kmail(9891) KMail::MessageListView::Core::Model::printStatistics: ----------------------------------------------                                                                                     
kmail(9891) KMail::MessageListView::Core::Model::printStatistics: Job 1 ( Creating items from messages and simple threading )                                                                        
kmail(9891) KMail::MessageListView::Core::Model::printStatistics: Share of complete time: 100 percent                                                                                                
kmail(9891) KMail::MessageListView::Core::Model::printStatistics: Time in msecs: 2                                                                                                                   
kmail(9891) KMail::MessageListView::Core::Model::printStatistics: Number of elements: 49                                                                                                             
kmail(9891) KMail::MessageListView::Core::Model::printStatistics: Elements per second: 24500                                                                                                         
kmail(9891) KMail::MessageListView::Core::Model::printStatistics: Number of chunks: 1                                                                                                                
kmail(9891) KMail::MessageListView::Core::Model::printStatistics:                                                                                                                                    
kmail(9891) KMail::MessageListView::Core::Model::printStatistics: ==========================================================                                                                         
kmail(9891) KMail::MessageListView::Core::Model::slotStorageModelLayoutChanged: Storage model layout changed done                                                                                    
kmail(9891) KMail::MboxCompactionJob::done: "Folder "test" successfully compacted"                                                                                                                   
kmail(9891) KMail::MessageListView::Core::Model::slotStorageModelLayoutChanged: Storage model layout changed                                                                                         
ASSERT failure in QVector<T>::operator[]: "index out of range", file /usr/include/QtCore/qvector.h, line 337                                                                                         

Program received signal SIGABRT, Aborted.
0xb5b449d6 in raise () from /lib/libc.so.6
(gdb) thread 1
[Switching to thread 1 (Thread 0xb391a710 (LWP 9891))]#0  0xb5b449d6 in raise () from /lib/libc.so.6
(gdb) bt full                                                                                       
#0  0xb5b449d6 in raise () from /lib/libc.so.6                                                      
No symbol table info available.                                                                     
#1  0xb5b462d8 in abort () from /lib/libc.so.6                                                      
No symbol table info available.                                                                     
#2  0xb68fb2b5 in qt_message_output (msgType=QtFatalMsg, buf=0x8ece308 "ASSERT failure in QVector<T>::operator[]: \"index out of range\", file /usr/include/QtCore/qvector.h, line 337")
    at global/qglobal.cpp:2042                                                                                                                                                          
No locals.                                                                                                                                                                              
#3  0xb68fb3a1 in qFatal (msg=0xb6a4abc8 "ASSERT failure in %s: \"%s\", file %s, line %d") at global/qglobal.cpp:2241                                                                   
        buf = {d = 0x8c50c28}                                                                                                                                                           
#4  0xb68fb44c in qt_assert_x (where=0xb77f3a1e "QVector<T>::operator[]", what=0xb77f39fc "index out of range", file=0xb77f39de "/usr/include/QtCore/qvector.h", line=337)              
    at global/qglobal.cpp:1819                                                                                                                                                          
No locals.                                                                                                                                                                              
#5  0xb7496ded in QVector<KMMsgBase*>::operator[] (this=0x82c0dc8, i=8) at /usr/include/QtCore/qvector.h:337                                                                            
No locals.                                                                                                                                                                              
#6  0xb74c137b in KMFolderIndex::getMsgBase (this=0x82c0d78, idx=8) at /home/krop/kde/src/KDE/kdepim/kmail/kmfolderindex.h:73                                                           
No locals.                                                                                                                                                                              
#7  0xb73fef9f in KMFolder::getMsgBase (this=0x82abc18, idx=8) at /home/krop/kde/src/KDE/kdepim/kmail/kmfolder.cpp:415                                                                  
No locals.                                                                                                                                                                              
#8  0xb770a6f1 in KMail::MessageListView::StorageModel::initializeMessageItem (this=0x8b9f300, mi=0x8e24320, row=8, bUseReceiver=false)                                                 
    at /home/krop/kde/src/KDE/kdepim/kmail/messagelistview/storagemodel.cpp:383                                                                                                         
        unknown = {d = 0x8ad4548}                                                                                                                                                       
        msg = 0xbfff89e8                                                                                                                                                                
        stat = {mStatus = -1073772084}                                                                                                                                                  
        clr = {cspec = 149883624, ct = {argb = {alpha = 40948, red = 47002, green = 35304, blue = 49151, pad = 3279}, ahsv = {alpha = 40948, hue = 47002, saturation = 35304, value = 49151, 
              pad = 3279}, acmyk = {alpha = 40948, cyan = 47002, magenta = 35304, yellow = 49151, black = 3279}}}                                                                            
        sender = {d = 0xb79a9ff4}                                                                                                                                                            
        receiver = {d = 0xffffffff}                                                                                                                                                          
        noSubject = {d = 0x8b0dc90}                                                                                                                                                          
        subject = {d = 0x8ef0ae8}                                                                                                                                                            
        backClr = {cspec = 149883624, ct = {argb = {alpha = 8387, red = 46971, green = 0, blue = 0, pad = 40948}, ahsv = {alpha = 8387, hue = 46971, saturation = 0, value = 0, pad = 40948}, 
            acmyk = {alpha = 8387, cyan = 46971, magenta = 0, yellow = 0, black = 40948}}}                                                                                                    
        tagList = 0x8daaf68                                                                                                                                                                   
#9  0xb773252e in KMail::MessageListView::Core::Model::viewItemJobStepInternalForJobPass1Fill (this=0x840c9a0, job=0x8da2e28, tStart=@0xbfff8bb8)                                             
    at /home/krop/kde/src/KDE/kdepim/kmail/messagelistview/core/model.cpp:2735                                                                                                                
        bUseReceiver = false                                                                                                                                                                  
        curIndex = 8                                                                                                                                                                          
        mi = 0x8e24320                                                                                                                                                                        
        __PRETTY_FUNCTION__ = "KMail::MessageListView::Core::Model::ViewItemJobResult KMail::MessageListView::Core::Model::viewItemJobStepInternalForJobPass1Fill(KMail::MessageListView::Core::ViewItemJob*, const QTime&)"                                                                                                                                                                              
        elapsed = 183                                                                                                                                                                                
        endIndex = 49                                                                                                                                                                                
#10 0xb7733d18 in KMail::MessageListView::Core::Model::viewItemJobStepInternalForJob (this=0x840c9a0, job=0x8da2e28, tStart=@0xbfff8bb8)                                                             
    at /home/krop/kde/src/KDE/kdepim/kmail/messagelistview/core/model.cpp:3397                                                                                                                       
        elapsed = 134726688                                                                                                                                                                          
        __PRETTY_FUNCTION__ = "KMail::MessageListView::Core::Model::ViewItemJobResult KMail::MessageListView::Core::Model::viewItemJobStepInternalForJob(KMail::MessageListView::Core::ViewItemJob*, const QTime&)"                                                                                                                                                                                       
#11 0xb7735cf8 in KMail::MessageListView::Core::Model::viewItemJobStepInternal (this=0x840c9a0) at /home/krop/kde/src/KDE/kdepim/kmail/messagelistview/core/model.cpp:3769                           
        job = 0x8da2e28                                                                                                                                                                              
        currentPass = 0                                                                                                                                                                              
        firstChunk = true                                                                                                                                                                            
        firstJob = true                                                                                                                                                                              
        elements = 49                                                                                                                                                                                
        tStart = {mds = 43384132}                                                                                                                                                                    
        elapsed = 12                                                                                                                                                                                 
        __PRETTY_FUNCTION__ = "KMail::MessageListView::Core::Model::ViewItemJobResult KMail::MessageListView::Core::Model::viewItemJobStepInternal()"                                                
#12 0xb77365d8 in KMail::MessageListView::Core::Model::viewItemJobStep (this=0x840c9a0) at /home/krop/kde/src/KDE/kdepim/kmail/messagelistview/core/model.cpp:3957                                   
        currentIndexBeforeStep = {r = -1, c = -1, p = 0x0, m = 0x0}                                                                                                                                  
        currentItemBeforeStep = 0x0                                                                                                                                                                  
                                                                                                                                               
        lockView = false                                                                                                                                                                             
        __PRETTY_FUNCTION__ = "void KMail::MessageListView::Core::Model::viewItemJobStep()"                                                                                                          
        rectBeforeViewItemJobStep = {x1 = 0, y1 = 0, x2 = -1, y2 = -1}                                                                                                                               
        scrollBarPositionBeforeViewItemJobStep = 0                                                                                                                                                   
        scrollBarMaximumBeforeViewItemJobStep = 1569                                                                                                                                                 
#13 0xb772d397 in KMail::MessageListView::Core::Model::setStorageModel (this=0x840c9a0, storageModel=0x8b9f300, preSelectionMode=KMail::MessageListView::Core::PreSelectLastSelected)                
    at /home/krop/kde/src/KDE/kdepim/kmail/messagelistview/core/model.cpp:791                                                                                                                        
        canDoFirstSmallChunkWithDisconnectedUI = true                                                                                                                                                
        canDoJobWithDisconnectedUI = true                                                                                                                                                            
        __PRETTY_FUNCTION__ = "void KMail::MessageListView::Core::Model::setStorageModel(KMail::MessageListView::Core::StorageModel*, KMail::MessageListView::Core::PreSelectionMode)"               
#14 0xb7737b7f in KMail::MessageListView::Core::Model::slotStorageModelLayoutChanged (this=0x840c9a0) at /home/krop/kde/src/KDE/kdepim/kmail/messagelistview/core/model.cpp:4440                     
        __PRETTY_FUNCTION__ = "void KMail::MessageListView::Core::Model::slotStorageModelLayoutChanged()"                                                                                            
#15 0xb73178dc in KMail::MessageListView::Core::Model::qt_metacall (this=0x840c9a0, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbfff8fe8)                                                          
    at /home/krop/kde/build/KDE/kdepim/kmail/moc_model.cpp:80                                                                                                                                        
No locals.                                                                                                                                                                                           
#16 0xb6a0d788 in QMetaObject::activate (sender=0x8b9f300, from_signal_index=17, to_signal_index=17, argv=0x0) at kernel/qobject.cpp:3113                                                            
        method = 24                                                                                                                                                                                  
        currentSender = {sender = 0x8b9f300, signal = 17, ref = 1}                                                                                                                                   
        previousSender = 0x0                                                                                                                                                                         
        i = 0                                                                                                                                                                                        
        count = 1                                                                                                                                                                                    
        signal = 17                                                                                                                                                                                  
        empty_argv = {0x0}                                                                                                                                                                           
        locker = {{mtx = 0x8053f4c, val = 134561612}}                                                                                                                                                
        currentThreadData = 0x8053f18                                                                                                                                                                
        connectionLists = 0x8ef29a8                                                                                                                                                                  
#17 0xb6a0e412 in QMetaObject::activate (sender=0x8b9f300, m=0xb6aef4f8, local_signal_index=13, argv=0x0) at kernel/qobject.cpp:3187                                                                 
        signal_index = 9891                                                                                                                                                                          
#18 0xb6a48f17 in QAbstractItemModel::modelReset (this=0x8b9f300) at .moc/release-shared/moc_qabstractitemmodel.cpp:213                                                                              
No locals.                                                                                                                                                                                           
#19 0xb69edcab in QAbstractItemModel::reset (this=0x8b9f300) at kernel/qabstractitemmodel.cpp:2263                                                                                                   
        d = 0x8bef760                                                                                                                                                                                
#20 0xb770b373 in KMail::MessageListView::StorageModel::slotViewConfigChanged (this=0x8b9f300) at /home/krop/kde/src/KDE/kdepim/kmail/messagelistview/storagemodel.cpp:608                           
No locals.                                                                                                                                                                                           
#21 0xb7317725 in KMail::MessageListView::StorageModel::qt_metacall (this=0x8b9f300, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbfff9138)                                                         
    at /home/krop/kde/build/KDE/kdepim/kmail/moc_storagemodel.cpp:92                                                                                                                                 
No locals.                                                                                                                                                                                           
#22 0xb6a0d788 in QMetaObject::activate (sender=0x82abc18, from_signal_index=22, to_signal_index=22, argv=0x0) at kernel/qobject.cpp:3113                                                            
        method = 28                                                                                                                                                                                  
        currentSender = {sender = 0x82abc18, signal = 22, ref = 1}                                                                                                                                   
        previousSender = 0x0                                                                                                                                                                         
        i = 0                                                                                                                                                                                        
        count = 1                                                                                                                                                                                    
        signal = 22                                                                                                                                                                                  
        empty_argv = {0x0}                                                                                                                                                                           
        locker = {{mtx = 0x8053f4c, val = 134561612}}                                                                                                                                                
        currentThreadData = 0x8053f18                                                                                                                                                                
        connectionLists = 0x82d2fe0                                                                                                                                                                  
#23 0xb6a0e412 in QMetaObject::activate (sender=0x82abc18, m=0xb799b8e0, local_signal_index=18, argv=0x0) at kernel/qobject.cpp:3187                                                                 
        signal_index = 9891                                                                                                                                                                          
#24 0xb7401723 in KMFolder::viewConfigChanged (this=0x82abc18) at /home/krop/kde/build/KDE/kdepim/kmail/kmfolder.moc:269                                                                             
No locals.                                                                                                                                                                                           
#25 0xb74002ad in KMFolder::setUserWhoField (this=0x82abc18, whoField=@0xbfff9260, writeConfig=false) at /home/krop/kde/src/KDE/kdepim/kmail/kmfolder.cpp:748                                        
        __PRETTY_FUNCTION__ = "void KMFolder::setUserWhoField(const QString&, bool)"                                                                                                                 
#26 0xb73fdb43 in KMFolder::readConfig (this=0x82abc18, configGroup=@0xbfff92a0) at /home/krop/kde/src/KDE/kdepim/kmail/kmfolder.cpp:212                                                             
        defaultIdentity = 1707873376                                                                                                                                                                 
        savedId = 0                                                                                                                                                                                  
        shortcut = {d = 0x8b1c930}                                                                                                                                                                   
                                                                                                                                               
#27 0xb7429def in FolderStorage::readConfig (this=0x82c0d78) at /home/krop/kde/src/KDE/kdepim/kmail/folderstorage.cpp:963                                                                            
        config = 0x807a3c8                                                                                                                                                                           
        group = {<KConfigBase> = {_vptr.KConfigBase = 0xb7c0e168}, d = {d = 0x8eefce0}}                                                                                                              
        type = 0                                                                                                                                                                                     
#28 0xb74298f3 in FolderStorage::countUnread (this=0x82c0d78) at /home/krop/kde/src/KDE/kdepim/kmail/folderstorage.cpp:866                                                                           
        unread = -1245241024                                                                                                                                                                         
#29 0xb73ff2fa in KMFolder::countUnread (this=0x82abc18) at /home/krop/kde/src/KDE/kdepim/kmail/kmfolder.cpp:500                                                                                     
No locals.                                                                                                                                                                                           
#30 0xb75e9082 in KMMainWidget::updateMarkAsReadAction (this=0x83ca768) at /home/krop/kde/src/KDE/kdepim/kmail/kmmainwidget.cpp:4379                                                                 
No locals.                                                                                                                                                                                           
#31 0xb75c9409 in KMMainWidget::qt_metacall (this=0x83ca768, _c=QMetaObject::InvokeMetaMethod, _id=130, _a=0xbfff9408) at /home/krop/kde/build/KDE/kdepim/kmail/kmmainwidget.moc:478                 
No locals.                                                                                                                                                                                           
#32 0xb6a0d788 in QMetaObject::activate (sender=0x82abc18, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3113                                                              
        method = 157                                                                                                                                                                                 
        currentSender = {sender = 0x82abc18, signal = 4, ref = 1}                                                                                                                                    
        previousSender = 0xbfff96c4                                                                                                                                                                  
        i = 0                                                                                                                                                                                        
        count = 1                                                                                                                                                                                    
        signal = 4                                                                                                                                                                                   
        empty_argv = {0x0}                                                                                                                                                                           
        locker = {{mtx = 0x8053f4c, val = 134561612}}                                                                                                                                                
        currentThreadData = 0x8053f18                                                                                                                                                                
        connectionLists = 0x82d2fe0                                                                                                                                                                  
#33 0xb6a0e412 in QMetaObject::activate (sender=0x82abc18, m=0xb799b8e0, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3187                                                                  
        signal_index = 9891                                                                                                                                                                          
#34 0xb7401189 in KMFolder::changed (this=0x82abc18) at /home/krop/kde/build/KDE/kdepim/kmail/kmfolder.moc:149                                                                                       
No locals.                                                                                                                                                                                           
#35 0xb7400e57 in KMFolder::qt_metacall (this=0x82abc18, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfff94f8) at /home/krop/kde/build/KDE/kdepim/kmail/kmfolder.moc:111                           
No locals.                                                                                                                                                                                           
#36 0xb6a0d788 in QMetaObject::activate (sender=0x82c0d78, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3113                                                              
        method = 4                                                                                                                                                                                   
        currentSender = {sender = 0x82c0d78, signal = 4, ref = 1}                                                                                                                                    
        previousSender = 0x0                                                                                                                                                                         
        i = 0                                                                                                                                                                                        
        count = 1
        signal = 4
        empty_argv = {0x0}
        locker = {{mtx = 0x8053f4c, val = 134561612}}
        currentThreadData = 0x8053f18
        connectionLists = 0x82d4070
#37 0xb6a0e412 in QMetaObject::activate (sender=0x82c0d78, m=0xb799bec8, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3187
        signal_index = 9891
#38 0xb742b7d1 in FolderStorage::changed (this=0x82c0d78) at /home/krop/kde/build/KDE/kdepim/kmail/folderstorage.moc:159
No locals.
#39 0xb74c0e90 in KMFolderMbox::compact (this=0x82c0d78, silent=false) at /home/krop/kde/src/KDE/kdepim/kmail/kmfoldermbox.cpp:1325
        job = 0x8b9f960
        rc = 0
        statusMsg = {d = 0x8ea5dd0}
#40 0xb74009a6 in KMFolder::compact (this=0x82abc18, options=KMFolder::CompactNow) at /home/krop/kde/src/KDE/kdepim/kmail/kmfolder.cpp:868
No locals.
#41 0xb75d2bdb in KMMainWidget::slotCompactFolder (this=0x83ca768) at /home/krop/kde/src/KDE/kdepim/kmail/kmmainwidget.cpp:1466
        busy = {inited = true}
#42 0xb75c8ebd in KMMainWidget::qt_metacall (this=0x83ca768, _c=QMetaObject::InvokeMetaMethod, _id=57, _a=0xbfff974c) at /home/krop/kde/build/KDE/kdepim/kmail/kmmainwidget.moc:404
No locals.
#43 0xb6a0d788 in QMetaObject::activate (sender=0x8975748, from_signal_index=5, to_signal_index=6, argv=0xbfff974c) at kernel/qobject.cpp:3113
        method = 84
        currentSender = {sender = 0x8975748, signal = 5, ref = 1}
        previousSender = 0x0

        i = 1
        count = 2
        signal = 5
        empty_argv = {0x0}
        locker = {{mtx = 0x8053f4c, val = 134561612}}
        currentThreadData = 0x8053f18
        connectionLists = 0x8975938
#44 0xb6a0dbc0 in QMetaObject::activate (sender=0x8975748, m=0xb67200e8, from_local_signal_index=1, to_local_signal_index=2, argv=0xbfff974c) at kernel/qobject.cpp:3207
        offset = <value optimized out>
        from_signal_index = 5
        to_signal_index = 6
#45 0xb5ec8181 in QAction::triggered (this=0x8975748, _t1=false) at .moc/release-shared/moc_qaction.cpp:236
        _a = {0x0, 0xbfff9740}

(+ more output)
Comment 1 Christophe Marin 2009-07-07 12:41:37 UTC
Created attachment 35114 [details]
Full backtrace.
Comment 2 Christophe Marin 2009-07-22 02:20:40 UTC
*** Bug 201054 has been marked as a duplicate of this bug. ***
Comment 3 Christophe Marin 2009-08-09 23:14:29 UTC
*** Bug 202845 has been marked as a duplicate of this bug. ***
Comment 4 Dario Andres 2009-08-10 23:41:31 UTC
*** Bug 203337 has been marked as a duplicate of this bug. ***
Comment 5 Dario Andres 2009-08-12 20:37:32 UTC
*** Bug 203579 has been marked as a duplicate of this bug. ***
Comment 6 Christophe Marin 2009-08-25 00:04:12 UTC
*** Bug 205022 has been marked as a duplicate of this bug. ***
Comment 7 Christophe Marin 2009-08-29 22:42:56 UTC
*** Bug 205610 has been marked as a duplicate of this bug. ***
Comment 8 Christophe Marin 2009-09-14 11:13:02 UTC
*** Bug 207320 has been marked as a duplicate of this bug. ***
Comment 9 Christophe Marin 2009-09-14 11:13:43 UTC
*** Bug 196175 has been marked as a duplicate of this bug. ***
Comment 10 Christophe Marin 2009-09-17 00:19:02 UTC
*** Bug 207642 has been marked as a duplicate of this bug. ***
Comment 11 Dario Andres 2009-10-01 01:44:13 UTC
*** Bug 209036 has been marked as a duplicate of this bug. ***
Comment 12 Christophe Marin 2009-10-07 10:42:42 UTC
*** Bug 209667 has been marked as a duplicate of this bug. ***
Comment 13 Christophe Marin 2009-10-28 15:26:00 UTC
*** Bug 212186 has been marked as a duplicate of this bug. ***
Comment 14 Christophe Marin 2009-10-29 13:33:50 UTC
*** Bug 212258 has been marked as a duplicate of this bug. ***
Comment 15 Dario Andres 2009-10-31 22:08:16 UTC
*** Bug 210777 has been marked as a duplicate of this bug. ***
Comment 16 Ariel Garcia 2009-11-02 12:41:16 UTC
Confirming this report and adding my own stacktrace:

Application that crashed: kmail
Version of the application: 1.12.1
KDE Version: 4.3.1 (KDE 4.3.1)
Qt Version: 4.5.2
Operating System: Linux 2.6.23.12-grsec i686
Distribution: Debian GNU/Linux testing (squeeze)

What I was doing when the application crashed:
After deleting most of the ~380 messages in (spam) folder of type mbox I tried to compact the folder --> kmail crashed.

 -- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
[KCrash Handler]
#6  KMail::MessageListView::StorageModel::initializeMessageItem (this=<value optimized out>, mi=<value optimized out>, row=<value optimized out>, bUseReceiver=<value optimized out>)
    at ../../kmail/messagelistview/storagemodel.cpp:402
#7  0x45163ff7 in KMail::MessageListView::Core::Model::viewItemJobStepInternalForJobPass1Fill (this=<value optimized out>, job=<value optimized out>, tStart=<value optimized out>)
    at ../../kmail/messagelistview/core/model.cpp:2750
#8  0x45165746 in KMail::MessageListView::Core::Model::viewItemJobStepInternalForJob (this=<value optimized out>, job=<value optimized out>, tStart=<value optimized out>)
    at ../../kmail/messagelistview/core/model.cpp:3392
#9  0x45165f09 in KMail::MessageListView::Core::Model::viewItemJobStepInternal (this=<value optimized out>) at ../../kmail/messagelistview/core/model.cpp:3764
#10 0x45166c30 in KMail::MessageListView::Core::Model::viewItemJobStep (this=<value optimized out>) at ../../kmail/messagelistview/core/model.cpp:3952
#11 0x45167f27 in KMail::MessageListView::Core::Model::setStorageModel (this=<value optimized out>, storageModel=<value optimized out>, preSelectionMode=<value optimized out>)
    at ../../kmail/messagelistview/core/model.cpp:806
#12 0x4516898f in KMail::MessageListView::Core::Model::slotStorageModelLayoutChanged (this=<value optimized out>) at ../../kmail/messagelistview/core/model.cpp:4435
#13 0x44cf033b in KMail::MessageListView::Core::Model::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>) at moc_model.cpp:80
#14 0x41c56193 in QMetaObject::activate (sender=<value optimized out>, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=<value optimized out>)
    at kernel/qobject.cpp:3112
#15 0x41c56de2 in QMetaObject::activate (sender=<value optimized out>, m=<value optimized out>, local_signal_index=<value optimized out>, argv=) at kernel/qobject.cpp:3186
#16 0x41c90767 in QAbstractItemModel::modelReset (this=) at .moc/release-shared/moc_qabstractitemmodel.cpp:213
#17 0x41c3ac84 in QAbstractItemModel::reset (this=<value optimized out>) at kernel/qabstractitemmodel.cpp:2263
#18 0x45138e6d in KMail::MessageListView::StorageModel::slotViewConfigChanged (this=) at ../../kmail/messagelistview/storagemodel.cpp:614
#19 0x44ceec53 in KMail::MessageListView::StorageModel::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>)
    at moc_storagemodel.cpp:92
#20 0x41c56193 in QMetaObject::activate (sender=<value optimized out>, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=<value optimized out>)
    at kernel/qobject.cpp:3112
#21 0x41c56de2 in QMetaObject::activate (sender=<value optimized out>, m=<value optimized out>, local_signal_index=<value optimized out>, argv=) at kernel/qobject.cpp:3186
#22 0x44ddbe17 in KMFolder::viewConfigChanged (this=) at ./kmfolder.moc:269
#23 0x44de1132 in KMFolder::setUserWhoField (this=<value optimized out>, whoField=<value optimized out>, writeConfig=<value optimized out>) at ../../kmail/kmfolder.cpp:745
#24 0x44de1fd3 in KMFolder::readConfig (this=<value optimized out>, configGroup=<value optimized out>) at ../../kmail/kmfolder.cpp:211
#25 0x44e10c35 in FolderStorage::readConfig (this=<value optimized out>) at ../../kmail/folderstorage.cpp:963
#26 0x44e0c6aa in FolderStorage::countUnread (this=<value optimized out>) at ../../kmail/folderstorage.cpp:866
#27 0x44ddb677 in KMFolder::countUnread (this=) at ../../kmail/kmfolder.cpp:497
#28 0x44fdcfec in KMMainWidget::updateMarkAsReadAction (this=<value optimized out>) at ../../kmail/kmmainwidget.cpp:4428
#29 0x450057f7 in KMMainWidget::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>) at ./kmmainwidget.moc:478
#30 0x41c56193 in QMetaObject::activate (sender=<value optimized out>, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=<value optimized out>)
    at kernel/qobject.cpp:3112
#31 0x41c56de2 in QMetaObject::activate (sender=<value optimized out>, m=<value optimized out>, local_signal_index=<value optimized out>, argv=) at kernel/qobject.cpp:3186
#32 0x44ddc397 in KMFolder::changed (this=) at ./kmfolder.moc:149
#33 0x44ddc8a1 in KMFolder::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>) at ./kmfolder.moc:111
#34 0x41c56193 in QMetaObject::activate (sender=<value optimized out>, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=<value optimized out>)
    at kernel/qobject.cpp:3112
#35 0x41c56de2 in QMetaObject::activate (sender=<value optimized out>, m=<value optimized out>, local_signal_index=<value optimized out>, argv=) at kernel/qobject.cpp:3186
#36 0x44e0d137 in FolderStorage::changed (this=) at ./folderstorage.moc:159
#37 0x44eae8f4 in KMFolderMbox::compact (this=<value optimized out>, silent=<value optimized out>) at ../../kmail/kmfoldermbox.cpp:1325
#38 0x44ddca83 in KMFolder::compact (this=<value optimized out>, options=<value optimized out>) at ../../kmail/kmfolder.cpp:865
#39 0x44fdeed0 in KMMainWidget::slotCompactFolder (this=<value optimized out>) at ../../kmail/kmmainwidget.cpp:1476
#40 0x45005ce4 in KMMainWidget::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>) at ./kmmainwidget.moc:405
#41 0x41c56193 in QMetaObject::activate (sender=<value optimized out>, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=<value optimized out>)
    at kernel/qobject.cpp:3112
#42 0x41c565c0 in QMetaObject::activate (sender=<value optimized out>, m=<value optimized out>, from_local_signal_index=<value optimized out>, to_local_signal_index=<value optimized out>, argv=)
    at kernel/qobject.cpp:3206
#43 0x443cb311 in QAction::triggered (this=) at .moc/release-shared/moc_qaction.cpp:236
#44 0x443cc85f in QAction::activate (this=<value optimized out>, event=<value optimized out>) at kernel/qaction.cpp:1160
#45 0x44811ce4 in QMenuPrivate::activateCausedStack (this=<value optimized out>, causedStack=<value optimized out>, action=<value optimized out>, action_e=<value optimized out>, 
    self=<value optimized out>) at widgets/qmenu.cpp:967
#46 0x448183eb in QMenuPrivate::activateAction (this=<value optimized out>, action=<value optimized out>, action_e=<value optimized out>, self=<value optimized out>) at widgets/qmenu.cpp:1060
#47 0x44818f32 in QMenu::mouseReleaseEvent (this=<value optimized out>, e=<value optimized out>) at widgets/qmenu.cpp:2254
#48 0x423833a5 in KMenu::mouseReleaseEvent (this=<value optimized out>, e=<value optimized out>) at ../../kdeui/widgets/kmenu.cpp:456
#49 0x4442777b in QWidget::event (this=<value optimized out>, event=<value optimized out>) at kernel/qwidget.cpp:7549
#50 0x4481b171 in QMenu::event (this=<value optimized out>, e=<value optimized out>) at widgets/qmenu.cpp:2353
#51 0x443d1814 in QApplicationPrivate::notify_helper (this=<value optimized out>, receiver=<value optimized out>, e=<value optimized out>) at kernel/qapplication.cpp:4056
#52 0x443da2e1 in QApplication::notify (this=<value optimized out>, receiver=<value optimized out>, e=<value optimized out>) at kernel/qapplication.cpp:3758
#53 0x4229cead in KApplication::notify (this=<value optimized out>, receiver=<value optimized out>, event=<value optimized out>) at ../../kdeui/kernel/kapplication.cpp:302
#54 0x41c4102b in QCoreApplication::notifyInternal (this=<value optimized out>, receiver=<value optimized out>, event=<value optimized out>) at kernel/qcoreapplication.cpp:610
#55 0x443d936e in QCoreApplication::sendSpontaneousEvent (receiver=<value optimized out>, event=<value optimized out>, alienWidget=<value optimized out>, nativeWidget=<value optimized out>, 
    buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#56 QApplicationPrivate::sendMouseEvent (receiver=<value optimized out>, event=<value optimized out>, alienWidget=<value optimized out>, nativeWidget=<value optimized out>, 
    buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>) at kernel/qapplication.cpp:2924
#57 0x444480ef in QETWidget::translateMouseEvent (this=<value optimized out>, event=<value optimized out>) at kernel/qapplication_x11.cpp:4343
#58 0x44447386 in QApplication::x11ProcessEvent (this=<value optimized out>, event=<value optimized out>) at kernel/qapplication_x11.cpp:3428
#59 0x44471892 in x11EventSourceDispatch (s=<value optimized out>, callback=<value optimized out>, user_data=) at kernel/qguieventdispatcher_glib.cpp:146
#60 0x412fae98 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#61 0x412fe623 in ?? () from /lib/libglib-2.0.so.0
#62 0x412fe7a8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#63 0x41c6beb8 in QEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#64 0x44470fd5 in QGuiEventDispatcherGlib::processEvents (this=) at kernel/qguieventdispatcher_glib.cpp:202
#65 0x41c3f67a in QEventLoop::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qeventloop.cpp:149
#66 0x41c3fac2 in QEventLoop::exec (this=<value optimized out>, flags=<value optimized out>) at kernel/qeventloop.cpp:201
#67 0x4481afe1 in QMenu::exec (this=<value optimized out>, p=<value optimized out>, action=<value optimized out>) at widgets/qmenu.cpp:1993
#68 0x44d8b026 in KMail::FolderView::contextMenuEvent (this=<value optimized out>, e=<value optimized out>) at ../../kmail/folderview.cpp:1563
#69 0x44427e64 in QWidget::event (this=<value optimized out>, event=<value optimized out>) at kernel/qwidget.cpp:7708
#70 0x447cdf53 in QFrame::event (this=<value optimized out>, e=<value optimized out>) at widgets/qframe.cpp:559
#71 0x4486cf6f in QAbstractScrollArea::viewportEvent (this=) at widgets/qabstractscrollarea.cpp:962
#72 0x4491e127 in QAbstractItemView::viewportEvent (this=<value optimized out>, event=<value optimized out>) at itemviews/qabstractitemview.cpp:1476
#73 0x44958f26 in QTreeView::viewportEvent (this=<value optimized out>, event=<value optimized out>) at itemviews/qtreeview.cpp:1266
#74 0x4486f545 in QAbstractScrollAreaPrivate::viewportEvent (this=<value optimized out>, o=<value optimized out>, e=) at widgets/qabstractscrollarea_p.h:100
#75 QAbstractScrollAreaFilter::eventFilter (this=<value optimized out>, o=<value optimized out>, e=) at widgets/qabstractscrollarea_p.h:111
#76 0x41c4025a in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=<value optimized out>, event=<value optimized out>) at kernel/qcoreapplication.cpp:726
#77 0x443d17ec in QApplicationPrivate::notify_helper (this=<value optimized out>, receiver=<value optimized out>, e=<value optimized out>) at kernel/qapplication.cpp:4052
#78 0x443d9ead in QApplication::notify (this=<value optimized out>, receiver=<value optimized out>, e=<value optimized out>) at kernel/qapplication.cpp:3845
#79 0x4229cead in KApplication::notify (this=<value optimized out>, receiver=<value optimized out>, event=<value optimized out>) at ../../kdeui/kernel/kapplication.cpp:302
#80 0x41c4102b in QCoreApplication::notifyInternal (this=<value optimized out>, receiver=<value optimized out>, event=<value optimized out>) at kernel/qcoreapplication.cpp:610
#81 0x443dc75e in QCoreApplication::sendSpontaneousEvent (receiver=) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#82 0x4444862f in QETWidget::translateMouseEvent (this=<value optimized out>, event=<value optimized out>) at kernel/qapplication_x11.cpp:4415
#83 0x44447386 in QApplication::x11ProcessEvent (this=<value optimized out>, event=<value optimized out>) at kernel/qapplication_x11.cpp:3428
#84 0x44471892 in x11EventSourceDispatch (s=<value optimized out>, callback=<value optimized out>, user_data=) at kernel/qguieventdispatcher_glib.cpp:146
#85 0x412fae98 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#86 0x412fe623 in ?? () from /lib/libglib-2.0.so.0
#87 0x412fe7a8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#88 0x41c6beb8 in QEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#89 0x44470fd5 in QGuiEventDispatcherGlib::processEvents (this=) at kernel/qguieventdispatcher_glib.cpp:202
#90 0x41c3f67a in QEventLoop::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qeventloop.cpp:149
#91 0x41c3fac2 in QEventLoop::exec (this=<value optimized out>, flags=<value optimized out>) at kernel/qeventloop.cpp:201
#92 0x41c41f19 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#93 0x443d1697 in QApplication::exec () at kernel/qapplication.cpp:3525
#94 0x0804a6d0 in main (argc=1156242272, argv=0x44eadc10) at ../../kmail/main.cpp:146
Comment 17 Christophe Marin 2009-11-12 10:17:43 UTC
*** Bug 213986 has been marked as a duplicate of this bug. ***
Comment 18 Christophe Marin 2009-11-15 03:49:46 UTC
*** Bug 209608 has been marked as a duplicate of this bug. ***
Comment 19 hoea 2009-12-03 17:01:50 UTC
no change with kde 4.3.4 :-((
Comment 20 Christophe Marin 2009-12-07 10:55:06 UTC
*** Bug 217597 has been marked as a duplicate of this bug. ***
Comment 21 Dario Andres 2009-12-10 17:05:12 UTC
*** Bug 217887 has been marked as a duplicate of this bug. ***
Comment 22 Dario Andres 2009-12-17 18:07:26 UTC
*** Bug 219085 has been marked as a duplicate of this bug. ***
Comment 23 Christophe Marin 2010-01-01 22:52:37 UTC
*** Bug 220930 has been marked as a duplicate of this bug. ***
Comment 24 Christophe Marin 2010-01-01 22:53:00 UTC
*** Bug 220927 has been marked as a duplicate of this bug. ***
Comment 25 Christophe Marin 2010-01-01 22:53:20 UTC
*** Bug 220912 has been marked as a duplicate of this bug. ***
Comment 26 Sven Suska 2010-01-01 23:21:15 UTC
Can anybody confirm the limit of 15 mails in the folder as described in Bug 220930?
(I.e. that the crash will happen if and only if trying to compress a folder
with more than 15 mails in it.)
Comment 27 Frode Tennebø 2010-01-17 20:03:08 UTC
I have had it crash on less than 15 mails.  Currently it consistently works with 11 mails, but crashes with 12.
Comment 28 Dario Andres 2010-01-31 23:33:14 UTC
From bug 225051:
-- What I was doing when the application crashed:
Selected folder "read-jan-2010" with approx 135 messages (approx 6.6. MB).
Selected "compact folder" in right-click-menu and KMail crashed
Comment 29 Dario Andres 2010-01-31 23:33:21 UTC
*** Bug 225051 has been marked as a duplicate of this bug. ***
Comment 30 Björn Ruberg 2010-03-01 23:45:01 UTC
*** Bug 217703 has been marked as a duplicate of this bug. ***
Comment 31 Thomas Mack 2010-03-24 10:44:11 UTC
Same problem here since 4.1 already.

At least, the folder gets compacted.

If compacting mbox folders works for someone, I would like to compare my setup and test with different setups.
Comment 32 Björn Ruberg 2010-04-05 23:39:18 UTC
*** Bug 206968 has been marked as a duplicate of this bug. ***
Comment 33 Björn Ruberg 2010-04-05 23:39:38 UTC
*** Bug 233186 has been marked as a duplicate of this bug. ***
Comment 34 Dario Andres 2010-12-14 14:14:44 UTC
[Comment from a bug triager]
From bug 247023:
What I was doing when the application crashed:
How to reproduce:
- open kmail
- select the folder with a lot of mail, in my case there are 77617 messages,
26128 of them unread
- wait until content of folder is loaded
- right-click the folder and select "compact folder" from the menu
- HDD starts gargle now, but after about 10seconds it stop and then after a
second kmail crash
- may be reproduced everytime (tried 4x)
It works without problems on different folder with only 6 messages in it
Comment 35 Dario Andres 2010-12-14 14:14:58 UTC
*** Bug 247023 has been marked as a duplicate of this bug. ***
Comment 36 Christophe Marin 2011-07-06 22:17:19 UTC
> - RMB/Compact directory.

No longer relevant in KMail2. Closing