Bug 199111 - Crash while deleting e-mails
Summary: Crash while deleting e-mails
Status: CLOSED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 202920 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-06 08:15 UTC by Nicolas L.
Modified: 2012-08-18 08:30 UTC (History)
3 users (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 Nicolas L. 2009-07-06 08:15:46 UTC
Application that crashed: kmail
Version of the application: 1.12.0
KDE Version: 4.2.95 (KDE 4.2.95 (KDE 4.3 RC1))
Qt Version: 4.5.2
Operating System: Linux 2.6.29.1-desktop-4mnb i686
Distribution: "Mandriva Linux 2009.1"

What I was doing when the application crashed:
i was deleting some e-mails from a folder ( not all the e-mails from the folder ) and while deleting it crashed

 -- Backtrace:
Application: KMail (kmail), signal: Aborted
[KCrash Handler]
#6  0xffffe424 in __kernel_vsyscall ()
#7  0xb62ed9e1 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#8  0xb62ef374 in abort () at abort.c:88
#9  0xb6f29ad4 in qt_message_output (msgType=QtFatalMsg, buf=0x6 <Address 0x6 out of bounds>) at global/qglobal.cpp:2042
#10 0xb6f29bd8 in qFatal (msg=0x6 <Address 0x6 out of bounds>) at global/qglobal.cpp:2241
#11 0xb6f29cd5 in qt_assert (assertion=0xb77c6c58 "!selectionModel()->isSelected( aMessageIndex )", file=0xb77c6574 "/home/mandrake/rpm/BUILD/kdepim-4.2.95/kmail/messagelistview/core/view.cpp", 
    line=1665) at global/qglobal.cpp:1811
#12 0xb76e1392 in KMail::MessageListView::Core::View::markMessageItemsAsAboutToBeRemoved (this=0x94b3268, items=@0xbfe72ca8, bMark=true)
    at /usr/src/debug/kdepim-4.2.95/kmail/messagelistview/core/view.cpp:1665
#13 0xb769249b in KMail::MessageListView::Widget::markPersistentSetAsAboutToBeRemoved (this=0x9451e50, ref=6, bMark=true) at /usr/src/debug/kdepim-4.2.95/kmail/messagelistview/widget.cpp:525
#14 0xb768a41c in KMail::MessageListView::Pane::messageSetMarkAsAboutToBeRemoved (this=0x944e3c8, set=0xa2efc58, bMark=true) at /usr/src/debug/kdepim-4.2.95/kmail/messagelistview/pane.cpp:834
#15 0xb7689e48 in KMail::MessageListView::MessageSet::markAsAboutToBeRemoved (this=0x0, bMark=44) at /usr/src/debug/kdepim-4.2.95/kmail/messagelistview/messageset.cpp:74
#16 0xb757e97b in KMMainWidget::trashMessageSet (this=0x6, set=0xa2efc58) at /usr/src/debug/kdepim-4.2.95/kmail/kmmainwidget.cpp:2028
#17 0xb757eaa0 in KMMainWidget::slotTrashMsg (this=0x944db88) at /usr/src/debug/kdepim-4.2.95/kmail/kmmainwidget.cpp:2069
#18 0xb7588d19 in KMMainWidget::qt_metacall (this=0x944db88, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbfe72ed8) at /usr/src/debug/kdepim-4.2.95/build/kmail/kmmainwidget.moc:354
#19 0xb7041f29 in QMetaObject::activate (sender=0x98bc7a0, from_signal_index=5, to_signal_index=6, argv=0xbfe72ed8) at kernel/qobject.cpp:3104
#20 0xb7042411 in QMetaObject::activate (sender=0x98bc7a0, m=0xb6ecd088, from_local_signal_index=1, to_local_signal_index=2, argv=0xbfe72ed8) at kernel/qobject.cpp:3198
#21 0xb663e6d5 in QAction::triggered (this=0x98bc7a0, _t1=false) at .moc/release-shared/moc_qaction.cpp:236
#22 0xb663fd02 in QAction::activate (this=0x98bc7a0, event=QAction::Trigger) at kernel/qaction.cpp:1160
#23 0xb6642a90 in QAction::event (this=0x6, e=0x0) at kernel/qaction.cpp:1079
#24 0xb7c2c4b0 in KAction::event (this=0x98bc7a0, event=0xbfe732f8) at /usr/src/debug/kdelibs-4.2.95/kdeui/actions/kaction.cpp:88
#25 0xb66450dc in QApplicationPrivate::notify_helper (this=0x91cae88, receiver=0x98bc7a0, e=0xbfe732f8) at kernel/qapplication.cpp:4056
#26 0xb664cc2e in QApplication::notify (this=0xbfe75250, receiver=0x98bc7a0, e=0xbfe732f8) at kernel/qapplication.cpp:3603
#27 0xb7d03c48 in KApplication::notify (this=0xbfe75250, receiver=0x98bc7a0, event=0xbfe732f8) at /usr/src/debug/kdelibs-4.2.95/kdeui/kernel/kapplication.cpp:302
#28 0xb702b79e in QCoreApplication::notifyInternal (this=0xbfe75250, receiver=0x98bc7a0, event=0xbfe732f8) at kernel/qcoreapplication.cpp:610
#29 0xb667f995 in QShortcutMap::dispatchEvent (this=0x91caf28, e=0xbfe73694) at ../../src/corelib/kernel/qcoreapplication.h:213
#30 0xb66819f2 in QShortcutMap::tryShortcutEvent (this=0x91caf28, o=0x94b3268, e=0xbfe73694) at kernel/qshortcutmap.cpp:369
#31 0xb664df3c in QApplication::notify (this=0xbfe75250, receiver=0x94b3268, e=0xbfe73694) at kernel/qapplication.cpp:3645
#32 0xb7d03c48 in KApplication::notify (this=0xbfe75250, receiver=0x94b3268, event=0xbfe73694) at /usr/src/debug/kdelibs-4.2.95/kdeui/kernel/kapplication.cpp:302
#33 0xb702b79e in QCoreApplication::notifyInternal (this=0xbfe75250, receiver=0x94b3268, event=0xbfe73694) at kernel/qcoreapplication.cpp:610
#34 0xb664601d in qt_sendSpontaneousEvent (receiver=0x94b3268, event=0x6) at ../../src/corelib/kernel/qcoreapplication.h:216
#35 0xb66e4633 in QKeyMapper::sendKeyEvent (keyWidget=0x94b3268, grab=false, type=QEvent::KeyPress, code=16777223, modifiers=) at kernel/qkeymapper_x11.cpp:1675
#36 0xb66e6cd2 in QKeyMapperPrivate::translateKeyEvent (this=0x92274d8, keyWidget=0x94b3268, event=0xbfe74e7c, grab=false) at kernel/qkeymapper_x11.cpp:1645
#37 0xb66bc6a9 in QApplication::x11ProcessEvent (this=0xbfe75250, event=0xbfe74e7c) at kernel/qapplication_x11.cpp:3443
#38 0xb66e87c8 in x11EventSourceDispatch (s=0x91cdc70, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#39 0xb44b8e32 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#40 0xb44bc4a8 in ?? () from /usr/lib/libglib-2.0.so.0
#41 0xb44bc5ce in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#42 0xb70579d8 in QEventDispatcherGlib::processEvents (this=0x91c5cd8, flags={i = 36}) at kernel/qeventdispatcher_glib.cpp:327
#43 0xb66e7efa in QGuiEventDispatcherGlib::processEvents (this=0x91c5cd8, flags={i = 36}) at kernel/qguieventdispatcher_glib.cpp:202
#44 0xb7029d8d in QEventLoop::processEvents (this=0xbfe75134, flags=) at kernel/qeventloop.cpp:149
#45 0xb702a1d9 in QEventLoop::exec (this=0xbfe75134, flags={i = 0}) at kernel/qeventloop.cpp:201
#46 0xb702c6c0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#47 0xb6644f44 in QApplication::exec () at kernel/qapplication.cpp:3525
#48 0x0804a6b1 in main (argc=3, argv=0xbfe75344) at /usr/src/debug/kdepim-4.2.95/kmail/main.cpp:146

Reported using DrKonqi
Comment 1 Christophe Marin 2009-08-09 12:16:35 UTC
*** Bug 202920 has been marked as a duplicate of this bug. ***
Comment 2 Christophe Marin 2009-08-29 15:53:50 UTC
reproduced in trunk. What I did:

- Select a folder (online imap)
- click on a message
- CTRL-A
- Shift-click on the first message to deselect it
- shift-del
-> boom


#7  0xb65fe2b5 in qt_message_output (msgType=QtFatalMsg,                                                                                                                    
    buf=0x9bd94e0 "ASSERT: \"!selectionModel()->isSelected( aMessageIndex )\" in file /home/krop/kde/src/KDE/kdepim/kmail/messagelistview/core/view.cpp, line 1728")        
    at global/qglobal.cpp:2042                                                                                                                                              
No locals.                                                                                                                                                                  
#8  0xb65fe3a1 in qFatal (msg=0xb674dbf8 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2241                                                                   
        buf = {d = 0x9c3b1f0}                                                                                                                                               
#9  0xb65fe485 in qt_assert (assertion=0xb77e19c4 "!selectionModel()->isSelected( aMessageIndex )",                                                                         
    file=0xb77e1290 "/home/krop/kde/src/KDE/kdepim/kmail/messagelistview/core/view.cpp", line=1728) at global/qglobal.cpp:1811                                              
No locals.                                                                                                                                                                  
#10 0xb76dbc65 in KMail::MessageListView::Core::View::markMessageItemsAsAboutToBeRemoved (this=0x92825b0, items=..., bMark=true)                                            
    at /home/krop/kde/src/KDE/kdepim/kmail/messagelistview/core/view.cpp:1728                                                                                               
        aMessageIndex = {r = 0,                                                                                                                                             
c = 0, p = 0x9b5bb50, m = 0x9315478}                                                                                                                                        
        aMessage = 0x9b5bb50                                                                                                                                                
        maxAttempts = 96                                                                                                                                                    
        clearingEntireSelection = true                                                                                                                                      
        selectedIndexes = {{p = {d = 0x9bd0fc0}, d = 0x9bd0fc0}}                                                                                                            
#11 0xb767f52d in KMail::MessageListView::Widget::markPersistentSetAsAboutToBeRemoved (this=0x923a1d0, ref=1, bMark=true)                                                   
    at /home/krop/kde/src/KDE/kdepim/kmail/messagelistview/widget.cpp:526                                                                                                   
        ret = {{p = {d = 0xb67f33f4}, d = 0xb67f33f4}}                                                                                                                      
        setItems = {{p = {d = 0x9bd0db8}, d = 0x9bd0db8}}                                                                                                                   
#12 0xb7678489 in KMail::MessageListView::Pane::messageSetMarkAsAboutToBeRemoved (this=0x9231fd8, set=0x982df40, bMark=true)                                                
    at /home/krop/kde/src/KDE/kdepim/kmail/messagelistview/pane.cpp:847                                                                                                     
        idx = 0                                                                                                                                                             
#13 0xb7674fd9 in KMail::MessageListView::MessageSet::markAsAboutToBeRemoved (this=0x982df40, bMark=true)                                                                   
    at /home/krop/kde/src/KDE/kdepim/kmail/messagelistview/messageset.cpp:74                                                                                                
No locals.                                                                                                                                                                  
#14 0xb753b061 in KMMainWidget::moveMessageSet (this=0x91f25d0, set=0x982df40, destination=0x0, confirmOnDeletion=true)                                                     
    at /home/krop/kde/src/KDE/kdepim/kmail/kmmainwidget.cpp:1745                                                                                                            
        selectedMessages = {{p = {d = 0x99755c8}, d = 0x99755c8}}                                                                                                           
        command = 0x9caf198                                                                                                                                                 
#15 0xb753b4f0 in KMMainWidget::slotDeleteMsg (this=0x91f25d0, confirmDelete=true) at /home/krop/kde/src/KDE/kdepim/kmail/kmmainwidget.cpp:1803                             
        set = 0x982df40                                                                                                                                                     
