Re: unexpunge segfaults with -l on some mailboxes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bron Gondwana wrote:
On Wed, Mar 11, 2009 at 12:40:28PM -0300, Patrick Boutilier wrote:
Darn. This is caused by mailbox corruption again. My script to detect corruption wasn't working properly. Any idea how we can track down what is causing the corruption?

Yeah, I was going to say.

It's corrupted cache file offset pointers.  Assuming you upgraded
this from an earlier version of Cyrus at some point,

I believe we started at 1.5.19 and then migrated up through the 2.0 , 2.2 series. Our last major update was from 2.2.13 to 2.3.11. Currently on 2.3.13

 cyrus.expunge
and cyrus.index files had issues maintaining cache pointer
consistency.  You pretty much have to reconstruct all your mailboxes
to guarantee consistency I think.

This latest list of corrupted mailboxes includes many that were correupted a couple of weeks ago (including mine) so this is the second time they have been reconstructed.


I'm tempted to protect the code from crashing though... we don't
use unexpunge at FastMail, which is probably why I haven't already
done so.

Something like the attached should do it.  I'll test it more
completely and commit it to CVS for 2.3.14 (since Ken hasn't
cut a release candidate yet!)

Thanks for the patch.

Would ipurge be causing the corruption? We currently purge e-mails older than 31 days on a weekly basis. I will turn that off for a bit (since disk space is not as much of an issue as it used to be) and see if the corruption returns.


Bron.


begin:vcard
fn:Patrick Boutilier
n:Boutilier;Patrick
org:;Nova Scotia Department of Education
adr:;;2021 Brunswick Street;Halifax;NS;B3K 2Y5;Canada
email;internet:boutilpj@xxxxxxxxxxx
title:WAN Communications Specialist
tel;work:902-424-6800
tel;fax:902-424-0874
version:2.1
end:vcard

----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux