Bug 186265 - Kmail crashes when moving many mails at once to different imap folder
Summary: Kmail crashes when moving many mails at once to different imap folder
Status: RESOLVED NOT A BUG
Alias: None
Product: kmail
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-05 21:33 UTC by Michał Gawroński
Modified: 2009-08-13 01:47 UTC (History)
3 users (show)

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


Attachments
backtrace (31.26 KB, application/x-bzip2)
2009-08-11 07:08 UTC, Michal Hlavinka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Gawroński 2009-03-05 21:33:00 UTC
Version:            (using KDE 4.2.0)
OS:                Linux

Kmail very often crashes when im moving many mails to another imap folder. This occurs on three different imap accounts, each on different server.
Comment 1 Dario Andres 2009-03-06 00:18:13 UTC
If you can reproduce the crash at will, may you read http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports and post a complete backtrace here? Thanks :)
Comment 2 Dario Andres 2009-03-14 23:59:26 UTC
Marking as NEEDSINFO
Comment 3 Michal Hlavinka 2009-08-04 13:45:29 UTC
I can reproduce this.
what I've done:
1)create new sub-folder (imap account, don't know if this step is required)
2)select several emails and move them to that new folder
3)when emails are still being moved, open that folder

result>
kmail not responding for some time and then crash
it seems it hangs in loop for some time

reproduced with kde 4.2.98, kmail 1.12.0

I have core files, generating backtrace (for 12 minutes now, stack depth 1500 and still going), I'll attach backtrace when done
Comment 4 Michal Hlavinka 2009-08-04 14:30:58 UTC
huh... over 55 minutes and still going... complete stack depth is almost 50 000

I'll keep core files for some time, let me know if compete backtrace is really needed.

some info:
top:
#0  0x0000003d8db1c50f in QFSFileEngine::fileName (this=0x356c340, file=<value optimized out>) at io/qfsfileengine_unix.cpp:702
#1  0x0000003d8db1b7fe in QFSFileEngine::fileFlags (this=<value optimized out>, type={i = 4194304}) at io/qfsfileengine_unix.cpp:674
#2  0x0000003d8db1c5a7 in QFSFileEngine::fileName (this=0x2f, file=QAbstractFileEngine::CanonicalName) at io/qfsfileengine_unix.cpp:737
#3  0x0000003d8dada610 in QFileInfoPrivate::getFileName (this=0x3524420, name=QAbstractFileEngine::CanonicalName) at io/qfileinfo.cpp:202
#4  0x0000003d8dadadfb in QFileInfo::canonicalFilePath (this=<value optimized out>) at io/qfileinfo.cpp:624
#5  0x0000003d8f4a1c8d in KConfigIniBackend::setFilePath (this=0x334ad90, file=<value optimized out>) at /usr/src/debug/kdelibs-4.2.98/kdecore/config/kconfigini.cpp:534
#6  0x0000003d8f4a08ce in KConfigBackend::create (componentData=<value optimized out>, file=<value optimized out>, sys=<value optimized out>)
    at /usr/src/debug/kdelibs-4.2.98/kdecore/config/kconfigbackend.cpp:89
#7  0x0000003d8f48ebaa in KConfigPrivate::changeFileName (this=0x4316550, name=@0x7fff39e78810, type=<value optimized out>) at /usr/src/debug/kdelibs-4.2.98/kdecore/config/kconfig.cpp:426
#8  0x0000003d8f490b2b in KConfig::KConfig (this=0x7fff39e787b0, file=@0x7fff39e78810, mode=<value optimized out>, resourceType=0x3d8f6119b7 "config")
    at /usr/src/debug/kdelibs-4.2.98/kdecore/config/kconfig.cpp:158
