Bug 331095

Summary: Error al archivar carpetas de correo
Product: [Frameworks and Libraries] Akonadi Reporter: Jose Luis <joseluisxd>
Component: Archive Mail AgentAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: david.a.ordenes.d
Priority: NOR Keywords: drkonqi
Version: 4.11   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi

Description Jose Luis 2014-02-13 15:09:29 UTC
Application: akonadi_archivemail_agent (4.11)
KDE Platform Version: 4.11.5
Qt Version: 4.8.5
Operating System: Linux 3.12.9-201.fc19.x86_64 x86_64
Distribution: "Fedora release 19 (Schrödinger’s Cat)"

-- Information about the crash:
- What I was doing when the application crashed:  Había configurado el archivo automático de carpetas de correo.  Después de crear una carpeta de "Archivo".  Di inicio forzado al archivado y al poco tiempo me dió el error.

-- Backtrace:
Application:  (akonadi_archivemail_agent), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7fb14b6068c0 (LWP 2190))]

Thread 2 (Thread 0x7fb13da6d700 (LWP 2996)):
#0  0x0000003ebbaeb7fd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x0000003ebf2480e4 in g_main_context_poll (priority=2147483647, n_fds=1, fds=0x7fb138002bb0, timeout=-1, context=0x7fb1380009a0) at gmain.c:3995
#2  g_main_context_iterate (context=context@entry=0x7fb1380009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3696
#3  0x0000003ebf2481ec in g_main_context_iteration (context=0x7fb1380009a0, may_block=1) at gmain.c:3762
#4  0x00000033853a6d56 in QEventDispatcherGlib::processEvents (this=0x7fb1380008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#5  0x0000003385378b2f in QEventLoop::processEvents (this=this@entry=0x7fb13da6cce0, flags=...) at kernel/qeventloop.cpp:149
#6  0x0000003385378e25 in QEventLoop::exec (this=this@entry=0x7fb13da6cce0, flags=...) at kernel/qeventloop.cpp:204
#7  0x0000003385278a1f in QThread::exec (this=this@entry=0x1d3b2c0) at thread/qthread.cpp:536
#8  0x000000338535a3e3 in QInotifyFileSystemWatcherEngine::run (this=0x1d3b2c0) at io/qfilesystemwatcher_inotify.cpp:265
#9  0x000000338527b0bf in QThreadPrivate::start (arg=0x1d3b2c0) at thread/qthread_unix.cpp:338
#10 0x0000003ebc607c53 in start_thread (arg=0x7fb13da6d700) at pthread_create.c:308
#11 0x0000003ebbaf5dbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7fb14b6068c0 (LWP 2190)):
[KCrash Handler]
#6  ref (this=0x620061004c6160) at ../../src/corelib/arch/qatomic_x86_64.h:121
#7  QUrl::QUrl (this=0x7fff4d265b50, other=...) at io/qurl.cpp:4266
#8  0x0000003cc9d25bf9 in KUrl::KUrl (this=0x7fff4d265b50, _u=...) at /usr/src/debug/kdelibs-4.11.5/kdecore/io/kurl.cpp:490
#9  0x0000000000413f6a in url (this=0x1f76a30) at /usr/src/debug/kdepim-4.11.5/archivemailagent/archivemailinfo.cpp:215
#10 ArchiveMailInfo::dirArchive (this=this@entry=0x1f76a30) at /usr/src/debug/kdepim-4.11.5/archivemailagent/archivemailinfo.cpp:88
#11 0x0000000000414662 in ArchiveMailInfo::listOfArchive (this=0x1f76a30, folderName=...) at /usr/src/debug/kdepim-4.11.5/archivemailagent/archivemailinfo.cpp:116
#12 0x000000000040ea23 in ArchiveMailManager::backupDone (this=0x1674720, info=0x1f76a30) at /usr/src/debug/kdepim-4.11.5/archivemailagent/archivemailmanager.cpp:124
#13 0x00000000004167be in ArchiveJob::slotBackupDone (this=0x163a9e0, info=...) at /usr/src/debug/kdepim-4.11.5/archivemailagent/archivejob.cpp:105
#14 0x000000338538db98 in QMetaObject::activate (sender=sender@entry=0x2057fd0, m=m@entry=0x3cdab59880 <MailCommon::BackupJob::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff4d265ed0) at kernel/qobject.cpp:3547
#15 0x0000003cda863f92 in MailCommon::BackupJob::backupDone (this=this@entry=0x2057fd0, _t1=...) at /usr/src/debug/kdepim-4.11.5/x86_64-redhat-linux-gnu/mailcommon/backupjob.moc:115
#16 0x0000003cda864891 in MailCommon::BackupJob::finish (this=0x2057fd0) at /usr/src/debug/kdepim-4.11.5/mailcommon/job/backupjob.cpp:222
#17 0x0000003cda8661b5 in MailCommon::BackupJob::archiveNextFolder (this=this@entry=0x2057fd0) at /usr/src/debug/kdepim-4.11.5/mailcommon/job/backupjob.cpp:349
#18 0x0000003cda866a0c in MailCommon::BackupJob::archiveNextMessage (this=0x2057fd0) at /usr/src/debug/kdepim-4.11.5/mailcommon/job/backupjob.cpp:234
#19 0x0000003385391f3e in QObject::event (this=0x2057fd0, e=<optimized out>) at kernel/qobject.cpp:1194
#20 0x00000037a0fc84dc in QApplicationPrivate::notify_helper (this=this@entry=0x14f1270, receiver=receiver@entry=0x2057fd0, e=e@entry=0x21343f0) at kernel/qapplication.cpp:4562
#21 0x00000037a0fceaa0 in QApplication::notify (this=this@entry=0x7fff4d266970, receiver=receiver@entry=0x2057fd0, e=e@entry=0x21343f0) at kernel/qapplication.cpp:4348
#22 0x0000003cca83fd5a in KApplication::notify (this=0x7fff4d266970, receiver=0x2057fd0, event=0x21343f0) at /usr/src/debug/kdelibs-4.11.5/kdeui/kernel/kapplication.cpp:311
#23 0x0000003385379ecd in QCoreApplication::notifyInternal (this=0x7fff4d266970, receiver=receiver@entry=0x2057fd0, event=event@entry=0x21343f0) at kernel/qcoreapplication.cpp:949
#24 0x000000338537ce2d in sendEvent (event=0x21343f0, receiver=0x2057fd0) at kernel/qcoreapplication.h:231
#25 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x14a8270) at kernel/qcoreapplication.cpp:1573
#26 0x000000338537d2d3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1466
#27 0x00000033853a7473 in sendPostedEvents () at kernel/qcoreapplication.h:236
#28 postEventSourceDispatch (s=s@entry=0x14ef3c0) at kernel/qeventdispatcher_glib.cpp:280
#29 0x0000003ebf247df6 in g_main_dispatch (context=0x14f1590) at gmain.c:3054
#30 g_main_context_dispatch (context=context@entry=0x14f1590) at gmain.c:3630
#31 0x0000003ebf248148 in g_main_context_iterate (context=context@entry=0x14f1590, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3701
#32 0x0000003ebf2481ec in g_main_context_iteration (context=0x14f1590, may_block=1) at gmain.c:3762
#33 0x00000033853a6d35 in QEventDispatcherGlib::processEvents (this=0x14a9b50, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#34 0x00000037a1064ea6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#35 0x0000003385378b2f in QEventLoop::processEvents (this=this@entry=0x7fff4d2668e0, flags=...) at kernel/qeventloop.cpp:149
#36 0x0000003385378e25 in QEventLoop::exec (this=this@entry=0x7fff4d2668e0, flags=...) at kernel/qeventloop.cpp:204
#37 0x000000338537e0a9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#38 0x00000037a0fc6c9c in QApplication::exec () at kernel/qapplication.cpp:3823
#39 0x0000003ccf68c0a3 in Akonadi::AgentBase::init (r=r@entry=0x163cca0) at /usr/src/debug/kdepimlibs-4.11.5/akonadi/agentbase.cpp:706
#40 0x000000000040d313 in Akonadi::AgentBase::init<ArchiveMailAgent> (argc=<optimized out>, argv=<optimized out>) at /usr/include/kde4/akonadi/agentbase.h:407
#41 0x0000003ebba21b45 in __libc_start_main (main=0x40c2f0 <main(int, char**)>, argc=3, ubp_av=0x7fff4d266a88, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff4d266a78) at libc-start.c:274
#42 0x000000000040c3fd in _start ()

