Bug 250706

Summary: KMail crashed when changing folder after moving a lot of messages
Product: [Applications] kmail2 Reporter: Alex Merry <alex.merry>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash CC: tokoe
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alex Merry 2010-09-09 22:24:57 UTC
Application: kmail (2.0.89)
KDE Platform Version: 4.5.67 (4.6 >= 20100901) (Compiled from sources)
Qt Version: 4.6.3
Operating System: Linux 2.6.35-ARCH x86_64
Distribution (Platform): Archlinux Packages

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

I moved a lot of messages (not sure how many, over 100 though) from a folder to its parent, then deleted the original folder.  The message list pane looked like it was still viewing the old folder with all the (now moved) messages in, and an unrelated IMAP account (not a folder, the account itself) was selected in the folder tree.  I clicked on the folder I had moved the messages to, and KMail crashed.

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

Thread 2 (Thread 0x7fbf1527e710 (LWP 5292)):
#0  0x00007fbf2acf040c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fbf23579e30 in WTF::TCMalloc_PageHeap::scavengerThread() () from /usr/lib/libQtWebKit.so.4
#2  0x00007fbf23579e69 in WTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /usr/lib/libQtWebKit.so.4
#3  0x00007fbf2acebcb0 in start_thread () from /lib/libpthread.so.0
#4  0x00007fbf2a2b57ad in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fbf30b35760 (LWP 5280)):
[KCrash Handler]
#6  QModelIndex (this=0x179aca0, child=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qabstractitemmodel.h:65
#7  QSortFilterProxyModel::parent (this=0x179aca0, child=<value optimized out>) at itemviews/qsortfilterproxymodel.cpp:1619
#8  0x00007fbf2c2436e6 in QModelIndex::parent (this=0x17798b0, painter=0x7fff959d52b0, option=..., index=...) at ../../include/QtCore/../../src/corelib/kernel/qabstractitemmodel.h:389
#9  QTreeView::drawRow (this=0x17798b0, painter=0x7fff959d52b0, option=..., index=...) at itemviews/qtreeview.cpp:1527
#10 0x00007fbf2c246ee3 in QTreeView::drawTree (this=0x17798b0, painter=0x7fff959d52b0, region=<value optimized out>) at itemviews/qtreeview.cpp:1433
#11 0x00007fbf2c2478c3 in QTreeView::paintEvent (this=0x17798b0, event=0x7fff959d5fb0) at itemviews/qtreeview.cpp:1266
#12 0x00007fbf2bd5f4d4 in QWidget::event (this=0x17798b0, event=0x7fff959d5fb0) at kernel/qwidget.cpp:8190
#13 0x00007fbf2c0f80f6 in QFrame::event (this=0x17798b0, e=0x7fff959d5fb0) at widgets/qframe.cpp:557
#14 0x00007fbf2c204693 in QAbstractItemView::viewportEvent (this=0x17798b0, event=0x7fff959d5fb0) at itemviews/qabstractitemview.cpp:1615
#15 0x00007fbf2c248ae2 in QTreeView::viewportEvent (this=0x17798b0, event=0x7fff959d5fb0) at itemviews/qtreeview.cpp:1248
#16 0x00007fbf2b05ff17 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x177a010, event=0x7fff959d5fb0) at kernel/qcoreapplication.cpp:841
#17 0x00007fbf2bd0fab1 in QApplicationPrivate::notify_helper (this=0x18f9ba0, receiver=0x177a010, e=0x7fff959d5fb0) at kernel/qapplication.cpp:4298
#18 0x00007fbf2bd13bca in QApplication::notify (this=<value optimized out>, receiver=0x177a010, e=0x7fff959d5fb0) at kernel/qapplication.cpp:4185
#19 0x00007fbf304c7c8d in KApplication::notify (this=0x7fff959d9ba0, receiver=0x177a010, event=0x7fff959d5fb0) at /home/kde-devel/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:310
#20 0x00007fbf2b05fd8c in QCoreApplication::notifyInternal (this=0x7fff959d9ba0, receiver=0x177a010, event=0x7fff959d5fb0) at kernel/qcoreapplication.cpp:726
#21 0x00007fbf2bd5a908 in QCoreApplication::sendSpontaneousEvent (this=0x177a050, pdev=0x1dcc9a8, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1dcc910)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#22 QWidgetPrivate::drawWidget (this=0x177a050, pdev=0x1dcc9a8, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1dcc910) at kernel/qwidget.cpp:5363
#23 0x00007fbf2bd5b4cf in QWidgetPrivate::paintSiblingsRecursive (this=0x1779910, pdev=0x1dcc9a8, siblings=<value optimized out>, index=<value optimized out>, rgn=..., offset=..., flags=4, 
    sharedPainter=0x0, backingStore=0x1dcc910) at kernel/qwidget.cpp:5476