#9  0x0000003d8f58c25f in KLocale::countryCodeToName (this=<value optimized out>, country=<value optimized out>) at /usr/src/debug/kdelibs-4.2.98/kdecore/localization/klocale.cpp:2527
#10 0x0000003d8f554158 in Sonnet::Loader::languageNameForCode (this=<value optimized out>, langCode=<value optimized out>) at /usr/src/debug/kdelibs-4.2.98/kdecore/sonnet/loader.cpp:199
#11 0x0000003d8f55c314 in Sonnet::defaultLanguageName () at /usr/src/debug/kdelibs-4.2.98/kdecore/sonnet/globals.cpp:92
#12 0x0000003d97a16de6 in KPIMIdentities::Identity::isNull (this=0x2442690) at /usr/src/debug/kdepimlibs-4.2.98/kpimidentities/identity.cpp:86
#13 0x00007f9877dfe385 in KMFolder::slotIdentitiesChanged (this=0x31dbd70) at /usr/src/debug/kdepim-4.2.98/kmail/kmfolder.cpp:957
#14 0x00007f9877e03d37 in KMFolder::readConfig (this=0x31dbd70, configGroup=@0x7fff39e79100) at /usr/src/debug/kdepim-4.2.98/kmail/kmfolder.cpp:209
#15 0x00007f9877e2e1aa in FolderStorage::readConfig (this=0x3396620) at /usr/src/debug/kdepim-4.2.98/kmail/folderstorage.cpp:963
#16 0x00007f9877edf079 in KMFolderImap::readConfig (this=0x3396620) at /usr/src/debug/kdepim-4.2.98/kmail/kmfolderimap.cpp:214
#17 0x00007f9877e2a480 in FolderStorage::countUnread (this=0x3548c30) at /usr/src/debug/kdepim-4.2.98/kmail/folderstorage.cpp:866
#18 0x00007f987814923a in KMail::MessageListView::Core::Model::setStorageModel (this=0x272f880, storageModel=<value optimized out>,
    preSelectionMode=KMail::MessageListView::Core::PreSelectLastSelected) at /usr/src/debug/kdepim-4.2.98/kmail/messagelistview/core/model.cpp:733
#19 0x00007f98781499c6 in KMail::MessageListView::Core::Model::slotStorageModelLayoutChanged (this=<value optimized out>)
    at /usr/src/debug/kdepim-4.2.98/kmail/messagelistview/core/model.cpp:4440
#20 0x00007f9877d263d4 in KMail::MessageListView::Core::Model::qt_metacall (this=0x272f880, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff39e79700)
    at /usr/src/debug/kdepim-4.2.98/x86_64-redhat-linux-gnu/kmail/moc_model.cpp:80
#21 0x0000003d8db54fdc in QMetaObject::activate (sender=0x4333ac0, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3113
#22 0x0000003d8db39a45 in QAbstractItemModel::reset (this=0x4333ac0) at kernel/qabstractitemmodel.cpp:2263
#23 0x00007f9877d2751c in KMail::MessageListView::StorageModel::qt_metacall (this=0x4333ac0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff39e79860)
    at /usr/src/debug/kdepim-4.2.98/x86_64-redhat-linux-gnu/kmail/moc_storagemodel.cpp:92
#24 0x0000003d8db54fdc in QMetaObject::activate (sender=0x31dbd70, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3113
#25 0x00007f9877e030d0 in KMFolder::setUserWhoField (this=0x31dbd70, whoField=@0x7fff39e79b80, writeConfig=false) at /usr/src/debug/kdepim-4.2.98/kmail/kmfolder.cpp:745
#26 0x00007f9877e03d58 in KMFolder::readConfig (this=0x31dbd70, configGroup=@0x7fff39e79ce0) at /usr/src/debug/kdepim-4.2.98/kmail/kmfolder.cpp:211
#27 0x00007f9877e2e1aa in FolderStorage::readConfig (this=0x3396620) at /usr/src/debug/kdepim-4.2.98/kmail/folderstorage.cpp:963
#28 0x00007f9877edf079 in KMFolderImap::readConfig (this=0x3396620) at /usr/src/debug/kdepim-4.2.98/kmail/kmfolderimap.cpp:214
#29 0x00007f9877e2a480 in FolderStorage::countUnread (this=0x3548c30) at /usr/src/debug/kdepim-4.2.98/kmail/folderstorage.cpp:866
#30 0x00007f987814923a in KMail::MessageListView::Core::Model::setStorageModel (this=0x272f880, storageModel=<value optimized out>,
    preSelectionMode=KMail::MessageListView::Core::PreSelectLastSelected) at /usr/src/debug/kdepim-4.2.98/kmail/messagelistview/core/model.cpp:733
#31 0x00007f98781499c6 in KMail::MessageListView::Core::Model::slotStorageModelLayoutChanged (this=<value optimized out>)
    at /usr/src/debug/kdepim-4.2.98/kmail/messagelistview/core/model.cpp:4440
