Bug 345399 - Could not create collection trash
Summary: Could not create collection trash
Status: RESOLVED DUPLICATE of bug 339214
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.14.2
Platform: Mint (Ubuntu based) Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-03-21 20:28 UTC by LUIS TRAVER
Modified: 2015-09-22 12:03 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (7.73 KB, text/plain)
2015-07-16 16:41 UTC, Config
Details
New crash information added by DrKonqi (7.48 KB, text/plain)
2015-09-12 13:41 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description LUIS TRAVER 2015-03-21 20:28:04 UTC
Application: kmail (4.14.2)
KDE Platform Version: 4.14.2
Qt Version: 4.8.6
Operating System: Linux 3.13.0-37-generic i686
Distribution: Linux Mint 17.1 Rebecca

-- Information about the crash:
Después de cambiar las suspcripciones a carpetas IMAP, y asignar la carpeta imap.trash para los mensajes borrados en cada cuenta, Kmail ya no puede arrancar, da error y cierra:

'Could not create collection trash resource id:3'

The crash can be reproduced every time.

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

Thread 6 (Thread 0xacf10b40 (LWP 2566)):
#0  0xb7774424 in __kernel_vsyscall ()
#1  0xb5865d4b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0xb5edcdcc in __pthread_cond_wait (cond=0xb3d9fcb0, mutex=0xb3d9fc98) at forward.c:149
#3  0xb35279ac in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#4  0xb35279ff in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#5  0xb5861f70 in start_thread (arg=0xacf10b40) at pthread_create.c:312
#6  0xb5ecfbee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 5 (Thread 0xac33fb40 (LWP 2567)):
#0  0xb7774424 in __kernel_vsyscall ()
#1  0xb5865d4b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0xb5edcdcc in __pthread_cond_wait (cond=0xac65d7dc, mutex=0xac65d7c4) at forward.c:149
#3  0xb35569f3 in WTF::ThreadCondition::wait(WTF::Mutex&) () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#4  0xb3232574 in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#5  0xb353d7c6 in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#6  0xb3556369 in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#7  0xb5861f70 in start_thread (arg=0xac33fb40) at pthread_create.c:312
#8  0xb5ecfbee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 4 (Thread 0xab593b40 (LWP 2568)):
#0  0xb7774424 in __kernel_vsyscall ()
#1  0xb5edd872 in __GI___clock_gettime (clock_id=1, tp=0xab593038) at ../sysdeps/unix/clock_gettime.c:115
#2  0xb615a8cc in do_gettime (frac=0xab593030, sec=0xab593028) at tools/qelapsedtimer_unix.cpp:127
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:144
#4  0xb6242f31 in QTimerInfoList::updateCurrentTime (this=this@entry=0xaac028e4) at kernel/qeventdispatcher_unix.cpp:354
#5  0xb6241cbf in timerSourceCheckHelper (src=<optimized out>) at kernel/qeventdispatcher_glib.cpp:157
#6  0xb42d6dff in g_main_context_check () from /lib/i386-linux-gnu/libglib-2.0.so.0
#7  0xb42d737a in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#8  0xb42d7528 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#9  0xb624195f in QEventDispatcherGlib::processEvents (this=0xaac00468, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#10 0xb6210823 in QEventLoop::processEvents (this=this@entry=0xab593248, flags=...) at kernel/qeventloop.cpp:149
#11 0xb6210b49 in QEventLoop::exec (this=this@entry=0xab593248, flags=...) at kernel/qeventloop.cpp:204
#12 0xb60fd23d in QThread::exec (this=this@entry=0x9edfec0) at thread/qthread.cpp:537
#13 0xb60fd38b in QThread::run (this=0x9edfec0) at thread/qthread.cpp:604
#14 0xb60ffb6f in QThreadPrivate::start (arg=0x9edfec0) at thread/qthread_unix.cpp:349
#15 0xb5861f70 in start_thread (arg=0xab593b40) at pthread_create.c:312
#16 0xb5ecfbee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 3 (Thread 0xaa779b40 (LWP 2569)):
#0  0xb431bd0e in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#1  0xb431c118 in g_mutex_unlock () from /lib/i386-linux-gnu/libglib-2.0.so.0
#2  0xb42d72cf in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb42d7528 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb624195f in QEventDispatcherGlib::processEvents (this=0xa9e00468, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#5  0xb6210823 in QEventLoop::processEvents (this=this@entry=0xaa779218, flags=...) at kernel/qeventloop.cpp:149
#6  0xb6210b49 in QEventLoop::exec (this=this@entry=0xaa779218, flags=...) at kernel/qeventloop.cpp:204
#7  0xb60fd23d in QThread::exec (this=this@entry=0x9d1ecd8) at thread/qthread.cpp:537
#8  0xb61f0c44 in QInotifyFileSystemWatcherEngine::run (this=0x9d1ecd8) at io/qfilesystemwatcher_inotify.cpp:265
#9  0xb60ffb6f in QThreadPrivate::start (arg=0x9d1ecd8) at thread/qthread_unix.cpp:349
#10 0xb5861f70 in start_thread (arg=0xaa779b40) at pthread_create.c:312
#11 0xb5ecfbee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 2 (Thread 0xa6175b40 (LWP 2581)):
#0  0xb7774424 in __kernel_vsyscall ()
#1  0xb5865d4b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0xb5edcdcc in __pthread_cond_wait (cond=0xb0dcc8d0, mutex=0xb0dcc8b8) at forward.c:149
#3  0xb0cc9c92 in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#4  0xb0cc9cdf in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#5  0xb5861f70 in start_thread (arg=0xa6175b40) at pthread_create.c:312
#6  0xb5ecfbee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 1 (Thread 0xb0011780 (LWP 2561)):
[KCrash Handler]
#7  0xb7774424 in __kernel_vsyscall ()
#8  0xb5e12607 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#9  0xb5e15a33 in __GI_abort () at abort.c:89
#10 0xb60f4d73 in qt_message_output (msgType=QtFatalMsg, buf=0x9cd89d0 "Fatal Error: Accessed global static 'QList<KMainWindow*> *sMemberList()' after destruction. Defined at ../../kdeui/widgets/kmainwindow.cpp:214") at global/qglobal.cpp:2383
#11 0xb60f5127 in qt_message (msgType=msgType@entry=QtFatalMsg, msg=msg@entry=0xb768c104 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=ap@entry=0xbfa6a314 "\353\061k\267\337\061k\267\270\062k\267\326") at global/qglobal.cpp:2429
#12 0xb60f5658 in qFatal (msg=msg@entry=0xb768c104 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d") at global/qglobal.cpp:2612
#13 0xb75e43cc in operator-> (this=<optimized out>) at ../../kdeui/widgets/kmainwindow.cpp:214
#14 operator* (this=<optimized out>) at ../../kdeui/widgets/kmainwindow.cpp:214
#15 KMainWindow::memberList () at ../../kdeui/widgets/kmainwindow.cpp:1176
#16 0xb6eac916 in KMKernel::dumpDeadLetters (this=0xbfa6c164) at ../../kmail/kmkernel.cpp:1334
#17 0xb6eae360 in kmCrashHandler (sigId=6) at ../../kmail/kmkernel.cpp:1178
#18 0xb7581537 in KCrash::defaultCrashHandler (sig=6) at ../../kdeui/util/kcrash.cpp:340
#19 <signal handler called>
#20 0xb7774424 in __kernel_vsyscall ()
#21 0xb5e12607 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#22 0xb5e15a33 in __GI_abort () at abort.c:89
#23 0xb60f4d73 in qt_message_output (msgType=QtFatalMsg, buf=0xae975e8 "Fatal Error: Accessed global static 'KernelPrivate *sInstance()' after destruction. Defined at ../../mailcommon/kernel/mailkernel.cpp:57") at global/qglobal.cpp:2383
#24 0xb60f5127 in qt_message (msgType=msgType@entry=QtFatalMsg, msg=msg@entry=0xb4dfec9c "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=ap@entry=0xbfa6ae54 "7\354\337\264-\354\337\264t\354\337\264\071") at global/qglobal.cpp:2429
#25 0xb60f5658 in qFatal (msg=msg@entry=0xb4dfec9c "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d") at global/qglobal.cpp:2612
#26 0xb4d3c924 in operator-> (this=<optimized out>) at ../../mailcommon/kernel/mailkernel.cpp:57
#27 MailCommon::Kernel::self () at ../../mailcommon/kernel/mailkernel.cpp:73
#28 0xb4d89ef4 in MailCommon::FolderCollection::writeConfig (this=this@entry=0xa2fb898) at ../../mailcommon/folder/foldercollection.cpp:218
#29 0xb4d8a88e in MailCommon::FolderCollection::~FolderCollection (this=0xa2fb898, __in_chrg=<optimized out>) at ../../mailcommon/folder/foldercollection.cpp:84
#30 0xb4d8a92c in MailCommon::FolderCollection::~FolderCollection (this=0xa2fb898, __in_chrg=<optimized out>) at ../../mailcommon/folder/foldercollection.cpp:86
#31 0xb4d88d61 in deref (value=0xa2fb898, d=0xa3118c8) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:342
#32 deref (this=<optimized out>) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:336
#33 ~ExternalRefCount (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:401
#34 ~QSharedPointer (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:466
#35 QMap<long long, QSharedPointer<MailCommon::FolderCollection> >::freeData (x=0xa30dad0, this=<optimized out>) at /usr/include/qt4/QtCore/qmap.h:652
#36 0xb5e17543 in __cxa_finalize (d=0xb4e50458) at cxa_finalize.c:56
#37 0xb4d3b053 in __do_global_dtors_aux () from /usr/lib/libmailcommon.so.4
#38 0xb778435c in _dl_fini () at dl-fini.c:252
#39 0xb5e171b1 in __run_exit_handlers (status=status@entry=1, listp=0xb5f8e3c4 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:82
#40 0xb5e1720d in __GI_exit (status=1) at exit.c:104
#41 0xb4d3d078 in MailCommon::Kernel::emergencyExit (this=this@entry=0x9d81c20, reason=...) at ../../mailcommon/kernel/mailkernel.cpp:230
#42 0xb4d3d6d4 in MailCommon::Kernel::createDefaultCollectionDone (this=this@entry=0x9d81c20, job=0x9d95e30) at ../../mailcommon/kernel/mailkernel.cpp:182
#43 0xb4df9369 in MailCommon::Kernel::qt_static_metacall (_o=_o@entry=0x9d81c20, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbfa6b698) at moc_mailkernel.cpp:58
#44 0xb62270f7 in QMetaObject::activate (sender=sender@entry=0x9d95e30, m=m@entry=0xb733b4cc <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0xbfa6b698) at kernel/qobject.cpp:3539
#45 0xb71972c5 in KJob::result (this=this@entry=0x9d95e30, _t1=_t1@entry=0x9d95e30) at ./kjob.moc:207
#46 0xb7197312 in KJob::emitResult (this=0x9d95e30) at ../../kdecore/jobs/kjob.cpp:318
#47 0xb5427e47 in Akonadi::TransactionSequence::slotResult (this=0x9d95e30, job=job@entry=0xa73eff0) at ../../akonadi/transactionsequence.cpp:134
#48 0xb5400ba1 in Akonadi::SpecialCollectionsRequestJob::slotResult (this=0x9d95e30, job=0xa73eff0) at ../../akonadi/specialcollectionsrequestjob.cpp:361
#49 0xb542763a in Akonadi::TransactionSequence::qt_static_metacall (_o=_o@entry=0x9d95e30, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfa6b878) at ./moc_transactionsequence.cpp:52
#50 0xb62270f7 in QMetaObject::activate (sender=sender@entry=0xa73eff0, m=m@entry=0xb733b4cc <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0xbfa6b878) at kernel/qobject.cpp:3539
#51 0xb71972c5 in KJob::result (this=this@entry=0xa73eff0, _t1=_t1@entry=0xa73eff0) at ./kjob.moc:207
#52 0xb7197312 in KJob::emitResult (this=this@entry=0xa73eff0) at ../../kdecore/jobs/kjob.cpp:318
#53 0xb53951a1 in Akonadi::JobPrivate::handleResponse (this=0xa7f84e0, tag=..., data=...) at ../../akonadi/job.cpp:65
#54 0xb539507a in Akonadi::JobPrivate::handleResponse (this=0x9d95e50, tag=..., data=...) at ../../akonadi/job.cpp:49
#55 0xb53ec4ed in Akonadi::SessionPrivate::dataReceived (this=0x9cdfbe8) at ../../akonadi/session.cpp:240
#56 0xb62270f7 in QMetaObject::activate (sender=sender@entry=0x9c2f6b8, m=m@entry=0xb637da98 <QIODevice::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3539
#57 0xb6274bc5 in QIODevice::readyRead (this=this@entry=0x9c2f6b8) at .moc/release-shared/moc_qiodevice.cpp:104
#58 0xb6274d40 in QIODevice::qt_static_metacall (_o=_o@entry=0x9c2f6b8, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfa6baf8) at .moc/release-shared/moc_qiodevice.cpp:53
#59 0xb62270f7 in QMetaObject::activate (sender=sender@entry=0x9ceb16c, m=m@entry=0xb637da98 <QIODevice::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3539
#60 0xb6274bc5 in QIODevice::readyRead (this=this@entry=0x9ceb16c) at .moc/release-shared/moc_qiodevice.cpp:104
#61 0xb5ae2d88 in QAbstractSocketPrivate::canReadNotification (this=0x9ced3d0) at socket/qabstractsocket.cpp:654
#62 0xb5acf8e9 in QAbstractSocketEngine::readNotification (this=0x9ce9890) at socket/qabstractsocketengine.cpp:168
#63 0xb5aecd1b in QReadNotifier::event (this=0x9b7c070, e=0xbfa6be04) at socket/qnativesocketengine.cpp:1151
#64 0xb64ba7f4 in QApplicationPrivate::notify_helper (this=0x9a99ce0, receiver=0x9b7c070, e=0xbfa6be04) at kernel/qapplication.cpp:4567
#65 0xb64c12d3 in QApplication::notify (this=0xbfa6c14c, receiver=receiver@entry=0x9b7c070, e=e@entry=0xbfa6be04) at kernel/qapplication.cpp:4353
#66 0xb75181b4 in KApplication::notify (this=0xbfa6c14c, receiver=0x9b7c070, event=0xbfa6be04) at ../../kdeui/kernel/kapplication.cpp:311
#67 0xb6211e4a in QCoreApplication::notifyInternal (this=0xbfa6c14c, receiver=0x9b7c070, event=event@entry=0xbfa6be04) at kernel/qcoreapplication.cpp:953
#68 0xb624279d in sendEvent (event=0xbfa6be04, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#69 socketNotifierSourceDispatch (source=0x9a80618) at kernel/qeventdispatcher_glib.cpp:117
#70 0xb42d71e3 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#71 0xb42d7468 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#72 0xb42d7528 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#73 0xb624195f in QEventDispatcherGlib::processEvents (this=this@entry=0x9a31eb8, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#74 0xb656f5de in QGuiEventDispatcherGlib::processEvents (this=0x9a31eb8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#75 0xb6210823 in QEventLoop::processEvents (this=this@entry=0xbfa6c008, flags=...) at kernel/qeventloop.cpp:149
#76 0xb6210b49 in QEventLoop::exec (this=this@entry=0xbfa6c008, flags=...) at kernel/qeventloop.cpp:204
#77 0xb62168fe in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#78 0xb64b8a24 in QApplication::exec () at kernel/qapplication.cpp:3828
#79 0x0804a439 in main (argc=3, argv=0xbfa6c2a4) at ../../kmail/main.cpp:146

