segfault with amavis-2.8.0
Mark Martinec
Mark.Martinec+amavis at ijs.si
Wed Jul 18 13:19:33 CEST 2012
Ralf,
> I found these in my log today:
>
> Jul 17 10:03:10 mail kernel: [1269179.422355] /usr/sbin/amavi[12956]:
> segfault at b9 ip 00007f80ea10cf66 sp 00007ffff932fdc0 error 4 in DB_File.so[7f80ea10a000+b000]
> Jul 17 10:03:10 mail kernel: [1269179.482621] /usr/sbin/amavi[11340]
> general protection ip:7f80ed68dc5c sp:7ffff932fc90 error:0 in libdb-5.1.so[7f80ed5bf000+16c000]
DB_File.so and libdb-5.1.so ?
These are used by SpamAssassin for Bayes and AWL databases, unless you
use SQL-based databases for this (which you should - for larger sites).
Amavisd itself does not use a DB_File module.
> Looking at the mail.log yields:
>
> * nothing at 10:03:08 - 10:03:09 *
> Jul 17 10:03:10 mail amavis[13389]: logging initialized, log level 2, syslog: amavis.mail
> Jul 17 10:03:10 mail amavis[8789]: (08789-10) FWD from <2573-130-22547-znvx.oehttre=punevgr.qr at bounces.sendnode.com> -> <mxxk.bxxxxer at charite.de>,BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10026): 250 2.0.0 Ok: queued as 3WbvB52G4lzCtFT
> Jul 17 10:03:10 mail amavis[13389]: Valid PID file (younger than sys uptime 14 16:32:00)
> Jul 17 10:03:10 mail amavis[22033]: Net::Server: 2012/07/17-10:03:10 Server closing!
> Jul 17 10:03:10 mail amavis[8789]: (08789-10) (!)TempDir removal: tempdir is to be PRESERVED: /var/amavis/amavis-20120717T095738-08789-PbfjcEQI
> Jul 17 10:03:10 mail amavis[12956]: (12956-01) (!)TempDir removal: tempdir is to be PRESERVED: /var/amavis/amavis-20120717T100307-12956-6izjDOpr
> Jul 17 10:03:10 mail amavis[11340]: (11340-08) (!)TempDir removal: tempdir is to be PRESERVED: /var/amavis/amavis-20120717T100136-11340-jldSzn1F
> Jul 17 10:03:11 mail amavis[13389]: Daemon [22033] terminated by SIGTERM
> Jul 17 10:03:11 mail amavis[6629]: (06629-15) (!)TempDir removal: tempdir is to be PRESERVED: /var/amavis/amavis-20120717T095226-06629-1Qd3NdVu
> Jul 17 10:03:11 mail amavis[13397]: logging initialized, log level 2, syslog: amavis.mail
> Jul 17 10:03:11 mail amavis[13397]: starting. /usr/sbin/amavisd at mail.charite.de amavisd-new-2.8.0 (20120630), Unicode aware
> Jul 17 10:03:11 mail amavis[13397]: perl=5.014002, user=, EUID: 107 (107); group=, EGID: 117 117 (117 117)
Apparently this happened during a restart. The two child processes
of a shutting-down daemon hit this database bug while terminating.
I can't think of any change in amavisd between 2.7 and 2.8.0 that
would provoke this. Consider switching Bayes and AWL to an SQL-based
database.
Mark
More information about the amavis-users
mailing list