Bug 289693 - Kmail crash on exit
Summary: Kmail crash on exit
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 289927 289967 290109 290410 290443 290479 290793 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-12-23 20:04 UTC by Manuel Tortosa
Modified: 2013-02-02 14:49 UTC (History)
21 users (show)

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


Attachments
New crash information added by DrKonqi (4.00 KB, text/plain)
2011-12-25 19:18 UTC, Hrvoje Senjan
Details
New crash information added by DrKonqi (3.71 KB, text/plain)
2011-12-26 20:12 UTC, markuss
Details
New crash information added by DrKonqi (5.58 KB, text/plain)
2011-12-27 23:10 UTC, jajaX
Details
New crash information added by DrKonqi (3.52 KB, text/plain)
2011-12-28 17:25 UTC, Unknown
Details
New crash information added by DrKonqi (3.33 KB, text/plain)
2011-12-29 10:39 UTC, S. Burmeister
Details
New crash information added by DrKonqi (4.23 KB, text/plain)
2011-12-29 14:50 UTC, Hussam Al-Tayeb
Details
New crash information added (7.64 KB, text/plain)
2011-12-29 23:18 UTC, Colin J Thomson
Details
New crash information added by DrKonqi (4.10 KB, text/plain)
2011-12-30 06:30 UTC, Hrvoje Senjan
Details
New crash information added by DrKonqi (5.93 KB, text/plain)
2011-12-31 00:05 UTC, Silviu C.
Details
valgrind log of startup, delete a few items, quit (129.64 KB, text/plain)
2012-01-02 22:18 UTC, Rex Dieter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Tortosa 2011-12-23 20:04:37 UTC
Application: kmail (4.8 rc1)
KDE Platform Version: 4.7.95 (4.8 RC1 (4.7.95) (Compiled from sources)
Qt Version: 4.8.0
Operating System: Linux 3.1-CHAKRA x86_64
Distribution: "Chakra Linux"

-- Information about the crash:
Kmail crash on each exit, using Qt 4.8, Akonadi 1.6.90 and kde 4.8 rc1

The crash can be reproduced every time.

-- Backtrace:
Application: KMail (kmail), signal: Aborted
[Current thread is 1 (Thread 0x7f249548b7a0 (LWP 18947))]

Thread 4 (Thread 0x7f2471fcc700 (LWP 18950)):
#0  0x00007f2490663b54 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f248700292c in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007f2487002a59 in ?? () from /usr/lib/libQtWebKit.so.4
#3  0x00007f249065fdf0 in start_thread () from /lib/libpthread.so.0
#4  0x00007f24927e739d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f24716cb700 (LWP 18951)):
#0  0x00007f24927f3dd0 in pthread_mutex_unlock () from /lib/libc.so.6
#1  0x00007f248b45fcb3 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f248b46014d in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f2493162fb6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f2493132e12 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f2493133067 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f2493032bf7 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f2493035c1b in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f249065fdf0 in start_thread () from /lib/libpthread.so.0
#9  0x00007f24927e739d in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f242f2cc700 (LWP 19896)):
#0  0x00007f2490663ecb in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f249303608f in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f24930294ef in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f2493035c1b in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f249065fdf0 in start_thread () from /lib/libpthread.so.0
#5  0x00007f24927e739d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f249548b7a0 (LWP 18947)):
[KCrash Handler]
#6  0x00007f2492747965 in raise () from /lib/libc.so.6
#7  0x00007f2492748ddb in abort () from /lib/libc.so.6
#8  0x00007f249278054e in ?? () from /lib/libc.so.6
#9  0x00007f2492786466 in ?? () from /lib/libc.so.6
#10 0x00007f248f07dd1d in qDeleteAll<QList<Node*>::const_iterator> (end=<optimized out>, begin=<optimized out>) at /usr/include/QtCore/qalgorithms.h:322
#11 qDeleteAll<QList<Node*> > (c=...) at /usr/include/QtCore/qalgorithms.h:330
#12 Akonadi::EntityTreeModel::~EntityTreeModel (this=0xb09670, __in_chrg=<optimized out>) at /chakra/desktop-unstable/kdepimlibs/src/kdepimlibs-4.7.95/akonadi/entitytreemodel.cpp:79
#13 0x00007f248f07dda9 in Akonadi::EntityTreeModel::~EntityTreeModel (this=0xb09670, __in_chrg=<optimized out>) at /chakra/desktop-unstable/kdepimlibs/src/kdepimlibs-4.7.95/akonadi/entitytreemodel.cpp:83
#14 0x00007f2493146465 in QObjectPrivate::deleteChildren() () from /usr/lib/libQtCore.so.4
#15 0x00007f249314c6cc in QObject::~QObject() () from /usr/lib/libQtCore.so.4
#16 0x00007f249420c12d in KMKernel::~KMKernel (this=0x7fffff735da0, __in_chrg=<optimized out>) at /chakra/desktop-unstable/kdepim/src/kdepim-4.7.95/kmail/kmkernel.cpp:226
#17 0x0000000000402dde in main (argc=<optimized out>, argv=<optimized out>) at /chakra/desktop-unstable/kdepim/src/kdepim-4.7.95/kmail/main.cpp:128

Reported using DrKonqi
Comment 1 Hrvoje Senjan 2011-12-25 19:18:08 UTC
Created attachment 67103 [details]
New crash information added by DrKonqi

kmail (4.8 rc1) on KDE Platform 4.7.95 (4.8 RC1 (4.7.95) "release 9" using Qt 4.8.0

- What I was doing when the application crashed:

Closed kmail from tray. There where some imap mail deletations pending.

-- Backtrace (Reduced):
#10 0x00007fde0ad99ded in qDeleteAll<QList<Node*>::const_iterator> (end=<optimized out>, begin=<optimized out>) at /usr/include/QtCore/qalgorithms.h:322
#11 qDeleteAll<QList<Node*> > (c=...) at /usr/include/QtCore/qalgorithms.h:330
#12 Akonadi::EntityTreeModel::~EntityTreeModel (this=0x1337a10, __in_chrg=<optimized out>) at /usr/src/debug/kdepimlibs-4.7.95/akonadi/entitytreemodel.cpp:79
#13 0x00007fde0ad99e79 in Akonadi::EntityTreeModel::~EntityTreeModel (this=0x1337a10, __in_chrg=<optimized out>) at /usr/src/debug/kdepimlibs-4.7.95/akonadi/entitytreemodel.cpp:83
#14 0x00007fde0fdabe05 in QObjectPrivate::deleteChildren (this=0x12b4760) at kernel/qobject.cpp:1917
Comment 2 markuss 2011-12-26 20:12:53 UTC
Created attachment 67140 [details]
New crash information added by DrKonqi

kmail (4.8 rc1) on KDE Platform 4.7.95 (4.8 RC1 (4.7.95) "release 3" using Qt 4.8.0

- What I was doing when the application crashed:
Quitting KMail 2 from SC 4.8rc1 as stand-alone application.
So far the crash didn't happen again with Kontact.

-- Backtrace (Reduced):
#12 0xb53b7326 in qDeleteAll<QList<Node*>::const_iterator> (end=<optimized out>, begin=<optimized out>) at /usr/include/QtCore/qalgorithms.h:322
#13 qDeleteAll<QList<Node*> > (c=...) at /usr/include/QtCore/qalgorithms.h:330
#14 Akonadi::EntityTreeModel::~EntityTreeModel (this=0x81ee8c0, __in_chrg=<optimized out>) at /usr/src/debug/kdepimlibs-4.7.95/akonadi/entitytreemodel.cpp:79
#15 0xb53b73e2 in Akonadi::EntityTreeModel::~EntityTreeModel (this=0x81ee8c0, __in_chrg=<optimized out>) at /usr/src/debug/kdepimlibs-4.7.95/akonadi/entitytreemodel.cpp:83
#16 0xb6d3b731 in QObjectPrivate::deleteChildren (this=0x82c3820) at kernel/qobject.cpp:1917
Comment 3 Gianluca 2011-12-27 13:38:45 UTC
I confirm this problem. I also noted that if I just launch kmail2 as standalone application and then just exit, it does not crash, while if I do something (move a message, read a message, delete a message, basically everything) it crash on exit
Comment 4 jajaX 2011-12-27 23:10:23 UTC
Created attachment 67171 [details]
New crash information added by DrKonqi

kmail (4.8 rc1) on KDE Platform 4.7.95 (4.8 RC1 (4.7.95) using Qt 4.7.4

Hi ! (sorry for my bad english !)

same problem under kubuntu 11.10 and KDE SC 4.8 rc1

-- Backtrace (Reduced):
#15 0x0384a106 in qDeleteAll<QList<Node*>::const_iterator> (end=<optimized out>, begin=<optimized out>) at /usr/include/qt4/QtCore/qalgorithms.h:322
#16 qDeleteAll<QList<Node*> > (c=...) at /usr/include/qt4/QtCore/qalgorithms.h:330
#17 Akonadi::EntityTreeModel::~EntityTreeModel (this=0x8384fc8, __in_chrg=<optimized out>) at ../../akonadi/entitytreemodel.cpp:79
#18 0x0384a1c2 in Akonadi::EntityTreeModel::~EntityTreeModel (this=0x8384fc8, __in_chrg=<optimized out>) at ../../akonadi/entitytreemodel.cpp:83
#19 0x060ad841 in QObjectPrivate::deleteChildren (this=0x840de60) at kernel/qobject.cpp:1955
Comment 5 Unknown 2011-12-28 17:25:22 UTC
Created attachment 67192 [details]
New crash information added by DrKonqi

kmail (4.8 rc1) on KDE Platform 4.7.95 (4.8 RC1 (4.7.95) "release 3" using Qt 4.8.0

- What I was doing when the application crashed:

I just quit from KMail 2 (Qt 4.8) and it crashed.

-- Backtrace (Reduced):
#10 0x00007fd5ae76fded in qDeleteAll<QList<Node*>::const_iterator> (end=<optimized out>, begin=<optimized out>) at /usr/include/QtCore/qalgorithms.h:322
#11 qDeleteAll<QList<Node*> > (c=...) at /usr/include/QtCore/qalgorithms.h:330
#12 Akonadi::EntityTreeModel::~EntityTreeModel (this=0x9edc70, __in_chrg=<optimized out>) at /usr/src/debug/kdepimlibs-4.7.95/akonadi/entitytreemodel.cpp:79
#13 0x00007fd5ae76fe79 in Akonadi::EntityTreeModel::~EntityTreeModel (this=0x9edc70, __in_chrg=<optimized out>) at /usr/src/debug/kdepimlibs-4.7.95/akonadi/entitytreemodel.cpp:83
#14 0x00007fd5b377e9e5 in QObjectPrivate::deleteChildren (this=0x9b5170) at kernel/qobject.cpp:1908
Comment 6 S. Burmeister 2011-12-29 10:39:54 UTC
Created attachment 67218 [details]
New crash information added by DrKonqi

kmail (4.8 rc1) on KDE Platform 4.7.95 (4.8 RC1 (4.7.95) "release 3" using Qt 4.8.0

- What I was doing when the application crashed:

I closed kmail and it crashed. Before that I noticed that clicking on emails in my imap account did not show the content of the selected (unread) email in the preview pane but some previously read email.

-- Backtrace (Reduced):
#12 0xb54b0326 in qDeleteAll<QList<Node*>::const_iterator> (end=<optimized out>, begin=<optimized out>) at /usr/include/QtCore/qalgorithms.h:322
#13 qDeleteAll<QList<Node*> > (c=...) at /usr/include/QtCore/qalgorithms.h:330
#14 Akonadi::EntityTreeModel::~EntityTreeModel (this=0x822a9c8, __in_chrg=<optimized out>) at /usr/src/debug/kdepimlibs-4.7.95/akonadi/entitytreemodel.cpp:79
#15 0xb54b03e2 in Akonadi::EntityTreeModel::~EntityTreeModel (this=0x822a9c8, __in_chrg=<optimized out>) at /usr/src/debug/kdepimlibs-4.7.95/akonadi/entitytreemodel.cpp:83
#16 0xb6e35731 in QObjectPrivate::deleteChildren (this=0x82d3258) at kernel/qobject.cpp:1917
Comment 7 Hussam Al-Tayeb 2011-12-29 14:50:39 UTC
Created attachment 67224 [details]
New crash information added by DrKonqi

kmail (4.8 rc1) on KDE Platform 4.7.95 (4.8 RC1 (4.7.95) using Qt 4.8.0

- What I was doing when the application crashed:

kmail crashes on exit. this is a regression from kde 4.7

-- Backtrace (Reduced):
#14 0xb528916a in Akonadi::EntityTreeModel::~EntityTreeModel (this=0x95626e0, __in_chrg=<optimized out>) at /home/hussam/packages/kdepimlibs/src/kdepimlibs/akonadi/entitytreemodel.cpp:80
#15 0xb5289242 in Akonadi::EntityTreeModel::~EntityTreeModel (this=0x95626e0, __in_chrg=<optimized out>) at /home/hussam/packages/kdepimlibs/src/kdepimlibs/akonadi/entitytreemodel.cpp:86
#16 0xb61e3560 in QObjectPrivate::deleteChildren (this=0x9574da8) at kernel/qobject.cpp:1908
#17 0xb61e9cd4 in QObject::~QObject (this=0xbf807f30, __in_chrg=<optimized out>) at kernel/qobject.cpp:927
#18 0xb6f94de3 in KMKernel::~KMKernel (this=0xbf807f30, __in_chrg=<optimized out>) at /home/hussam/packages/kdepim/src/kdepim/kmail/kmkernel.cpp:226
Comment 9 Kevin Kofler 2011-12-29 21:17:43 UTC
Hmmm, I wrote immediately when I noticed those "fixes" replacing the qDeleteAll with a handwritten loop that this can't be the right fix, and comment #7 proves it isn't. This also affects all the other places all over KDE SC which got that "fix".

The "fix" linked from comment #8 doesn't look any better to me.

The real bug must be elsewhere, either in a place in KDE SC code which executes before the offending snippet, or in Qt. The list must be already corrupt when we reach this place or we wouldn't get these crashes!
Comment 10 Colin J Thomson 2011-12-29 23:18:12 UTC
Created attachment 67236 [details]
New crash information added

Seeing this crash also on Fedora 16 - 4.7.95 - qt-4.8.0-4.fc16.x86_64 when closing Kontact
Comment 11 Rex Dieter 2011-12-29 23:30:20 UTC
patch from comment #8 doesn't seem to help any for me, now get:


Thread 1 (Thread 0x7f689b1ef840 (LWP 8670)):
[KCrash Handler]
#6  0x0000003b01e36285 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x0000003b01e37b9b in __GI_abort () at abort.c:91
#8  0x0000003b01e75fae in __libc_message (do_abort=2, fmt=0x3b01f74b98 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:198
#9  0x0000003b01e7c2d6 in malloc_printerr (action=3, str=0x3b01f71b69 "free(): invalid pointer", ptr=<optimized out>) at malloc.c:5021
#10 0x00007f689c7c4bbd in Akonadi::EntityTreeModel::~EntityTreeModel (this=0x2074100, __in_chrg=<optimized out>) at /usr/src/debug/kdepimlibs-4.7.95/akonadi/entitytreemodel.cpp:82
#11 0x00007f689c7c4c49 in Akonadi::EntityTreeModel::~EntityTreeModel (this=0x2074100, __in_chrg=<optimized out>) at /usr/src/debug/kdepimlibs-4.7.95/akonadi/entitytreemodel.cpp:89
#12 0x0000003f4a58b385 in QObjectPrivate::deleteChildren() () from /usr/lib64/libQtCore.so.4
#13 0x0000003f4a59165c in QObject::~QObject() () from /usr/lib64/libQtCore.so.4
#14 0x0000003f5eee041d in KMKernel::~KMKernel (this=0x7fff9a7ab1c0, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.7.95/kmail/kmkernel.cpp:226
#15 0x0000000000402d3e in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kdepim-4.7.95/kmail/main.cpp:128
Comment 12 Rex Dieter 2011-12-29 23:31:55 UTC
that said, that's after witnessing symptoms similar to bug #289967 , where kmail seems to get stuck sending items to the trash.
Comment 13 Hrvoje Senjan 2011-12-30 06:30:17 UTC
Created attachment 67238 [details]
New crash information added by DrKonqi

kmail (4.8 rc1) on KDE Platform 4.7.95 (4.8 RC1 (4.7.95) "release 10" using Qt 4.8.0

- What I was doing when the application crashed:

Rex, i got this crash even without MALLOC_CHECK set. I've rebuilt RC1 with -DCMAKE_BUILD_TYPE=Debug, don't know is the backtrace more helpfull. Also, the crash is reproduciple every time when i try to delete some messages.

-- Backtrace (Reduced):
#7  0x00007f6b11e91390 in qDeleteAll<QList<Node*>::const_iterator> (begin=..., end=...) at /usr/include/QtCore/qalgorithms.h:322
#8  0x00007f6b11e9178d in qDeleteAll<QList<Node*> > (c=...) at /usr/include/QtCore/qalgorithms.h:330
#9  0x00007f6b11e90a7a in Akonadi::EntityTreeModel::~EntityTreeModel (this=0x82ad30, __in_chrg=<optimized out>) at /usr/src/debug/kdepimlibs-4.7.95/akonadi/entitytreemodel.cpp:79
#10 0x00007f6b11e90af9 in Akonadi::EntityTreeModel::~EntityTreeModel (this=0x82ad30, __in_chrg=<optimized out>) at /usr/src/debug/kdepimlibs-4.7.95/akonadi/entitytreemodel.cpp:83
#11 0x00007f6b16ee1e05 in QObjectPrivate::deleteChildren (this=0x920340) at kernel/qobject.cpp:1917
Comment 14 Christophe Marin 2011-12-30 10:22:36 UTC
fixed in 4.8
Comment 15 Christophe Marin 2011-12-30 10:23:28 UTC
*** Bug 289927 has been marked as a duplicate of this bug. ***
Comment 16 Christophe Marin 2011-12-30 10:23:44 UTC
*** Bug 289967 has been marked as a duplicate of this bug. ***
Comment 17 Kevin Kofler 2011-12-30 16:32:54 UTC
Not fixed, see comment #11.
Comment 18 Silviu C. 2011-12-31 00:05:36 UTC
Created attachment 67269 [details]
New crash information added by DrKonqi

kmail (4.8 rc1) on KDE Platform 4.7.95 (4.8 RC1 (4.7.95) using Qt 4.7.4

- What I was doing when the application crashed:

I was exiting Kmail and it crashed. I also had a mail in outbox that it did not send for some odd reason.

-- Backtrace (Reduced):
#6  0x00007fd71ab7b3a5 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007fd71ab7eb0b in __GI_abort () at abort.c:92
[...]
#9  0x00007fd71abbda96 in malloc_printerr (action=3, str=0x7fd71aca10d2 "corrupted double-linked list", ptr=<optimized out>) at malloc.c:6283
#10 0x00007fd71abbe8b3 in _int_free (av=0x7fd71aedf1c0, p=0x3266150) at malloc.c:4973
#11 0x00007fd71abc1d7c in __GI___libc_free (mem=<optimized out>) at malloc.c:3738
Comment 19 Christophe Marin 2012-01-02 17:38:07 UTC
*** Bug 290410 has been marked as a duplicate of this bug. ***
Comment 20 Christophe Marin 2012-01-02 17:43:17 UTC
(In reply to comment #11)
> patch from comment #8 doesn't seem to help any for me, now get:
> 
> 
Rex, please attach a valgrind log if you have the mentioned commit (which is not in rc1)
Comment 21 Rex Dieter 2012-01-02 22:18:24 UTC
Created attachment 67361 [details]
valgrind log of startup, delete a few items, quit
Comment 22 Christophe Marin 2012-01-04 13:11:54 UTC
*** Bug 290443 has been marked as a duplicate of this bug. ***
Comment 23 Christophe Marin 2012-01-04 13:12:43 UTC
*** Bug 290479 has been marked as a duplicate of this bug. ***
Comment 24 Christophe Marin 2012-01-04 13:13:04 UTC
*** Bug 290109 has been marked as a duplicate of this bug. ***
Comment 25 David Faure 2012-01-04 22:19:20 UTC
This is the relevant portion of the valgrind log:


==6000== Invalid read of size 4
==6000==    at 0x39B0CFE8DD: Akonadi::EntityTreeModel::data(QModelIndex const&, int) const (entitytreemodel.cpp:237)
==6000==    by 0x3C23033EEA: KSelectionProxyModel::data(QModelIndex const&, int) const (qabstractitemmodel.h:402)
==6000==    by 0x3C21D6A40B: QSortFilterProxyModel::data(QModelIndex const&, int) const (qsortfilterproxymodel.cpp:1718)
==6000==    by 0x39B50974DA: MessageList::StorageModel::itemForRow(int) const (storagemodel.cpp:475)
==6000==    by 0x39B509B807: MessageList::Widget::Private::itemForRow(int) const (widget.cpp:495)
==6000==    by 0x39B509B89C: MessageList::Widget::currentItem() const (widget.cpp:511)
==6000==    by 0x39B50931DB: MessageList::Pane::currentItem() const (pane.cpp:709)
==6000==    by 0x39B4B12B93: KMMainWidget::itemsReceived(QList<Akonadi::Item> const&) (kmmainwidget.cpp:4369)
==6000==    by 0x39B4B2DF5D: KMMainWidget::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (kmmainwidget.moc:481)
==6000==    by 0x3C2058CCD0: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qobject.cpp:3547)
==6000==    by 0x39B0D30561: Akonadi::ItemFetchJob::itemsReceived(QList<Akonadi::Item> const&) (itemfetchjob.moc:106)
==6000==    by 0x39B0D31623: Akonadi::ItemFetchJob::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (itemfetchjob.cpp:71)
==6000==  Address 0xbba0430 is 16 bytes inside a block of size 24 free'd
==6000==    at 0x4A062BC: operator delete(void*) (vg_replace_malloc.c:387)
==6000==    by 0x39B0D09589: Akonadi::EntityTreeModelPrivate::monitoredItemRemoved(Akonadi::Item const&) (entitytreemodel_p.cpp:1056)
==6000==    by 0x3C2058CCD0: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qobject.cpp:3547)
==6000==    by 0x39B0D467D4: Akonadi::Monitor::itemRemoved(Akonadi::Item const&) (monitor.moc:210)
==6000==    by 0x39B0D4AB3B: Akonadi::MonitorPrivate::emitItemNotification(Akonadi::NotificationMessage const&, Akonadi::Item const&, Akonadi::Collection const&, Akonadi::Collection const&) (monitor_p.cpp:535)
==6000==    by 0x39B0D4C2E1: Akonadi::MonitorPrivate::emitNotification(Akonadi::NotificationMessage const&) (monitor_p.cpp:288)
==6000==    by 0x39B0CAED60: Akonadi::ChangeRecorderPrivate::emitNotification(Akonadi::NotificationMessage const&) (changerecorder_p.h:60)
==6000==    by 0x39B0D4C44C: Akonadi::MonitorPrivate::dispatchNotifications() (monitor_p.cpp:447)
==6000==    by 0x39B0D4CAD3: Akonadi::MonitorPrivate::slotNotify(QList<Akonadi::NotificationMessage> const&) (monitor_p.cpp:418)
==6000==    by 0x39B0CAF029: Akonadi::ChangeRecorderPrivate::slotNotify(QList<Akonadi::NotificationMessage> const&) (changerecorder_p.h:51)
==6000==    by 0x3C2058CCD0: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qobject.cpp:3547)
==6000==    by 0x39B0DCD8D1: OrgFreedesktopAkonadiNotificationSourceInterface::notify(QList<Akonadi::NotificationMessage> const&) (notificationsourceinterface.moc:105)

The deletion line is this one I think:
  delete m_childEntities[ collection.id() ].takeAt( row );
(in EntityTreeModelPrivate::monitoredItemRemoved)

And despite the beginRemoveRows/endRemoveRows, somehow this index is still used later on in EntityTreeModel::data. Some intermediate proxy not reacting to row removal correctly?
Comment 26 abrahams 2012-01-05 01:37:12 UTC
I wonder how many of those encountering this crash -- and there are many -- migrated from kmail to kmail2. I know I did.  If that's a common element, it would suggest that the migration process itself introduced some kind of baddity.
Comment 27 Rex Dieter 2012-01-05 02:30:01 UTC
No migration here, fresh setup.
Comment 28 Unknown 2012-01-05 08:21:04 UTC
For me this crash hasn't occurred for a while after I upgraded to RC 2. But before, it was a "daily routine", 10 times a day at least.

How could I surely reproduce in RC 1:
- Go to inbox
- Move some letters to a folder
- Click on an other letter in the inbox and notice KMail cannot not load the body of that letter any more (there'll be just a white area in place of the message body). You can't move more letters to folders, either
- Ctrl + Q
- Crash instantly
Comment 29 Rex Dieter 2012-01-05 13:59:06 UTC
After a brief amount of testing so far, I can confirm that 4.7.97 (4.8rc2) indeed fixes this issue for me as well. yay.

(I did get one 'update conflict' from akonadi, but will consider that a separate issue for now)
Comment 30 abrahams 2012-01-05 16:37:14 UTC
Is there a repository that contains the rc2 packages?  I have the beta repository on my synaptic list, but updating from there doesn't seem to pick up those packages.
Comment 31 Rex Dieter 2012-01-05 16:45:03 UTC
ask your distro?
Comment 32 Manuel Tortosa 2012-01-05 17:58:35 UTC
After updateing to RC2 i cannot reproduce the crash anymore. So i take it as resolved.
Comment 33 Colin J Thomson 2012-01-05 22:47:06 UTC
Looks fixed here as well after the rc2 update Fedora 16, thanks.
Comment 34 Thomas Berger 2012-01-06 09:13:34 UTC
Thank you, it works fine on Gentoo with the current ebuild from the overlay to.
Comment 35 Christophe Marin 2012-01-06 17:41:06 UTC
*** Bug 290793 has been marked as a duplicate of this bug. ***