[Bug 247023] New: kmail crashed when "compact folder" used on folder with a lot of mail

RastafariMan xgeorge at seznam.cz
Sun Aug 8 00:32:50 BST 2010


https://bugs.kde.org/show_bug.cgi?id=247023

           Summary: kmail crashed when "compact folder" used on folder
                    with a lot of mail
           Product: kmail
           Version: unspecified
          Platform: Unlisted Binaries
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: kdepim-bugs at kde.org
        ReportedBy: xgeorge at seznam.cz


Application that crashed: kmail
Version of the application: 1.12.2
KDE Version: 4.3.2 (KDE 4.3.2)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-22-generic i686
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
- kmail, latest updates of my distro applied today (but not sure if this is the
cause of this bug, because I did not tried to use "compat folder" before)

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)


 -- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
[KCrash Handler]
#6  QVector<KMMsgBase*>::realloc (this=0x857e4a0, idx=1018) at
/usr/include/qt4/QtCore/qvector.h:502
#7  QVector<KMMsgBase*>::detach_helper (this=0x857e4a0, idx=1018) at
/usr/include/qt4/QtCore/qvector.h:315
#8  QVector<KMMsgBase*>::detach (this=0x857e4a0, idx=1018) at
/usr/include/qt4/QtCore/qvector.h:129
#9  QVector<KMMsgBase*>::data (this=0x857e4a0, idx=1018) at
/usr/include/qt4/QtCore/qvector.h:133
#10 QVector<KMMsgBase*>::operator[] (this=0x857e4a0, idx=1018) at
/usr/include/qt4/QtCore/qvector.h:338
#11 KMFolderIndex::getMsgBase (this=0x857e4a0, idx=1018) at
../../kmail/kmfolderindex.h:73
#12 0x00feed6e in KMFolder::getMsgBase (this=0x856d698, idx=1018) at
../../kmail/kmfolder.cpp:420
#13 0x0135c5c6 in KMail::MessageListView::StorageModel::initializeMessageItem
(this=0x8e32190, mi=0x8ecb868, row=1018, bUseReceiver=false) at
../../kmail/messagelistview/storagemodel.cpp:398
#14 0x01385d41 in
KMail::MessageListView::Core::Model::viewItemJobStepInternalForJobPass1Fill
(this=0x8761698, job=0x895fb88, tStart=...) at
../../kmail/messagelistview/core/model.cpp:2714
#15 0x0138754b in
KMail::MessageListView::Core::Model::viewItemJobStepInternalForJob
(this=0x8761698, job=0x895fb88, tStart=...) at
../../kmail/messagelistview/core/model.cpp:3356
#16 0x01387b72 in KMail::MessageListView::Core::Model::viewItemJobStepInternal
(this=0x8761698) at ../../kmail/messagelistview/core/model.cpp:3728
#17 0x0138888e in KMail::MessageListView::Core::Model::viewItemJobStep
(this=0x8761698) at ../../kmail/messagelistview/core/model.cpp:3916
#18 0x01389c47 in KMail::MessageListView::Core::Model::setStorageModel
(this=0x8761698, storageModel=0x8e32190,
preSelectionMode=KMail::MessageListView::Core::PreSelectLastSelected)
    at ../../kmail/messagelistview/core/model.cpp:808
