Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
qmail-qfilter Out of memory! [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Thalionath
n00b
n00b


Joined: 26 May 2003
Posts: 12
Location: Switzerland :: Berne

PostPosted: Sun Feb 27, 2005 9:30 pm    Post subject: qmail-qfilter Out of memory! [solved] Reply with quote

Hello

I'm trying to setup a spam filter (SMTP-time) with qmail-qfilter and spamassassin.
Unfortunately, qmail-qfilter returns always with an out of memory error:

configfiles:

/var/qmail/control/conf-smtpd

Code:

export QMAILQUEUE=/var/qmail/bin/spamfilter
...


/var/qmail/bin/spamfilter

Code:

#!/bin/sh
exec strace /var/qmail/bin/qmail-qfilter /usr/bin/spamassassin -D


qmail-smtpd log:

Code:

execve("/var/qmail/bin/qmail-qfilter", ["/var/qmail/bin/qmail-qfilter", "/usr/bin/spamassassin", "-D"], [/* 47 vars */]) = 0
brk(0)                                  = 0x804c000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=17793, ...}) = 0
old_mmap(NULL, 17793, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fe4000

close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0PS\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1201256, ...}) = 0
old_mmap(NULL, 1137860, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ece000
old_mmap(0xb7fde000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10f000) = 0xb7fde000
old_mmap(0xb7fe2000, 7364, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7fe2000
close(3)                                = 0
mprotect(0xb7fde000, 4096, PROT_READ)   = 0
munmap(0xb7fe4000, 17793)               = 0
open("/dev/urandom", O_RDONLY)          = 3
read(3, "\270\370Uv", 4)                = 4
close(3)                                = 0
brk(0)                                  = 0x804c000
brk(0x806d000)                          = 0x806d000
gettimeofday({1109535658, 696882}, NULL) = 0
getpid()                                = 20750
open("/tmp/fixheaders.lubVe8", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
unlink("/tmp/fixheaders.lubVe8")        = 0
read(0, "Received: from mxout.hispeed.ch "..., 4096) = 798
write(3, "Received: from mxout.hispeed.ch "..., 798) = 798
read(0, "", 4096)                       = 0
close(0)                                = 0
lseek(3, 0, SEEK_SET)                   = 0
dup2(3, 0)                              = 0
close(3)                                = 0
getpid()                                = 20750
open("/tmp/fixheaders.dKI6mh", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
unlink("/tmp/fixheaders.dKI6mh")        = 0
read(1, "Ffoo@bar.com\0Tme@bar"..., 4096) = 41
write(3, "Ffoo@bar.com\0Tme@bar"..., 41) = 41
read(1, "", 4096)                       = 0
close(1)                                = 0
lseek(3, 0, SEEK_SET)                   = 0
old_mmap(NULL, 41, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fe8000
munmap(0xb7fe8000, 41)                  = 0
close(5)                                = -1 EBADF (Bad file descriptor)
getpid()                                = 20750
open("/tmp/fixheaders.PJFmvq", O_RDWR|O_CREAT|O_EXCL, 0600) = 1
unlink("/tmp/fixheaders.PJFmvq")        = 0
dup2(1, 5)                              = 5
close(1)                                = 0
close(1)                                = -1 EBADF (Bad file descriptor)
getpid()                                = 20750
open("/tmp/fixheaders.qEOEDz", O_RDWR|O_CREAT|O_EXCL, 0600) = 1
unlink("/tmp/fixheaders.qEOEDz")        = 0
close(4)                                = -1 EBADF (Bad file descriptor)
getpid()                                = 20750
open("/tmp/fixheaders.ZKhYLI", O_RDWR|O_CREAT|O_EXCL, 0600) = 4
unlink("/tmp/fixheaders.ZKhYLI")        = 0
fork()                                  = 20751
waitpid(20751, Out of memory!
Callback called exit at /usr/bin/spamassassin line 80.
END failed--call queue aborted at /usr/bin/spamassassin line 9.
Callback called exit at /usr/bin/spamassassin line 9.
END failed--call queue aborted at /usr/bin/spamassassin line 19.
Callback called exit at /usr/bin/spamassassin line 19.
END failed--call queue aborted at /usr/bin/spamassassin line 24.
Callback called exit at /usr/bin/spamassassin line 24.
END failed--call queue aborted at /usr/bin/spamassassin line 95.
Callback called exit at /usr/bin/spamassassin line 95.
END failed--call queue aborted at /usr/bin/spamassassin line 26.
Callback called exit at /usr/bin/spamassassin line 26.
END failed--call queue aborted at /usr/bin/spamassassin line 56.
Callback called exit at /usr/bin/spamassassin line 56.
END failed--call queue aborted at /usr/bin/spamassassin line 74.
Callback called exit at /usr/bin/spamassassin line 74.
BEGIN failed--compilation aborted at /usr/bin/spamassassin line 80.
[{WIFEXITED(s) && WEXITSTATUS(s) == 12}], WUNTRACED) = 20751
--- SIGCHLD (Child exited) @ 0 (0) ---
exit_group(12)                          = ?
tcpserver: end 20748 status 0
tcpserver: status: 0/40


SpamAssassin version 3.0.2
running on Perl version 5.8.5

I'm using net-mail/qmail-qfilter version 2.0 (masked)
I get the same error with net-mail/qmail-qfilter 1.5 and strace looks as above.

Permissions to /tmp are ok.

Is this error caused by spamassasin or qfilter? Any ideas?

thx

eax


Last edited by Thalionath on Mon Feb 28, 2005 8:58 am; edited 2 times in total
Back to top
View user's profile Send private message
Thalionath
n00b
n00b


Joined: 26 May 2003
Posts: 12
Location: Switzerland :: Berne

PostPosted: Mon Feb 28, 2005 8:57 am    Post subject: Solution Reply with quote

A good night sleep works wonders...

I increased the softlimit in /var/bind/control/conf-common from 8 MB to 32 MB. This finally solved the problem. ;-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum