Bug 297858 - KMail crashes when moving a folder
Summary: KMail crashes when moving a folder
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.8.2
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 300511 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-04-10 17:57 UTC by James Gilliland
Modified: 2016-06-08 20:11 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (10.30 KB, text/plain)
2012-05-03 12:07 UTC, A. Sala
Details
New crash information added by DrKonqi (11.12 KB, text/plain)
2012-05-04 13:24 UTC, Martin van Es
Details
New crash information added by DrKonqi (8.67 KB, text/plain)
2012-06-19 13:37 UTC, Simon Reed
Details
New crash information added by DrKonqi (8.66 KB, text/plain)
2012-06-19 13:40 UTC, Simon Reed
Details
New crash information added by DrKonqi (8.73 KB, text/plain)
2012-06-19 13:42 UTC, Simon Reed
Details
New crash information added by DrKonqi (7.35 KB, text/plain)
2012-08-05 09:51 UTC, Manfred
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Gilliland 2012-04-10 17:57:19 UTC
Application: kmail (4.8.2)
KDE Platform Version: 4.8.2 (4.8.2)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-22-generic x86_64
Distribution: Ubuntu precise (development branch)

-- Information about the crash:
- What I was doing when the application crashed:
I moved a group of folders into another folder. After it completed, Kmail crashed. I had a similair crash when deleting folders.

The crash can be reproduced every time.

-- 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 0x7f9fc6f0e7c0 (LWP 5442))]