#24 0x00007fbf2bd5b38c in QWidgetPrivate::paintSiblingsRecursive (this=0x1779910, pdev=0x1dcc9a8, siblings=..., index=2, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1dcc910)
    at kernel/qwidget.cpp:5463
#25 0x00007fbf2bd5b38c in QWidgetPrivate::paintSiblingsRecursive (this=0x1779910, pdev=0x1dcc9a8, siblings=..., index=8, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1dcc910)
    at kernel/qwidget.cpp:5463
#26 0x00007fbf2bd5b38c in QWidgetPrivate::paintSiblingsRecursive (this=0x1779910, pdev=0x1dcc9a8, siblings=..., index=9, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1dcc910)
    at kernel/qwidget.cpp:5463
#27 0x00007fbf2bd5b38c in QWidgetPrivate::paintSiblingsRecursive (this=0x1779910, pdev=0x1dcc9a8, siblings=..., index=10, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1dcc910)
    at kernel/qwidget.cpp:5463
#28 0x00007fbf2bd5b38c in QWidgetPrivate::paintSiblingsRecursive (this=0x1779910, pdev=0x1dcc9a8, siblings=..., index=11, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1dcc910)
    at kernel/qwidget.cpp:5463
#29 0x00007fbf2bd5a64a in QWidgetPrivate::drawWidget (this=0x1779910, pdev=0x1dcc9a8, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x1dcc910)
    at kernel/qwidget.cpp:5412
#30 0x00007fbf2bd5b4cf in QWidgetPrivate::paintSiblingsRecursive (this=0x17794b0, pdev=0x1dcc9a8, siblings=<value optimized out>, index=<value optimized out>, rgn=..., offset=..., flags=4, 
    sharedPainter=0x0, backingStore=0x1dcc910) at kernel/qwidget.cpp:5476
#31 0x00007fbf2bd5a64a in QWidgetPrivate::drawWidget (this=0x17794b0, pdev=0x1dcc9a8, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x1dcc910)
    at kernel/qwidget.cpp:5412
#32 0x00007fbf2bd5b4cf in QWidgetPrivate::paintSiblingsRecursive (this=0x1e12ee0, pdev=0x1dcc9a8, siblings=<value optimized out>, index=<value optimized out>, rgn=..., offset=..., flags=4, 
    sharedPainter=0x0, backingStore=0x1dcc910) at kernel/qwidget.cpp:5476
#33 0x00007fbf2bd5a64a in QWidgetPrivate::drawWidget (this=0x1e12ee0, pdev=0x1dcc9a8, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x1dcc910)
    at kernel/qwidget.cpp:5412
#34 0x00007fbf2bd5b4cf in QWidgetPrivate::paintSiblingsRecursive (this=0x156f1a0, pdev=0x1dcc9a8, siblings=<value optimized out>, index=<value optimized out>, rgn=..., offset=..., flags=4, 
    sharedPainter=0x0, backingStore=0x1dcc910) at kernel/qwidget.cpp:5476
#35 0x00007fbf2bd5a64a in QWidgetPrivate::drawWidget (this=0x156f1a0, pdev=0x1dcc9a8, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x1dcc910)
    at kernel/qwidget.cpp:5412
#36 0x00007fbf2bd5b4cf in QWidgetPrivate::paintSiblingsRecursive (this=0x156e1c0, pdev=0x1dcc9a8, siblings=<value optimized out>, index=<value optimized out>, rgn=..., offset=..., flags=4, 
    sharedPainter=0x0, backingStore=0x1dcc910) at kernel/qwidget.cpp:5476
#37 0x00007fbf2bd5b38c in QWidgetPrivate::paintSiblingsRecursive (this=0x156e1c0, pdev=0x1dcc9a8, siblings=..., index=0, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1dcc910)
    at kernel/qwidget.cpp:5463
#38 0x00007fbf2bd5b38c in QWidgetPrivate::paintSiblingsRecursive (this=0x156e1c0, pdev=0x1dcc9a8, siblings=..., index=1, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1dcc910)
    at kernel/qwidget.cpp:5463