Possible duplicates by query: bug 343954, bug 337536, bug 335778, bug 335225, bug 335224.

Reported using DrKonqi
Comment 1 Daniel Phillips 2015-06-22 19:19:43 UTC
I get an error when I open up kmail 
Linux Mint 17.1 (Ubuntu 14.04 base)
reproducable everytime. 

Just started happening after shutting down kmail and restarting as it was running slow checking IMAP. 


Bus::open: Can not get ibus-daemon's address. 
IBusInputContext::createInputContext: no connection to ibus-daemon 
kmail2(11141)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Could not create collection trash resourceId: 2" 
kmail2(11141) MailCommon::Kernel::emergencyExit: "The Email program encountered a fatal error and will terminate now.
The error was:
Could not create collection trash resourceId: 2" 
 ~StorageServiceJobConfigPrivate
Comment 2 Config 2015-07-16 16:41:50 UTC
Created attachment 93615 [details]
New crash information added by DrKonqi

kmail (4.14.6) on KDE Platform 4.14.6 using Qt 4.8.6

- What I was doing when the application crashed:

Changed the trash folder in the properties of an IMAP account from the local to server folder. Now Kmail shows this error all the time and crashes.

-- Backtrace (Reduced):
#6  0x00007fb138c0d267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#7  0x00007fb138c0eeca in __GI_abort () at abort.c:89
[...]
#11 0x00007fb13b52091f in operator-> (this=<synthetic pointer>) at ../../kdeui/widgets/kmainwindow.cpp:214
#12 operator* (this=<synthetic pointer>) at ../../kdeui/widgets/kmainwindow.cpp:214
#13 KMainWindow::memberList () at ../../kdeui/widgets/kmainwindow.cpp:1218
Comment 3 Dennis Schridde 2015-09-12 13:41:55 UTC
Created attachment 94518 [details]
New crash information added by DrKonqi

