You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "@lbutlr" <kr...@kreme.com> on 2019/05/30 00:26:18 UTC
perl core dumping
Seeing a lot of this in the messages log
May 29 18:03:01 mail kernel: pid 99745 (perl), uid 0: exited on signal 11 (core dumped)
May 29 18:03:03 mail kernel: pid 457 (perl), uid 0: exited on signal 11 (core dumped)
May 29 18:03:06 mail kernel: pid 1456 (perl), uid 0: exited on signal 11 (core dumped)
May 29 18:03:08 mail kernel: pid 2221 (perl), uid 0: exited on signal 11 (core dumped)
May 29 18:03:23 mail kernel: pid 14865 (perl), uid 58: exited on signal 11
May 29 18:04:26 mail kernel: pid 6373 (perl), uid 58: exited on signal 11
May 29 18:06:12 mail kernel: pid 10588 (perl), uid 58: exited on signal 11
perl is used by SpamAssassin (only, I believe). I see some sporadic other spamd logged errors in the same log file, but they seem to be several minutes off from the core dumps and signal 11 errors.
May 29 17:56:09 mail postfix/cleanup[4024]: warning: milter unix:/var/run/spamass-milter.sock: can't read SMFIC_BODYEOB reply packet header: Operation timed out
May 29 17:59:12 mail dovecot: imap(*user*)<86517><stuff>: Error: program `/usr/lib/dovecot/sieve/sa-learn-spam.sh' terminated abnormally, signal 11
May 29 17:59:12 mail dovecot: imap(*user*)<86517><stuff>: Error: sieve: pipe action: failed to pipe message to program `sa-learn-spam.sh': refer to server log for more information. [2019-05-29 17:59:12]
May 29 17:59:12 mail dovecot: imap(*user*)<86517><stuff>: Error: sieve: Execution of script /usr/lib/dovecot/sieve/report-spam.sieve failed
May 29 18:06:11 mail spamd[10588]: bgread: received a 254 bytes packet from 127.0.0.1, decoded 45 bytes
Re: perl core dumping
Posted by LuKreme <kr...@kreme.com>.
On May 29, 2019, at 21:08, Bill Cole <sa...@billmail.scconsult.com> wrote:
>> On 29 May 2019, at 20:34, @lbutlr wrote:
>>> On 29 May 2019, at 18:26, @lbutlr <kr...@kreme.com> wrote:
>>> Seeing a lot of this in the messages log
>>>
>>> May 29 18:03:01 mail kernel: pid 99745 (perl), uid 0: exited on signal 11 (core dumped)
>>
>> Could these be a result of the __STYLE_GIBBERISH_1 fault discussed in other threads?
>
> Unlikely. Signal 11 is a segfault, while the __STYLE_GIBBERISH_1 issue causes a busy hang that in most cases is caught by SA's internal timeout. On the other hand, the fact that I saw 3 different behaviors across 3 different regex(3) implementations makes it conceivable that yet another version/flavor of libc could yield a segfault rather than a hang. Is my recollection correct that you're running FreeBSD?
It is, FreeBSD 11.2. Disabling the gibberish check didn’t stop the core dumps though, so I think the issue lies elsewhere.
meta __STYLE_GIBBERISH_1 0
In local.cf?
Re: perl core dumping
Posted by Bill Cole <sa...@billmail.scconsult.com>.
On 29 May 2019, at 20:34, @lbutlr wrote:
> On 29 May 2019, at 18:26, @lbutlr <kr...@kreme.com> wrote:
>> Seeing a lot of this in the messages log
>>
>> May 29 18:03:01 mail kernel: pid 99745 (perl), uid 0: exited on
>> signal 11 (core dumped)
>
> Could these be a result of the __STYLE_GIBBERISH_1 fault discussed in
> other threads?
Unlikely. Signal 11 is a segfault, while the __STYLE_GIBBERISH_1 issue
causes a busy hang that in most cases is caught by SA's internal
timeout. On the other hand, the fact that I saw 3 different behaviors
across 3 different regex(3) implementations makes it conceivable that
yet another version/flavor of libc could yield a segfault rather than a
hang. Is my recollection correct that you're running FreeBSD?
--
Bill Cole
bill@scconsult.com or billcole@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Re: perl core dumping
Posted by "@lbutlr" <kr...@kreme.com>.
On 29 May 2019, at 18:26, @lbutlr <kr...@kreme.com> wrote:
> Seeing a lot of this in the messages log
>
> May 29 18:03:01 mail kernel: pid 99745 (perl), uid 0: exited on signal 11 (core dumped)
Could these be a result of the __STYLE_GIBBERISH_1 fault discussed in other threads?
--
There is NO Rule six!
Re: perl core dumping
Posted by John Hardin <jh...@impsec.org>.
On Thu, 30 May 2019, @lbutlr wrote:
> On 29 May 2019, at 18:26, @lbutlr <kr...@kreme.com> wrote:
>> May 29 18:06:12 mail kernel: pid 10588 (perl), uid 58: exited on signal 11
>>
>> perl is used by SpamAssassin (only, I believe). I see some sporadic other spamd logged errors in the same log file, but they seem to be several minutes off from the core dumps and signal 11 errors.
>
> Well, it doesn't appear to be sa-spamd related after all, but rather sa-learn.
...I thought I had commented on that based on your log entries, but I
can't find that message in my outbox. :(
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhardin@impsec.org FALaholic #11174 pgpk -a jhardin@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
Men by their constitutions are naturally divided in to two parties:
1. Those who fear and distrust the people and wish to draw all
powers from them into the hands of the higher classes. 2. Those who
identify themselves with the people, have confidence in them,
cherish and consider them as the most honest and safe, although not
the most wise, depository of the public interests.
-- Thomas Jefferson
-----------------------------------------------------------------------
7 days until the 75th anniversary of D-Day
Re: perl core dumping
Posted by "@lbutlr" <kr...@kreme.com>.
On Jun 6, 2019, at 1:17 PM, @lbutlr <kr...@kreme.com> wrote:
> I’ve rebuilt Spamassasin from ports several times, including rebuilding all dependancies.
Rebuilt again, this time with postmaster -fr to rebuild everything that spamassassin depends on as well as its dependencies.
Seems to have done the trick 🤞
--
Not that I condone fascism, or any -ism for that matter. -Ism's in my
opinion are not good. A person should not believe in an -ism, he should
believe in himself. I quote John Lennon, "I don't believe in The
Beatles, I just believe in me." Good point there. After all, he was The
Walrus. I could be The Walrus and I'd still have to bum rides off of
people.
Re: perl core dumping
Posted by "@lbutlr" <kr...@kreme.com>.
On May 30, 2019, at 1:57 AM, @lbutlr <kr...@kreme.com> wrote:
> The zero length temp file is left behind.
Finally got back to this (I’ve been ill) and have a little but more information.
When I try to feed a single message to sa-learn -D —spam /path/to/mailfile
I get many lines ending with:
> Jun 6 13:14:05.614 [57184] dbg: message: ---- MIME PARSER END ----
> Jun 6 13:14:05.614 [57184] dbg: message: decoding base64
> Jun 6 13:14:05.614 [57184] dbg: message: decoding quoted-printable
> Jun 6 13:14:05.614 [57184] dbg: message: HTML::Parser utf8_mode on (assumed UTF-8 octets)
> Segmentation fault (core dumped)
Does that help?
I’ve rebuilt Spamassasin from ports several times, including rebuilding all dependancies.
--
"A common mistake people make when trying to design something completely
foolproof is to underestimate the ingenuity of complete fools.: -
Douglas Adams
Re: perl core dumping
Posted by "@lbutlr" <kr...@kreme.com>.
On 29 May 2019, at 18:26, @lbutlr <kr...@kreme.com> wrote:
> May 29 18:06:12 mail kernel: pid 10588 (perl), uid 58: exited on signal 11
>
> perl is used by SpamAssassin (only, I believe). I see some sporadic other spamd logged errors in the same log file, but they seem to be several minutes off from the core dumps and signal 11 errors.
Well, it doesn't appear to be sa-spamd related after all, but rather sa-learn.
running sa-learn over a Junk folder with -D the process gets hung up at creating a temp file.
# sa-learn -u kremels --spam -D
> ... many lines ...
> May 30 01:49:05.501 [16221] dbg: bayes: expiry starting
> May 30 01:49:05.501 [16221] dbg: locker: refresh_lock: refresh /var/spool/spamd/.spamassassin/bayes.mutex
> May 30 01:49:05.501 [16221] dbg: locker: refresh_lock: refresh /var/spool/spamd/.spamassassin/bayes.mutex
> May 30 01:49:05.501 [16221] dbg: bayes: expiry completed
> May 30 01:49:05.502 [16221] dbg: util: secure_tmpfile created a temporary file /tmp/.spamassassin16221kkilEYtmp
ls -ls /tmp/.spamassassin16221kkilEYtmp
0 -rw------- 1 root wheel 0 May 30 01:49 /tmp/.spamassassin16221kkilEYtmp
If I break out, I get the following:
> ^CMay 30 01:54:08.714 [16221] dbg: plugin: Mail::SpamAssassin::Plugin::Bayes=HASH(0x8892fcc) implements 'learner_close', priority 0
> May 30 01:54:08.714 [16221] dbg: bayes: untie-ing
> May 30 01:54:08.716 [16221] dbg: bayes: files locked, now unlocking lock
> May 30 01:54:08.716 [16221] dbg: locker: safe_unlock: unlocked /var/spool/spamd/.spamassassin/bayes.mutex
The zero length temp file is left behind.
--
Of course, there were various groups seeking his overthrow, and this was
right and proper and the sign of a vigorous and healthy society. No-one
could call him unreasonable about the matter. Why, hadn't he founded
most of them himself? And what was so beautiful was the way they spent
nearly all their time bickering with one another. Human nature, the
Patrician always said, was a marvelous thing. Once you understood where
its levers were. --Guards! Guards!
Re: perl core dumping
Posted by "@lbutlr" <kr...@kreme.com>.
On May 29, 2019, at 19:11, Reindl Harald <h....@thelounge.net> wrote:
>
> configure proper timeouts in the SA instance for the milter
I disabled the rule in my local.cf, but the core dumps continue.
Otherwise my local.cf and SpamAss-Miller config is pretty much unchanged from what it’s been the last several years.
What timeouts would you recommend?
--
This is my signature. There are many like it, but this one is mine.