#39 0x00007fbf2bd5a64a in QWidgetPrivate::drawWidget (this=0x156e1c0, pdev=0x1dcc9a8, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x1dcc910)
    at kernel/qwidget.cpp:5412
#40 0x00007fbf2bd5b4cf in QWidgetPrivate::paintSiblingsRecursive (this=0x1778070, pdev=0x1dcc9a8, siblings=<value optimized out>, index=<value optimized out>, rgn=..., offset=..., flags=4, 
    sharedPainter=0x0, backingStore=0x1dcc910) at kernel/qwidget.cpp:5476
#41 0x00007fbf2bd5a64a in QWidgetPrivate::drawWidget (this=0x1778070, pdev=0x1dcc9a8, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x1dcc910)
    at kernel/qwidget.cpp:5412
#42 0x00007fbf2bd5b4cf in QWidgetPrivate::paintSiblingsRecursive (this=0x1774430, pdev=0x1dcc9a8, siblings=<value optimized out>, index=<value optimized out>, rgn=..., offset=..., flags=4, 
    sharedPainter=0x0, backingStore=0x1dcc910) at kernel/qwidget.cpp:5476
#43 0x00007fbf2bd5a64a in QWidgetPrivate::drawWidget (this=0x1774430, pdev=0x1dcc9a8, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x1dcc910)
    at kernel/qwidget.cpp:5412
#44 0x00007fbf2bf0f0c0 in QWidgetBackingStore::sync (this=0x1dcc910) at painting/qbackingstore.cpp:1300
#45 0x00007fbf2bd51650 in QWidgetPrivate::syncBackingStore (this=0x1774430) at kernel/qwidget.cpp:1688
#46 0x00007fbf2bd5f9d2 in QWidget::event (this=0x1773b10, event=0xef82c10) at kernel/qwidget.cpp:8337
#47 0x00007fbf2c11187b in QMainWindow::event (this=0x1773b10, event=0xef82c10) at widgets/qmainwindow.cpp:1414
#48 0x00007fbf305b696b in KMainWindow::event (this=0x1773b10, ev=0xef82c10) at /home/kde-devel/src/KDE/kdelibs/kdeui/widgets/kmainwindow.cpp:1100
#49 0x00007fbf305f8086 in KXmlGuiWindow::event (this=0x1773b10, ev=0xef82c10) at /home/kde-devel/src/KDE/kdelibs/kdeui/xmlgui/kxmlguiwindow.cpp:132
#50 0x00007fbf2bd0fae4 in QApplicationPrivate::notify_helper (this=0x18f9ba0, receiver=0x1773b10, e=0xef82c10) at kernel/qapplication.cpp:4302
#51 0x00007fbf2bd13bca in QApplication::notify (this=<value optimized out>, receiver=0x1773b10, e=0xef82c10) at kernel/qapplication.cpp:4185
#52 0x00007fbf304c7c8d in KApplication::notify (this=0x7fff959d9ba0, receiver=0x1773b10, event=0xef82c10) at /home/kde-devel/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:310
#53 0x00007fbf2b05fd8c in QCoreApplication::notifyInternal (this=0x7fff959d9ba0, receiver=0x1773b10, event=0xef82c10) at kernel/qcoreapplication.cpp:726
#54 0x00007fbf2b0634ea in QCoreApplication::sendEvent (receiver=0x0, event_type=0, data=0x150cd50) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#55 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x150cd50) at kernel/qcoreapplication.cpp:1367
#56 0x00007fbf2b088373 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#57 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#58 0x00007fbf20a1eb33 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#59 0x00007fbf20a1f310 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#60 0x00007fbf20a1f5ad in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#61 0x00007fbf2b08887f in QEventDispatcherGlib::processEvents (this=0x150c510, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#62 0x00007fbf2bdaf60e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#63 0x00007fbf2b05f172 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#64 0x00007fbf2b05f3ac in QEventLoop::exec (this=0x7fff959d9a40, flags=...) at kernel/qeventloop.cpp:201
#65 0x00007fbf2b0637bb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#66 0x0000000000403594 in main (argc=3, argv=0x7fff959d9d38) at /home/kde-devel/src/KDE/kdepim/kmail/main.cpp:145

Possible duplicates by query: bug 250138, bug 239027, bug 212757.

Reported using DrKonqi
Comment 1 Tobias Koenig 2010-12-12 00:27:59 UTC
Hej Alex,

still reproducable with current version?

Ciao,
Tobias
Comment 2 Alex Merry 2013-01-11 22:44:23 UTC
I don't know, as I don't really use it these days.