qmail-smtpd seg fault & dnscache main log dir

Hello

I noticed I have a lot of (way way like 1 or 2 per hour)

qmail-smtpd[22320]: segfault at 000000010000000b rip 0000000000408ea0 rsp 0000007fbffffad8 error 6

Do you know what cause this segfault ?

I also noted this in /var/log/maillog

Apr 6 12:41:46 obiwan spamd[1555]: Can’t locate Mail/SPF/Query.pm in @INC (@INC contains: …/lib /usr/lib/perl5/site_perl/5.8.5 /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.4/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.3/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.2/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.1/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.4/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.2/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.1/x86_64-linux-thread-multi /us

Also since few days I also noticed that svscan has a pbm with dnscache ./main log dir

I have these errors under ps axf

| _ supervise dnscache
| | _ /usr/bin/dnscache
| _ supervise log
| | _ [multilog] <defunct>
|
_ readproctitle service errors: …ccess denied?multilog: fatal: unable to lock directory ./main

The main dir in dnscache/log is owned by tinydns. Shouldn’t it be owned by dnslog ?

[root@obiwan log]# ls -l
total 24
drwxr-sr-x 2 tinydns tinydns 4096 Mar 28 17:54 main
-rwxr-xr-x 1 root root 50 Mar 23 09:34 run
-rw-r–r-- 1 tinydns tinydns 0 Mar 23 09:34 status
drwx–S— 2 root root 4096 Apr 6 12:11 supervise

Thanks

Pascal

I noticed I have a lot of (way way like 1 or 2 per hour)

Quote:
qmail-smtpd[22320]: segfault at 000000010000000b rip 0000000000408ea0 rsp 0000007fbffffad8 error 6

I’d try raising the mem limit for qmail-smtpd Pascal. It’s in /service/smtp/run after the “softlimit” command.

I have these errors under ps axf

Quote:

| _ supervise dnscache
| | _ /usr/bin/dnscache
| _ supervise log
| | _ [multilog] <defunct>
|
_ readproctitle service errors: …ccess denied?multilog: fatal: unable to lock directory ./main

The main dir in dnscache/log is owned by tinydns. Shouldn’t it be owned by dnslog ?

Quote:
[root@obiwan log]# ls -l
total 24
drwxr-sr-x 2 tinydns tinydns 4096 Mar 28 17:54 main
-rwxr-xr-x 1 root root 50 Mar 23 09:34 run
-rw-r–r-- 1 tinydns tinydns 0 Mar 23 09:34 status
drwx–S— 2 root root 4096 Apr 6 12:11 supervise

Yep, looks that way Pascal:


[root@veteatr main]# pwd
/var/djbdns/dnscache/log/main
[root@veteatr main]# ls -la
total 972
drwxr-sr-x  2 dnslog dnslog  4096 Apr  6 11:48 .
drwxr-sr-x  4 root   root    4096 Dec 10 20:36 ..
-rwxr--r--  1 dnslog dnslog 98053 Apr  6 11:33 @40000000443534c524f6268c.s
-rwxr--r--  1 dnslog dnslog 98023 Apr  6 11:36 @400000004435356e32c959b4.s
-rwxr--r--  1 dnslog dnslog 98296 Apr  6 11:37 @40000000443535bd1581d23c.s
-rwxr--r--  1 dnslog dnslog 98036 Apr  6 11:39 @400000004435363037348f8c.s
-rwxr--r--  1 dnslog dnslog 98062 Apr  6 11:42 @40000000443536d62108719c.s
-rwxr--r--  1 dnslog dnslog 98037 Apr  6 11:43 @40000000443537490715974c.s
-rwxr--r--  1 dnslog dnslog 98076 Apr  6 11:45 @400000004435379e1ab33e44.s
-rwxr--r--  1 dnslog dnslog 98131 Apr  6 11:47 @40000000443538183744c7e4.s
-rwxr--r--  1 dnslog dnslog 98027 Apr  6 11:48 @400000004435384d312780f4.s
-rw-r--r--  1 dnslog dnslog 57420 Apr  6 11:49 current
-rw-------  1 dnslog dnslog     0 Dec 10 20:36 lock
-rw-r--r--  1 dnslog dnslog     0 Feb 15 16:15 state

Pascal I had this same problem and you were the one to shed light on it :smiley:
http://interworx.com/forums/showthread.php?t=1118

haha shame on me :rolleyes:

I knew I know this pbm, but after reading my notes again and again I dind’t find anything about this !!

Well, I udpate my personal note NOW !

Thanks Justec :slight_smile:

Pascal