Bug 302187

Summary: Crash after moving a folder, then creating a folder.
Product: [Applications] kmail2 Reporter: Simon Reed <BugZilla>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: montel, ursh15
Priority: NOR    
Version: 4.8.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.8.5
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Simon Reed 2012-06-19 14:04:05 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-25-generic x86_64
Distribution: Ubuntu 12.04 LTS

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

I had moved a few individual folders.  I then created a sub-folder and KMail crashed.

-- 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 0x7ff59db437c0 (LWP 6104))]

Thread 3 (Thread 0x7ff574db7700 (LWP 6108)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ff58fd2bdec in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007ff58fd2bf19 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007ff598907e9a in start_thread (arg=0x7ff574db7700) at pthread_create.c:308
#4  0x00007ff59ae6a4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7ff5744b6700 (LWP 6109)):
#0  0x00007ff59ae5eb03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007ff593678036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ff593678164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ff59b7fa426 in QEventDispatcherGlib::processEvents (this=0x7ff56c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007ff59b7c9c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007ff59b7c9ed7 in QEventLoop::exec (this=0x7ff5744b5dc0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007ff59b6c8fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007ff59b6cbfcb in QThreadPrivate::start (arg=0x218c280) at thread/qthread_unix.cpp:298
#8  0x00007ff598907e9a in start_thread (arg=0x7ff5744b6700) at pthread_create.c:308
#9  0x00007ff59ae6a4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ff59db437c0 (LWP 6104)):
[KCrash Handler]
#6  QModelIndex (other=..., this=0x7fff492903e0) at ../../include/QtCore/../../src/corelib/kernel/qabstractitemmodel.h:65
#7  QSortFilterProxyModel::parent (this=0x1ceaf60, child=...) at itemviews/qsortfilterproxymodel.cpp:1659
#8  0x00007ff59d4fa30a in parent (this=0x7fff49290430) at /usr/include/qt4/QtCore/qabstractitemmodel.h:393
#9  KIdentityProxyModel::parent (this=0x1f04380, child=...) at ../../kdeui/itemviews/kidentityproxymodel.cpp:358
#10 0x00007ff59d4fa30a in parent (this=0x7fff49290490) at /usr/include/qt4/QtCore/qabstractitemmodel.h:393
#11 KIdentityProxyModel::parent (this=0x1f041a0, child=...) at ../../kdeui/itemviews/kidentityproxymodel.cpp:358
#12 0x00007ff59b7c1c45 in parent (this=<optimized out>) at kernel/qabstractitemmodel.h:393
#13 QAbstractItemModelPrivate::rowsAboutToBeInserted (this=0x1f51900, parent=..., first=0, last=<optimized out>) at kernel/qabstractitemmodel.cpp:575
#14 0x00007ff59b7c4e08 in QAbstractItemModel::beginInsertRows (this=<optimized out>, parent=..., first=<optimized out>, last=<optimized out>) at kernel/qabstractitemmodel.cpp:2417
#15 0x00007ff59d4fae1d in KIdentityProxyModelPrivate::_k_sourceRowsAboutToBeInserted (this=<optimized out>, parent=..., start=0, end=0) at ../../kdeui/itemviews/kidentityproxymodel.cpp:700
#16 0x00007ff59b7df281 in QMetaObject::activate (sender=0x1f04380, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff49290720) at kernel/qobject.cpp:3547
#17 0x00007ff59b82b5f4 in QAbstractItemModel::rowsAboutToBeInserted (this=<optimized out>, _t1=..., _t2=0, _t3=0) at .moc/release-shared/moc_qabstractitemmodel.cpp:190
#18 0x00007ff59b7c4df8 in QAbstractItemModel::beginInsertRows (this=<optimized out>, parent=..., first=<optimized out>, last=<optimized out>) at kernel/qabstractitemmodel.cpp:2416
#19 0x00007ff59d4fae1d in KIdentityProxyModelPrivate::_k_sourceRowsAboutToBeInserted (this=<optimized out>, parent=..., start=0, end=0) at ../../kdeui/itemviews/kidentityproxymodel.cpp:700
#20 0x00007ff59b7df281 in QMetaObject::activate (sender=0x1ceaf60, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff49290920) at kernel/qobject.cpp:3547
#21 0x00007ff59b82b5f4 in QAbstractItemModel::rowsAboutToBeInserted (this=<optimized out>, _t1=..., _t2=0, _t3=0) at .moc/release-shared/moc_qabstractitemmodel.cpp:190
#22 0x00007ff59b7c4df8 in QAbstractItemModel::beginInsertRows (this=<optimized out>, parent=..., first=<optimized out>, last=<optimized out>) at kernel/qabstractitemmodel.cpp:2416
#23 0x00007ff59c2a1d05 in QSortFilterProxyModelPrivate::insert_source_items (this=0x1e09f90, source_to_proxy=..., proxy_to_source=..., source_items=..., source_parent=..., orient=Qt::Vertical, emit_signal=true) at itemviews/qsortfilterproxymodel.cpp:683
#24 0x00007ff59c2a5e33 in QSortFilterProxyModelPrivate::source_items_inserted (this=0x1e09f90, source_parent=..., start=<optimized out>, end=<optimized out>, orient=Qt::Vertical) at itemviews/qsortfilterproxymodel.cpp:806
#25 0x00007ff59c2a614f in QSortFilterProxyModelPrivate::_q_sourceRowsInserted (this=0x1e09f90, source_parent=..., start=<optimized out>, end=<optimized out>) at itemviews/qsortfilterproxymodel.cpp:1280
#26 0x00007ff59b7df281 in QMetaObject::activate (sender=0x1bf5510, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff49290c80) at kernel/qobject.cpp:3547
#27 0x00007ff59b82b644 in QAbstractItemModel::rowsInserted (this=<optimized out>, _t1=..., _t2=0, _t3=0) at .moc/release-shared/moc_qabstractitemmodel.cpp:197
#28 0x00007ff59b7c502d in QAbstractItemModel::endInsertRows (this=0x1bf5510) at kernel/qabstractitemmodel.cpp:2433
#29 0x00007ff597a0bdd7 in Akonadi::EntityTreeModelPrivate::insertCollection (this=0x1dffb20, collection=..., parent=...) at ../../akonadi/entitytreemodel_p.cpp:713
#30 0x00007ff597a1086e in Akonadi::EntityTreeModelPrivate::monitoredCollectionAdded (this=0x1dffb20, collection=..., parent=...) at ../../akonadi/entitytreemodel_p.cpp:750
#31 0x00007ff59b7df281 in QMetaObject::activate (sender=0x1de3d40, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff49290f80) at kernel/qobject.cpp:3547
#32 0x00007ff597a4bb8a in Akonadi::Monitor::collectionAdded (this=<optimized out>, _t1=..., _t2=...) at ./monitor.moc:231
#33 0x00007ff597a4f9fe in Akonadi::MonitorPrivate::emitCollectionNotification (this=0x1de40f0, msg=..., col=..., par=..., dest=...) at ../../akonadi/monitor_p.cpp:600
#34 0x00007ff597a515fa in Akonadi::MonitorPrivate::emitNotification (this=0x1de40f0, msg=...) at ../../akonadi/monitor_p.cpp:285
#35 0x00007ff5979afb31 in Akonadi::ChangeRecorderPrivate::emitNotification (this=0x1de40f0, msg=...) at ../../akonadi/changerecorder_p.h:60
#36 0x00007ff597a51326 in Akonadi::MonitorPrivate::flushPipeline (this=0x1de40f0) at ../../akonadi/monitor_p.cpp:429
#37 0x00007ff597a517f9 in Akonadi::MonitorPrivate::dataAvailable (this=0x1de40f0) at ../../akonadi/monitor_p.cpp:438
#38 0x00007ff59b7df281 in QMetaObject::activate (sender=0x1e018b0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#39 0x00007ff5979b645d in Akonadi::EntityCache<Akonadi::Collection, Akonadi::CollectionFetchJob, Akonadi::CollectionFetchScope>::processResult (this=0x1e018b0, job=<optimized out>) at ../../akonadi/entitycache_p.h:192
#40 0x00007ff59b7df281 in QMetaObject::activate (sender=0x36b0ee0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff49291640) at kernel/qobject.cpp:3547
#41 0x00007ff59cf62c82 in KJob::result (this=<optimized out>, _t1=0x36b0ee0) at ./kjob.moc:208
#42 0x00007ff59cf62cc0 in KJob::emitResult (this=0x36b0ee0) at ../../kdecore/jobs/kjob.cpp:318
#43 0x00007ff59b7e4446 in QObject::event (this=0x36b0ee0, e=<optimized out>) at kernel/qobject.cpp:1195
#44 0x00007ff59bcf3894 in notify_helper (e=0x2f29e10, receiver=0x36b0ee0, this=0x18bfd80) at kernel/qapplication.cpp:4559
#45 QApplicationPrivate::notify_helper (this=0x18bfd80, receiver=0x36b0ee0, e=0x2f29e10) at kernel/qapplication.cpp:4531
#46 0x00007ff59bcf8713 in QApplication::notify (this=0x7fff49292080, receiver=0x36b0ee0, e=0x2f29e10) at kernel/qapplication.cpp:4420
#47 0x00007ff59d53ebb6 in KApplication::notify (this=0x7fff49292080, receiver=0x36b0ee0, event=0x2f29e10) at ../../kdeui/kernel/kapplication.cpp:311
#48 0x00007ff59b7cae9c in QCoreApplication::notifyInternal (this=0x7fff49292080, receiver=0x36b0ee0, event=0x2f29e10) at kernel/qcoreapplication.cpp:876
#49 0x00007ff59b7cec6a in sendEvent (event=0x2f29e10, receiver=0x36b0ee0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#50 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x185b220) at kernel/qcoreapplication.cpp:1500
#51 0x00007ff59b7f9f93 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#52 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#53 0x00007ff593677d53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#54 0x00007ff5936780a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#55 0x00007ff593678164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#56 0x00007ff59b7fa3bf in QEventDispatcherGlib::processEvents (this=0x185cb00, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#57 0x00007ff59bd9bd5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#58 0x00007ff59b7c9c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#59 0x00007ff59b7c9ed7 in QEventLoop::exec (this=0x7fff49291f60, flags=...) at kernel/qeventloop.cpp:204
#60 0x00007ff59b7cef67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#61 0x0000000000402bd3 in main (argc=<optimized out>, argv=<optimized out>) at ../../kmail/main.cpp:145

This bug may be a duplicate of or related to bug 302138.

Possible duplicates by query: bug 302138, bug 302116, bug 301713, bug 301693, bug 298952.

Reported using DrKonqi
Comment 1 Laurent Montel 2012-07-02 08:03:45 UTC
Fixed in 4.8.5
Comment 2 ursh15 2013-01-22 11:30:10 UTC
Created attachment 76626 [details]
New crash information added by DrKonqi

kmail (4.8.5) on KDE Platform 4.8.5 (4.8.5) "release 2" using Qt 4.8.1

- What I was doing when the application crashed:
moved a folder(with messages) from an imap account to the local folder (just befor it wass deleted).

-- Backtrace (Reduced):
#6  QModelIndex (other=..., this=0x7fff3e975640) at ../../src/corelib/kernel/qabstractitemmodel.h:65
#7  QSortFilterProxyModel::parent (this=0x117c290, child=...) at itemviews/qsortfilterproxymodel.cpp:1659
#8  0x00007fdd15060e4a in parent (this=0x7fff3e975690) at /usr/include/QtCore/qabstractitemmodel.h:393
#9  KIdentityProxyModel::parent (this=0x13dcf00, child=...) at /usr/src/debug/kdelibs-4.8.5/kdeui/itemviews/kidentityproxymodel.cpp:359
#10 0x00007fdd0ca28323 in parent (this=0x7fff3e9756f0) at /usr/include/QtCore/qabstractitemmodel.h:393