#32 0x00007f9877d263d4 in KMail::MessageListView::Core::Model::qt_metacall (this=0x272f880, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff39e7a2e0)
    at /usr/src/debug/kdepim-4.2.98/x86_64-redhat-linux-gnu/kmail/moc_model.cpp:80
#33 0x0000003d8db54fdc in QMetaObject::activate (sender=0x4333ac0, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3113
#34 0x0000003d8db39a45 in QAbstractItemModel::reset (this=0x4333ac0) at kernel/qabstractitemmodel.cpp:2263


this pattern is repeated:
#1930 0x0000003d8db39a45 in QAbstractItemModel::reset (this=0x4333ac0) at kernel/qabstractitemmodel.cpp:2263
#1931 0x00007f9877d2751c in KMail::MessageListView::StorageModel::qt_metacall (this=0x4333ac0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff39eef880)
    at /usr/src/debug/kdepim-4.2.98/x86_64-redhat-linux-gnu/kmail/moc_storagemodel.cpp:92
#1932 0x0000003d8db54fdc in QMetaObject::activate (sender=0x31dbd70, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3113
#1933 0x00007f9877e030d0 in KMFolder::setUserWhoField (this=0x31dbd70, whoField=@0x7fff39eefba0, writeConfig=false) at /usr/src/debug/kdepim-4.2.98/kmail/kmfolder.cpp:745
#1934 0x00007f9877e03d58 in KMFolder::readConfig (this=0x31dbd70, configGroup=@0x7fff39eefd00) at /usr/src/debug/kdepim-4.2.98/kmail/kmfolder.cpp:211
#1935 0x00007f9877e2e1aa in FolderStorage::readConfig (this=0x3396620) at /usr/src/debug/kdepim-4.2.98/kmail/folderstorage.cpp:963
#1936 0x00007f9877edf079 in KMFolderImap::readConfig (this=0x3396620) at /usr/src/debug/kdepim-4.2.98/kmail/kmfolderimap.cpp:214
#1937 0x00007f9877e2a480 in FolderStorage::countUnread (this=0x3548c30) at /usr/src/debug/kdepim-4.2.98/kmail/folderstorage.cpp:866
#1938 0x00007f987814923a in KMail::MessageListView::Core::Model::setStorageModel (this=0x272f880, storageModel=<value optimized out>, 
    preSelectionMode=KMail::MessageListView::Core::PreSelectLastSelected) at /usr/src/debug/kdepim-4.2.98/kmail/messagelistview/core/model.cpp:733
#1939 0x00007f98781499c6 in KMail::MessageListView::Core::Model::slotStorageModelLayoutChanged (this=<value optimized out>)
    at /usr/src/debug/kdepim-4.2.98/kmail/messagelistview/core/model.cpp:4440
#1940 0x00007f9877d263d4 in KMail::MessageListView::Core::Model::qt_metacall (this=0x272f880, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff39ef0300)
    at /usr/src/debug/kdepim-4.2.98/x86_64-redhat-linux-gnu/kmail/moc_model.cpp:80
#1941 0x0000003d8db54fdc in QMetaObject::activate (sender=0x4333ac0, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3113

stack bottom:
-this will definitely take some time, after 1 hour 5 % is done and every step takes more time than previous one... still generating, will upload later
Comment 5 Michal Hlavinka 2009-08-06 11:21:16 UTC
I've tried again with reduced stack size (ulimit -s 24) now depth is only 8000.

stack bottom (until repeated pattern as in prev comment):
....
<pattern>
#8253 0x0000003d8db39a45 in QAbstractItemModel::reset (this=0x338eff0) at kernel/qabstractitemmodel.cpp:2263
#8254 0x00007f0c3759839c in KMail::MessageListView::StorageModel::qt_metacall (this=0x338eff0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffa70d5610)
    at /usr/src/debug/kdepim-4.3.0/x86_64-redhat-linux-gnu/kmail/moc_storagemodel.cpp:92