#16 0xb752fa09 in KMMainWidget::qt_metacall (this=0x91f25d0, _c=InvokeMetaMethod, _id=68, _a=0xbf911ffc) at /home/krop/kde/build/KDE/kdepim/kmail/kmmainwidget.moc:415      
No locals.                                                                                                                                                                  
#17 0xb6710788 in QMetaObject::activate (sender=0x97ea960, from_signal_index=5, to_signal_index=6, argv=0xbf911ffc) at kernel/qobject.cpp:3113                              
        previousSender = 0x0                                                                                                                                                
        method = 95                                                                                                                                                         
        currentSender = {sender = 0x97ea960, signal = 5, ref = 1}                                                                                                           
        i = 1                                                                                                                                                               
        count = 2                                                                                                                                                           
        signal = 5                                                                                                                                                          
        empty_argv = {0x0}                                                                                                                                                  
        locker = {{mtx = 0x8e79c7c, val = 149396604}}                                                                                                                       
        currentThreadData = 0x8e79c48                                                                                                                                       
        connectionLists = 0x97eadd8                                                                                                                                         
#18 0xb6710bc0 in QMetaObject::activate (sender=0x97ea960, m=0xb64230e8, from_local_signal_index=1, to_local_signal_index=2, argv=0xbf911ffc) at kernel/qobject.cpp:3207    
        offset = <value optimized out>                                                                                                                                      
        from_signal_index = 5                                                                                                                                               
        to_signal_index = 6                                                                                                                                                 
#19 0xb5bcc181 in QAction::triggered (this=0x97ea960, _t1=false) at .moc/release-shared/moc_qaction.cpp:236                                                                 
        _a = {0x0, 0xbf911ff0}                                                                                                                                              
#20 0xb5bcd6ff in QAction::activate (this=0x97ea960, event=Trigger) at kernel/qaction.cpp:1160                                                                              
        guard = 0x97ea960                                                                                                                                                   
#21 0xb5bd01fb in QAction::event (this=0x97ea960, e=0xbf912424) at kernel/qaction.cpp:1079                                                                                  
No locals.                                                                                                                                                                  
#22 0xb7c76a29 in KAction::event (this=0x97ea960, event=0xbf912424) at /usr/src/debug/kdelibs-4.3.66svn1016707/kdeui/actions/kaction.cpp:88                                 
No locals.                                                                                                                                                                  
#23 0xb5bd27fc in QApplicationPrivate::notify_helper (this=0x8ea5608, receiver=0x97ea960, e=0xbf912424) at kernel/qapplication.cpp:4056                                     
        consumed = <value optimized out>                                                                                                                                    
#24 0xb5bdaaee in QApplication::notify (this=0xbf91433c, receiver=0x97ea960, e=0xbf912424) at kernel/qapplication.cpp:3603                                                  
        res = true                                                                                                                                                          
#25 0xb7d61efd in KApplication::notify (this=0xbf91433c, receiver=0x97ea960, event=0xbf912424) at /usr/src/debug/kdelibs-4.3.66svn1016707/kdeui/kernel/kapplication.cpp:302 
No locals.                                                                                                                                                                  
#26 0xb66fb16b in QCoreApplication::notifyInternal (this=0xbf91433c, receiver=0x97ea960, event=0xbf912424) at kernel/qcoreapplication.cpp:610                               
        result = false                                                                                                                                                      
        cbdata = {0x97ea960, 0xbf912424, 0xbf9123db}                                                                                                                        
        threadData = 0x8e79c48                                                                                                                                              
        returnValue = <value optimized out>                                                                                                                                 
#27 0xb5c0bc28 in sendEvent (event=<value optimized out>, receiver=<value optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:213                                
No locals.                                                                                                                                                                  
#28 QShortcutMap::dispatchEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qshortcutmap.cpp:884                                                
        d = 0x8ea4f48                                                                                                                                                       
        curKey = <value optimized out>                                                                                                                                      
        current = <value optimized out>                                                                                                                                     
        next = 0x97eab40                                                                                                                                                    
        i = <value optimized out>                                                                                                                                           
        enabledShortcuts = 1                                                                                                                                                
        se = {<QEvent> = {_vptr.QEvent = 0xb64233a8, d = 0x0, t = 117, posted = 0, spont = 0, m_accept = 1, reserved = 5832}, sequence = {d = 0x97eafb8}, ambig = false,    
          sid = -53}                                                                                                                                                        
