Sergio Devojno Bruder wrote:

João Assad wrote:

Sergio Devojno Bruder wrote:

AHA:
Sep 21 09:08:49 mupdate mupdate[17026]: IOERROR: mapping /var/lib/imap/mailboxes.db file: Cannot allocate memory Sep 21 09:08:49 mupdate mupdate[17026]: failed to mmap /var/lib/imap/mailboxes.db file

I remember Joao Assad had the same problem, no?
--
Sergio Devojno Bruder


Sorry , I missed the original post.
Is the original poster using Fedora or RHEL ?


CentOS 3.0 (migrating today to CentOS 4.1 x86-64 bits), ie, RHEL.

--
Sergio Devojno Bruder

I belive I found a mmap bug on Fedora Core 2 and RHEL. I never got a confirmation that it is indeed a bug, since at the time support for fedora core 2 ended and the fedora devs decided to move the bug to devel. Anyway, I wrote a patch that changes the way cyrus use mmap. Instead of doing a munmap and a new mmap when needed, my patch changes it so it calls mremap instead. It has been working here ever since, never had the corruption again. You can find the patch and somewhat detailed information about the problem in the end of the bugzilla report here - https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=152548 .

a copy of the patch is also posted on cyrus bugzilla - http://bugzilla.andrew.cmu.edu/show_bug.cgi?id=2640

I hope that helps you. and please review my code because as it's stated in the bugzilla report Im not a very good C programmer ;-)

Best regards,

João Assad
----
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Reply via email to