Bug 327704 - Kmail crashes after deleting a folder
Summary: Kmail crashes after deleting a folder
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.11.2
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2013-11-16 21:52 UTC by pedron.alexandre
Modified: 2017-01-07 22:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (8.72 KB, text/plain)
2013-12-12 19:59 UTC, Christopher Yeleighton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pedron.alexandre 2013-11-16 21:52:53 UTC
Application: kmail (4.11.2)
KDE Platform Version: 4.11.2 (Compiled from sources)
Qt Version: 4.8.4
Operating System: Linux 3.11.0-14-generic i686
Distribution: Ubuntu 13.10

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

I was deleting folders of former configurations when kmail crashed.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xb04bc980 (LWP 6226))]

Thread 5 (Thread 0xacaffb40 (LWP 6234)):
#0  0xb7769424 in __kernel_vsyscall ()
#1  0xb587d84b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0xb5ef59bc in __pthread_cond_wait (cond=0xb3ea9d90 <WTF::pageheap_memory+20720>, mutex=0xb3ea9d78 <WTF::pageheap_memory+20696>) at forward.c:149
#3  0xb362fa7c in WTF::TCMalloc_PageHeap::scavengerThread() () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#4  0xb362facf in WTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#5  0xb5879d78 in start_thread (arg=0xacaffb40) at pthread_create.c:311
#6  0xb5ee801e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

Thread 4 (Thread 0xac1b6b40 (LWP 6235)):
#0  __pthread_mutex_unlock_usercnt (mutex=0xab800558, decr=1) at pthread_mutex_unlock.c:80
#1  0xb5ef5c04 in pthread_mutex_unlock (mutex=0xab800558) at forward.c:194
#2  0xb43dabf0 in g_mutex_unlock () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb4397738 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb4397be8 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb4397ca8 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#6  0xb6d088df in QEventDispatcherGlib::processEvents (this=0xab800468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0xb6cd79f3 in QEventLoop::processEvents (this=this@entry=0xac1b6228, flags=...) at kernel/qeventloop.cpp:149
#8  0xb6cd7d19 in QEventLoop::exec (this=this@entry=0xac1b6228, flags=...) at kernel/qeventloop.cpp:204
#9  0xb6bc6e3d in QThread::exec (this=this@entry=0x96c7ec0) at thread/qthread.cpp:542
#10 0xb6cb7e14 in QInotifyFileSystemWatcherEngine::run (this=0x96c7ec0) at io/qfilesystemwatcher_inotify.cpp:265
#11 0xb6bc972f in QThreadPrivate::start (arg=0x96c7ec0) at thread/qthread_unix.cpp:338
#12 0xb5879d78 in start_thread (arg=0xac1b6b40) at pthread_create.c:311
#13 0xb5ee801e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

Thread 3 (Thread 0xab7ffb40 (LWP 6236)):
#0  0xb7769424 in __kernel_vsyscall ()
#1  0xb587d84b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0xb5ef59bc in __pthread_cond_wait (cond=0xac24c7dc, mutex=0xac24c7c4) at forward.c:149
#3  0xb365eae3 in WTF::ThreadCondition::wait(WTF::Mutex&) () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#4  0xb333a744 in JSC::BlockAllocator::blockFreeingThreadMain() () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#5  0xb3645866 in WTF::threadEntryPoint(void*) () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#6  0xb365e459 in WTF::wtfThreadEntryPoint(void*) () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#7  0xb5879d78 in start_thread (arg=0xab7ffb40) at pthread_create.c:311
#8  0xb5ee801e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

Thread 2 (Thread 0xaa3abb40 (LWP 6238)):
#0  0xb7769424 in __kernel_vsyscall ()
#1  0xb5efb4d2 in clock_gettime (clock_id=1, tp=0xaa3ab048) at ../sysdeps/unix/clock_gettime.c:115
#2  0xb6c243ec in do_gettime (frac=0xaa3ab040, sec=0xaa3ab038) at tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#4  0xb6d09c61 in QTimerInfoList::updateCurrentTime (this=this@entry=0xacb03734) at kernel/qeventdispatcher_unix.cpp:354
#5  0xb6d08b5e in timerSourceCheckHelper (src=0xacb03700) at kernel/qeventdispatcher_glib.cpp:150
#6  0xb439758f in g_main_context_check () from /lib/i386-linux-gnu/libglib-2.0.so.0
#7  0xb4397afa in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#8  0xb4397ca8 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#9  0xb6d088df in QEventDispatcherGlib::processEvents (this=0xacb020e8, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#10 0xb6cd79f3 in QEventLoop::processEvents (this=this@entry=0xaa3ab258, flags=...) at kernel/qeventloop.cpp:149
#11 0xb6cd7d19 in QEventLoop::exec (this=this@entry=0xaa3ab258, flags=...) at kernel/qeventloop.cpp:204
#12 0xb6bc6e3d in QThread::exec (this=this@entry=0x9694f90) at thread/qthread.cpp:542
#13 0xb6bc6f8b in QThread::run (this=0x9694f90) at thread/qthread.cpp:609
#14 0xb6bc972f in QThreadPrivate::start (arg=0x9694f90) at thread/qthread_unix.cpp:338
#15 0xb5879d78 in start_thread (arg=0xaa3abb40) at pthread_create.c:311
#16 0xb5ee801e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

