Bug 357174

Summary: KMail5 Crash when moving folder to inbox
Product: [Applications] kmail2 Reporter: Angelos Skembris <a.skembris>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Angelos Skembris 2015-12-26 13:18:58 UTC
Application: kmail (5.0.3)

Qt Version: 5.5.1
Operating System: Linux 4.3.3-1-default x86_64
Distribution: "openSUSE Tumbleweed (20151221) (x86_64)"

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

I imported a large number of e-mails from another computer. Moving the imported folders to the main "inbox" folder (so that all folders are under "inbox" instead of the container of the imports) causes the crash. It does not happen everytime, but 2 out of 3 times Kmail will crash. Also, the folder is eventually moved - restarting KMail shows the folder in the intended location.

The crash can be reproduced sometimes.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f5469e17940 (LWP 4544))]

Thread 8 (Thread 0x7f5443aec700 (LWP 4545)):
#0  0x00007f5466e0e24d in poll () from /lib64/libc.so.6
#1  0x00007f545a4f2432 in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007f545a4f4007 in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007f5445814e29 in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007f546771694f in QThreadPrivate::start (arg=0x9d93e0) at thread/qthread_unix.cpp:331
#5  0x00007f545d7e74a4 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f5466e16bdd in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7f5439456700 (LWP 4555)):
#0  0x00007f5466e0a22d in read () from /lib64/libc.so.6
#1  0x00007f545d00e210 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f545cfcbd94 in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f545cfcc208 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f545cfcc36c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f546793b52b in QEventDispatcherGlib::processEvents (this=0x7f54340008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#6  0x00007f54678e563a in QEventLoop::exec (this=this@entry=0x7f5439455c90, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#7  0x00007f5467711b1c in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#8  0x00007f546771694f in QThreadPrivate::start (arg=0xf807c0) at thread/qthread_unix.cpp:331
#9  0x00007f545d7e74a4 in start_thread () from /lib64/libpthread.so.0
#10 0x00007f5466e16bdd in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7f5433fff700 (LWP 4556)):
#0  0x00007f545d7ed07f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f545835e3bb in ?? () from /usr/lib64/libQt5WebKit.so.5
#2  0x00007f545835e3f9 in ?? () from /usr/lib64/libQt5WebKit.so.5
#3  0x00007f545d7e74a4 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f5466e16bdd in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f53f2698700 (LWP 4563)):
#0  0x00007f545d7ed07f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f545806c764 in ?? () from /usr/lib64/libQt5WebKit.so.5
#2  0x00007f545838d441 in ?? () from /usr/lib64/libQt5WebKit.so.5
#3  0x00007f545d7e74a4 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f5466e16bdd in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f53f1e97700 (LWP 4564)):
#0  0x00007f545d7ed07f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f545806d793 in ?? () from /usr/lib64/libQt5WebKit.so.5
#2  0x00007f545838d441 in ?? () from /usr/lib64/libQt5WebKit.so.5
#3  0x00007f545d7e74a4 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f5466e16bdd in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f53f1696700 (LWP 4565)):
#0  0x00007f545d7ed07f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f545806d793 in ?? () from /usr/lib64/libQt5WebKit.so.5
#2  0x00007f545838d441 in ?? () from /usr/lib64/libQt5WebKit.so.5
#3  0x00007f545d7e74a4 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f5466e16bdd in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f53f0e95700 (LWP 4566)):
#0  0x00007f545d7ed07f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f545806d793 in ?? () from /usr/lib64/libQt5WebKit.so.5
#2  0x00007f545838d441 in ?? () from /usr/lib64/libQt5WebKit.so.5
#3  0x00007f545d7e74a4 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f5466e16bdd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f5469e17940 (LWP 4544)):
[KCrash Handler]
#6  count (this=0x500000004) at ../../src/corelib/tools/qvector.h:203
#7  QSortFilterProxyModel::sibling (this=<optimized out>, row=1, column=1, idx=...) at itemmodels/qsortfilterproxymodel.cpp:1889
#8  0x00007f54678aad78 in QIdentityProxyModel::sibling (this=0xf2b8f0, row=1, column=<optimized out>, idx=...) at itemmodels/qidentityproxymodel.cpp:166
#9  0x00007f54678aad78 in QIdentityProxyModel::sibling (this=0xc82bf0, row=1, column=<optimized out>, idx=...) at itemmodels/qidentityproxymodel.cpp:166
#10 0x00007f54622debd7 in Akonadi::StatisticsProxyModel::Private::sourceLayoutChanged() () from /usr/lib64/libKF5AkonadiCore.so.5
#11 0x00007f5467914f8a in QMetaObject::activate (sender=sender@entry=0xc82bf0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffd89960d30) at kernel/qobject.cpp:3713
#12 0x00007f5467915787 in QMetaObject::activate (sender=sender@entry=0xc82bf0, m=m@entry=0x7f5467d2af40 <QAbstractItemModel::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffd89960d30) at kernel/qobject.cpp:3578
#13 0x00007f546798d2c6 in QAbstractItemModel::layoutChanged (this=this@entry=0xc82bf0, _t1=..., _t2=_t2@entry=QAbstractItemModel::NoLayoutChangeHint) at .moc/moc_qabstractitemmodel.cpp:562
#14 0x00007f54678ad8a1 in QIdentityProxyModelPrivate::_q_sourceLayoutChanged (this=<optimized out>, sourceParents=..., hint=QAbstractItemModel::NoLayoutChangeHint) at itemmodels/qidentityproxymodel.cpp:536
#15 0x00007f54678add43 in QIdentityProxyModel::qt_static_metacall (_o=_o@entry=0xc82bf0, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=15, _a=_a@entry=0x7ffd89960f90) at .moc/moc_qidentityproxymodel.cpp:163
#16 0x00007f5467914f8a in QMetaObject::activate (sender=sender@entry=0xf2b8f0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffd89960f90) at kernel/qobject.cpp:3713
#17 0x00007f5467915787 in QMetaObject::activate (sender=sender@entry=0xf2b8f0, m=m@entry=0x7f5467d2af40 <QAbstractItemModel::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffd89960f90) at kernel/qobject.cpp:3578
#18 0x00007f546798d2c6 in QAbstractItemModel::layoutChanged (this=this@entry=0xf2b8f0, _t1=..., _t2=_t2@entry=QAbstractItemModel::NoLayoutChangeHint) at .moc/moc_qabstractitemmodel.cpp:562
#19 0x00007f54678ad8a1 in QIdentityProxyModelPrivate::_q_sourceLayoutChanged (this=<optimized out>, sourceParents=..., hint=QAbstractItemModel::NoLayoutChangeHint) at itemmodels/qidentityproxymodel.cpp:536
#20 0x00007f54678add43 in QIdentityProxyModel::qt_static_metacall (_o=_o@entry=0xf2b8f0, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=15, _a=_a@entry=0x7ffd899611f0) at .moc/moc_qidentityproxymodel.cpp:163
#21 0x00007f5467914f8a in QMetaObject::activate (sender=sender@entry=0xacc9a0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffd899611f0) at kernel/qobject.cpp:3713
#22 0x00007f5467915787 in QMetaObject::activate (sender=sender@entry=0xacc9a0, m=m@entry=0x7f5467d2af40 <QAbstractItemModel::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffd899611f0) at kernel/qobject.cpp:3578
#23 0x00007f546798d2c6 in QAbstractItemModel::layoutChanged (this=this@entry=0xacc9a0, _t1=..., _t2=_t2@entry=QAbstractItemModel::NoLayoutChangeHint) at .moc/moc_qabstractitemmodel.cpp:562
#24 0x00007f54678b5a10 in QSortFilterProxyModelPrivate::_q_sourceColumnsMoved (this=<optimized out>, sourceParent=..., destParent=...) at itemmodels/qsortfilterproxymodel.cpp:1543
#25 0x00007f54678ba5a4 in QSortFilterProxyModel::qt_static_metacall (_o=_o@entry=0xacc9a0, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=16, _a=_a@entry=0x7ffd899613f0) at .moc/moc_qsortfilterproxymodel.cpp:219
#26 0x00007f5467914f8a in QMetaObject::activate (sender=sender@entry=0xb7b030, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=20, argv=argv@entry=0x7ffd899613f0) at kernel/qobject.cpp:3713
#27 0x00007f5467915787 in QMetaObject::activate (sender=sender@entry=0xb7b030, m=m@entry=0x7f5467d2af40 <QAbstractItemModel::staticMetaObject>, local_signal_index=local_signal_index@entry=20, argv=argv@entry=0x7ffd899613f0) at kernel/qobject.cpp:3578
#28 0x00007f546798d6a4 in QAbstractItemModel::rowsMoved (this=this@entry=0xb7b030, _t1=..., _t2=1, _t3=1, _t4=..., _t5=_t5@entry=0) at .moc/moc_qabstractitemmodel.cpp:651
#29 0x00007f54678938e4 in QAbstractItemModel::endMoveRows (this=0xb7b030) at itemmodels/qabstractitemmodel.cpp:2853
#30 0x00007f54622ce1d7 in Akonadi::EntityTreeModelPrivate::monitoredCollectionMoved(Akonadi::Collection const&, Akonadi::Collection const&, Akonadi::Collection const&) () from /usr/lib64/libKF5AkonadiCore.so.5
#31 0x00007f5467914f8a in QMetaObject::activate (sender=0xba5bf0, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3713
#32 0x00007f546221676f in Akonadi::Monitor::collectionMoved(Akonadi::Collection const&, Akonadi::Collection const&, Akonadi::Collection const&) () from /usr/lib64/libKF5AkonadiCore.so.5
#33 0x00007f546221c492 in Akonadi::MonitorPrivate::emitCollectionNotification(Akonadi::Protocol::ChangeNotification const&, Akonadi::Collection const&, Akonadi::Collection const&, Akonadi::Collection const&) () from /usr/lib64/libKF5AkonadiCore.so.5
#34 0x00007f5462224010 in Akonadi::MonitorPrivate::emitNotification(Akonadi::Protocol::ChangeNotification const&) () from /usr/lib64/libKF5AkonadiCore.so.5
#35 0x00007f54621e0fee in Akonadi::ChangeRecorderPrivate::emitNotification(Akonadi::Protocol::ChangeNotification const&) () from /usr/lib64/libKF5AkonadiCore.so.5
#36 0x00007f546222225c in Akonadi::MonitorPrivate::flushPipeline() () from /usr/lib64/libKF5AkonadiCore.so.5
#37 0x00007f54622224c9 in Akonadi::MonitorPrivate::dataAvailable() () from /usr/lib64/libKF5AkonadiCore.so.5
#38 0x00007f5467914f8a in QMetaObject::activate (sender=0xa5f6f0, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3713
#39 0x00007f54621d8bcf in ?? () from /usr/lib64/libKF5AkonadiCore.so.5
#40 0x00007f54621fbf24 in ?? () from /usr/lib64/libKF5AkonadiCore.so.5
#41 0x00007f5467914f8a in QMetaObject::activate (sender=0x1c8f2f0, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3713
#42 0x00007f5468f5fea2 in KJob::result(KJob*, KJob::QPrivateSignal) () from /usr/lib64/libKF5CoreAddons.so.5
#43 0x00007f5468f608d1 in KJob::finishJob(bool) () from /usr/lib64/libKF5CoreAddons.so.5
#44 0x00007f5462285383 in ?? () from /usr/lib64/libKF5AkonadiCore.so.5
#45 0x00007f5467915d79 in QObject::event (this=0x1c8f2f0, e=<optimized out>) at kernel/qobject.cpp:1239
#46 0x00007f54685cb8cc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#47 0x00007f54685d09d6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#48 0x00007f54678e7cf3 in QCoreApplication::notifyInternal (this=0x7ffd89962820, receiver=0x1c8f2f0, event=event@entry=0x1feac30) at kernel/qcoreapplication.cpp:965
#49 0x00007f54678ea016 in sendEvent (event=0x1feac30, receiver=<optimized out>) at kernel/qcoreapplication.h:224
#50 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x9b80e0) at kernel/qcoreapplication.cpp:1593
#51 0x00007f54678ea4f8 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1451
#52 0x00007f546793b103 in postEventSourceDispatch (s=0xa053c0) at kernel/qeventdispatcher_glib.cpp:271
#53 0x00007f545cfcc097 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#54 0x00007f545cfcc2c8 in ?? () from /usr/lib64/libglib-2.0.so.0
#55 0x00007f545cfcc36c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#56 0x00007f546793b50f in QEventDispatcherGlib::processEvents (this=0x9f76e0, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#57 0x00007f54678e563a in QEventLoop::exec (this=this@entry=0x7ffd899621e0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#58 0x00007f54678ed2fd in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1229
#59 0x0000000000404518 in main ()

Reported using DrKonqi
Comment 1 Christoph Feck 2017-04-26 20:49:25 UTC

*** This bug has been marked as a duplicate of bug 374462 ***