Bug 292145 - Crash on marking 10 000 mails in multiple folders as read
Summary: Crash on marking 10 000 mails in multiple folders as read
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.8
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 293539 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-21 23:50 UTC by Arne Babenhauserheide
Modified: 2017-01-07 22:39 UTC (History)
2 users (show)

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


Attachments
New crash information added by DrKonqi (10.54 KB, text/plain)
2012-02-20 13:52 UTC, Arne Babenhauserheide
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arne Babenhauserheide 2012-01-21 23:50:33 UTC
Application: kmail (4.7.4)
KDE Platform Version: 4.7.4 (4.7.4) (Compiled from sources)
Qt Version: 4.7.4
Operating System: Linux 3.0.6-gentoo x86_64
Distribution (Platform): Gentoo Packages

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

I selected an account (legacy KMail Maildir) and all its subfolders. It contains over 100 000 emails. Then I rightclicked. It took about 5 minutes till the menu appeared. In that I then selected “mark all as read”.

After almost all folders showed no more unread mail (all but the one with subfolders), KMail crashed.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
[Current thread is 1 (Thread 0x7ff466064760 (LWP 15438))]

Thread 4 (Thread 0x7ff447b82700 (LWP 15540)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ff4581106bd in WTF::TCMalloc_PageHeap::scavengerThread (this=<optimized out>) at wtf/FastMalloc.cpp:2378
#2  0x00007ff4581107e9 in WTF::TCMalloc_PageHeap::runScavengerThread (context=0x7ff4588e2f34) at wtf/FastMalloc.cpp:1497
#3  0x00007ff461143cba in start_thread (arg=<optimized out>) at pthread_create.c:301
#4  0x00007ff4632d8a4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7ff447281700 (LWP 15541)):
#0  0x00007ff4632e59a6 in pthread_mutex_lock (mutex=0xd227a8) at forward.c:182
#1  0x00007ff45bc2a0d1 in g_main_context_check (context=0xd227a0, max_priority=2147483647, fds=<optimized out>, n_fds=<optimized out>) at gmain.c:2961
#2  0x00007ff45bc2a97a in g_main_context_iterate (context=0xd227a0, block=<optimized out>, dispatch=<optimized out>, self=<optimized out>) at gmain.c:3086
#3  0x00007ff45bc2ad40 in g_main_context_iteration (context=0xd227a0, may_block=1) at gmain.c:3152
#4  0x00007ff463c4dbce in QEventDispatcherGlib::processEvents (this=0xce5fd0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007ff463c20732 in QEventLoop::processEvents (this=<optimized out>, flags=) at kernel/qeventloop.cpp:149
#6  0x00007ff463c20afd in QEventLoop::exec (this=0x7ff447280e20, flags=) at kernel/qeventloop.cpp:201
#7  0x00007ff463b2dd92 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#8  0x00007ff463b30d45 in QThreadPrivate::start (arg=0xc30c00) at thread/qthread_unix.cpp:331
#9  0x00007ff461143cba in start_thread (arg=<optimized out>) at pthread_create.c:301
#10 0x00007ff4632d8a4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7ff44459e700 (LWP 22050)):
#0  0x00007ff4611464b5 in __pthread_mutex_lock (mutex=0x24d3048) at pthread_mutex_lock.c:61
#1  0x00007ff45bc2a0d1 in g_main_context_check (context=0x24d3040, max_priority=2147483647, fds=<optimized out>, n_fds=<optimized out>) at gmain.c:2961
#2  0x00007ff45bc2a97a in g_main_context_iterate (context=0x24d3040, block=<optimized out>, dispatch=<optimized out>, self=<optimized out>) at gmain.c:3086
#3  0x00007ff45bc2ad40 in g_main_context_iteration (context=0x24d3040, may_block=1) at gmain.c:3152
#4  0x00007ff463c4dbce in QEventDispatcherGlib::processEvents (this=0x1fcaae0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007ff463c20732 in QEventLoop::processEvents (this=<optimized out>, flags=) at kernel/qeventloop.cpp:149
#6  0x00007ff463c20afd in QEventLoop::exec (this=0x7ff44459dde0, flags=) at kernel/qeventloop.cpp:201
#7  0x00007ff463b2dd92 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#8  0x00007ff463c005e0 in QInotifyFileSystemWatcherEngine::run (this=0x1e77690) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007ff463b30d45 in QThreadPrivate::start (arg=0x1e77690) at thread/qthread_unix.cpp:331
#10 0x00007ff461143cba in start_thread (arg=<optimized out>) at pthread_create.c:301
#11 0x00007ff4632d8a4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7ff466064760 (LWP 15438)):
[KCrash Handler]
#6  Akonadi::EntityTreeModel::setData (this=0x695740, index=..., value=..., role=53) at /var/tmp/portage/kde-base/kdepimlibs-4.7.4-r1/work/kdepimlibs-4.7.4/akonadi/entitytreemodel.cpp:708
#7  0x00007ff45fbe0d32 in rootIndexAboutToBeRemoved (removedRootIndex=<optimized out>, this=<optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.7.4-r1/work/kdepimlibs-4.7.4/akonadi/selectionproxymodel.cpp:59
#8  Akonadi::SelectionProxyModel::qt_metacall (this=0xfd9e7f0, _c=<optimized out>, _id=1, _a=<optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.7.4-r1/work/kdepimlibs-4.7.4_build/akonadi/selectionproxymodel.moc:76
#9  0x00007ff463c397a7 in QMetaObject::activate (sender=0xfd9e7f0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x35) at kernel/qobject.cpp:3278
#10 0x00007ff465a4e062 in KSelectionProxyModel::rootIndexAboutToBeRemoved (this=0x695740, _t1=<optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.7.4-r11/work/kdelibs-4.7.4_build/kdeui/moc_kselectionproxymodel.cpp:147
#11 0x00007ff465a59467 in KSelectionProxyModelPrivate::removeRangeFromProxy (this=0xd099960, range=<optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.7.4-r11/work/kdelibs-4.7.4/kdeui/itemviews/kselectionproxymodel.cpp:1691
#12 0x00007ff465a5a06c in KSelectionProxyModelPrivate::removeSelectionFromProxy (this=0xd099960, selection=<optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.7.4-r11/work/kdelibs-4.7.4/kdeui/itemviews/kselectionproxymodel.cpp:1610
#13 0x00007ff465a5adf4 in KSelectionProxyModelPrivate::selectionChanged (this=0xd099960, _selected=<optimized out>, _deselected=<optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.7.4-r11/work/kdelibs-4.7.4/kdeui/itemviews/kselectionproxymodel.cpp:1860
#14 0x00007ff465a5c786 in KSelectionProxyModel::qt_metacall (this=0xfd9e7f0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fffb2327e70) at /var/tmp/portage/kde-base/kdelibs-4.7.4-r11/work/kdelibs-4.7.4_build/kdeui/moc_kselectionproxymodel.cpp:134
#15 0x00007ff45fbe0c57 in Akonadi::SelectionProxyModel::qt_metacall (this=0x695740, _c=QMetaObject::ReadProperty, _id=-1305316224, _a=0x35) at /var/tmp/portage/kde-base/kdepimlibs-4.7.4-r1/work/kdepimlibs-4.7.4_build/akonadi/selectionproxymodel.moc:70
#16 0x00007ff463c397a7 in QMetaObject::activate (sender=0xcc9950, m=<optimized out>, local_signal_index=<optimized out>, argv=0x35) at kernel/qobject.cpp:3278
#17 0x00007ff4646af047 in QItemSelectionModel::selectionChanged (this=0x695740, _t1=<optimized out>, _t2=<optimized out>) at .moc/release-shared/moc_qitemselectionmodel.cpp:152
#18 0x00007ff4646b376e in QItemSelectionModel::emitSelectionChanged (this=<optimized out>, newSelection=<optimized out>, oldSelection=...) at itemviews/qitemselectionmodel.cpp:1594
#19 0x00007ff4646b5b20 in QItemSelectionModel::select (this=<optimized out>, selection=<optimized out>, command=<optimized out>) at itemviews/qitemselectionmodel.cpp:1101
#20 0x00007ff45f0b7618 in MessageList::Pane::Private::onSelectionChanged (this=0xcf5ad0, selected=<optimized out>, deselected=...) at /var/tmp/portage/kde-base/kdepim-common-libs-4.7.4/work/kdepim-common-libs-4.7.4/messagelist/pane.cpp:329
#21 0x00007ff45f0b862f in MessageList::Pane::qt_metacall (this=0xca6020, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fffb2328400) at /var/tmp/portage/kde-base/kdepim-common-libs-4.7.4/work/kdepim-common-libs-4.7.4_build/messagelist/pane.moc:111
#22 0x00007ff463c397a7 in QMetaObject::activate (sender=0xac8c10, m=<optimized out>, local_signal_index=<optimized out>, argv=0x35) at kernel/qobject.cpp:3278
#23 0x00007ff4646af047 in QItemSelectionModel::selectionChanged (this=0x695740, _t1=<optimized out>, _t2=<optimized out>) at .moc/release-shared/moc_qitemselectionmodel.cpp:152
#24 0x00007ff4646b376e in QItemSelectionModel::emitSelectionChanged (this=<optimized out>, newSelection=<optimized out>, oldSelection=...) at itemviews/qitemselectionmodel.cpp:1594
#25 0x00007ff4646b5b20 in QItemSelectionModel::select (this=<optimized out>, selection=<optimized out>, command=<optimized out>) at itemviews/qitemselectionmodel.cpp:1101
#26 0x00007ff4646b0e56 in QItemSelectionModel::select (this=0xac8c10, index=<optimized out>, command=) at itemviews/qitemselectionmodel.cpp:976
#27 0x00007ff464662970 in QAbstractItemView::mouseReleaseEvent (this=0x69fe80, event=0x7fffb23296a0) at itemviews/qabstractitemview.cpp:1792
#28 0x00007ff464177aed in QWidget::event (this=0x69fe80, event=0x7fffb23296a0) at kernel/qwidget.cpp:8295
#29 0x00007ff46452e9be in QFrame::event (this=0x69fe80, e=0x7fffb23296a0) at widgets/qframe.cpp:557
#30 0x00007ff4646635eb in QAbstractItemView::viewportEvent (this=0x69fe80, event=0x7fffb23296a0) at itemviews/qabstractitemview.cpp:1628
#31 0x00007ff4646a1a44 in QTreeView::viewportEvent (this=0x69fe80, event=0x7fffb23296a0) at itemviews/qtreeview.cpp:1256
#32 0x00007ff463c2123e in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, receiver=0xbdb240, event=0x7fffb23296a0) at kernel/qcoreapplication.cpp:902
#33 0x00007ff46412164c in QApplicationPrivate::notify_helper (this=0x7fd350, receiver=0xbdb240, e=0x7fffb23296a0) at kernel/qapplication.cpp:4477
#34 0x00007ff46412733e in QApplication::notify (this=0x7fffb232a290, receiver=0xbdb240, e=0x7fffb23296a0) at kernel/qapplication.cpp:4042
#35 0x00007ff465a6c708 in KApplication::notify (this=0x7fffb232a290, receiver=0xbdb240, event=0x7fffb23296a0) at /var/tmp/portage/kde-base/kdelibs-4.7.4-r11/work/kdelibs-4.7.4/kdeui/kernel/kapplication.cpp:311
#36 0x00007ff463c219eb in QCoreApplication::notifyInternal (this=0x7fffb232a290, receiver=0xbdb240, event=0x7fffb23296a0) at kernel/qcoreapplication.cpp:787
#37 0x00007ff464125b61 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#38 QApplicationPrivate::sendMouseEvent (receiver=0xbdb240, event=0x7fffb23296a0, alienWidget=0xbdb240, nativeWidget=<optimized out>, buttonDown=<optimized out>, lastMouseReceiver=<optimized out>, spontaneous=true) at kernel/qapplication.cpp:3141
#39 0x00007ff4641ab4c3 in QETWidget::translateMouseEvent (this=0x97c370, event=<optimized out>) at kernel/qapplication_x11.cpp:4464
#40 0x00007ff4641aa52f in QApplication::x11ProcessEvent (this=<optimized out>, event=0x7fffb2329e20) at kernel/qapplication_x11.cpp:3590
#41 0x00007ff4641d4802 in x11EventSourceDispatch (s=0x800cc0, callback=<optimized out>, user_data=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#42 0x00007ff45bc26fb9 in g_main_dispatch (context=<optimized out>) at gmain.c:2441
#43 g_main_context_dispatch (context=0x7ffce0) at gmain.c:3011
#44 0x00007ff45bc2ac40 in g_main_context_iterate (context=0x7ffce0, block=<optimized out>, dispatch=<optimized out>, self=<optimized out>) at gmain.c:3089
#45 0x00007ff45bc2ad40 in g_main_context_iteration (context=0x7ffce0, may_block=1) at gmain.c:3152
#46 0x00007ff463c4db7e in QEventDispatcherGlib::processEvents (this=0x607310, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#47 0x00007ff4641d4186 in QGuiEventDispatcherGlib::processEvents (this=0x695740, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#48 0x00007ff463c20732 in QEventLoop::processEvents (this=<optimized out>, flags=) at kernel/qeventloop.cpp:149
#49 0x00007ff463c20afd in QEventLoop::exec (this=0x7fffb232a150, flags=) at kernel/qeventloop.cpp:201
#50 0x00007ff463c24b7b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#51 0x00000000004032d0 in main (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/kde-base/kmail-4.7.4-r1/work/kmail-4.7.4/kmail/main.cpp:145

Possible duplicates by query: bug 290660, bug 284872, bug 283768, bug 282428, bug 281889.

Reported using DrKonqi
Comment 1 Arne Babenhauserheide 2012-02-20 13:52:43 UTC
Created attachment 68952 [details]
New crash information added by DrKonqi

kmail (4.8.0) on KDE Platform 4.8.00 (4.8.0 using Qt 4.7.4

- What I was doing when the application crashed:

Marking about 50000 mails in different folders as read. Not all mails loaded, yet (the folders showed the loading sign).

-- Backtrace (Reduced):
#6  Akonadi::EntityTreeModel::setData (this=0x9ae640, index=..., value=..., role=53) at /var/tmp/portage/kde-base/kdepimlibs-4.8.0/work/kdepimlibs-4.8.0/akonadi/entitytreemodel.cpp:714
#7  0x00007f0133881752 in rootIndexAboutToBeRemoved (removedRootIndex=<optimized out>, this=<optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.8.0/work/kdepimlibs-4.8.0/akonadi/selectionproxymodel.cpp:59
#8  Akonadi::SelectionProxyModel::qt_metacall (this=0x3b29920, _c=<optimized out>, _id=1, _a=<optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.8.0/work/kdepimlibs-4.8.0_build/akonadi/selectionproxymodel.moc:76
[...]
#10 0x00007f01396e27c2 in KSelectionProxyModel::rootIndexAboutToBeRemoved (this=0x9ae640, _t1=<optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.8.0-r1/work/kdelibs-4.8.0_build/kdeui/moc_kselectionproxymodel.cpp:147
#11 0x00007f01396edbc7 in KSelectionProxyModelPrivate::removeRangeFromProxy (this=0x14c55660, range=<optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.8.0-r1/work/kdelibs-4.8.0/kdeui/itemviews/kselectionproxymodel.cpp:1691
Comment 2 Jekyll Wu 2012-07-03 16:29:22 UTC
*** Bug 293539 has been marked as a duplicate of this bug. ***
Comment 3 Denis Kurz 2016-09-24 20:36:28 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 4 Denis Kurz 2017-01-07 22:39:45 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.