hi all,
i've built perl 588 from src on OSX 10.4.7
works great most everywhere.
but, when i attempt to launch spamassassin as a deamon:
spamd --daemonize
i get a perl crash.
the folks @ #spamassassin insist it's a "perl problem", and has nothing
to do with SA.
the folks @ perl5-porters seem generally not interested, with one
offlist, unsubstantiated "it's a problem w/ osx's gcc".
i.e., the not-so-infrequent "It's the other guy's fault" school of
interoperability testing :-/
personally, i'm not convinced abt either ...
i've be trying to track down the cause of the crash ... but, debugging
perl itself, i'm way in over my head :-/
that said, i've posted the crash report @ (now a closed/wontfix bug
...):
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5100
where, i've also added some perl debugger trace output, pointing to the
loc'n in SA's 'spamd' where the crash occurs.
can anyone kindly take a gander, and confirm/deny that it *is* a perl
issue?
and/or how to nail this down further?
thanks!
richard
p.s. usual gobs of detail follow BELOW ...
--
/"\
\ / ASCII Ribbon Campaign
X against HTML email, vCards
/ \ & micro$oft attachments
[GPG] OpenMacNews at gmail dot com
fingerprint: 50C9 1C46 2F8F DE42 2EDB D460 95F7 DDBD 3671 08C6
--
my perl config 'line' is (yes, a little OCD ...) :
./Configure \
-Dfirstmakefile='GNUmakefile' \
-Dprefix='/usr/local/perl5' \
-Dperladmin='[EMAIL PROTECTED]' \
-Dcf_email='[EMAIL PROTECTED]' \
-Dloclibpth='/usr/local/berkeley-db/lib /usr/local/lib /usr/lib' \
-Dlocincpth='/usr/local/berkeley-db/include /usr/local/include
/usr/include' \
-Dldflags='-L/usr/local/berkeley-db/lib -L/usr/local/lib -L/usr/lib' \
-Dperllibs='-ldb -lc -lm -ldl' \
-Dlibs='-ldb -lc -lm -ldl' \
-Dprivlib='/usr/local/perl_libs/privlib' \
-Darchlib='/usr/local/perl_libs/privlib/darwin-thread-multi-2level' \
-Dsitelib='/usr/local/perl_libs/sitelib' \
-Dsitearch='/usr/local/perl_libs/sitelib/darwin-thread-multi-2level' \
-Dvendorlib='/usr/local/perl_libs/vendorlib' \
--Dvendorarch='/usr/local/perl_libs/vendorlib/darwin-thread-multi-2level'
\
-Dvendorbin='/usr/local/perl_libs/bin' \
-Dvendorprefix='/usr/local/perl_libs' \
-Dhtml1dir='/var/docs/html/Perl' \
-Dhtml3dir='/var/docs/html/Perl' \
-Dsitehtml1='/var/docs/html/Perl' \
-Dsitehtml3='/var/docs/html/Perl' \
-Dvendorhtml1='/var/docs/html/Perl' \
-Dvendorhtml3='/var/docs/html/Perl' \
-Dman1dir='/var/docs/man/man1' \
-Dman3dir='/var/docs/man/man3' \
-Dsiteman1dir='/var/docs/man/man1' \
-Dsiteman3dir='/var/docs/man/man3' \
-Dman1ext=1 \
-Dman3ext=3 \
-Dinstallusrbinperl \
-Duseshrplib \
-Duseperlio \
-Duseithreads
which i follow with an autocontinuation of:
...
Which of these apply, if any? [darwin] & -d
(OK, I'll run with -d after this question.)
Which of these apply, if any? [darwin] (RETURN)
... continue on automatic ...
subsequent:
make
make install
complete w/o error, and
make test
reports:
...
All tests successful.
u=7.26 s=5.58 cu=499.58 cs=141.23 scripts=963 tests=118110
% otool -L /usr/local/perl5/bin/perl
/usr/local/perl_libs/privlib/darwin-thread-multi-2level/CORE/libperl.dylib
(compatibility version 5.8.0, current version 5.8.8)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 88.1.6)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
version 1.0.0)
perl -V:
===========================================================
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=darwin, osvers=8.7.0, archname=darwin-thread-multi-2level
uname='darwin server 8.7.0 darwin kernel version 8.7.0: fri may 26
15:20:53 pdt 2006; root:xnu-792.6.76.obj~1release_ppc power macintosh
powerpc '
config_args='-Dfirstmakefile=GNUmakefile -Dprefix=/usr/local/perl5
- [EMAIL PROTECTED]
[EMAIL PROTECTED]
- -Dloclibpth=/usr/local/berkeley-db/lib /usr/local/lib /usr/lib
- -Dlocincpth=/usr/local/berkeley-db/include /usr/local/include
/usr/include -Dldflags=-L/usr/local/berkeley-db/lib -L/usr/local/lib
- -L/usr/lib -Dperllibs=-ldb -lc -lm -ldl -Dlibs=-ldb -lc -lm -ldl
- -Dprivlib=/usr/local/perl_libs/privlib
- -Darchlib=/usr/local/perl_libs/privlib/darwin-thread-multi-2level
- -Dsitelib=/usr/local/perl_libs/sitelib
- -Dsitearch=/usr/local/perl_libs/sitelib/darwin-thread-multi-2level
- -Dvendorlib=/usr/local/perl_libs/vendorlib
-
-Dvendorarch=/usr/local/perl_libs/vendorlib/darwin-thread-multi-2level
- -Dvendorbin=/usr/local/perl_libs/bin
- -Dvendorprefix=/usr/local/perl_libs -Dhtml1dir=/var/docs/html/Perl
- -Dhtml3dir=/var/docs/html/Perl -Dsitehtml1=/var/docs/html/Perl
- -Dsitehtml3=/var/docs/html/Perl -Dvendorhtml1=/var/docs/html/Perl
- -Dvendorhtml3=/var/docs/html/Perl -Dman1dir=/var/docs/man/man1
- -Dman3dir=/var/docs/man/man3 -Dsiteman1dir=/var/docs/man/man1
- -Dsiteman3dir=/var/docs/man/man3 -Dman1ext=1 -Dman3ext=3
- -Dinstallusrbinperl -Duseshrplib -Duseperlio -Duseithreads'
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='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp
- -fno-strict-aliasing -pipe -Wdeclaration-after-statement
- -I/usr/local/berkeley-db/include -I/usr/local/include',
optimize='-O3',
cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp
- -fno-strict-aliasing -pipe -Wdeclaration-after-statement
- -I/usr/local/berkeley-db/include -I/usr/local/include'
ccversion='', gccversion='4.0.1 (Apple Computer, Inc. build 5363)',
gccosandvers=''
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='env MACOSX_DEPLOYMENT_TARGET=10.4 cc', ldflags
='-L/usr/local/berkeley-db/lib -L/usr/local/lib -L/usr/lib'
libpth=/usr/local/berkeley-db/lib /usr/local/lib /usr/lib
libs=-ldb -lc -lm -ldl
perllibs=-lc -lm -ldl
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true,
libperl=libperl.dylib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-L/usr/local/berkeley-db/lib
- -L/usr/local/lib -L/usr/lib -bundle -undefined dynamic_lookup'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES
USE_PERLIO USE_REENTRANT_API
Built under darwin
Compiled at Sep 12 2006 22:20:54
%ENV:
PERL_MM_OPT="INSTALLPRIVLIB=/usr/local/perl_libs/privlib
INSTALLSITELIB=/usr/local/perl_libs/sitelib
INSTALLVENDORLIB=/usr/local/perl_libs/vendorlib
INSTALLARCHLIB=/usr/local/perl_libs/privlib/darwin-thread-multi-2level
INSTALLSITEARCH=/usr/local/perl_libs/sitelib/darwin-thread-multi-2level
INSTALLVENDORARCH=/usr/local/perl_libs/vendorlib/darwin-thread-multi-2level
INSTALLMAN1DIR=/var/docs/man/man1
INSTALLMAN3DIR=/var/docs/man/man3
INSTALLSITEMAN1DIR=/var/docs/man/man1
INSTALLSITEMAN3DIR=/var/docs/man/man3
INSTALLVENDORMAN1DIR=/var/docs/man/man1
INSTALLVENDORMAN3DIR=/var/docs/man/man3
INST_MAN1DIR=/var/docs/man/man1
INST_MAN3DIR=/var/docs/man/man3"
@INC:
/usr/local/perl_libs/privlib/darwin-thread-multi-2level
/usr/local/perl_libs/privlib
/usr/local/perl_libs/sitelib/darwin-thread-multi-2level
/usr/local/perl_libs/sitelib
/usr/local/perl_libs/sitelib
/usr/local/perl_libs/vendorlib/darwin-thread-multi-2level
/usr/local/perl_libs/vendorlib
/usr/local/perl_libs/vendorlib
.
===========================================================