#8255 0x0000003d8db54fdc in QMetaObject::activate (sender=0x354c1e0, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3113
#8256 0x00007f0c376750d0 in KMFolder::setUserWhoField (this=0x354c1e0, whoField=@0x7fffa70d5930, writeConfig=false) at /usr/src/debug/kdepim-4.3.0/kmail/kmfolder.cpp:745
#8257 0x00007f0c37675d58 in KMFolder::readConfig (this=0x354c1e0, configGroup=@0x7fffa70d5a90) at /usr/src/debug/kdepim-4.3.0/kmail/kmfolder.cpp:211
#8258 0x00007f0c376a018a in FolderStorage::readConfig (this=0x356a430) at /usr/src/debug/kdepim-4.3.0/kmail/folderstorage.cpp:963
#8259 0x00007f0c377510e9 in KMFolderImap::readConfig (this=0x356a430) at /usr/src/debug/kdepim-4.3.0/kmail/kmfolderimap.cpp:214
#8260 0x00007f0c3769c460 in FolderStorage::countUnread (this=0x37c80c0) at /usr/src/debug/kdepim-4.3.0/kmail/folderstorage.cpp:866
#8261 0x00007f0c379bb40a in KMail::MessageListView::Core::Model::setStorageModel (this=0x28c23d0, storageModel=<value optimized out>, 
    preSelectionMode=KMail::MessageListView::Core::PreSelectLastSelected) at /usr/src/debug/kdepim-4.3.0/kmail/messagelistview/core/model.cpp:733
#8262 0x00007f0c379bbb96 in KMail::MessageListView::Core::Model::slotStorageModelLayoutChanged (this=<value optimized out>)
    at /usr/src/debug/kdepim-4.3.0/kmail/messagelistview/core/model.cpp:4440
#8263 0x00007f0c37597ef4 in KMail::MessageListView::Core::Model::qt_metacall (this=0x28c23d0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffa70d6090)
    at /usr/src/debug/kdepim-4.3.0/x86_64-redhat-linux-gnu/kmail/moc_model.cpp:80
#8264 0x0000003d8db54fdc in QMetaObject::activate (sender=0x338eff0, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3113
<pattern/>

<pattern>
#8265 0x0000003d8db39a45 in QAbstractItemModel::reset (this=0x338eff0) at kernel/qabstractitemmodel.cpp:2263
#8266 0x00007f0c3759839c in KMail::MessageListView::StorageModel::qt_metacall (this=0x338eff0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffa70d61f0)
    at /usr/src/debug/kdepim-4.3.0/x86_64-redhat-linux-gnu/kmail/moc_storagemodel.cpp:92
#8267 0x0000003d8db54fdc in QMetaObject::activate (sender=0x354c1e0, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3113
#8268 0x00007f0c376750d0 in KMFolder::setUserWhoField (this=0x354c1e0, whoField=@0x7fffa70d6510, writeConfig=false) at /usr/src/debug/kdepim-4.3.0/kmail/kmfolder.cpp:745
#8269 0x00007f0c37675d58 in KMFolder::readConfig (this=0x354c1e0, configGroup=@0x7fffa70d6670) at /usr/src/debug/kdepim-4.3.0/kmail/kmfolder.cpp:211
#8270 0x00007f0c376a018a in FolderStorage::readConfig (this=0x356a430) at /usr/src/debug/kdepim-4.3.0/kmail/folderstorage.cpp:963
#8271 0x00007f0c377510e9 in KMFolderImap::readConfig (this=0x356a430) at /usr/src/debug/kdepim-4.3.0/kmail/kmfolderimap.cpp:214
#8272 0x00007f0c3769c460 in FolderStorage::countUnread (this=0x37c80c0) at /usr/src/debug/kdepim-4.3.0/kmail/folderstorage.cpp:866
#8273 0x00007f0c379bb40a in KMail::MessageListView::Core::Model::setStorageModel (this=0x28c23d0, storageModel=<value optimized out>, 
    preSelectionMode=KMail::MessageListView::Core::PreSelectLastSelected) at /usr/src/debug/kdepim-4.3.0/kmail/messagelistview/core/model.cpp:733
#8274 0x00007f0c379bbb96 in KMail::MessageListView::Core::Model::slotStorageModelLayoutChanged (this=<value optimized out>)
    at /usr/src/debug/kdepim-4.3.0/kmail/messagelistview/core/model.cpp:4440
#8275 0x00007f0c37597ef4 in KMail::MessageListView::Core::Model::qt_metacall (this=0x28c23d0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffa70d6c70)
    at /usr/src/debug/kdepim-4.3.0/x86_64-redhat-linux-gnu/kmail/moc_model.cpp:80
#8276 0x0000003d8db54fdc in QMetaObject::activate (sender=0x338eff0, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3113
<pattern/>

#8277 0x0000003d8db39a45 in QAbstractItemModel::reset (this=0x338eff0) at kernel/qabstractitemmodel.cpp:2263
#8278 0x00007f0c3759839c in KMail::MessageListView::StorageModel::qt_metacall (this=0x338eff0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffa70d6dd0)
    at /usr/src/debug/kdepim-4.3.0/x86_64-redhat-linux-gnu/kmail/moc_storagemodel.cpp:92
#8279 0x0000003d8db54fdc in QMetaObject::activate (sender=0x354c1e0, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3113
#8280 0x00007f0c376750d0 in KMFolder::setUserWhoField (this=0x354c1e0, whoField=@0x7fffa70d70f0, writeConfig=false) at /usr/src/debug/kdepim-4.3.0/kmail/kmfolder.cpp:745
#8281 0x00007f0c37675d58 in KMFolder::readConfig (this=0x354c1e0, configGroup=@0x7fffa70d7250) at /usr/src/debug/kdepim-4.3.0/kmail/kmfolder.cpp:211
#8282 0x00007f0c376a018a in FolderStorage::readConfig (this=0x356a430) at /usr/src/debug/kdepim-4.3.0/kmail/folderstorage.cpp:963
#8283 0x00007f0c377510e9 in KMFolderImap::readConfig (this=0x356a430) at /usr/src/debug/kdepim-4.3.0/kmail/kmfolderimap.cpp:214
#8284 0x00007f0c3769c460 in FolderStorage::countUnread (this=0x37c80c0) at /usr/src/debug/kdepim-4.3.0/kmail/folderstorage.cpp:866
#8285 0x00007f0c379bb40a in KMail::MessageListView::Core::Model::setStorageModel (this=0x28c23d0, storageModel=<value optimized out>, 
    preSelectionMode=KMail::MessageListView::Core::PreSelectLastSelected) at /usr/src/debug/kdepim-4.3.0/kmail/messagelistview/core/model.cpp:733
#8286 0x00007f0c379e2581 in KMail::MessageListView::Core::View::setStorageModel (this=0x2a76ba0, storageModel=0x2f, preSelectionMode=4294967295)
    at /usr/src/debug/kdepim-4.3.0/kmail/messagelistview/core/view.cpp:171
#8287 0x00007f0c379e96fb in KMail::MessageListView::Core::Widget::setStorageModel (this=0x2847f10, storageModel=0x338eff0, 
    preSelectionMode=KMail::MessageListView::Core::PreSelectLastSelected) at /usr/src/debug/kdepim-4.3.0/kmail/messagelistview/core/widgetbase.cpp:308
#8288 0x00007f0c37994b9f in KMail::MessageListView::Widget::setFolder (this=0x2847f10, fld=<value optimized out>, icon=<value optimized out>, preSelectionMode=<value optimized out>)
    at /usr/src/debug/kdepim-4.3.0/kmail/messagelistview/widget.cpp:113
#8289 0x00007f0c3798e586 in KMail::MessageListView::Pane::setCurrentFolder (this=0x2ad6310, fld=0x354c1e0, preferEmptyTab=<value optimized out>, 
    preSelectionMode=KMail::MessageListView::Core::PreSelectLastSelected, overrideLabel=@0x7fffa70d7af0) at /usr/src/debug/kdepim-4.3.0/kmail/messagelistview/pane.cpp:218
#8290 0x00007f0c3786d4e6 in KMMainWidget::folderSelected (this=0x2858cf0, aFolder=<value optimized out>, forceJumpToUnread=false, preferNewTabForOpening=255)
    at /usr/src/debug/kdepim-4.3.0/kmail/kmmainwidget.cpp:3081
#8291 0x00007f0c3786e739 in KMMainWidget::folderSelected (this=0x37c80c0) at /usr/src/debug/kdepim-4.3.0/kmail/kmmainwidget.cpp:2879
#8292 0x00007f0c3786fa04 in KMMainWidget::qt_metacall (this=0x2858cf0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffa70d7cb0)
    at /usr/src/debug/kdepim-4.3.0/x86_64-redhat-linux-gnu/kmail/kmmainwidget.moc:359
