http://bugzilla.spamassassin.org/show_bug.cgi?id=3975
------- Additional Comments From [EMAIL PROTECTED] 2004-11-20 14:54 -------
I changed the port to 58373, of course I checked that I didn't used this port
EITHER, got the same result.
I forced a reinstall of IO::Socket::INET as it seemed to be the problem
and then I actually got:
desousa:Mail-SpamAssassin-3.0.1 # make test TEST_FILES="t/spamc*.t"
TEST_VERBOSE=1
cp spamc/spamc blib/script/spamc
/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/spamc
cp sa-learn blib/script/sa-learn
/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/sa-learn
cp spamassassin blib/script/spamassassin
/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/spamassassin
cp spamd/spamd blib/script/spamd
/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/spamd
PERL_DL_NONLAZY=1 /bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1,
'blib/lib', 'blib/arch')" t/spamc*.t
t/spamc....................1..2
# Running under perl version 5.008004 for solaris
# Current time local: Sat Nov 20 02:23:56 2004
# Current time GMT: Sat Nov 20 01:23:56 2004
# Using Test.pm version 1.24
../spamc/spamc -d localhost -p 48373 -p 9 < data/etc/hello.txt
ok 1
Checking spamc
ok 2
ok
t/spamc_B..................1..8
# Running under perl version 5.008004 for solaris
# Current time local: Sat Nov 20 02:24:02 2004
# Current time GMT: Sat Nov 20 01:24:02 2004
# Using Test.pm version 1.24
/bin/perl SATest.pl -Mredirect -olog/spamc_B-spamd.out
-Olog/spamc_B-spamd.err -- /bin/perl -T -w ../spamd/spamd -D -x -s stderr -C
log/test_rules_copy --siteconfigpath log/localrules.tmp -p 48373 -L &
../spamc/spamc -d localhost -p 48373 -B < data/spam/bsmtp
ok 1
Checking data
ok 2
Checking helo
ok 3
Checking status
ok 4
Checking mailfrom
ok 5
Checking quit
ok 6
Checking rcptto
ok 7
Checking spamflag
ok 8
Killed 1 spamd instances
Waiting for spamd at pid 14214 to exit...
Waiting for spamd at pid 14214 to exit...
Waiting for spamd at pid 14214 to exit...
ok
t/spamc_c..................1..2
# Running under perl version 5.008004 for solaris
# Current time local: Sat Nov 20 02:25:06 2004
# Current time GMT: Sat Nov 20 01:25:06 2004
# Using Test.pm version 1.24
/bin/perl SATest.pl -Mredirect -olog/spamc_c-spamd.out
-Olog/spamc_c-spamd.err -- /bin/perl -T -w ../spamd/spamd -D -x -s stderr -C
log/test_rules_copy --siteconfigpath log/localrules.tmp -p 48373 -L &
spamd start failed: log: logging enabled:
facility: stderr
socket: file
output: stderr
logging to stderr disabled: already debugging to stderr
creating INET socket:
Listen: 5
LocalAddr: 127.0.0.1
LocalPort: 48373
Proto: 6
ReuseAddr: 1
Type: 2
debug: SpamAssassin version 3.0.1
debug: Score set 0 chosen.
debug: Storable module v2.13 found
debug: Preloading modules with HOME=/tmp/spamd-14252-init
debug: ignore: test message to precompile patterns and load modules
debug: using
"/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/localrules.tmp/init.pre"
for site rules init.pre
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/localrules.tmp/init.pre
debug: using
"/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy" for
default rules dir
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/10_misc.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/20_anti_ratware.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/20_body_tests.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/20_compensate.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/20_dnsbl_tests.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/20_drugs.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/20_fake_helo_tests.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/20_head_tests.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/20_html_tests.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/20_meta_tests.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/20_phrases.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/20_porn.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/20_ratware.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/20_uri_tests.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/23_bayes.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/25_body_tests_es.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/25_hashcash.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/25_spf.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/25_uribl.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/30_text_de.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/30_text_fr.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/30_text_nl.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/30_text_pl.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/50_scores.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/60_whitelist.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/99_test_default.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/local.cf
debug: config: read file
/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/test_rules_copy/regression_tests.cf
debug: using
"/disk_bx1_2/install_dir/Mail-SpamAssassin-3.0.1/t/log/localrules.tmp" for site
rules dir
debug: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x4ae67c)
debug: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::Hashcash=HASH(0xd345e4)
debug: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH(0xd02180)
Maybe you need to kill a running spamd process?
../spamc/spamc -d localhost -p 48373 -c < data/spam/001
Invalid spamd pid: 0. Spamd not started/crashed?
ok 1
../spamc/spamc -d localhost -p 48373 -c < data/nice/001
ok 2
Invalid spamd pid: 0. Spamd not started/crashed?
ok
t/spamc_c_stdout_closed....1..2
# Running under perl version 5.008004 for solaris
# Current time local: Sat Nov 20 02:27:07 2004
# Current time GMT: Sat Nov 20 01:27:07 2004
# Using Test.pm version 1.24
/bin/perl SATest.pl -Mredirect -olog/spamc_c_stdout_closed-spamd.out
-Olog/spamc_c_stdout_closed-spamd.err -- /bin/perl -T -w ../spamd/spamd -D -x -s
stderr -C log/test_rules_copy --siteconfigpath log/localrules.tmp -p 48373 -L &
spamd start failed: log: logging enabled:
facility: stderr
socket: file
output: stderr
logging to stderr disabled: already debugging to stderr
creating INET socket:
Listen: 5
LocalAddr: 127.0.0.1
LocalPort: 48373
Proto: 6
ReuseAddr: 1
Type: 2
Could not create INET socket on 127.0.0.1:48373: Address already in use
(IO::Socket::INET: Address already in use)
Maybe you need to kill a running spamd process?
print() on closed filehandle STDOUT at t/SATest.pm line 259.
print() on closed filehandle STDOUT at t/SATest.pm line 415.
ok 1
print() on closed filehandle STDOUT at t/SATest.pm line 259.
Filehandle STDOUT reopened as IN only for input at t/SATest.pm line 468.
ok 2
Invalid spamd pid: 0. Spamd not started/crashed?
ok
t/spamc_E..................1..2
# Running under perl version 5.008004 for solaris
# Current time local: Sat Nov 20 02:28:27 2004
# Current time GMT: Sat Nov 20 01:28:27 2004
# Using Test.pm version 1.24
/bin/perl SATest.pl -Mredirect -olog/spamc_E-spamd.out
-Olog/spamc_E-spamd.err -- /bin/perl -T -w ../spamd/spamd -D -x -s stderr -C
log/test_rules_copy --siteconfigpath log/localrules.tmp -p 48373 -L &
spamd start failed: log: logging enabled:
facility: stderr
socket: file
output: stderr
logging to stderr disabled: already debugging to stderr
creating INET socket:
Listen: 5
LocalAddr: 127.0.0.1
LocalPort: 48373
Proto: 6
ReuseAddr: 1
Type: 2
Could not create INET socket on 127.0.0.1:48373: Address already in use
(IO::Socket::INET: Address already in use)
Maybe you need to kill a running spamd process?
../spamc/spamc -d localhost -p 48373 -E < data/nice/001
ok 1
../spamc/spamc -d localhost -p 48373 -E < data/spam/001
Invalid spamd pid: 0. Spamd not started/crashed?
ok 2
Invalid spamd pid: 0. Spamd not started/crashed?
ok
t/spamc_l..................1..3
# Running under perl version 5.008004 for solaris
# Current time local: Sat Nov 20 02:29:43 2004
# Current time GMT: Sat Nov 20 01:29:43 2004
# Using Test.pm version 1.24
../spamc/spamc -d localhost -p 48373 -l -p 8 < data/etc/hello.txt
ok 1
Checking spamc_l
ok 2
Checking connfailed
ok 3
ok
All tests successful.
Files=6, Tests=19, 353 wallclock secs (53.43 cusr + 14.09 csys = 67.52 CPU)
desousa:Mail-SpamAssassin-3.0.1 # ps -ef | grep spam
root 14535 14252 0 02:26:41 pts/1 0:06 /bin/perl -T -w ../spamd/spamd -D
-x -s stderr -C log/test_rules_copy --sitecon
root 14533 14252 0 02:26:40 pts/1 0:06 /bin/perl -T -w ../spamd/spamd -D
-x -s stderr -C log/test_rules_copy --sitecon
root 14536 14252 5 02:26:41 pts/1 0:06 /bin/perl -T -w ../spamd/spamd -D
-x -s stderr -C log/test_rules_copy --sitecon
root 14800 1367 0 02:30:11 pts/1 0:00 grep spam
root 14252 1 0 02:25:12 pts/1 0:26 /bin/perl -T -w ../spamd/spamd -D
-x -s stderr -C log/test_rules_copy --sitecon
root 14530 14252 5 02:26:39 pts/1 0:11 /bin/perl -T -w ../spamd/spamd -D
-x -s stderr -C log/test_rules_copy --sitecon
root 14534 14252 0 02:26:40 pts/1 0:06 /bin/perl -T -w ../spamd/spamd -D
-x -s stderr -C log/test_rules_copy --sitecon
desousa:Mail-SpamAssassin-3.0.1 # ps -ef | grep spam
It said all tests OK, but the I saw 6 SPAMD processes still running.
I killed them all off and tried a new "make test" , but I still get the same
problem.
I seems more that there is a problem killing the spamd daemon after a
successfull test.
Any more suggestions?
I remember I tried 3.0 on a differnt machine (sun4u) Ultrasparc5 with the same
results, for a while I thought it had something to do with 64-bit support,
that's why I tried it on sun4u instead of sun4m architecture.
I'm running:
desousa:~ # perl -V
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
Platform:
osname=solaris, osvers=2.9, archname=sun4-solaris-thread-multi
uname='sunos desousa 5.9 generic_112233-02 sun4m sparc sunw,sparcstation-5 '
config_args='-de -D cc=gcc -Dusethreads'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_REENTRANT -fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O',
cppflags='-D_REENTRANT -fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='3.2.3', gccosandvers='solaris2.9'
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib '
libpth=/usr/local/lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldb -ldl -lm -lpthread -lc
perllibs=-lsocket -lnsl -ldl -lm -lpthread -lc
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
Built under solaris
Compiled at Jun 23 2004 10:53:29
@INC:
/usr/local/lib/perl5/5.8.4/sun4-solaris-thread-multi
/usr/local/lib/perl5/5.8.4
/usr/local/lib/perl5/site_perl/5.8.4/sun4-solaris-thread-multi
/usr/local/lib/perl5/site_perl/5.8.4
/usr/local/lib/perl5/site_perl
.
If that gives any hints.
Thanx
Carlos de Sousa
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.