Re: squatter exits with "fatal error: Virtual memory exhausted" on huge mailbox

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

 



--On 13. Juli 2009 14:53:31 +0200 Pascal Gienger <Pascal.Gienger@xxxxxxxxxxxxxxx> wrote:

Sebastian Hagedorn schrieb:
fatal error: Virtual memory exhausted

Of course it's possible that it then tried to allocate one huge chunk,
but I can't see that. Are there better tools to monitor the memory
allocation of a process?

Swap file/partition full?

Unlikely.

Background:
I think the message "Virtual memory exhausted" is coming from your
operating system and not from the squatter process.

I disagree.

Squatter would have been said

   switch (err) {
   case SQUAT_ERR_OUT_OF_MEMORY:
     fprintf(stderr, "SQUAT: Out of memory (%s)\n", s);
     break;

But:

lib/xmalloc.c:    fatal("Virtual memory exhausted", EC_TEMPFAIL);

This code actually can't be reached:

     b->buf = (char*)xrealloc(b->buf, len);
     if (b->buf == NULL) {
       squat_set_last_error(SQUAT_ERR_OUT_OF_MEMORY);
       return NULL;
     }

If the xrealloc fails, the "fatal" above is called within that routine.
--
    .:.Sebastian Hagedorn - RZKR-R1 (Gebäude 52), Zimmer 18.:.
                .:.Regionales Rechenzentrum (RRZK).:.
.:.Universität zu Köln / Cologne University - ✆ +49-221-478-5587.:.

Attachment: pgpR7a80TYHRV.pgp
Description: PGP signature

----
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