#8293 0x0000003d8db54fdc in QMetaObject::activate (sender=0x356a430, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3113
#8294 0x00007f0c3773bdcd in KMFolderImap::folderComplete (this=0x37c80c0, _t1=0x356a430, _t2=true) at /usr/src/debug/kdepim-4.3.0/x86_64-redhat-linux-gnu/kmail/kmfolderimap.moc:206
#8295 0x00007f0c3774174d in KMFolderImap::finishMailCheck (this=0x356a430, dbg=0x7f0c37af8f14 "getMessage", state=KMFolderImap::imapFinished)
    at /usr/src/debug/kdepim-4.3.0/kmail/kmfolderimap.cpp:2492
#8296 0x00007f0c37741df6 in KMFolderImap::getMessagesResult (this=<value optimized out>, job=0x386a930, lastSet=<value optimized out>)
    at /usr/src/debug/kdepim-4.3.0/kmail/kmfolderimap.cpp:1776
#8297 0x00007f0c377508f9 in KMFolderImap::qt_metacall (this=0x356a430, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffa70d7fb0)
    at /usr/src/debug/kdepim-4.3.0/x86_64-redhat-linux-gnu/kmail/kmfolderimap.moc:185
#8298 0x0000003d8db54fdc in QMetaObject::activate (sender=0x386a930, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3113
#8299 0x0000003ed6eee322 in KJob::result (this=0x37c80c0, _t1=0x386a930) at /usr/src/debug/kdelibs-4.3.0/x86_64-redhat-linux-gnu/kdecore/kjob.moc:188
#8300 0x0000003ed6eee69f in KJob::emitResult (this=0x386a930) at /usr/src/debug/kdelibs-4.3.0/kdecore/jobs/kjob.cpp:304
#8301 0x0000003ed84eccd3 in KIO::SimpleJob::slotFinished (this=0x386a930) at /usr/src/debug/kdelibs-4.3.0/kio/kio/job.cpp:477
#8302 0x0000003ed84ed183 in KIO::TransferJob::slotFinished (this=0x386a930) at /usr/src/debug/kdelibs-4.3.0/kio/kio/job.cpp:948
#8303 0x0000003ed84ebaa1 in KIO::TransferJob::qt_metacall (this=0x386a930, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffa70d83d0)
    at /usr/src/debug/kdelibs-4.3.0/x86_64-redhat-linux-gnu/kio/jobclasses.moc:343
#8304 0x0000003d8db54fdc in QMetaObject::activate (sender=0x28af800, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3113
#8305 0x0000003ed85ae261 in KIO::SlaveInterface::dispatch (this=0x28af800, _cmd=104, rawdata=@0x7fffa70d8620) at /usr/src/debug/kdelibs-4.3.0/kio/kio/slaveinterface.cpp:175
#8306 0x0000003ed85aac13 in KIO::SlaveInterface::dispatch (this=0x28af800) at /usr/src/debug/kdelibs-4.3.0/kio/kio/slaveinterface.cpp:91
#8307 0x0000003ed859dcd2 in KIO::Slave::gotInput (this=0x28af800) at /usr/src/debug/kdelibs-4.3.0/kio/kio/slave.cpp:322
#8308 0x0000003ed859fcdc in KIO::Slave::qt_metacall (this=0x28af800, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffa70d8790)
    at /usr/src/debug/kdelibs-4.3.0/x86_64-redhat-linux-gnu/kio/slave.moc:76
#8309 0x0000003d8db54fdc in QMetaObject::activate (sender=0x3369b70, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3113
#8310 0x0000003ed84ba8a7 in KIO::ConnectionPrivate::dequeue (this=0x3369b20) at /usr/src/debug/kdelibs-4.3.0/kio/kio/connection.cpp:82
#8311 0x0000003ed84ba9cd in KIO::Connection::qt_metacall (this=0x3369b70, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x37297b0)
    at /usr/src/debug/kdelibs-4.3.0/x86_64-redhat-linux-gnu/kio/connection.moc:73
