Bug 178319 - Crash when opening a folder
Summary: Crash when opening a folder
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: new message list (show other bugs)
Version: 1.10.92
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Szymon Stefanek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-20 20:59 UTC by Vladimir Prus
Modified: 2012-08-19 10:58 UTC (History)
0 users

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 Vladimir Prus 2008-12-20 20:59:24 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources


I'm getting the following crash immediately upon opening certain IMAP folder with kmail. This reproduces reliably.


KMail (kmail), signal SIGABRT

Thread 1 (Thread 0xb39466c0 (LWP 4787)):
[KCrash Handler]
#6  0xb7f72410 in __kernel_vsyscall ()
#7  0xb5956085 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb5957a01 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb68291e8 in qt_message_output (msgType=QtFatalMsg, buf=0xbfbb3a60 "ASSERT: \"d->viewItems.at(item).level == childLevel\" in file itemviews/qtreeview.cpp, line 2382") at global/qglobal.cpp:2058
#10 0xb682926d in qFatal (msg=0xb69a6f88 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2260
#11 0xb68296e9 in qt_assert (assertion=0xb6431afc "d->viewItems.at(item).level == childLevel", file=0xb64318f1 "itemviews/qtreeview.cpp", line=2382) at global/qglobal.cpp:1828
#12 0xb62ccdfa in QTreeView::rowsInserted (this=0x855b500, parent=@0xbfbb5d64, start=3, end=3) at itemviews/qtreeview.cpp:2382
#13 0xb62931ae in QAbstractItemView::qt_metacall (this=0x855b500, _c=QMetaObject::InvokeMetaMethod, _id=17, _a=0xbfbb5d24) at .moc/debug-shared/moc_qabstractitemview.cpp:224
#14 0xb62d5834 in QTreeView::qt_metacall (this=0x855b500, _c=QMetaObject::InvokeMetaMethod, _id=48, _a=0xbfbb5d24) at .moc/debug-shared/moc_qtreeview.cpp:121
#15 0xb721c07a in KMail::MessageListView::Core::View::qt_metacall (this=0x855b500, _c=QMetaObject::InvokeMetaMethod, _id=48, _a=0xbfbb5d24)
    at /home/ghost/Work/KDevelop4/build/kdepim/kmail/moc_view.cpp:74
#16 0xb695b021 in QMetaObject::activate (sender=0x8572db0, from_signal_index=9, to_signal_index=9, argv=0xbfbb5d24) at kernel/qobject.cpp:3010
#17 0xb695b5ab in QMetaObject::activate (sender=0x8572db0, m=0xb6a5d6b8, local_signal_index=5, argv=0xbfbb5d24) at kernel/qobject.cpp:3080
#18 0xb69a4426 in QAbstractItemModel::rowsInserted (this=0x8572db0, _t1=@0xbfbb5d64, _t2=3, _t3=3) at .moc/debug-shared/moc_qabstractitemmodel.cpp:157
#19 0xb6937e1d in QAbstractItemModel::endInsertRows (this=0x8572db0) at kernel/qabstractitemmodel.cpp:2089
#20 0xb7718b36 in KMail::MessageListView::Core::Item::insertChildItem<KMail::MessageListView::Core::ItemDateComparator, false> (this=0x8f65580, model=0x8572db0, child=0x8efb050)
    at /home/ghost/Work/KDevelop4/src/kdepim/kmail/messagelistview/core/item.h:602
#21 0xb770aeec in KMail::MessageListView::Core::Model::attachMessageToParent (this=0x8572db0, pParent=0x8f65580, mi=0x8efb050)
    at /home/ghost/Work/KDevelop4/src/kdepim/kmail/messagelistview/core/model.cpp:2085
#22 0xb770b4bb in KMail::MessageListView::Core::Model::attachMessageToGroupHeader (this=0x8572db0, mi=0x8efb050) at /home/ghost/Work/KDevelop4/src/kdepim/kmail/messagelistview/core/model.cpp:1406
#23 0xb770cebc in KMail::MessageListView::Core::Model::viewItemJobStepInternalForJobPass4 (this=0x8572db0, job=0x89a8088, tStart=@0xbfbb6130)
    at /home/ghost/Work/KDevelop4/src/kdepim/kmail/messagelistview/core/model.cpp:2368
#24 0xb77106c6 in KMail::MessageListView::Core::Model::viewItemJobStepInternalForJob (this=0x8572db0, job=0x89a8088, tStart=@0xbfbb6130)
    at /home/ghost/Work/KDevelop4/src/kdepim/kmail/messagelistview/core/model.cpp:3429
#25 0xb77112ab in KMail::MessageListView::Core::Model::viewItemJobStepInternal (this=0x8572db0) at /home/ghost/Work/KDevelop4/src/kdepim/kmail/messagelistview/core/model.cpp:3503
#26 0xb7712339 in KMail::MessageListView::Core::Model::viewItemJobStep (this=0x8572db0) at /home/ghost/Work/KDevelop4/src/kdepim/kmail/messagelistview/core/model.cpp:3662
#27 0xb721c676 in KMail::MessageListView::Core::Model::qt_metacall (this=0x8572db0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfbb634c)
    at /home/ghost/Work/KDevelop4/build/kdepim/kmail/moc_model.cpp:75
#28 0xb695b021 in QMetaObject::activate (sender=0x85653e8, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3010
#29 0xb695b5ab in QMetaObject::activate (sender=0x85653e8, m=0xb6a5dac4, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3080
#30 0xb69a578d in QTimer::timeout (this=0x85653e8) at .moc/debug-shared/moc_qtimer.cpp:126
#31 0xb6966472 in QTimer::timerEvent (this=0x85653e8, e=0xbfbb6884) at kernel/qtimer.cpp:263
#32 0xb6958c1e in QObject::event (this=0x85653e8, e=0xbfbb6884) at kernel/qobject.cpp:1105
#33 0xb5cf2055 in QApplicationPrivate::notify_helper (this=0x806e570, receiver=0x85653e8, e=0xbfbb6884) at kernel/qapplication.cpp:3766
#34 0xb5cf233b in QApplication::notify (this=0xbfbb6ba8, receiver=0x85653e8, e=0xbfbb6884) at kernel/qapplication.cpp:3360
#35 0xb7db101d in KApplication::notify (this=0xbfbb6ba8, receiver=0x85653e8, event=0xbfbb6884) at /home/ghost/Work/KDevelop4/src/kdelibs/kdeui/kernel/kapplication.cpp:307
#36 0xb694321d in QCoreApplication::notifyInternal (this=0xbfbb6ba8, receiver=0x85653e8, event=0xbfbb6884) at kernel/qcoreapplication.cpp:587
#37 0xb69477ad in QCoreApplication::sendEvent (receiver=0x85653e8, event=0xbfbb6884) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#38 0xb697bed1 in QTimerInfoList::activateTimers (this=0x80784ac) at kernel/qeventdispatcher_unix.cpp:563
#39 0xb69795e4 in timerSourceDispatch (source=0x8078478) at kernel/qeventdispatcher_glib.cpp:166
#40 0xb3f62cc6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#41 0xb3f66083 in ?? () from /usr/lib/libglib-2.0.so.0
#42 0xb3f6663e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#43 0xb697875c in QEventDispatcherGlib::processEvents (this=0x8063658, flags=@0xbfbb69f4) at kernel/qeventdispatcher_glib.cpp:325
#44 0xb5dadc0c in QGuiEventDispatcherGlib::processEvents (this=0x8063658, flags=@0xbfbb6a24) at kernel/qguieventdispatcher_glib.cpp:204
#45 0xb693fa9a in QEventLoop::processEvents (this=0xbfbb6aac, flags=@0xbfbb6a64) at kernel/qeventloop.cpp:149
#46 0xb693fcd9 in QEventLoop::exec (this=0xbfbb6aac, flags=@0xbfbb6ab4) at kernel/qeventloop.cpp:200
#47 0xb6943b54 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#48 0xb5cf1d6e in QApplication::exec () at kernel/qapplication.cpp:3298
#49 0x0804a89e in main (argc=) at /home/ghost/Work/KDevelop4/src/kdepim/kmail/main.cpp:146

Prior to the crash, I see this output:

kmail(4787) KMail::MessageListView::StorageModel::releaseMessage: Trying to release a message at row  67  that no longer exists in the folder
kmail(4787) KMail::MessageListView::Core::Model::findMessageParent: Circular In-Reply-To reference loop detected in the message tree

kmail(4787) KMail::MessageListView::Core::Model::findMessageParent: Circular In-Reply-To reference loop detected in the message tree

The last message is repeated many times.

I can poke with debugger if instructed where exactly in this backtrace to poke, and on what variables.
Comment 1 Myriam Schweingruber 2012-08-19 10:58:11 UTC
Thank you for your report. Kmail1 is currently unmaintained and the code has changed sufficiently in Kmail2 so the backtraces are not really useful anymore. Should you experience the same crash in Kmail 4.8.5 or later, please open a new report for Kmail2. Thank you for your understanding