On 2024-04-03 at 14:01:44 UTC-0400 (Wed, 3 Apr 2024 14:01:44 -0400)
Scott Ellentuch <tuct...@gmail.com>
is rumored to have said:
Hi,
Ok, deleted the directory and started again.
Test Summary Report
-------------------
t/spamd_client.t (Wstat: 26624 Tests: 4 Failed: 0)
Non-zero exit status: 104
Parse errors: Bad plan. You planned 52 tests but ran 4.
Files=217, Tests=3765, 890 wallclock secs ( 1.21 usr 0.19 sys +
271.62
cusr 25.51 csys = 298.53 CPU)
Result: FAIL
Failed 1/217 test programs. 0/3765 subtests failed.
make: *** [test_dynamic] Error 255
Script file attached.
This error appears to be a problem launching a spamd instance from the
test harness, verifying its PID, and getting responses from it. You can
get more details logged by clearing the test logs and re-running just
the one test file which displays the problem:
rm -r t/log
make test TEST_FILES="t/spamd_client.t" TEST_VERBOSE=1
That should provide the precise command used to launch spamd and
hopefully a clue about why it failed. There may also be useful
information logged under t/log/ after a failed test.
One possibility is a local packet filter (iptables, nftables, etc.)
blocking the port spamd uses for testing. That is rare because it
selects an unused high port on the loopback interface for the test run,
but if you have a very tight network security policy in place, that can
fail. SELinux and AppArmor can also interfere.
Thanks Tuc
On Wed, Apr 3, 2024 at 10:46 AM Bill Cole <
sausers-20150...@billmail.scconsult.com> wrote:
On 2024-04-02 at 18:18:09 UTC-0400 (Tue, 2 Apr 2024 18:18:09 -0400)
Scott Ellentuch <tuct...@gmail.com>
is rumored to have said:
Hi,
Trying to install SA 4.0.1 from scratch. Tried via CPAN, that didn't
go
well, so trying from tarball. (Enabled SSL when doing Makefile.PL)
NEVER run 'make' as root except when you're ready to commit with
'make
install' unless you're doing it on a sacrificial system.
Think about how unsafe it could be...
These test failures look like you did that. I am flattered that you
trust the SpamAssassin team that much, but don't, please. We are only
human. In the past there have been bugs in the test suite that have
polluted the running config of the system if run as root. It is
possible
in principle for there to still be such bugs.
I'm on Amazon Linux 2 , 4.0.1 SA, and not sure what other info I can
give.
I installed every perl module it wanted.
FWIW, non-root 'make test' has been clean for PMC members on a wide
range of systems, so a real test failure would be both a shock and a
serious problem. If this is happening with a normal user running
'make
test' we definitely need to
address it.
The final summary is -
Test Summary Report
-------------------
t/spamc_optL.t (Wstat: 2560 Tests: 18 Failed: 10)
Failed tests: 2, 5-8, 10, 12, 15-16, 18
Non-zero exit status: 10
t/spamd_client.t (Wstat: 3584 Tests: 52 Failed: 14)
Failed tests: 35, 37-42, 44, 46-51
Non-zero exit status: 14
Files=217, Tests=3807, 904 wallclock secs ( 1.21 usr 0.22 sys +
273.72
cusr 26.33 csys = 301.48 CPU)
Result: FAIL
Failed 2/217 test programs. 24/3807 subtests failed.
make: *** [test_dynamic] Error 255
During the run it seems to output :
t/spamd_client.t .................. 32/52
# Failed test at t/spamd_client.t line 152.
ERROR: Bayes dump returned an error, please re-run with -D for more
information
t/spamd_client.t .................. 37/52
# Failed test at t/spamd_client.t line 157.
Not found: spam in database = 1 0 non-token data: nspam at
t/spamd_client.t line 158.
# Failed test at t/SATest.pm line 926.
# Failed test at t/spamd_client.t line 161.
ERROR: Bayes dump returned an error, please re-run with -D for more
information
# Failed test at t/spamd_client.t line 165.
Not found: ham in database = 0 0 non-token data: nham at
t/spamd_client.t
line 166.
# Failed test at t/SATest.pm line 926.
Not found: spam in database = 0 0 non-token data: nspam at
t/spamd_client.t line 166.
# Failed test at t/SATest.pm line 926.
t/spamd_client.t .................. 44/52
# Failed test at t/spamd_client.t line 172.
ERROR: Bayes dump returned an error, please re-run with -D for more
information
# Failed test at t/spamd_client.t line 177.
Not found: ham in database = 1 0 non-token data: nham at
t/spamd_client.t
line 178.
# Failed test at t/SATest.pm line 926.
# Failed test at t/spamd_client.t line 181.
ERROR: Bayes dump returned an error, please re-run with -D for more
information
t/spamd_client.t .................. 49/52
# Failed test at t/spamd_client.t line 185.
Not found: ham in database = 0 0 non-token data: nham at
t/spamd_client.t
line 186.
# Failed test at t/SATest.pm line 926.
Not found: spam in database = 0 0 non-token data: nspam at
t/spamd_client.t line 186.
# Failed test at t/SATest.pm line 926.
t/spamd_client.t .................. 52/52 # Looks like you failed 14
tests
of 52.
t/spamd_client.t .................. Dubious, test returned 14 (wstat
3584,
0xe00)
Failed 14/52 subtests
Any indications as to the issue?
Thanks, Tuc
--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire
--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire