[Bug 199271] New: Crash after compacting a mbox folder
Christophe Giboudeaux
cgiboudeaux at gmail.com
Tue Jul 7 11:23:23 BST 2009
https://bugs.kde.org/show_bug.cgi?id=199271
Summary: Crash after compacting a mbox folder
Product: kmail
Version: 1.12.90
Platform: Compiled Sources
OS/Version: Linux
Status: NEW
Severity: crash
Priority: NOR
Component: general
AssignedTo: kdepim-bugs at kde.org
ReportedBy: cgiboudeaux at gmail.com
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)
--
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