Thread 4 (Thread 0x7f9fa4e23700 (LWP 5450)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f9fb91fddec in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f9fb91fdf19 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f9fc1d2fe9a in start_thread (arg=0x7f9fa4e23700) at pthread_create.c:308
#4  0x00007f9fc42604bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f9fa450a700 (LWP 5451)):
#0  0x00007f9fbcb0956c in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f9fbcb09f1b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9fbcb0a124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9fc4beb426 in QEventDispatcherGlib::processEvents (this=0x7f9f9c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f9fc4bbac82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f9fc4bbaed7 in QEventLoop::exec (this=0x7f9fa4509dc0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f9fc4ab9fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f9fc4abcfcb in QThreadPrivate::start (arg=0x2206dc0) at thread/qthread_unix.cpp:298
#8  0x00007f9fc1d2fe9a in start_thread (arg=0x7f9fa450a700) at pthread_create.c:308
#9  0x00007f9fc42604bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f9fa17d3700 (LWP 5454)):
#0  0x00007f9fc1d31f69 in __pthread_mutex_lock (mutex=0x7f9f50000a60) at pthread_mutex_lock.c:92
#1  0x00007f9fbcb45571 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9fbcb09729 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9fbcb09f1b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f9fbcb0a124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9fc4beb426 in QEventDispatcherGlib::processEvents (this=0x7f9f500008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f9fc4bbac82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f9fc4bbaed7 in QEventLoop::exec (this=0x7f9fa17d2d90, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f9fc4ab9fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007f9fc4b9a9ff in QInotifyFileSystemWatcherEngine::run (this=0x26c4610) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007f9fc4abcfcb in QThreadPrivate::start (arg=0x26c4610) at thread/qthread_unix.cpp:298
#11 0x00007f9fc1d2fe9a in start_thread (arg=0x7f9fa17d3700) at pthread_create.c:308
#12 0x00007f9fc42604bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f9fc6f0e7c0 (LWP 5442)):
[KCrash Handler]
#6  size (this=0x51) at ../../include/QtCore/../../src/corelib/tools/qvector.h:137
#7  QSortFilterProxyModelPrivate::proxy_to_source (this=0x1c8dcb0, proxy_index=...) at itemviews/qsortfilterproxymodel.cpp:370
#8  0x00007f9fc568bedd in QSortFilterProxyModel::mapToSource (this=<optimized out>, proxyIndex=...) at itemviews/qsortfilterproxymodel.cpp:2502
#9  0x00007f9fc568d16d in QSortFilterProxyModelPrivate::store_persistent_indexes (this=<optimized out>) at itemviews/qsortfilterproxymodel.cpp:996
#10 0x00007f9fc568df93 in QSortFilterProxyModelPrivate::_q_sourceLayoutAboutToBeChanged (this=0x1c8dcb0) at itemviews/qsortfilterproxymodel.cpp:1244
#11 0x00007f9fc4bd0281 in QMetaObject::activate (sender=0x1bf5130, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#12 0x00007f9fc4bb5bcc in QAbstractItemModel::beginMoveRows (this=0x1bf5130, sourceParent=..., sourceFirst=2, sourceLast=2, destinationParent=..., destinationChild=0) at kernel/qabstractitemmodel.cpp:2635
#13 0x00007f9fc0e503de in Akonadi::EntityTreeModelPrivate::monitoredCollectionMoved (this=0x1c67c00, collection=..., sourceCollection=..., destCollection=...) at ../../akonadi/entitytreemodel_p.cpp:917
#14 0x00007f9fc4bd0281 in QMetaObject::activate (sender=0x1bd0e00, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffab13a8f0) at kernel/qobject.cpp:3547
#15 0x00007f9fc0e8751f in Akonadi::Monitor::collectionMoved (this=<optimized out>, _t1=..., _t2=..., _t3=...) at ./monitor.moc:252
#16 0x00007f9fc0e8b25b in Akonadi::MonitorPrivate::emitCollectionNotification (this=0x1bd1150, msg=..., col=..., par=..., dest=...) at ../../akonadi/monitor_p.cpp:612
#17 0x00007f9fc0e8cefa in Akonadi::MonitorPrivate::emitNotification (this=0x1bd1150, msg=...) at ../../akonadi/monitor_p.cpp:285
#18 0x00007f9fc0deb991 in Akonadi::ChangeRecorderPrivate::emitNotification (this=0x1bd1150, msg=...) at ../../akonadi/changerecorder_p.h:60
#19 0x00007f9fc0e8cc26 in Akonadi::MonitorPrivate::flushPipeline (this=0x1bd1150) at ../../akonadi/monitor_p.cpp:429
#20 0x00007f9fc0e8d0f9 in Akonadi::MonitorPrivate::dataAvailable (this=0x1bd1150) at ../../akonadi/monitor_p.cpp:438
#21 0x00007f9fc4bd0281 in QMetaObject::activate (sender=0x1c88e40, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#22 0x00007f9fc0df22bd in Akonadi::EntityCache<Akonadi::Collection, Akonadi::CollectionFetchJob, Akonadi::CollectionFetchScope>::processResult (this=0x1c88e40, job=<optimized out>) at ../../akonadi/entitycache_p.h:192
#23 0x00007f9fc4bd0281 in QMetaObject::activate (sender=0x27d6ff0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffab13afb0) at kernel/qobject.cpp:3547
#24 0x00007f9fc6341822 in KJob::result (this=<optimized out>, _t1=0x27d6ff0) at ./kjob.moc:208
#25 0x00007f9fc6341860 in KJob::emitResult (this=0x27d6ff0) at ../../kdecore/jobs/kjob.cpp:318
#26 0x00007f9fc4bd5446 in QObject::event (this=0x27d6ff0, e=<optimized out>) at kernel/qobject.cpp:1195
#27 0x00007f9fc50de894 in notify_helper (e=0x29784f0, receiver=0x27d6ff0, this=0x1bd27b0) at kernel/qapplication.cpp:4559
#28 QApplicationPrivate::notify_helper (this=0x1bd27b0, receiver=0x27d6ff0, e=0x29784f0) at kernel/qapplication.cpp:4531
#29 0x00007f9fc50e3713 in QApplication::notify (this=0x7fffab13b9f0, receiver=0x27d6ff0, e=0x29784f0) at kernel/qapplication.cpp:4420
#30 0x00007f9fc6917b46 in KApplication::notify (this=0x7fffab13b9f0, receiver=0x27d6ff0, event=0x29784f0) at ../../kdeui/kernel/kapplication.cpp:311
#31 0x00007f9fc4bbbe9c in QCoreApplication::notifyInternal (this=0x7fffab13b9f0, receiver=0x27d6ff0, event=0x29784f0) at kernel/qcoreapplication.cpp:876
#32 0x00007f9fc4bbfc6a in sendEvent (event=0x29784f0, receiver=0x27d6ff0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#33 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1b6b220) at kernel/qcoreapplication.cpp:1500
#34 0x00007f9fc4beaf93 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#35 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#36 0x00007f9fbcb09c9a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007f9fbcb0a060 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007f9fbcb0a124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007f9fc4beb3bf in QEventDispatcherGlib::processEvents (this=0x1b6cb00, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#40 0x00007f9fc5186d6e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#41 0x00007f9fc4bbac82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#42 0x00007f9fc4bbaed7 in QEventLoop::exec (this=0x7fffab13b8d0, flags=...) at kernel/qeventloop.cpp:204
#43 0x00007f9fc4bbff67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#44 0x0000000000402bd3 in ?? ()
#45 0x00007f9fc418f76d in __libc_start_main (main=0x4021a0, argc=1, ubp_av=0x7fffab13be48, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffab13be38) at libc-start.c:226
#46 0x0000000000403095 in _start ()

Possible duplicates by query: bug 279821.

Reported using DrKonqi
Comment 1 Laurent Montel 2012-04-11 07:00:36 UTC
I confirm it
Comment 2 Sebastien ROHAUT 2012-04-14 10:08:04 UTC
I confirm this bug. In 4.8.1 and 4.8.2. Doesn't crash if i move messages only. Crash When moving folders.
Comment 3 A. Sala 2012-05-03 12:07:51 UTC
Created attachment 70826 [details]
New crash information added by DrKonqi

kmail (4.8.2) on KDE Platform 4.8.2 (4.8.2) using Qt 4.8.1

- What I was doing when the application crashed:
Under KMail 4.8.2 (from Kubuntu ppa), I was moving a "big" MailDir archive folder (all mail from one year) to another empty folder --I wanted to change the archive folder organization--.
Kmail crashed many times during my reorganization, once for each folder movement, basically ... well, maybe one or two out of ten times, it didn't crash. I hope resulting mail is not corrupt (after restarting KMail, the operation seems to have completed successfully)...
There was no hint in the user interface that some operations were under way so while waiting for the directories to dissapear from the old location, I continued work in many cases ...

-- Backtrace (Reduced):
#6  size (this=0x3000310034) at ../../include/QtCore/../../src/corelib/tools/qvector.h:137
#7  QSortFilterProxyModelPrivate::proxy_to_source (this=0x19897c0, proxy_index=...) at itemviews/qsortfilterproxymodel.cpp:370
#8  0x00007f07eb910abd in QSortFilterProxyModel::mapToSource (this=<optimized out>, proxyIndex=<optimized out>) at itemviews/qsortfilterproxymodel.cpp:2502
#9  0x00007f07eb911d4d in QSortFilterProxyModelPrivate::store_persistent_indexes (this=<optimized out>) at itemviews/qsortfilterproxymodel.cpp:996
#10 0x00007f07eb912b73 in QSortFilterProxyModelPrivate::_q_sourceLayoutAboutToBeChanged (this=0x19897c0) at itemviews/qsortfilterproxymodel.cpp:1244
Comment 4 Martin van Es 2012-05-04 13:24:59 UTC
Created attachment 70854 [details]
New crash information added by DrKonqi

kmail (4.8.2) on KDE Platform 4.8.2 (4.8.2) using Qt 4.8.1

- What I was doing when the application crashed:

I was moving around folder between 2 imap servers. The first succeeds, the second move (drag/drop) always results in a crash.

-- Backtrace (Reduced):
#6  size (this=0x0) at ../../include/QtCore/../../src/corelib/tools/qvector.h:137
#7  QSortFilterProxyModelPrivate::proxy_to_source (this=0x1cfc530, proxy_index=...) at itemviews/qsortfilterproxymodel.cpp:370
#8  0x00007f880af72abd in QSortFilterProxyModel::mapToSource (this=<optimized out>, proxyIndex=<optimized out>) at itemviews/qsortfilterproxymodel.cpp:2502
#9  0x00007f880af73d4d in QSortFilterProxyModelPrivate::store_persistent_indexes (this=<optimized out>) at itemviews/qsortfilterproxymodel.cpp:996
#10 0x00007f880af74b73 in QSortFilterProxyModelPrivate::_q_sourceLayoutAboutToBeChanged (this=0x1cfc530) at itemviews/qsortfilterproxymodel.cpp:1244
Comment 5 Jekyll Wu 2012-05-23 18:11:26 UTC
*** Bug 300511 has been marked as a duplicate of this bug. ***
Comment 6 Simon Reed 2012-06-19 13:37:44 UTC
Created attachment 71941 [details]
New crash information added by DrKonqi

kmail (4.8.3) on KDE Platform 4.8.3 (4.8.3) using Qt 4.8.1

- What I was doing when the application crashed:

Attempting to move a group of folders to be within another folder.

-- Backtrace (Reduced):
#6  QSortFilterProxyModelPrivate::proxy_to_source (this=0x1d7ea20, proxy_index=...) at itemviews/qsortfilterproxymodel.cpp:369
#7  0x00007f12b8e00edd in QSortFilterProxyModel::mapToSource (this=<optimized out>, proxyIndex=...) at itemviews/qsortfilterproxymodel.cpp:2502
#8  0x00007f12b8e0216d in QSortFilterProxyModelPrivate::store_persistent_indexes (this=<optimized out>) at itemviews/qsortfilterproxymodel.cpp:996
#9  0x00007f12b8e02f93 in QSortFilterProxyModelPrivate::_q_sourceLayoutAboutToBeChanged (this=0x1d7ea20) at itemviews/qsortfilterproxymodel.cpp:1244
[...]
#11 0x00007f12b8324bcc in QAbstractItemModel::beginMoveRows (this=0x1bcf330, sourceParent=..., sourceFirst=11, sourceLast=11, destinationParent=..., destinationChild=0) at kernel/qabstractitemmodel.cpp:2635
Comment 7 Simon Reed 2012-06-19 13:40:33 UTC
Created attachment 71943 [details]
New crash information added by DrKonqi

kmail (4.8.3) on KDE Platform 4.8.3 (4.8.3) using Qt 4.8.1

- What I was doing when the application crashed:

This time I was moving just one folder to be within another folder.

-- Backtrace (Reduced):
#6  size (this=0x21) at ../../include/QtCore/../../src/corelib/tools/qvector.h:137
#7  QSortFilterProxyModelPrivate::proxy_to_source (this=0x142c720, proxy_index=...) at itemviews/qsortfilterproxymodel.cpp:370
#8  0x00007f1887ad0edd in QSortFilterProxyModel::mapToSource (this=<optimized out>, proxyIndex=...) at itemviews/qsortfilterproxymodel.cpp:2502
#9  0x00007f1887ad216d in QSortFilterProxyModelPrivate::store_persistent_indexes (this=<optimized out>) at itemviews/qsortfilterproxymodel.cpp:996
#10 0x00007f1887ad2f93 in QSortFilterProxyModelPrivate::_q_sourceLayoutAboutToBeChanged (this=0x142c720) at itemviews/qsortfilterproxymodel.cpp:1244
Comment 8 Simon Reed 2012-06-19 13:42:52 UTC
Created attachment 71945 [details]
New crash information added by DrKonqi

kmail (4.8.3) on KDE Platform 4.8.3 (4.8.3) using Qt 4.8.1

- What I was doing when the application crashed:

I had managed to move a few folders successfully to be under another folder, before it eventually crashed.

-- Backtrace (Reduced):
#6  QSortFilterProxyModelPrivate::proxy_to_source (this=0x19be580, proxy_index=...) at itemviews/qsortfilterproxymodel.cpp:369
#7  0x00007f4b77a38edd in QSortFilterProxyModel::mapToSource (this=<optimized out>, proxyIndex=...) at itemviews/qsortfilterproxymodel.cpp:2502
#8  0x00007f4b77a3a16d in QSortFilterProxyModelPrivate::store_persistent_indexes (this=<optimized out>) at itemviews/qsortfilterproxymodel.cpp:996
#9  0x00007f4b77a3af93 in QSortFilterProxyModelPrivate::_q_sourceLayoutAboutToBeChanged (this=0x19be580) at itemviews/qsortfilterproxymodel.cpp:1244
[...]
#11 0x00007f4b76f5cbcc in QAbstractItemModel::beginMoveRows (this=0x1802610, sourceParent=..., sourceFirst=13, sourceLast=13, destinationParent=..., destinationChild=0) at kernel/qabstractitemmodel.cpp:2635
Comment 9 Manfred 2012-08-05 09:51:49 UTC
Created attachment 72966 [details]
New crash information added by DrKonqi

kmail (4.8.4) on KDE Platform 4.8.4 (4.8.4) "release 513" using Qt 4.8.2

- What I was doing when the application crashed:

I wanted to move a Mail Folder into an other Mail Folder. This error was the first time and I didn't repeat it, so I could not say it that the error would happen again.

-- Backtrace (Reduced):
#6  size (this=0x41) at ../../src/corelib/tools/qvector.h:137
#7  QSortFilterProxyModelPrivate::proxy_to_source (this=0x8e2250, proxy_index=...) at itemviews/qsortfilterproxymodel.cpp:370
#8  0x00007f4ad0688efd in QSortFilterProxyModel::mapToSource (this=<optimized out>, proxyIndex=<optimized out>) at itemviews/qsortfilterproxymodel.cpp:2502
#9  0x00007f4ad068a18d in QSortFilterProxyModelPrivate::store_persistent_indexes (this=<optimized out>) at itemviews/qsortfilterproxymodel.cpp:996
#10 0x00007f4ad068afb3 in QSortFilterProxyModelPrivate::_q_sourceLayoutAboutToBeChanged (this=0x8e2250) at itemviews/qsortfilterproxymodel.cpp:1244
Comment 10 Martin Steigerwald 2016-06-08 20:11:29 UTC
Thank you for your report. Although I still see this happening within a maildir resource with KMail and Akonadi 16.04, I am closing this report as KDEPIM SC 4 and Akonadi 1 is unmaintained. So this bug report contains outdated backtraces. I am intending to report the bug for KMail and Akonadi 16.04, but feel free to beat me to it and note it here. Also please note whether you are moving folders within a Maildir resource or within an IMAP account. Thanks, Martin