#19 0x0138a6a3 in
KMail::MessageListView::Core::Model::slotStorageModelLayoutChanged
(this=0x8761698) at ../../kmail/messagelistview/core/model.cpp:4399
#20 0x00efd036 in KMail::MessageListView::Core::Model::qt_metacall
(this=0x8761698, _c=QMetaObject::InvokeMetaMethod, _id=24, _a=0xbfab564c) at
moc_model.cpp:80
#21 0x00a38263 in QMetaObject::activate (sender=0x8e32190,
from_signal_index=17, to_signal_index=17, argv=0x0) at kernel/qobject.cpp:3113
#22 0x00a38ec2 in QMetaObject::activate (sender=0x8e32190, m=0xb134f8,
local_signal_index=13, argv=0x0) at kernel/qobject.cpp:3187
#23 0x00a716b7 in QAbstractItemModel::modelReset (this=0x8e32190) at
.moc/release-shared/moc_qabstractitemmodel.cpp:213
#24 0x00a1c16d in QAbstractItemModel::reset (this=0x8e32190) at
kernel/qabstractitemmodel.cpp:2263
#25 0x0135a9dd in KMail::MessageListView::StorageModel::slotViewConfigChanged
(this=0x8e32190) at ../../kmail/messagelistview/storagemodel.cpp:614
#26 0x00efd18b in KMail::MessageListView::StorageModel::qt_metacall
(this=0x8e32190, _c=QMetaObject::InvokeMetaMethod, _id=28, _a=0xbfab57cc) at
moc_storagemodel.cpp:92
#27 0x00a38263 in QMetaObject::activate (sender=0x856d698,
from_signal_index=22, to_signal_index=22, argv=0x0) at kernel/qobject.cpp:3113
#28 0x00a38ec2 in QMetaObject::activate (sender=0x856d698, m=0x1602da0,
local_signal_index=18, argv=0x0) at kernel/qobject.cpp:3187
#29 0x00fef737 in KMFolder::viewConfigChanged (this=0x856d698) at
./kmfolder.moc:279
#30 0x00ff5df5 in KMFolder::setUserWhoField (this=0x856d698, whoField=...,
writeConfig=false) at ../../kmail/kmfolder.cpp:774
#31 0x00ff6a46 in KMFolder::readConfig (this=0x856d698, configGroup=...) at
../../kmail/kmfolder.cpp:219
#32 0x010269a7 in FolderStorage::readConfig (this=0x857e4a0) at
../../kmail/folderstorage.cpp:963
#33 0x010222ba in FolderStorage::countUnread (this=0x857e4a0) at
../../kmail/folderstorage.cpp:866
#34 0x00feef97 in KMFolder::countUnread (this=0x856d698) at
../../kmail/kmfolder.cpp:505
#35 0x011f9d9c in KMMainWidget::updateMarkAsReadAction (this=0x87a4760) at
../../kmail/kmmainwidget.cpp:4427
#36 0x01222791 in KMMainWidget::qt_metacall (this=0x87a4760,
_c=QMetaObject::InvokeMetaMethod, _id=130, _a=0xbfab5c8c) at
./kmmainwidget.moc:478
#37 0x00a38263 in QMetaObject::activate (sender=0x856d698, from_signal_index=4,
to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3113
#38 0x00a38ec2 in QMetaObject::activate (sender=0x856d698, m=0x1602da0,
local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3187
#39 0x00fefcb7 in KMFolder::changed (this=0x856d698) at ./kmfolder.moc:159
#40 0x00ff40c7 in KMFolder::qt_metacall (this=0x856d698,
_c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfab5d8c) at ./kmfolder.moc:117
#41 0x00a38263 in QMetaObject::activate (sender=0x857e4a0, from_signal_index=4,
to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3113
#42 0x00a38ec2 in QMetaObject::activate (sender=0x857e4a0, m=0x1603388,
local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3187
#43 0x01022d47 in FolderStorage::changed (this=0x857e4a0) at
./folderstorage.moc:159
#44 0x010c68b8 in KMFolderMbox::compact (this=0x857e4a0, silent=<value
optimized out>) at ../../kmail/kmfoldermbox.cpp:1325
#45 0x00ff0593 in KMFolder::compact (this=0x856d698,
options=KMFolder::CompactNow) at ../../kmail/kmfolder.cpp:894
#46 0x011fbda4 in KMMainWidget::slotCompactFolder (this=0x87a4760) at
../../kmail/kmmainwidget.cpp:1476
#47 0x01222290 in KMMainWidget::qt_metacall (this=0x87a4760,
_c=QMetaObject::InvokeMetaMethod, _id=58, _a=0xbfab6018) at
./kmmainwidget.moc:405
#48 0x00a38263 in QMetaObject::activate (sender=0x8d81768, from_signal_index=5,
to_signal_index=6, argv=0xbfab6018) at kernel/qobject.cpp:3113
#49 0x00a386d8 in QMetaObject::activate (sender=0x8d81768, m=0x4cbae48,
from_local_signal_index=1, to_local_signal_index=2, argv=0xbfab6018) at
kernel/qobject.cpp:3207
#50 0x044529b1 in QAction::triggered (this=0x8d81768, _t1=false) at
.moc/release-shared/moc_qaction.cpp:236
#51 0x04453f32 in QAction::activate (this=0x8d81768, event=QAction::Trigger) at
kernel/qaction.cpp:1160
#52 0x048a19cc in QMenuPrivate::activateCausedStack (this=0xcedcd50,
causedStack=..., action=0x8d81768, action_e=QAction::Trigger, self=true) at
widgets/qmenu.cpp:967
#53 0x048a803b in QMenuPrivate::activateAction (this=0xcedcd50,
action=0x8d81768, action_e=QAction::Trigger, self=<value optimized out>) at
widgets/qmenu.cpp:1060
#54 0x048a8bf7 in QMenu::mouseReleaseEvent (this=0x878c710, e=0xbfab6770) at
widgets/qmenu.cpp:2254
#55 0x003cd1c5 in KMenu::mouseReleaseEvent (this=0x878c710, e=0xbfab6770) at
../../kdeui/widgets/kmenu.cpp:456
#56 0x044ae012 in QWidget::event (this=0x878c710, event=0xbfab6770) at
kernel/qwidget.cpp:7549
#57 0x048aae34 in QMenu::event (this=0x878c710, e=0xbfab6770) at
widgets/qmenu.cpp:2353
#58 0x04458f54 in QApplicationPrivate::notify_helper (this=0x831f300,
receiver=0x878c710, e=0xbfab6770) at kernel/qapplication.cpp:4056
#59 0x04461033 in QApplication::notify (this=0xbfaba3e0, receiver=0x878c710,
e=0xbfab6770) at kernel/qapplication.cpp:3758
#60 0x002e2bfa in KApplication::notify (this=0xbfaba3e0, receiver=0x878c710,
event=0xbfab6770) at ../../kdeui/kernel/kapplication.cpp:302
#61 0x00a226cb in QCoreApplication::notifyInternal (this=0xbfaba3e0,
receiver=0x878c710, event=0xbfab6770) at kernel/qcoreapplication.cpp:610
#62 0x0445ff6e in QCoreApplication::sendSpontaneousEvent (receiver=0x878c710,
event=0xbfab6770, alienWidget=0x0, nativeWidget=0x878c710,
buttonDown=0x4cd3aa0, lastMouseReceiver=...)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#63 QApplicationPrivate::sendMouseEvent (receiver=0x878c710, event=0xbfab6770,
alienWidget=0x0, nativeWidget=0x878c710, buttonDown=0x4cd3aa0,
lastMouseReceiver=...) at kernel/qapplication.cpp:2924
#64 0x044cec87 in QETWidget::translateMouseEvent (this=0x878c710,
event=0xbfab7dbc) at kernel/qapplication_x11.cpp:4343
#65 0x044cdc4b in QApplication::x11ProcessEvent (this=0xbfaba3e0,
event=0xbfab7dbc) at kernel/qapplication_x11.cpp:3428
#66 0x044fa502 in x11EventSourceDispatch (s=0x83183f8, callback=0,
user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#67 0x0266ee88 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#68 0x02672730 in ?? () from /lib/libglib-2.0.so.0
#69 0x02672863 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#70 0x00a4d02c in QEventDispatcherGlib::processEvents (this=0x82f0180,
flags=...) at kernel/qeventdispatcher_glib.cpp:327
#71 0x044f9be5 in QGuiEventDispatcherGlib::processEvents (this=0x82f0180,
flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#72 0x00a20c79 in QEventLoop::processEvents (this=0xbfab80b0, flags=) at
kernel/qeventloop.cpp:149
#73 0x00a210ca in QEventLoop::exec (this=0xbfab80b0, flags=...) at
kernel/qeventloop.cpp:201
#74 0x048aac9e in QMenu::exec (this=0x878c710, p=..., action=0x0) at
widgets/qmenu.cpp:1993
#75 0x00f9ce5e in KMail::FolderView::contextMenuEvent (this=0x8bfa9f0,
e=0xbfab8988) at ../../kmail/folderview.cpp:1563
#76 0x044ae69f in QWidget::event (this=0x8bfa9f0, event=0xbfab8988) at
kernel/qwidget.cpp:7708
#77 0x0485d633 in QFrame::event (this=0x8bfa9f0, e=0xbfab8988) at
widgets/qframe.cpp:559
#78 0x048fc494 in QAbstractScrollArea::viewportEvent (this=0x3fa, e=0x3fa) at
widgets/qabstractscrollarea.cpp:962
#79 0x049b0087 in QAbstractItemView::viewportEvent (this=0x8bfa9f0,
event=0xbfab8988) at itemviews/qabstractitemview.cpp:1476
#80 0x049eb434 in QTreeView::viewportEvent (this=0x8bfa9f0, event=0xbfab8988)
at itemviews/qtreeview.cpp:1266
#81 0x048fea95 in QAbstractScrollAreaPrivate::viewportEvent (this=0x8963288,
o=0x8958f08, e=0xbfab8988) at widgets/qabstractscrollarea_p.h:100
#82 QAbstractScrollAreaFilter::eventFilter (this=0x8963288, o=0x8958f08,
e=0xbfab8988) at widgets/qabstractscrollarea_p.h:111
#83 0x00a2183a in QCoreApplicationPrivate::sendThroughObjectEventFilters
(this=0x831f300, receiver=0x8958f08, event=0xbfab8988) at
kernel/qcoreapplication.cpp:726
#84 0x04458f2c in QApplicationPrivate::notify_helper (this=0x831f300,
receiver=0x8958f08, e=0xbfab8988) at kernel/qapplication.cpp:4052
#85 0x04460ae3 in QApplication::notify (this=0xbfaba3e0, receiver=0x8958f08,
e=0xbfab8988) at kernel/qapplication.cpp:3845
#86 0x002e2bfa in KApplication::notify (this=0xbfaba3e0, receiver=0x8958f08,
event=0xbfab8988) at ../../kdeui/kernel/kapplication.cpp:302
#87 0x00a226cb in QCoreApplication::notifyInternal (this=0xbfaba3e0,
receiver=0x8958f08, event=0xbfab8988) at kernel/qcoreapplication.cpp:610
#88 0x044d466e in QCoreApplication::sendSpontaneousEvent (receiver=0x8958f08,
event=0x857e4a0) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#89 0x044cee64 in QETWidget::translateMouseEvent (this=0x87a70f0,
event=0xbfab9fac) at kernel/qapplication_x11.cpp:4415
#90 0x044cdc4b in QApplication::x11ProcessEvent (this=0xbfaba3e0,
event=0xbfab9fac) at kernel/qapplication_x11.cpp:3428
#91 0x044fa502 in x11EventSourceDispatch (s=0x83183f8, callback=0,
user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#92 0x0266ee88 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#93 0x02672730 in ?? () from /lib/libglib-2.0.so.0
#94 0x02672863 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#95 0x00a4d02c in QEventDispatcherGlib::processEvents (this=0x82f0180,
flags=...) at kernel/qeventdispatcher_glib.cpp:327
#96 0x044f9be5 in QGuiEventDispatcherGlib::processEvents (this=0x82f0180,
flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#97 0x00a20c79 in QEventLoop::processEvents (this=0xbfaba2a4, flags=) at
kernel/qeventloop.cpp:149
#98 0x00a210ca in QEventLoop::exec (this=0xbfaba2a4, flags=...) at
kernel/qeventloop.cpp:201
#99 0x00a2353f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#100 0x04458dd7 in QApplication::exec () at kernel/qapplication.cpp:3525
#101 0x0804a702 in main (argc=3, argv=0xbfaba594) at ../../kmail/main.cpp:146

Reported using DrKonqi

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list