Bug 279380

Summary: akonadi_mixedmaildir_resource crashes when synchronizing a folder with a large number of emails
Product: [Frameworks and Libraries] Akonadi Reporter: Shane O'Donnell <kde-bugs>
Component: Mixed Maildir resourceAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: krammer, Martin
Priority: NOR    
Version: 4.7   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Shane O'Donnell 2011-08-04 13:31:38 UTC
Version:           4.7 (using KDE 4.7.0) 
OS:                Linux

Synchronizing a folder with a large number, in this case 107000+, of emails within it consumes a vast amount of memory and then crashes with a sigabrt.

This happens when either clicking on the folder causing a synchronisation and when starting kmail.

Reproducible: Always

Steps to Reproduce:
Click on folder with large number of emails (lower limit not known, but 107000+ mails causes the problem and folders with just under 50000 do not)
Synchronization starts


Actual Results:  
akonadi_mixedmaildir_resource crashes

Expected Results:  
Folder synchronizes and displays emails.

i686 AMD Athlon(tm) XP 2500+ AuthenticAMD GNU/Linux

Under top the process has consumed 3054M, under the VIRT column, of memory on a machine with 3G memory + 2.8G swap.  I added a 10G swapfile but there was no change to the problem.

The maildir folder contains 107538 emails using 1.9G of disk space.
Other folders of up to 47800 emails do not cause the problem.

Whilst it is probably useless here is the backtrace.

Application: Akonadi Resource (akonadi_mixedmaildir_resource), signal: Aborted
[KCrash Handler]
#7  0xffffe424 in __kernel_vsyscall ()
#8  0x44421681 in raise () from /lib/libc.so.6
#9  0x44422e63 in abort () from /lib/libc.so.6
#10 0xbfa59490 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Comment 1 Martin Steigerwald 2016-08-27 11:26:23 UTC
Shane, thank you for your report. It is about an ancient version of KMail which is not maintained anymore. Also neither with Maildir nor with IMAP resource I see any crashes on folder synchronisation. Thus I close this.