Version: 1.9.50 (using Devel) Installed from: Compiled sources Compiler: GCC 4.2.3 AMD64 OS: Linux This is with KMail from trunk - kdepimlibs 806131 and kdepim 806185. Steps to reproduce: 1. opened a search dialog 2. searched by List-Id in inbox 3. clicked in search result list 4. pressed Ctrl+A to select all messages 5. Dragged the messages to another folder Result: KMail crashed with this backtrace: Program: KMail (kmail), signal SIGSEGV [Thread debugging using libthread_db enabled] [New Thread 0x7f39802a5700 (LWP 28714)] [KCrash handler] #5 0x00007f3975180ef4 in QTreeWidgetItem::parent (this=0x36) at itemviews/qtreewidget.h:185 #6 0x00007f3975178633 in QTreeModel::index (this=0x17f9b40, item=0x36, column=0) at itemviews/qtreewidget.cpp:234 #7 0x00007f3975178775 in QTreeModel::parent (this=0x17f9b40, child=@0x7fff882ea3e0) at itemviews/qtreewidget.cpp:292 #8 0x00007f3974fbd9ad in QModelIndex::parent (this=0x7fff882ea3e0) at ../../include/QtCore/../../src/corelib/kernel/qabstractitemmodel.h:364 #9 0x00007f397514c6ac in QTreeView::scrollTo (this=0x166f880, index=@0x7fff882ea3e0, hint=QAbstractItemView::EnsureVisible) at itemviews/qtreeview.cpp:1094 #10 0x00007f397510c151 in QAbstractItemViewPrivate::_q_layoutChanged ( this=0x17f6d50) at itemviews/qabstractitemview.cpp:2984 #11 0x00007f39751135fe in QAbstractItemView::qt_metacall (this=0x166f880, _c=QMetaObject::InvokeMetaMethod, _id=35, _a=0x7fff882ea610) at .moc/debug-shared/moc_qabstractitemview.cpp:242 #12 0x00007f397514d32c in QTreeView::qt_metacall (this=0x166f880, _c=QMetaObject::InvokeMetaMethod, _id=66, _a=0x7fff882ea610) at .moc/debug-shared/moc_qtreeview.cpp:121 #13 0x00007f397517fe4a in QTreeWidget::qt_metacall (this=0x166f880, _c=QMetaObject::InvokeMetaMethod, _id=66, _a=0x7fff882ea610) at .moc/debug-shared/moc_qtreewidget.cpp:123 #14 0x00007f397e24c91d in __tcf_0 () at /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.3/include/g++-v4/iostream:77 #15 0x00007f397fdddbdb in QMetaObject::activate (sender=0x17f9b40, from_signal_index=6, to_signal_index=6, argv=0x0) at kernel/qobject.cpp:3007 #16 0x00007f397fdde03f in QMetaObject::activate (sender=0x17f9b40, m=0x7f39800cca80, local_signal_index=2, argv=0x0) at kernel/qobject.cpp:3080 #17 0x00007f397fe1bea0 in QAbstractItemModel::layoutChanged (this=0x17f9b40) at .moc/debug-shared/moc_qabstractitemmodel.cpp:137 #18 0x00007f397517ec83 in QTreeModel::sort (this=0x17f9b40, column=2, order=Qt::DescendingOrder) at itemviews/qtreewidget.cpp:577 #19 0x00007f397517d46e in QTreeModel::executePendingSort (this=0x17f9b40) at itemviews/qtreewidget.cpp:757 #20 0x00007f397517d8ea in QTreeWidget::indexOfTopLevelItem (this=0x166f880, item=0x1ec6680) at itemviews/qtreewidget.cpp:2607 #21 0x00007f397e24e6c3 in KMail::SearchWindow::slotRemoveMsg (this=0x1670a50, serNum=21570) at /home/kde-devel/kde/src/KDE/kdepim/kmail/searchwindow.cpp:584 #22 0x00007f397e24e462 in KMail::SearchWindow::qt_metacall (this=0x1670a50, _c=QMetaObject::InvokeMetaMethod, _id=27, _a=0x7fff882ea9c0) at /home/kde-devel/kde/build/KDE/kdepim/kmail/searchwindow.moc:139 #23 0x00007f397fdddbdb in QMetaObject::activate (sender=0x1815db0, from_signal_index=13, to_signal_index=13, argv=0x7fff882ea9c0) at kernel/qobject.cpp:3007 #24 0x00007f397fdde03f in QMetaObject::activate (sender=0x1815db0, m=0x7f397e7da100, local_signal_index=9, argv=0x7fff882ea9c0) at kernel/qobject.cpp:3080 #25 0x00007f397e138caa in FolderStorage::msgRemoved (this=0x1815db0, _t1=0x1807a40, _t2=21570) at /home/kde-devel/kde/build/KDE/kdepim/kmail/folderstorage.moc:213 #26 0x00007f397e303030 in KMFolderSearch::removeSerNum (this=0x1815db0, serNum=21570) at /home/kde-devel/kde/src/KDE/kdepim/kmail/kmfoldersearch.cpp:492 #27 0x00007f397e3078c3 in KMFolderSearch::examineRemovedMessage ( this=0x1815db0, folder=0x8d8c80, serNum=21570) at /home/kde-devel/kde/src/KDE/kdepim/kmail/kmfoldersearch.cpp:1055 #28 0x00007f397e307c89 in KMFolderSearch::qt_metacall (this=0x1815db0, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x7fff882eac30) at /home/kde-devel/kde/build/KDE/kdepim/kmail/kmfoldersearch.moc:171 #29 0x00007f397fdddbdb in QMetaObject::activate (sender=0x8b8e10, from_signal_index=9, to_signal_index=9, argv=0x7fff882eac30) at kernel/qobject.cpp:3007 #30 0x00007f397fdde03f in QMetaObject::activate (sender=0x8b8e10, m=0x7f397e7dada0, local_signal_index=5, argv=0x7fff882eac30) at kernel/qobject.cpp:3080 #31 0x00007f397e15fd78 in KMFolderMgr::msgRemoved (this=0x8b8e10, _t1=0x8d8c80, _t2=21570) at /home/kde-devel/kde/build/KDE/kdepim/kmail/kmfoldermgr.moc:147 #32 0x00007f397e162d55 in KMFolderMgr::qt_metacall (this=0x8b8e10, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x7fff882eade0) at /home/kde-devel/kde/build/KDE/kdepim/kmail/kmfoldermgr.moc:95 #33 0x00007f397fdddbdb in QMetaObject::activate (sender=0x8e2210, from_signal_index=13, to_signal_index=13, argv=0x7fff882eade0) at kernel/qobject.cpp:3007 #34 0x00007f397fdde03f in QMetaObject::activate (sender=0x8e2210, m=0x7f397e7da100, local_signal_index=9, argv=0x7fff882eade0) at kernel/qobject.cpp:3080 #35 0x00007f397e138caa in FolderStorage::msgRemoved (this=0x8e2210, _t1=0x8d8c80, _t2=21570) at /home/kde-devel/kde/build/KDE/kdepim/kmail/folderstorage.moc:213 #36 0x00007f397e13bf66 in FolderStorage::take (this=0x8e2210, idx=7142) at /home/kde-devel/kde/src/KDE/kdepim/kmail/folderstorage.cpp:429 #37 0x00007f397e2089ee in KMFolderMaildir::removeFile (this=0x7f397fd25564, filename=@0x230adce) at /home/kde-devel/kde/src/KDE/kdepim/kmail/kmfoldermaildir.cpp:992 #38 0x00007f397e1124d2 in KMFolder::take (this=0x8d8c80, idx=7142) at /home/kde-devel/kde/src/KDE/kdepim/kmail/kmfolder.cpp:403 #39 0x00007f397e20cfa5 in KMFolderMaildir::addMsgInternal (this=0x1e982c0, aMsg=0x1e8fdf0, index_return=0x7fff882eb35c, stripUid=false) at /home/kde-devel/kde/src/KDE/kdepim/kmail/kmfoldermaildir.cpp:462 #40 0x00007f397e20d88a in KMFolderMaildir::addMsgInternal (this=0x0, aMsg=0x0, index_return=0x7f397e481106, stripUid=false) at /home/kde-devel/kde/src/KDE/kdepim/kmail/kmfoldermaildir.cpp:567 #41 0x00007f397e13b0f9 in FolderStorage::moveMsg (this=0x1e982c0, aMsg=0x1e8fdf0, aIndex_ret=0x7fff882eb35c) at /home/kde-devel/kde/src/KDE/kdepim/kmail/folderstorage.cpp:610 #42 0x00007f397e11269e in KMFolder::moveMsg (this=0x208db60, msg=0x1e8fdf0, index_return=0x7fff882eb35c) at /home/kde-devel/kde/src/KDE/kdepim/kmail/kmfolder.cpp:448 #43 0x00007f397e2b7a85 in KMMoveCommand::execute (this=0x23126d0) at /home/kde-devel/kde/src/KDE/kdepim/kmail/kmcommands.cpp:2097 #44 0x00007f397e2c682d in KMCommand::transferSelectedMsgs ( this=0x7f397e4938a0) at /home/kde-devel/kde/src/KDE/kdepim/kmail/kmcommands.cpp:371 #45 0x00007f397e2c6cb2 in KMCommand::qt_metacall (this=0x23126d0, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x7fff882eb680) at /home/kde-devel/kde/build/KDE/kdepim/kmail/kmcommands.moc:82 #46 0x00007f397e2c7157 in KMLoadPartsCommand::qt_metacall (this=0x23126d0, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0x7fff882eb680) at /home/kde-devel/kde/build/KDE/kdepim/kmail/kmcommands.moc:1814 #47 0x00007f397fdddbdb in QMetaObject::activate (sender=0x23126d0, from_signal_index=4, to_signal_index=4, argv=0x7fff882eb680) at kernel/qobject.cpp:3007 #48 0x00007f397fdde03f in QMetaObject::activate (sender=0x23126d0, m=0x7f397e7e5080, local_signal_index=0, argv=0x7fff882eb680) at kernel/qobject.cpp:3080 #49 0x00007f397e2ada24 in KMCommand::completed (this=0x23126d0, _t1=0x102312708) at /home/kde-devel/kde/build/KDE/kdepim/kmail/kmcommands.moc:104 #50 0x00007f397e2c6780 in KMCommand::transferSelectedMsgs (this=0x23126d0) at /home/kde-devel/kde/src/KDE/kdepim/kmail/kmcommands.cpp:313 #51 0x00007f397e2c6b7d in KMCommand::slotStart (this=0x23126d0) at /home/kde-devel/kde/src/KDE/kdepim/kmail/kmcommands.cpp:257 #52 0x00007f397e2c6c9a in KMCommand::qt_metacall (this=0x23126d0, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x7fff882eb9a0) at /home/kde-devel/kde/build/KDE/kdepim/kmail/kmcommands.moc:81 #53 0x00007f397e2c7157 in KMLoadPartsCommand::qt_metacall (this=0x23126d0, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0x7fff882eb9a0) at /home/kde-devel/kde/build/KDE/kdepim/kmail/kmcommands.moc:1814 #54 0x00007f397fdddbdb in QMetaObject::activate (sender=0x21e2a80, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3007 #55 0x00007f397fdde03f in QMetaObject::activate (sender=0x21e2a80, m=0x7f39800cb320, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3080 #56 0x00007f397fde7b52 in QSingleShotTimer::timeout (this=0x21e2a80) at .moc/debug-shared/qtimer.moc:74 #57 0x00007f397fde7c4b in QSingleShotTimer::timerEvent (this=0x21e2a80) at kernel/qtimer.cpp:300 #58 0x00007f397fddbe4e in QObject::event (this=0x21e2a80, e=0x7fff882ec2d0) at kernel/qobject.cpp:1105 #59 0x00007f3974c46e47 in QApplicationPrivate::notify_helper (this=0x6e5840, receiver=0x21e2a80, e=0x7fff882ec2d0) at kernel/qapplication.cpp:3772 #60 0x00007f3974c47169 in QApplication::notify (this=0x7fff882ec7e0, receiver=0x21e2a80, e=0x7fff882ec2d0) at kernel/qapplication.cpp:3366 #61 0x00007f397a8ba316 in KApplication::notify (this=0x7fff882ec7e0, receiver=0x21e2a80, event=0x7fff882ec2d0) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:311 #62 0x00007f397fdc9256 in QCoreApplication::notifyInternal ( this=0x7fff882ec7e0, receiver=0x21e2a80, event=0x7fff882ec2d0) at kernel/qcoreapplication.cpp:583 #63 0x00007f397fdccc81 in QCoreApplication::sendEvent (receiver=0x21e2a80, event=0x7fff882ec2d0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215 #64 0x00007f397fdfaa31 in QTimerInfoList::activateTimers (this=0x6e9000) at kernel/qeventdispatcher_unix.cpp:563 #65 0x00007f397fdf8155 in timerSourceDispatch (source=0x6e8fa0) at kernel/qeventdispatcher_glib.cpp:166 #66 0x00007f3972ee1e31 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #67 0x00007f3972ee50c6 in ?? () from /usr/lib/libglib-2.0.so.0 #68 0x00007f3972ee555f in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #69 0x00007f397fdf73bc in QEventDispatcherGlib::processEvents (this=0x6d7e50, flags=@0x7fff882ec510) at kernel/qeventdispatcher_glib.cpp:325 #70 0x00007f3974ce7c0b in QGuiEventDispatcherGlib::processEvents ( this=0x6d7e50, flags=@0x7fff882ec570) at kernel/qguieventdispatcher_glib.cpp:204 #71 0x00007f397fdc6384 in QEventLoop::processEvents (this=0x7fff882ec620, flags=@0x7fff882ec5d0) at kernel/qeventloop.cpp:149 #72 0x00007f397fdc6580 in QEventLoop::exec (this=0x7fff882ec620, flags=@0x7fff882ec630) at kernel/qeventloop.cpp:196 #73 0x00007f397fdc9aa0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845 #74 0x00007f3974c46ba8 in QApplication::exec () at kernel/qapplication.cpp:3304 #75 0x0000000000403af9 in main (argc=3, argv=0x7fff882ec998) at /home/kde-devel/kde/src/KDE/kdepim/kmail/main.cpp:136 #0 0x00007f397362abf0 in nanosleep () from /lib64/libc.so.6
Hmm, I can't reproduce this. Although I moved all my search results to another folder, KMail didn't crash. The messages just disappeared from the search window, like they should.
This crash is still happening here in about 2 or 3 times out of 10. I updated to trunk version on 2008-06-21 and a few days before that I subscribed to a couple of mailing lists to get a lot of messages to filter by list-id. I started with about 15000 emails in inbox and was moving about 200-1000 messages after each search.
Have you experienced this bug again using a recent KDE (4.1.4 / 4.2beta2 / 4.2rc1 / 4.2svn / 4.3svn) ? (KMail has changed a lot) Thanks :)
I'm not able to reproduce this crash too. @Jure: Please reopen if you can reproduce it again
Hello, this is probably a valid bug which is *hard* to reproduce. It comes from QTreeWidget internals and is related to delayed layouting. See https://bugs.kde.org/show_bug.cgi?id=200123 how similar bug was solved in konversation. Basically, you need to ensure executeDelayedItemsLayout() is called on the QTreeWidget after deleting its QTreeWidgetItem.