#29 0xb5c0db2f in QShortcutMap::tryShortcutEvent (this=0x8ea56a8, o=0x92825b0, e=0xbf9127ac) at kernel/qshortcutmap.cpp:369                                                 
        d = 0x8ea4f48                                                                                                                                                       
        wasAccepted = true                                                                                                                                                  
        result = ExactMatch                                                                                                                                                 
        stateWasAccepted = <value optimized out>                                                                                                                            
        identicalMatches = 1                                                                                                                                                
#30 0xb5bdbd90 in QApplication::notify (this=0xbf91433c, receiver=0x92825b0, e=0xbf9127ac) at kernel/qapplication.cpp:3645                                                  
        pr = {o = 0x8eb27c0}                                                                                                                                                
        res = true                                                                                                                                                          
#31 0xb7d61efd in KApplication::notify (this=0xbf91433c, receiver=0x92825b0, event=0xbf9127ac) at /usr/src/debug/kdelibs-4.3.66svn1016707/kdeui/kernel/kapplication.cpp:302 
No locals.                                                                                                                                                                  
#32 0xb66fb16b in QCoreApplication::notifyInternal (this=0xbf91433c, receiver=0x92825b0, event=0xbf9127ac) at kernel/qcoreapplication.cpp:610                               
        result = false                                                                                                                                                      
        cbdata = {0x92825b0, 0xbf9127ac, 0xbf91273b}                                                                                                                        
        threadData = 0x8e79c48                                                                                                                                              
        returnValue = <value optimized out>                                                                                                                                 
#33 0xb5bd36de in sendSpontaneousEvent (event=<value optimized out>, receiver=0x92825b0) at ../../src/corelib/kernel/qcoreapplication.h:216                                 
No locals.                                                                                                                                                                  
#34 qt_sendSpontaneousEvent (event=<value optimized out>, receiver=0x92825b0) at kernel/qapplication.cpp:4958                                                               
No locals.                                                                                                                                                                  
#35 0xb5c6f970 in QKeyMapper::sendKeyEvent (keyWidget=0x92825b0, grab=false, type=KeyPress, code=16777223, modifiers=..., text=..., autorepeat=<value optimized out>,       
    count=<value optimized out>, nativeScanCode=107, nativeVirtualKey=65535, nativeModifiers=17) at kernel/qkeymapper_x11.cpp:1678                                          
        e = {<QKeyEvent> = {<QInputEvent> = {<QEvent> = {_vptr.QEvent = 0xb64235b0, d = 0xbf9127ac, t = 6, posted = 0, spont = 1, m_accept = 1, reserved = 6130},           
              modState = {i = 33554432}}, txt = {d = 0x9a02918}, k = 16777223, c = 1, autor = 0}, nScanCode = 107, nVirtualKey = 65535, nModifiers = 17}                    
#36 0xb5c71b5e in QKeyMapperPrivate::translateKeyEvent (this=0x8f910d8, keyWidget=0x92825b0, event=0xbf913fdc, grab=false) at kernel/qkeymapper_x11.cpp:1648                
        code = 16777223                                                                                                                                                     
        count = 1                                                                                                                                                           
        modifiers = {i = 33554432}                                                                                                                                          
        dpy = <value optimized out>                                                                                                                                         
        type = KeyPress                                                                                                                                                     
        autor = <value optimized out>                                                                                                                                       
        text = {d = 0x9a02918}                                                                                                                                              
        keysym = 65535                                                                                                                                                      
        auto_repeat_data = {window = 75497497, keycode = 107 'k', timestamp = 258784832, release = 184, error = 144}
Comment 3 Sebastien Renard 2012-08-18 08:11:16 UTC
Not reproductible with KDE 4.8.4
Comment 4 dag 2012-08-18 08:18:40 UTC
Yep, works now. Should have reported that,sorry.