Thread 1 (Thread 0xb04bc980 (LWP 6226)):
[KCrash Handler]
#7  QSharedDataPointer (o=..., this=0xbff6763c) at /usr/include/qt4/QtCore/qshareddata.h:93
#8  assignEntityPrivate (one=..., other=...) at ../../akonadi/entity.cpp:49
#9  0xb531ac86 in Akonadi::Entity::Entity (this=0xbff6779c, other=...) at ../../akonadi/entity.cpp:55
#10 0xb5352cc3 in Akonadi::Collection::Collection (this=0xbff6779c, other=...) at ../../akonadi/collection.cpp:73
#11 0xb4f31c77 in MailCommon::FolderCollection::collection (this=0x0) at ../../mailcommon/folder/foldercollection.cpp:151
#12 0xb6f4a533 in KMMainWidget::slotDelayedRemoveFolder (this=this@entry=0x94ca450, job=0x9c6bb08) at ../../kmail/kmmainwidget.cpp:1682
#13 0xb6f66fd2 in KMMainWidget::qt_static_metacall (_o=_o@entry=0x94ca450, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=54, _a=0xbff67918) at ./kmmainwidget.moc:417
#14 0xb6cedfc7 in QMetaObject::activate (sender=sender@entry=0x9c6bb08, m=m@entry=0xb73244cc <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0xbff67918) at kernel/qobject.cpp:3539
#15 0xb717e9e5 in KJob::result (this=this@entry=0x9c6bb08, _t1=_t1@entry=0x9c6bb08) at ./kjob.moc:208
#16 0xb717ea32 in KJob::emitResult (this=0x9c6bb08) at ../../kdecore/jobs/kjob.cpp:318
#17 0xb53ea236 in delayedEmitResult (this=<optimized out>) at ../../akonadi/job.cpp:156
#18 Akonadi::Job::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=0x975a848, _c=<optimized out>) at ./moc_job.cpp:71
#19 0xb6cea77a in QMetaCallEvent::placeMetaCall (this=0x9c45858, object=0x9c6bb08) at kernel/qobject.cpp:524
#20 0xb6cf258b in QObject::event (this=0x9c6bb08, e=0x9c45858) at kernel/qobject.cpp:1194
#21 0xb61ea744 in QApplicationPrivate::notify_helper (this=0x916ec58, receiver=0x9c6bb08, e=0x9c45858) at kernel/qapplication.cpp:4567
#22 0xb61f1223 in QApplication::notify (this=0xbff68024, receiver=receiver@entry=0x9c6bb08, e=e@entry=0x9c45858) at kernel/qapplication.cpp:4353
#23 0xb7500ff4 in KApplication::notify (this=0xbff68024, receiver=0x9c6bb08, event=0x9c45858) at ../../kdeui/kernel/kapplication.cpp:311
#24 0xb6cd8eda in QCoreApplication::notifyInternal (this=0xbff68024, receiver=receiver@entry=0x9c6bb08, event=event@entry=0x9c45858) at kernel/qcoreapplication.cpp:946
#25 0xb6cdc6ad in sendEvent (event=0x9c45858, receiver=0x9c6bb08) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#26 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x911d150) at kernel/qcoreapplication.cpp:1570
#27 0xb6cdcbbc in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1463
#28 0xb6d08f6e in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#29 postEventSourceDispatch (s=0x916e810) at kernel/qeventdispatcher_glib.cpp:279
#30 0xb439783e in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#31 0xb4397be8 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#32 0xb4397ca8 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#33 0xb6d088bf in QEventDispatcherGlib::processEvents (this=this@entry=0x911dee0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#34 0xb629f32e in QGuiEventDispatcherGlib::processEvents (this=0x911dee0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#35 0xb6cd79f3 in QEventLoop::processEvents (this=this@entry=0xbff67ed8, flags=...) at kernel/qeventloop.cpp:149
#36 0xb6cd7d19 in QEventLoop::exec (this=this@entry=0xbff67ed8, flags=...) at kernel/qeventloop.cpp:204
#37 0xb6cdd89e in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#38 0xb61e8974 in QApplication::exec () at kernel/qapplication.cpp:3828
#39 0x0804a441 in main (argc=3, argv=0xbff68174) at ../../kmail/main.cpp:146

Possible duplicates by query: bug 325911, bug 323883, bug 323115, bug 322413, bug 320611.

Reported using DrKonqi
Comment 1 Christopher Yeleighton 2013-12-12 19:59:18 UTC
Created attachment 84066 [details]
New crash information added by DrKonqi

kmail (4.11.3) on KDE Platform 4.11.3 using Qt 4.8.5

- What I was doing when the application crashed:

I deleted an IMAP folder.  The folder remained there, so I deleted it once more.

-- Backtrace (Reduced):
#6  QSharedDataPointer (o=..., this=0x7fff4381d280) at /usr/include/QtCore/qshareddata.h:93
#7  assignEntityPrivate (one=..., other=...) at /usr/src/debug/kdepimlibs-4.11.3/akonadi/entity.cpp:49
#8  0x00007ffb9b26ba35 in Akonadi::Entity::Entity (this=0x7fff4381d5a0, other=...) at /usr/src/debug/kdepimlibs-4.11.3/akonadi/entity.cpp:55
#9  0x00007ffb9a23baed in MailCommon::FolderCollection::collection (this=<optimized out>) at /usr/src/debug/kdepim-4.11.3/mailcommon/folder/foldercollection.cpp:151
#10 0x00007ffba07f1924 in KMMainWidget::slotDelayedRemoveFolder (this=0x1ebedb0, job=<optimized out>) at /usr/src/debug/kdepim-4.11.3/kmail/kmmainwidget.cpp:1682
Comment 2 Denis Kurz 2016-09-24 18:17:15 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 3 Denis Kurz 2017-01-07 22:39:56 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.