Possible duplicates by query: bug 265478, bug 246733, bug 242461.

Reported using DrKonqi
Comment 1 David 2014-06-24 05:21:22 UTC
Created attachment 87356 [details]
New crash information added by DrKonqi

akonadi_archivemail_agent (4.13) on KDE Platform 4.13.1 using Qt 4.8.6

- What I was doing when the application crashed:
I configured archiving for my gmail folder, i.e. including all subfolders. I set it for daily archiving.
It was correctly added to the archiving profiles list. Then, I right-clicked it and made it start archiving right at the moment. A panel tray notification appeared saying that the archiving was in process, but after about 20-30 seconds, it crashed.

- Custom settings of the application:
+ Gmail IMAP.  27 custom folders, 1 of them with 5 sub-folders, 3.7 GB total.
+ Gmail Sent-mail folder mapped to my_account/[Gmail]/Sent Mail and Drafts to my_account/[Gmail]Drafts.
+ Archiving in a mounted separate partition of the same disk (/media/username/partitionname/mailfolder), owned by me. 40.0 GB free at the moment.
+ .tar.bz2 archives
+ Maximum number of archives: 4
+ Great fraction of e-mails in Spanish (in case that parsing of certain characters is the issue). This bug was opened by someone who has his/her system in Spanish, seemingly.