kmail (4.14.10) on KDE Platform 4.14.11 using Qt 4.8.7

- What I was doing when the application crashed:

Whenever I start KMail, it complains that it cannot create the trash collection (id 24). After clicking the OK button of that message, KMail crashed producing the backtrace attached here.

-- Backtrace (Reduced):
#11 0x00007f3dec8fcc17 in operator-> (this=<synthetic pointer>) at /var/tmp/portage/kde-base/kdelibs-4.14.11/work/kdelibs-4.14.11/kdeui/widgets/kmainwindow.cpp:214
#12 operator* (this=<synthetic pointer>) at /var/tmp/portage/kde-base/kdelibs-4.14.11/work/kdelibs-4.14.11/kdeui/widgets/kmainwindow.cpp:214
#13 KMainWindow::memberList () at /var/tmp/portage/kde-base/kdelibs-4.14.11/work/kdelibs-4.14.11/kdeui/widgets/kmainwindow.cpp:1218
#14 0x00007f3decf61a98 in KMKernel::dumpDeadLetters (this=<optimized out>) at /var/tmp/portage/kde-base/kmail-4.14.10/work/kmail-4.14.10/kmail/kmkernel.cpp:1322
#15 0x00007f3decf63907 in kmCrashHandler (sigId=<optimized out>) at /var/tmp/portage/kde-base/kmail-4.14.10/work/kmail-4.14.10/kmail/kmkernel.cpp:1181
Comment 4 Dennis Schridde 2015-09-22 09:02:02 UTC
Duplicate of bug #345399.
Comment 5 Dennis Schridde 2015-09-22 09:02:17 UTC
Duplicate of bug #339214.
Comment 6 Allen Winter 2015-09-22 12:03:24 UTC

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