#8312 0x0000003d8db4f309 in QObject::event (this=0x3369b70, e=0x377c0a0) at kernel/qobject.cpp:1111
#8313 0x0000003d8ff8ee2c in QApplicationPrivate::notify_helper (this=0x25cbf70, receiver=0x3369b70, e=0x377c0a0) at kernel/qapplication.cpp:4056
#8314 0x0000003d8ff95e5e in QApplication::notify (this=0x7fffa70d9240, receiver=0x3369b70, e=0x377c0a0) at kernel/qapplication.cpp:4021
#8315 0x0000003ed7610546 in KApplication::notify (this=0x7fffa70d9240, receiver=0x3369b70, event=0x377c0a0) at /usr/src/debug/kdelibs-4.3.0/kdeui/kernel/kapplication.cpp:302
#8316 0x0000003d8db3fcbc in QCoreApplication::notifyInternal (this=0x7fffa70d9240, receiver=0x3369b70, event=0x377c0a0) at kernel/qcoreapplication.cpp:610
#8317 0x0000003d8db408c8 in QCoreApplication::sendEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.h:213
#8318 QCoreApplicationPrivate::sendPostedEvents (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.cpp:1247
#8319 0x0000003d8db68743 in QCoreApplication::sendPostedEvents () at kernel/qcoreapplication.h:218
#8320 postEventSourceDispatch () at kernel/qeventdispatcher_glib.cpp:210
#8321 0x00000034edc37abe in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#8322 0x00000034edc3b278 in ?? () from /lib64/libglib-2.0.so.0
#8323 0x00000034edc3b3a0 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#8324 0x0000003d8db683b6 in QEventDispatcherGlib::processEvents (this=0x2594770, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#8325 0x0000003d90021b8e in QGuiEventDispatcherGlib::processEvents (this=0x37c80c0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#8326 0x0000003d8db3e5f2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 36}) at kernel/qeventloop.cpp:149
#8327 0x0000003d8db3e9c4 in QEventLoop::exec (this=0x7fffa70d9090, flags={i = 0}) at kernel/qeventloop.cpp:201
#8328 0x0000003d8db40b79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#8329 0x0000000000402e69 in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kdepim-4.3.0/kmail/main.cpp:146
Comment 6 Michal Hlavinka 2009-08-11 07:08:09 UTC
Created attachment 36066 [details]
backtrace
Comment 7 Dario Andres 2009-08-11 19:41:07 UTC
This looks somewhat related to the backtrace in bug 201371. Also, the large of the backtrace can be a sign of stress (matching the "very busy" state of bug 201371 case)

Have you noticed any other strange behaviour that would be caused by some Hardware problem ?

Thanks for the BT.
Comment 8 Michal Hlavinka 2009-08-12 08:51:14 UTC
(In reply to comment #7)
> This looks somewhat related to the backtrace in bug 201371. Also, the large of
> the backtrace can be a sign of stress (matching the "very busy" state of bug
> 201371 case)

in 201371 I don't see this part of pattern from my backtrace which is (I guess) important for this "loop"
#21 0x0000003d8db54fdc in QMetaObject::activate (sender=0x4333ac0,
from_signal_index=<value optimized out>, to_signal_index=<value optimized out>,
argv=0x1) at kernel/qobject.cpp:3113
#22 0x0000003d8db39a45 in QAbstractItemModel::reset (this=0x4333ac0) at
kernel/qabstractitemmodel.cpp:2263

It seems to me (it's only guess) there is some "onchange" signal which calls something that change something and emit signal again (or two signals) creating this recursion.

machine is idle most of the time and works fine. It's very busy only when I reproduce this problem and it's busy because of loop filling up the stack.

I didn't noticed any other crash so far.

> Have you noticed any other strange behaviour that would be caused by some
> Hardware problem ?

no, this hardware is almost one year old, so I think it's quite new but seasoned. There is nothing indicating any problem.

I can reproduce this bug at will with 100 % chance (using KDE 4.3.0 with KMail 1.12.0)
Comment 9 Dario Andres 2009-08-13 01:47:21 UTC
Bug 203624 got the same backtrace and situation.

To organize this report:
- As the "Michal" from comment 3 is not the same as the original report (I have messed up this): This report should be closed as NEEDSINFO/INVALID. (We are still waiting for the feedback of the original reporter).

@Michal Hlavinka: I'm going to move the discussion of this bug to bug 203624.

@Michał Gawroński (original reporter): if you can reproduce the original crash again; please open a new bug report.

Regards and sorry for the noise.