Hello,

I am running into a strange problem using Qmail-LDAP (and a series of other
qmail patches) in a new installation.  We have one qmail ldap install which
has been running for over a year now, but obviously it is using older
versions of the patches.  I am hoping that perhaps someone has run into this
problem before and can help out.

What happens is that everything will roll along perfectly for a while, with
mail being delivered quickly and properly.  Then, an incoming message will
fail to be delivered and generate an error like this one:

2001-06-11 11:04:37.100715500 delivery 17: deferral:
Out_of_memory_in_qmail-lspawn./

Once that happens, subsequent incoming messages will do the same thing for a
while.  And then, just as suddenly as it started, it will go away and
messages will be delivered normally again, including the previously deferred
ones which had been queued for redelivery.

I'm using the Qmail-1.03, the 0501 LDAP patch, the revised (and working)
0501 Dash patch for EZMLM, SMTP after Pop, SMTP Auth, Long DNS, and Qmail
Queue.

I did some tracing of qmail-lspawn with strace, and found that the out of
memory error is always triggered in a pair of system calls like this:

old_mmap(NULL, 1209446400, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
brk(0x501cb000)                         = 0x8060000
old_mmap(NULL, 1209446400, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
brk(0x501cb000)                         = 0x8060000

I can't tell where in the code this is originating, but judging by what
comes before in the strace, it is talking to the LDAP database.  Could this
perhaps be triggered by a bug in OpenLDAP (we're using 2.0.6?)

Thanks in advance for your help,

Allen Belletti
System Administrator
Digital Motorworks
Phone: 512-692-1024
Fax: 512-349-9366
[EMAIL PROTECTED]
www.digitalmotorworks.com

Reply via email to