Bug 301329 - KMail crash on close
Summary: KMail crash on close
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.8.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-07 07:31 UTC by tlauniainen
Modified: 2012-06-08 06:39 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tlauniainen 2012-06-07 07:31:16 UTC
Application: kmail (4.8.3)
KDE Platform Version: 4.8.3 (4.8.3)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-24-generic x86_64
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:

KMail crashed when I closed it. I had used it normally before closing it.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f95e3eb07c0 (LWP 12509))]

Thread 3 (Thread 0x7f95b3fff700 (LWP 12893)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f95d6199dec in WTF::TCMalloc_PageHeap::scavengerThread (this=0x7f95d6b62de0) at wtf/FastMalloc.cpp:2495
#2  0x00007f95d6199f19 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at wtf/FastMalloc.cpp:1618
#3  0x00007f95decd1e9a in start_thread (arg=0x7f95b3fff700) at pthread_create.c:308
#4  0x00007f95e12024bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f95b37fe700 (LWP 12894)):
#0  __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f95d9aa5ff6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f95d9aa6124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f95e1b8d426 in QEventDispatcherGlib::processEvents (this=0x7f95ac0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f95e1b5cc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f95e1b5ced7 in QEventLoop::exec (this=0x7f95b37fddc0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f95e1a5bfa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f95e1a5efcb in QThreadPrivate::start (arg=0x5d92580) at thread/qthread_unix.cpp:298
#8  0x00007f95decd1e9a in start_thread (arg=0x7f95b37fe700) at pthread_create.c:308
#9  0x00007f95e12024bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f95e3eb07c0 (LWP 12509)):
[KCrash Handler]
#6  at (this=0x0, i=1) at /usr/include/qt4/QtCore/qlist.h:100
#7  at (i=1, this=0x0) at /usr/include/qt4/QtCore/qlist.h:470
#8  MessageList::Core::ModelInvariantRowMapperPrivate::indexDead (this=0x2b175b0, invariant=0x3b64800) at ../../messagelist/core/modelinvariantrowmapper.cpp:135
#9  0x00007f95dd2ecd5b in MessageList::Core::ModelInvariantIndex::~ModelInvariantIndex (this=0x3b64800, __in_chrg=<optimized out>) at ../../messagelist/core/modelinvariantindex.cpp:37
#10 0x00007f95dd2d56e7 in MessageList::Core::MessageItem::~MessageItem (this=0x3b647f0, __in_chrg=<optimized out>) at ../../messagelist/core/messageitem.cpp:266
#11 0x00007f95dd2d5789 in MessageList::Core::MessageItem::~MessageItem (this=0x3b647f0, __in_chrg=<optimized out>) at ../../messagelist/core/messageitem.cpp:268
#12 0x00007f95dd2c9d35 in MessageList::Core::Item::killAllChildItems (this=0x3e8b520) at ../../messagelist/core/item.cpp:400
#13 0x00007f95dd2cb287 in MessageList::Core::Item::~Item (this=0x3e8b520, __in_chrg=<optimized out>) at ../../messagelist/core/item.cpp:47
#14 0x00007f95dd2d5789 in MessageList::Core::MessageItem::~MessageItem (this=0x3e8b520, __in_chrg=<optimized out>) at ../../messagelist/core/messageitem.cpp:268
#15 0x00007f95dd2c9d35 in MessageList::Core::Item::killAllChildItems (this=0x51825f0) at ../../messagelist/core/item.cpp:400
#16 0x00007f95dd2cb287 in MessageList::Core::Item::~Item (this=0x51825f0, __in_chrg=<optimized out>) at ../../messagelist/core/item.cpp:47
#17 0x00007f95dd2d5789 in MessageList::Core::MessageItem::~MessageItem (this=0x51825f0, __in_chrg=<optimized out>) at ../../messagelist/core/messageitem.cpp:268
#18 0x00007f95dd2c9d35 in MessageList::Core::Item::killAllChildItems (this=0x30b0b00) at ../../messagelist/core/item.cpp:400
#19 0x00007f95dd2cb287 in MessageList::Core::Item::~Item (this=0x30b0b00, __in_chrg=<optimized out>) at ../../messagelist/core/item.cpp:47
#20 0x00007f95dd2d5789 in MessageList::Core::MessageItem::~MessageItem (this=0x30b0b00, __in_chrg=<optimized out>) at ../../messagelist/core/messageitem.cpp:268
#21 0x00007f95dd2c9d35 in MessageList::Core::Item::killAllChildItems (this=0x2b183d0) at ../../messagelist/core/item.cpp:400
#22 0x00007f95dd2e568f in MessageList::Core::Model::setStorageModel (this=0x2b17400, storageModel=0x0, preSelectionMode=MessageList::Core::PreSelectLastSelected) at ../../messagelist/core/model.cpp:714
#23 0x00007f95dd301435 in MessageList::Core::View::setStorageModel (this=0x296fc10, storageModel=<optimized out>, preSelectionMode=<optimized out>) at ../../messagelist/core/view.cpp:273
#24 0x00007f95dd30adb3 in MessageList::Core::Widget::~Widget (this=0x29946e0, __in_chrg=<optimized out>) at ../../messagelist/core/widgetbase.cpp:188
#25 0x00007f95dd3287d9 in MessageList::Widget::~Widget (this=0x29946e0, __in_chrg=<optimized out>) at ../../messagelist/widget.cpp:91
#26 0x00007f95e1b70935 in QObjectPrivate::deleteChildren (this=0x2999d90) at kernel/qobject.cpp:1908
#27 0x00007f95e20cb740 in QWidget::~QWidget (this=0x283d400, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1676
#28 0x00007f95e24ec4b9 in QStackedWidget::~QStackedWidget (this=0x283d400, __in_chrg=<optimized out>) at widgets/qstackedwidget.cpp:193
#29 0x00007f95e1b70935 in QObjectPrivate::deleteChildren (this=0x299c5d0) at kernel/qobject.cpp:1908
#30 0x00007f95e20cb740 in QWidget::~QWidget (this=0x283a580, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1676
#31 0x00007f95e2c0f129 in CollectionPane::~CollectionPane (this=0x283a580, __in_chrg=<optimized out>) at ../../kmail/collectionpane.cpp:38
#32 0x00007f95e1b70935 in QObjectPrivate::deleteChildren (this=0x2bc81b0) at kernel/qobject.cpp:1908
#33 0x00007f95e20cb740 in QWidget::~QWidget (this=0x2bc7220, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1676
#34 0x00007f95e24e92c9 in QSplitter::~QSplitter (this=0x2bc7220, __in_chrg=<optimized out>) at widgets/qsplitter.cpp:1056
#35 0x00007f95e1b70935 in QObjectPrivate::deleteChildren (this=0x2bc7ee0) at kernel/qobject.cpp:1908
#36 0x00007f95e20cb740 in QWidget::~QWidget (this=0x2bc73d0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1676
#37 0x00007f95e24e92c9 in QSplitter::~QSplitter (this=0x2bc73d0, __in_chrg=<optimized out>) at widgets/qsplitter.cpp:1056
#38 0x00007f95e2c910d8 in KMMainWidget::deleteWidgets (this=0x283ccf0) at ../../kmail/kmmainwidget.cpp:993
#39 0x00007f95e2c91176 in KMMainWidget::destruct (this=0x283ccf0) at ../../kmail/kmmainwidget.cpp:361
#40 0x00007f95e2c9baff in KMMainWidget::~KMMainWidget (this=0x283ccf0, __in_chrg=<optimized out>) at ../../kmail/kmmainwidget.cpp:347
#41 0x00007f95e2c9be09 in KMMainWidget::~KMMainWidget (this=0x283ccf0, __in_chrg=<optimized out>) at ../../kmail/kmmainwidget.cpp:348
#42 0x00007f95e1b70935 in QObjectPrivate::deleteChildren (this=0x283b9f0) at kernel/qobject.cpp:1908
#43 0x00007f95e20cb740 in QWidget::~QWidget (this=0x27af5d0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1676
#44 0x00007f95e3978475 in KMainWindow::~KMainWindow (this=0x27af5d0, __in_chrg=<optimized out>) at ../../kdeui/widgets/kmainwindow.cpp:467
#45 0x00007f95e2c1a63a in KMMainWin::~KMMainWin (this=0x27af5d0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../kmail/kmmainwin.cpp:95
#46 0x00007f95e2c1a729 in KMMainWin::~KMMainWin (this=0x27af5d0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../kmail/kmmainwin.cpp:116
#47 0x00007f95e1b77478 in QObject::event (this=0x27af5d0, e=<optimized out>) at kernel/qobject.cpp:1176
#48 0x00007f95e20d0b7b in QWidget::event (this=0x27af5d0, event=0x5bb1fa0) at kernel/qwidget.cpp:8821
#49 0x00007f95e24aac4b in QMainWindow::event (this=0x27af5d0, event=0x5bb1fa0) at widgets/qmainwindow.cpp:1478
#50 0x00007f95e39b64e8 in KXmlGuiWindow::event (this=0x27af5d0, ev=0x5bb1fa0) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#51 0x00007f95e2080894 in notify_helper (e=0x5bb1fa0, receiver=0x27af5d0, this=0x259ada0) at kernel/qapplication.cpp:4559
#52 QApplicationPrivate::notify_helper (this=0x259ada0, receiver=0x27af5d0, e=0x5bb1fa0) at kernel/qapplication.cpp:4531
#53 0x00007f95e2085713 in QApplication::notify (this=0x7fffba48d240, receiver=0x27af5d0, e=0x5bb1fa0) at kernel/qapplication.cpp:4420
#54 0x00007f95e38babb6 in KApplication::notify (this=0x7fffba48d240, receiver=0x27af5d0, event=0x5bb1fa0) at ../../kdeui/kernel/kapplication.cpp:311
#55 0x00007f95e1b5de9c in QCoreApplication::notifyInternal (this=0x7fffba48d240, receiver=0x27af5d0, event=0x5bb1fa0) at kernel/qcoreapplication.cpp:876
#56 0x00007f95e1b61c6a in sendEvent (event=0x5bb1fa0, receiver=0x27af5d0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#57 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x253c220) at kernel/qcoreapplication.cpp:1500
#58 0x00007f95e1b8cf93 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#59 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#60 0x00007f95d9aa5c9a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#61 0x00007f95d9aa6060 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#62 0x00007f95d9aa6124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#63 0x00007f95e1b8d3bf in QEventDispatcherGlib::processEvents (this=0x253db00, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#64 0x00007f95e2128d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#65 0x00007f95e1b5cc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#66 0x00007f95e1b5ced7 in QEventLoop::exec (this=0x7fffba48d120, flags=...) at kernel/qeventloop.cpp:204
#67 0x00007f95e1b61f67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#68 0x0000000000402bd3 in main (argc=<optimized out>, argv=<optimized out>) at ../../kmail/main.cpp:145

Possible duplicates by query: bug 299999, bug 291997.

Reported using DrKonqi
Comment 1 Allen Winter 2012-06-07 23:03:40 UTC
Git commit 7cfc07cfd74ac5ac3342eadcd9531b0713468a05 by Allen Winter.
Committed on 08/06/2012 at 00:58.
Pushed by winterz into branch 'master'.

in indexDead(), return if mRowShiftList is 0, as is done in the other direction -- see modelIndexRowToModelInvariantIndexInternal.
Comment 2 Laurent Montel 2012-06-08 06:39:41 UTC
Git commit 69239caf579f38d50188fac08b6707c0d7ab6e2f by Montel Laurent, on behalf of Allen Winter.
Committed on 08/06/2012 at 00:58.
Pushed by mlaurent into branch 'KDE/4.8'.

in indexDead(), return if mRowShiftList is 0, as is done in the
other direction -- see modelIndexRowToModelInvariantIndexInternal.
FIXED-IN: 4.9.0
(cherry picked from commit 7cfc07cfd74ac5ac3342eadcd9531b0713468a05)

M  +3    -1    messagelist/core/modelinvariantrowmapper.cpp

http://commits.kde.org/kdepim/69239caf579f38d50188fac08b6707c0d7ab6e2f