This is in Kubuntu 14.04, installed two days ago, no kubuntu backports ppa, kmail 4.13.1-0ubuntu0.1.

-- Backtrace (Reduced):
#7  QUrl::QUrl (this=0x7ffff65ca350, other=...) at io/qurl.cpp:4270
#8  0x00007ff9ce67fc79 in KUrl::KUrl (this=0x7ffff65ca350, _u=...) at ../../kdecore/io/kurl.cpp:490
#9  0x00000000004139ea in url (this=0x2551e00) at ../../../agents/archivemailagent/archivemailinfo.cpp:215
#10 ArchiveMailInfo::dirArchive (this=this@entry=0x2551e00) at ../../../agents/archivemailagent/archivemailinfo.cpp:88
#11 0x00000000004140e2 in ArchiveMailInfo::listOfArchive (this=0x2551e00, folderName=...) at ../../../agents/archivemailagent/archivemailinfo.cpp:116
Comment 2 David 2014-06-24 06:06:03 UTC
Created attachment 87357 [details]
New crash information added by DrKonqi

akonadi_archivemail_agent (4.13) on KDE Platform 4.13.1 using Qt 4.8.6

- What I was doing when the application crashed:
New crash, now having completed 2.6 GB of the 3.7 GB total, so several minutes after starting. This time I tried using .tar.gz archives. By the way, I have configured my account for retrieving of full body of messages for offline use.

-- Backtrace (Reduced):
#7  QUrl::QUrl (this=0x7ffffd591f30, other=...) at io/qurl.cpp:4270
#8  0x00007f79a69e6c79 in KUrl::KUrl (this=0x7ffffd591f30, _u=...) at ../../kdecore/io/kurl.cpp:490
#9  0x00000000004139ea in url (this=0xea2c80) at ../../../agents/archivemailagent/archivemailinfo.cpp:215
#10 ArchiveMailInfo::dirArchive (this=this@entry=0xea2c80) at ../../../agents/archivemailagent/archivemailinfo.cpp:88
#11 0x00000000004140e2 in ArchiveMailInfo::listOfArchive (this=0xea2c80, folderName=...) at ../../../agents/archivemailagent/archivemailinfo.cpp:116
Comment 3 David 2014-06-24 06:10:45 UTC
And a last thing: interestingly, not all of my folders appear in the folder-selection dialog. Some of the missing ones are empty, others are not. I suppose this might be a matter for a separate bug report, but I prefer to add it here in case it reveals something more.
Comment 4 Denis Kurz 2016-09-24 20:37:04 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 5 Denis Kurz 2017-01-07 21:35:07 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.